summaryrefslogtreecommitdiff
path: root/src/html.hpp
blob: c32b119d619e0b7bfabd0e367eb01ad2990d50fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef TEXO_INCLUDED_HTML
#define TEXO_INCLUDED_HTML

#include "exporter.hpp"
#include "importer.hpp"
#include "producer.hpp"


class TexoProducerHTML: public TexoProducerStrict {
public:
    TexoProducerHTML(TexoExporter & exporter);

protected:
    bool TruePut(char c);

    bool StartCode();
    bool StartHeader(int level);
    bool StartParagraph();
    bool StartQuote();

    bool CloseCode();
    bool CloseHeader(int level);
    bool CloseParagraph();
    bool CloseQuote();

    bool StartBold();
    bool StartItalic();
    bool StartMono();
    bool StartStrike();
    bool StartUnderline();

    bool CloseBold();
    bool CloseItalic();
    bool CloseMono();
    bool CloseStrike();
    bool CloseUnderline();

    bool StartLink(const ScriptVariable & link, const ScriptVariable & title);
    bool CloseLink(const ScriptVariable & link, const ScriptVariable & title);

    bool TruePutImage(const ScriptVariable & src, const ScriptVariable & alt,
        const ScriptVariable & title);
    bool TruePutHorizontalRule();
};


#endif