diff options
-rw-r--r-- | sd/source/core/drawdoc.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx index 3eaede9a9a2d..5b38cd419ac1 100644 --- a/sd/source/core/drawdoc.cxx +++ b/sd/source/core/drawdoc.cxx @@ -98,6 +98,7 @@ #include "../ui/inc/ViewShell.hxx" #include "../ui/inc/optsitem.hxx" #include "../ui/inc/FrameView.hxx" +#include <undo/undomanager.hxx> #include <tools/tenccvt.hxx> #include <vcl/settings.hxx> @@ -1098,7 +1099,14 @@ void SdDrawDocument::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterStartDocument(pWriter, nullptr, nullptr, nullptr); bOwns = true; } + xmlTextWriterStartElement(pWriter, BAD_CAST("sdDrawDocument")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + FmFormModel::dumpAsXml(pWriter); + if (GetUndoManager()) + GetUndoManager()->dumpAsXml(pWriter); + + xmlTextWriterEndElement(pWriter); if (bOwns) { xmlTextWriterEndDocument(pWriter); |