summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2020-03-24 18:26:16 +0530
committerAndras Timar <andras.timar@collabora.com>2020-03-25 00:04:43 +0100
commit3e4fd7330b382a42e3dd2e1b8fd0b1f78a34b28d (patch)
tree792afd3caabae35fa239e16bee117e464ad43449 /chart2
parentc6f7199f9d2a67920948352571698bd32e280d76 (diff)
lokit: Mark document as modified on chart insert/edit...
immediately at least in the case when LOKit is active. This is to allow prompt emission of .uno:ModifiedStatus=true statechange message from lokit to the client. Without this, in online the chart insert/modify related changes may not get saved on client exit. Change-Id: I8c38a37cc455f74a70d43b6aaa3e5035b283d47f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90987 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ControllerCommandDispatch.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx
index 0dac15954de8..a1857e7c08e5 100644
--- a/chart2/source/controller/main/ControllerCommandDispatch.cxx
+++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx
@@ -35,6 +35,9 @@
#include <vcl/svapp.hxx>
#include <sal/log.hxx>
+#include <comphelper/lok.hxx>
+#include <sfx2/viewsh.hxx>
+#include <sfx2/objsh.hxx>
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#include <com/sun/star/frame/XStorable.hpp>
@@ -812,6 +815,13 @@ void SAL_CALL ControllerCommandDispatch::modified( const lang::EventObject& aEve
if( bUpdateCommandAvailability )
updateCommandAvailability();
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ if (SfxViewShell* pViewShell = SfxViewShell::Current())
+ if (SfxObjectShell* pObjSh = pViewShell->GetObjectShell())
+ pObjSh->SetModified();
+ }
+
CommandDispatch::modified( aEvent );
}