From 8d4981fcc1c545396df3eac87a3c1a67f3d30038 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Mon, 3 Feb 2020 15:53:56 +0300 Subject: [texo] Abolished dependency on ScriptPP. --- src/html.hpp | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'src/html.hpp') 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(); }; -- cgit v1.2.3