From 1de3a9aae84ec71c4fd83604ea9c45204efb9baf Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 25 Oct 2019 14:10:45 +0300 Subject: . --- src/lines.hpp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/lines.hpp (limited to 'src/lines.hpp') diff --git a/src/lines.hpp b/src/lines.hpp new file mode 100644 index 0000000..4f68cb9 --- /dev/null +++ b/src/lines.hpp @@ -0,0 +1,41 @@ +#ifndef TEXO_INCLUDED_LINES +#define TEXO_INCLUDED_LINES + +#include "exporter.hpp" +#include "producer.hpp" +#include "importer.hpp" + + +class TexoProducerLines: public TexoProducer { +public: + TexoProducerLines(TexoExporter &exporter); + + void Put(const Texo &piece); + + void Put(const TexoParagraph &piece); + void Put(const TexoQuote &piece); + + void Put(const TexoLineBreak &piece); + +private: + bool quoted; + bool newline; +}; + + +class TexoImporterLines: public TexoImporter { +public: + TexoImporterLines(TexoProducer &producer); + ~TexoImporterLines(); + + void Put(char c); + void Put(const ScriptVariable &str); + void Put(FILE *file); + +private: + bool quoted; + bool newline; +}; + + +#endif -- cgit v1.2.3