summaryrefslogtreecommitdiff
path: root/src/html.hpp
blob: a954f30d1eb1097c005d12881d0397b7c370ab8d (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
49
50
51
52
53
54
55
#ifndef TEXO_INCLUDED_HTML
#define TEXO_INCLUDED_HTML

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


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


protected:
    bool TruePut(char c);


    bool StartHeader(int level);
    bool CloseHeader(int level);

    bool StartCode();
    bool CloseCode();

    bool StartParagraph();
    bool CloseParagraph();

    bool StartQuote();
    bool CloseQuote();


    bool StartBold();
    bool CloseBold();

    bool StartItalic();
    bool CloseItalic();

    bool StartMono();
    bool CloseMono();

    bool StartStrike();
    bool CloseStrike();

    bool StartUnderline();
    bool CloseUnderline();

    bool StartLink(const char *link, const char *title);
    bool CloseLink(const char *link, const char *title);


    bool TruePutImage(const char *src, const char *alt, const char *title);

    bool TruePutHorizontalRule();
};


#endif