From 105c6082983a0c9dc4f1379fbcee3bcacc830472 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Wed, 4 Mar 2015 14:48:23 +0100 Subject: massively reworked demo html output. --- src/plugins/html/DemoOutput.hpp | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'src/plugins/html/DemoOutput.hpp') diff --git a/src/plugins/html/DemoOutput.hpp b/src/plugins/html/DemoOutput.hpp index b038a96..a1c0938 100644 --- a/src/plugins/html/DemoOutput.hpp +++ b/src/plugins/html/DemoOutput.hpp @@ -39,28 +39,6 @@ namespace ousia { namespace html { class DemoHTMLTransformer { -private: - /** - * This transforms a section-like entity, namely book, section - * and subsection, to an XHTML element, including its header. For the - * children of the default field the respective transform function is - * called recursively. - */ - Rooted transformSection(Handle parent, - Handle sec); - /** - * This transforms a list entity, namely ul and ol to an XHTML element. - * For each item, the transformParagraph function is called. - */ - Rooted transformList(Handle parent, - Handle list); - /** - * This transforms a paragraph-like entity, namely heading, item and - * paragraph, to an XHTML element including the text and the anchors - * contained. - */ - Rooted transformParagraph(Handle parent, - Handle par); public: /** @@ -80,10 +58,11 @@ public: * @param doc is a Document using concepts of the book, headings, * emphasis and lists ontologies but no other. * @param out is the output stream the data shall be written to. + * @param logger is a logger instances for errors. * @param pretty is a flag that manipulates whether newlines and tabs are * used. */ - void writeHTML(Handle doc, std::ostream &out, bool pretty = true); + void writeHTML(Handle doc, std::ostream &out, Logger& logger, bool pretty = true); }; } } -- cgit v1.2.3