summaryrefslogtreecommitdiff
path: root/src/html.hpp
blob: cc69f10e90eb214f696c0fe71e7fcacce377cbe4 (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
48
#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