summaryrefslogtreecommitdiff
path: root/sw/source/core/undo
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-10-28 17:48:06 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-10-28 21:07:35 +0100
commite8bd718d0aa4c96a8709c8c8df97d577c9e1add2 (patch)
treeab54c5adc5f2163b3532c3c49bad6ec8ea35ffe7 /sw/source/core/undo
parenta6c2ba4746a0ca94b3060be714e424f4be8667bf (diff)
sw: add an xml dumper for SwUndoSaveSection
With this, if I have an sw image in a draw+fly format combo and cut these, then all the 3 formats are visible in the undo xml dump. Change-Id: I2abc54ca8d4fb3b00b8da60bcb9dea5e07d20d4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104970 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/core/undo')
-rw-r--r--sw/source/core/undo/undobj.cxx5
-rw-r--r--sw/source/core/undo/undobj1.cxx1
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index 0ef36bd5f6e7..dcc49e905bf9 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -1308,6 +1308,11 @@ void SwUndoSaveSection::RestoreSection(
}
}
+void SwUndoSaveSection::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ SwUndoSaveContent::dumpAsXml(pWriter);
+}
+
// save and set the RedlineData
SwRedlineSaveData::SwRedlineSaveData(
SwComparePosition eCmpPos,
diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx
index 051161319a8c..7e9233759240 100644
--- a/sw/source/core/undo/undobj1.cxx
+++ b/sw/source/core/undo/undobj1.cxx
@@ -76,6 +76,7 @@ void SwUndoFlyBase::dumpAsXml(xmlTextWriterPtr pWriter) const
BAD_CAST(OString::boolean(m_bDelFormat).getStr()));
SwUndo::dumpAsXml(pWriter);
+ SwUndoSaveSection::dumpAsXml(pWriter);
if (m_pFrameFormat)
{