diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-01 18:44:34 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-01 18:45:34 +0100 |
commit | 6b07a6eedb7260f1cdf375884f1329b72c892828 (patch) | |
tree | db158942533e8591c0015c26c0a6416e04e575f0 /svl | |
parent | bfceafa67ed1cc3e4e03f8f214a2716f57b2d1e7 (diff) |
Extract SfxUndoManager::dumpAsXml() from sw
Change-Id: Ic031b63641e0fd0fbd1524657082188d9ce78fcf
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/undo/undo.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 1fcc6497ff5f..a8f7c1dbffbc 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -1279,6 +1279,17 @@ void SfxUndoManager::RemoveOldestUndoActions( size_t const i_count ) } } +void SfxUndoManager::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("sfxUndoManager")); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUndoActionCount"), BAD_CAST(OString::number(GetUndoActionCount()).getStr())); + + for (size_t i = 0; i < GetUndoActionCount(); ++i) + GetUndoAction(i)->dumpAsXml(pWriter); + + xmlTextWriterEndElement(pWriter); +} + struct SfxListUndoAction::Impl { sal_uInt16 mnId; |