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 /sd | |
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 'sd')
-rw-r--r-- | sd/source/ui/view/ViewShellBase.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 7b57e9ec3358..b90fa2af0665 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -84,6 +84,8 @@ #include <vcl/settings.hxx> #include <tools/diagnose_ex.h> +#include <sfx2/lokhelper.hxx> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> #include "fubullet.hxx" @@ -268,6 +270,11 @@ ViewShellBase::ViewShellBase ( */ ViewShellBase::~ViewShellBase() { + // 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"); + rtl::Reference<SlideShow> xSlideShow(SlideShow::GetSlideShow(*this)); if (xSlideShow.is() && xSlideShow->dependsOn(this)) SlideShow::Stop(*this); |