summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/ViewShellBase.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-07-15 17:26:34 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-15 18:07:44 +0200
commitbc9b4fd4c83af3532204237157821d4884c42d8e (patch)
tree7f64935ee980f5a5474f4db876c844e8e263ac6e /sd/source/ui/view/ViewShellBase.cxx
parent85c5a172953ac29d1fcab3f4c2f19fa897074e52 (diff)
lok::Document::destroyView: clean up view cursors/selections
Change-Id: Icd3f96a922e7d1aec0d52e90df87ec45790c9807
Diffstat (limited to 'sd/source/ui/view/ViewShellBase.cxx')
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx7
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));