summaryrefslogtreecommitdiff
path: root/src/html.hpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-02-03 15:53:56 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-02-03 15:53:56 +0300
commit8d4981fcc1c545396df3eac87a3c1a67f3d30038 (patch)
tree0e4f373313f7b251847fecd1186786574e8d450c /src/html.hpp
parent3032869b86efa52f20ad9840381a37017980f587 (diff)
downloadtexo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.tar
texo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.tar.xz
texo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.zip
[texo] Abolished dependency on ScriptPP.
Diffstat (limited to 'src/html.hpp')
-rw-r--r--src/html.hpp39
1 files changed, 23 insertions, 16 deletions
diff --git a/src/html.hpp b/src/html.hpp
index cc69f10..a954f30 100644
--- a/src/html.hpp
+++ b/src/html.hpp
@@ -2,45 +2,52 @@
#define TEXO_INCLUDED_HTML
#include "exporter.hpp"
-#include "importer.hpp"
#include "producer.hpp"
class TexoProducerHTML: public TexoProducerStrict {
public:
- TexoProducerHTML(TexoExporter & exporter);
+ TexoProducerHTML(TexoExporter &exporter);
+
protected:
bool TruePut(char c);
- bool StartCode();
+
bool StartHeader(int level);
- bool StartParagraph();
- bool StartQuote();
+ bool CloseHeader(int level);
+ bool StartCode();
bool CloseCode();
- bool CloseHeader(int level);
+
+ bool StartParagraph();
bool CloseParagraph();
+
+ bool StartQuote();
bool CloseQuote();
- bool StartBold();
- bool StartItalic();
- bool StartMono();
- bool StartStrike();
- bool StartUnderline();
+ bool StartBold();
bool CloseBold();
+
+ bool StartItalic();
bool CloseItalic();
+
+ bool StartMono();
bool CloseMono();
+
+ bool StartStrike();
bool CloseStrike();
+
+ bool StartUnderline();
bool CloseUnderline();
- bool StartLink(const ScriptVariable & link, const ScriptVariable & title);
- bool CloseLink(const ScriptVariable & link, const ScriptVariable & title);
+ 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 TruePutImage(const ScriptVariable & src,
- const ScriptVariable & alt,
- const ScriptVariable & title);
bool TruePutHorizontalRule();
};