summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2017-06-17 13:52:15 -0400
committerAndras Timar <andras.timar@collabora.com>2018-03-19 14:56:10 +0100
commitc6a03045fbe0481344b1e3ae5c8a758a9b5e9a14 (patch)
tree3e930184c3b42b7e7779e5b82eef8b50198a39a0 /svx
parentdafb3855306dd86480d029bfc9eb81efe036721a (diff)
lokit: add .uno:DocumentRepair command
Change-Id: I5b13ea6f4785bc91c29111fa63c4a1b0ea9b2660 Reviewed-on: https://gerrit.libreoffice.org/38908 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Henry Castro <hcastro@collabora.com> (cherry picked from commit 6fd6e3c1d36d67002967f56e47255e360f4b08c1)
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/sdrundomanager.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/svx/source/svdraw/sdrundomanager.cxx b/svx/source/svdraw/sdrundomanager.cxx
index cb5ecdc9bca3..6b051331f060 100644
--- a/svx/source/svdraw/sdrundomanager.cxx
+++ b/svx/source/svdraw/sdrundomanager.cxx
@@ -18,7 +18,8 @@
*/
#include <svx/sdrundomanager.hxx>
-
+#include <sfx2/objsh.hxx>
+#include <svl/hint.hxx>
SdrUndoManager::SdrUndoManager()
: EditUndoManager(20/*nMaxUndoActionCount*/)
@@ -131,4 +132,17 @@ bool SdrUndoManager::isTextEditActive() const
return maEndTextEditHdl.IsSet();
}
+void SdrUndoManager::SetDocShell(SfxObjectShell* pDocShell)
+{
+ m_pDocSh = pDocShell;
+}
+
+void SdrUndoManager::EmptyActionsChanged()
+{
+ if (m_pDocSh)
+ {
+ m_pDocSh->Broadcast(SfxHint(SfxHintId::DocumentRepair));
+ }
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */