diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-08 19:41:54 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-08 19:41:54 +0100 |
commit | b6197efcf5b97ddcaae99425748b2f2e74bde3c3 (patch) | |
tree | d2ccb792ad81f4e7a4594a037c35c20c4f82c6a1 /src/plugins/html/DemoOutput.hpp | |
parent | f0abafd4367b3b5c58dffdab69edce1d867942cb (diff) | |
parent | 33b92b72ed160f22dc627e841d5f84de4ebc0c6c (diff) |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/plugins/html/DemoOutput.hpp')
-rw-r--r-- | src/plugins/html/DemoOutput.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/plugins/html/DemoOutput.hpp b/src/plugins/html/DemoOutput.hpp index ca9bcd2..70a5daa 100644 --- a/src/plugins/html/DemoOutput.hpp +++ b/src/plugins/html/DemoOutput.hpp @@ -33,6 +33,7 @@ #include <ostream> #include <core/model/Document.hpp> +#include <core/XML.hpp> namespace ousia { namespace html { @@ -40,15 +41,11 @@ namespace html { class DemoHTMLTransformer { private: /** - * This method is to be called recursively to write a chapter, section or - * subsection to HTML. + * These methods are called recursively to transform a document to an XML + * tree. */ - void writeSection(Handle<model::StructuredEntity> sec, std::ostream& out); - /** - * This method is to be called recursively to write a paragraph to HTML. - */ - void writeParagraph(Handle<model::StructuredEntity> par, std::ostream& out, - bool writePTags = true); + Rooted<xml::Element> transformSection(Handle<model::StructuredEntity> sec); + Rooted<xml::Element> transformParagraph(Handle<model::StructuredEntity> par); /** * This method is to be called recursively to write a list to HTML. * TODO: Implement |