[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - chart2/source sc/source
Dennis Francis (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 24 23:05:13 UTC 2020
chart2/source/controller/main/ControllerCommandDispatch.cxx | 10 ++++++++++
sc/source/ui/view/tabvwshb.cxx | 2 ++
2 files changed, 12 insertions(+)
New commits:
commit 3e4fd7330b382a42e3dd2e1b8fd0b1f78a34b28d
Author: Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Tue Mar 24 18:26:16 2020 +0530
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Mar 25 00:04:43 2020 +0100
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 at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
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 );
}
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 7ac16fa1a0dc..2f2eb1bda630 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -337,6 +337,8 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
case SID_INSERT_DIAGRAM:
pFuInsertChart.reset(new FuInsertChart(*this, pWin, pView, pDrModel, rReq));
+ if (comphelper::LibreOfficeKit::isActive())
+ pDocSh->SetModified();
break;
case SID_INSERT_OBJECT:
More information about the Libreoffice-commits
mailing list