blob: 8091d74d4fda85ee5585f7c3e3651a77760f8a9a (
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
56
57
58
59
60
|
#ifndef TEXO_INCLUDED_HTML
#define TEXO_INCLUDED_HTML
#include "exporter.hpp"
#include "producer.hpp"
#include "importer.hpp"
class TexoProducerHTML: public TexoProducer {
public:
TexoProducerHTML(TexoExporter &exporter);
void End();
void Put(const Texo &piece);
void Put(const TexoHeader &piece);
void Put(const TexoParagraph &piece);
void Put(const TexoCode &piece);
void Put(const TexoQuote &piece);
void Put(const TexoMono &piece);
void Put(const TexoBold &piece);
void Put(const TexoItalic &piece);
void Put(const TexoUnderline &piece);
void Put(const TexoStrike &piece);
void Put(const TexoImage &piece);
void Put(const TexoLink &piece);
void Put(const TexoHorizontalRule &piece);
private:
void Close();
enum {
none = 0,
header_1,
header_2,
header_3,
header_4,
header_5,
header_6,
paragraph,
code,
quote
} opened_block;
};
class TexoImporterHTML: public TexoImporter {
public:
TexoImporterHTML(TexoProducer &producer);
void Put(char c);
void Put(const ScriptVariable &str);
void Put(FILE *file);
};
#endif
|