diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-29 13:58:07 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-29 12:49:34 +0000 |
commit | 7494466e43daa4d071224f401267e2b6fd4222aa (patch) | |
tree | 03d8e67df0dff10380e23dac627490c81e5b9c19 /svl | |
parent | a840b2526b8b8e44991bef2eb7b6ba44a1a90d3a (diff) |
svl: add SfxUndoAction::GetViewShellId()
In preparation of a Writer version that overrides this and remembers
which view shell introduced which action.
Change-Id: I4970f8ce9c56f1b57ab1ae92f3ea8be804ca27bf
Reviewed-on: https://gerrit.libreoffice.org/27682
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/undo/undo.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 4b0dda7070fc..2de91945e2fc 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -72,6 +72,10 @@ sal_uInt16 SfxUndoAction::GetId() const return 0; } +sal_Int32 SfxUndoAction::GetViewShellId() const +{ + return -1; +} OUString SfxUndoAction::GetRepeatComment(SfxRepeatTarget&) const { @@ -125,6 +129,7 @@ void SfxUndoAction::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("symbol"), BAD_CAST(typeid(*this).name())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("comment"), BAD_CAST(GetComment().toUtf8().getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("viewShellId"), BAD_CAST(OString::number(GetViewShellId()).getStr())); xmlTextWriterEndElement(pWriter); } |