From 4d9bb7120a2ca27207b30d81d77a810a306fbe04 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 13 Sep 2016 16:48:05 +0200 Subject: sw draw text: emit LOK_CALLBACK_INVALIDATE_VIEW_CURSOR from registerCallback() With this, in case the first view has an active text edit and a new view is created, then the cursor position is instantly visible in the second view, even if the first view's cursor does not move later. (cherry picked from commit 586789fe757c0eb350c360a49cf90431a0bd5b24) Conflicts: sw/source/core/crsr/crsrsh.cxx Change-Id: Ia82e7dc1ce9bb58c67a280179ecadc74d3b63026 --- include/editeng/editview.hxx | 2 ++ include/editeng/outliner.hxx | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include/editeng') diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index 032a4e0d097f..92fddd2d730a 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -184,6 +184,8 @@ public: /// Informs this edit view about which view shell contains it. void RegisterViewShell(OutlinerViewShell* pViewShell); + /// Informs this edit view about which other shell listens to it. + void RegisterOtherShell(OutlinerViewShell* pOtherShell); void SetControlWord( EVControlBits nWord ); EVControlBits GetControlWord() const; diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 171b8d04ceef..6c2b3b70e442 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -384,6 +384,8 @@ public: virtual sal_uInt32 GetViewShellId() const = 0; /// Wrapper around SfxLokHelper::notifyOtherViews(). virtual void NotifyOtherViews(int nType, const OString& rKey, const OString& rPayload) = 0; + /// Wrapper around SfxLokHelper::notifyOtherView(). + virtual void NotifyOtherView(OutlinerViewShell* pOtherShell, int nType, const OString& rKey, const OString& rPayload) = 0; protected: ~OutlinerViewShell() throw () {} -- cgit v1.2.3