summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-03-08 15:56:08 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-03-08 18:53:53 +0100
commita8ca72cbcd2c6ea0baa5e3569224c2f08d358f3e (patch)
treeca322bef8cf508041f7f83791df8528d6c692f41 /include
parentad628045f62b0656c58d2e195e33186c055c2196 (diff)
svtools: allow writing characters with HtmlWriter
The sw HTML image export already uses HtmlWriter, so need to extend this to support XHTML alternate text, writing the character data directly is not an option. Change-Id: Iac3f2b9a3828175a5f1d0fb14ab505f8de389e52 Reviewed-on: https://gerrit.libreoffice.org/50965 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/HtmlWriter.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/svtools/HtmlWriter.hxx b/include/svtools/HtmlWriter.hxx
index a842df4870a9..25030f6dffe8 100644
--- a/include/svtools/HtmlWriter.hxx
+++ b/include/svtools/HtmlWriter.hxx
@@ -27,6 +27,7 @@ private:
bool mbElementOpen;
bool mbContentWritten;
+ bool mbCharactersWritten;
bool mbPrettyPrint;
/// XML namespace, in case of XHTML.
OString maNamespace;
@@ -52,6 +53,9 @@ public:
void single(const OString& aContent);
void endAttribute();
+
+ /// Writes character data.
+ void characters(const OString& rChars);
};
#endif