diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-13 16:48:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-13 16:48:28 +0200 |
commit | 586789fe757c0eb350c360a49cf90431a0bd5b24 (patch) | |
tree | 0ba705458d22b67b9665fc5ecb8ca969dc06e307 /include | |
parent | 798d55fcd8efc10fcef6b8ac3fa5abdbc82501ec (diff) |
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.
Change-Id: Ia82e7dc1ce9bb58c67a280179ecadc74d3b63026
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editview.hxx | 2 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/viewsh.hxx | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index 7c28a75e387e..df544449a5f3 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 984db796dae1..a0eef10bd607 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -379,6 +379,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 () {} diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index c0a9be248175..a1fea9bd4857 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -342,6 +342,8 @@ public: sal_uInt32 GetViewShellId() const override; /// See OutlinerViewShell::NotifyOtherViews(). void NotifyOtherViews(int nType, const OString& rKey, const OString& rPayload) override; + /// See OutlinerViewShell::NotifyOtherView(). + void NotifyOtherView(OutlinerViewShell* pOtherShell, int nType, const OString& rKey, const OString& rPayload) override; /// Ask this view to send its cursor position to pViewShell. virtual void NotifyCursor(SfxViewShell* /*pViewShell*/) const; }; |