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-15 18:07:44 +0200 |
commit | bc9b4fd4c83af3532204237157821d4884c42d8e (patch) | |
tree | 7f64935ee980f5a5474f4db876c844e8e263ac6e /sd | |
parent | 85c5a172953ac29d1fcab3f4c2f19fa897074e52 (diff) |
lok::Document::destroyView: clean up view cursors/selections
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 668974e5c5c3..3da448914465 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -86,6 +86,8 @@ #include <sfx2/notebookbar/SfxNotebookBar.hxx> #include <tools/diagnose_ex.h> +#include <sfx2/lokhelper.hxx> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> #include "fubullet.hxx" @@ -270,6 +272,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"); + sfx2::SfxNotebookBar::CloseMethod(GetFrame()->GetBindings()); rtl::Reference<SlideShow> xSlideShow(SlideShow::GetSlideShow(*this)); |