summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-01 09:09:43 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-01 09:10:04 +0100
commit97d9e5297b563cddb19f9df2682cb3ef23c99229 (patch)
tree09fa1281b33354b49b877518af50805d9bdd7cd7 /svx
parentea25c799ea6d16a15390f9edcd69fa9e8ec5b2b5 (diff)
Factor out SdrPage::dumpAsXml() from SwDoc::dumpAsXml()
Change-Id: Ida16087b1d954454c672ddeec78b8dfe0e5a45fe
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdpage.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 46ed346d149c..94139448bcb3 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -55,6 +55,7 @@
#include <algorithm>
#include <svl/smplhint.hxx>
#include <rtl/strbuf.hxx>
+#include <libxml/xmlwriter.h>
using namespace ::com::sun::star;
@@ -1822,6 +1823,20 @@ void SdrPage::ActionChanged() const
}
}
+void SdrPage::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("sdrPage"));
+ xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
+
+ size_t nObjCount = GetObjCount();
+ for (size_t i = 0; i < nObjCount; ++i)
+ {
+ if (const SdrObject* pObject = pPage->GetObj(i))
+ pObject->dumpAsXml(pWriter);
+ }
+
+ xmlTextWriterEndElement(pWriter);
+}
// sdr::Comment interface