diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-11-27 08:04:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-11-27 08:04:59 +0100 |
commit | 855c94a46a8810780dacce178b533ab6ceb4d19b (patch) | |
tree | 3a16fd7fff79b2ffc5c32828bb5e573df1692a07 /editeng | |
parent | 90fe751ab381cf59e87b79d921b3773567774af2 (diff) |
Factor out OutlinerParaObject::dumpAsXml() from SwDoc::dumpAsXml()
Change-Id: I5e805aa98f643b5a034cdeadb4718af528af022c
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/outliner/outlobj.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/editeng/source/outliner/outlobj.cxx b/editeng/source/outliner/outlobj.cxx index a4dcc67f8009..02094aea2a02 100644 --- a/editeng/source/outliner/outlobj.cxx +++ b/editeng/source/outliner/outlobj.cxx @@ -33,6 +33,7 @@ #include <tools/stream.hxx> #include <boost/intrusive_ptr.hpp> +#include <libxml/xmlwriter.h> /** * This is the guts of OutlinerParaObject, refcounted and shared among @@ -278,4 +279,12 @@ void OutlinerParaObject::SetStyleSheets(sal_uInt16 nLevel, const OUString& rNewN } } +void OutlinerParaObject::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("outlinerParaObject")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + GetTextObject().dumpAsXml(pWriter); + xmlTextWriterEndElement(pWriter); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |