diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/drawdoc.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx index d3a4fea7c100..3df30906acf2 100644 --- a/sd/source/core/drawdoc.cxx +++ b/sd/source/core/drawdoc.cxx @@ -1096,12 +1096,16 @@ void SdDrawDocument::dumpAsXml(xmlTextWriterPtr pWriter) const if (!pWriter) { pWriter = xmlNewTextWriterFilename("model.xml", 0); + xmlTextWriterSetIndent(pWriter,1); + xmlTextWriterSetIndentString(pWriter, BAD_CAST(" ")); xmlTextWriterStartDocument(pWriter, nullptr, nullptr, nullptr); bOwns = true; } xmlTextWriterStartElement(pWriter, BAD_CAST("sdDrawDocument")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + if (mpOutliner) + mpOutliner->dumpAsXml(pWriter); FmFormModel::dumpAsXml(pWriter); if (GetUndoManager()) GetUndoManager()->dumpAsXml(pWriter); |