summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 13:57:54 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 12:47:57 +0000
commit7a06ef161cc27a3d1bcc8b970928f776500c267e (patch)
treef205053cf6c91dab9717cbbf80cea9285da4df86 /sd
parent75ee4bb944acc27d6d10a880c7e3b46b2084895e (diff)
sd doc model dump: include undo manager info
So that it's easy to see where the implementation for a given undo action is. Change-Id: I93b8603f75d0b5a68922e02540b9db6824f4d0db Reviewed-on: https://gerrit.libreoffice.org/24243 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc.cxx8
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);