[Libreoffice-commits] core.git: sd/source
Miklos Vajna
vmiklos at collabora.co.uk
Tue Apr 19 12:48:19 UTC 2016
sd/source/core/drawdoc.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 7a06ef161cc27a3d1bcc8b970928f776500c267e
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Apr 19 13:57:54 2016 +0200
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 at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx
index 3eaede9..5b38cd4 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);
More information about the Libreoffice-commits
mailing list