diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-31 17:19:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-31 17:18:57 +0000 |
commit | 7167c2b6548830b82280f2f3943d445e9afd6f5e (patch) | |
tree | 230ffd5a218cfe2ead02504b0aaff0696e638c3a /sw/inc/viscrs.hxx | |
parent | f322c52b89f514b792179c4d7e6ee2c3aa893a4e (diff) |
sfx2 lok: introduce SfxViewShell::NotifyCursor()
It allows removing the hide/show cursor hack in
SfxViewShell::registerLibreOfficeKitViewCallback() introduced in commit
4d211384f048b689f20e46d4d586f342b110cb5c (sfx2 lok: fix missing view
cursors in a new view, 2016-06-20), and instead let the application code
in sw/sc/sd implement the best way to show existing cursors in a new
view.
This way the per-app cleanup of view cursors introduced in commit
bc9b4fd4c83af3532204237157821d4884c42d8e (lok::Document::destroyView:
clean up view cursors/selections, 2016-07-15) has matching per-app init
code.
This commit just adds the API + adapts existing sw code to use it, sc/sd
still has to be implemented.
Based on a patch by Marco Cecchetti, thanks!
Change-Id: I38510fa4962f405b1b96a79024206c9e7f33cad2
Reviewed-on: https://gerrit.libreoffice.org/28557
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/inc/viscrs.hxx')
-rw-r--r-- | sw/inc/viscrs.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx index cd7204dd9fcb..36350487c8e9 100644 --- a/sw/inc/viscrs.hxx +++ b/sw/inc/viscrs.hxx @@ -29,6 +29,7 @@ class SwCursorShell; class SwShellCursor; class SwTextInputField; +class SfxViewShell; // From here classes/methods for non-text cursor. @@ -46,8 +47,6 @@ class SwVisibleCursor /// For LibreOfficeKit only - remember what page we were at the last time. sal_uInt16 m_nPageLastTime; - void SetPosAndShow(); - public: SwVisibleCursor( const SwCursorShell * pCShell ); ~SwVisibleCursor(); @@ -57,6 +56,7 @@ public: bool IsVisible() const { return m_bIsVisible; } void SetDragCursor( bool bFlag = true ) { m_bIsDragCursor = bFlag; } + void SetPosAndShow(SfxViewShell* pViewShell); }; // From here classes/methods for selections. |