diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-15 17:26:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-21 10:42:40 +0200 |
commit | 37e215f708a872b9a232247217648c2c4872d550 (patch) | |
tree | 1e1aacb7f68026cceab53d5bd24ca89652c3fd17 /sc | |
parent | 3d32a7536fad8e50e6f5210688b8af1a2e6338f2 (diff) |
lok::Document::destroyView: clean up view cursors/selections
(cherry picked from commit bc9b4fd4c83af3532204237157821d4884c42d8e)
Conflicts:
sd/source/ui/view/ViewShellBase.cxx
sw/source/uibase/uiview/view.cxx
Change-Id: Icd3f96a922e7d1aec0d52e90df87ec45790c9807
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 5a6413e90313..9d91dec43bd7 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -97,6 +97,8 @@ #include <com/sun/star/chart2/XCoordinateSystem.hpp> #include <com/sun/star/chart2/XChartTypeContainer.hpp> #include <com/sun/star/chart2/XChartType.hpp> +#include <sfx2/lokhelper.hxx> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> extern SfxViewShell* pScActiveViewShell; // global.cxx @@ -1717,6 +1719,12 @@ ScTabViewShell::ScTabViewShell( SfxViewFrame* pViewFrame, ScTabViewShell::~ScTabViewShell() { + // Notify other LOK views that we are going away. + SfxLokHelper::notifyOtherViews(this, LOK_CALLBACK_VIEW_CURSOR_VISIBLE, "visible", "false"); + SfxLokHelper::notifyOtherViews(this, LOK_CALLBACK_TEXT_VIEW_SELECTION, "selection", ""); + SfxLokHelper::notifyOtherViews(this, LOK_CALLBACK_GRAPHIC_VIEW_SELECTION, "selection", "EMPTY"); + SfxLokHelper::notifyOtherViews(this, LOK_CALLBACK_CELL_VIEW_CURSOR, "rectangle", "EMPTY"); + ScDocShell* pDocSh = GetViewData().GetDocShell(); EndListening(*pDocSh); EndListening(*GetViewFrame()); |