summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-04 10:09:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-09 10:16:12 +0100
commit5fb18e1517327a59bdc2ec68133281f0a9c5fcac (patch)
tree6b03025f28aafc429aad0197f5dcce7d2f556d95 /sw
parent0097544d43b34c8b4f4083f759ef3748aed043ea (diff)
LOK: add LOK_CALLBACK_CURSOR_VISIBLE
With this, if a Writer document contains an image, then clicking on the image then back to the text properly shows/hides the blinking cursor. Change-Id: I3313319ded614a2eb86e1c66c926189511a7cca6
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/viscrs.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index cbb55e89f77d..5a30a8280382 100644
--- a/sw/source/core/crsr/viscrs.cxx
+++ b/sw/source/core/crsr/viscrs.cxx
@@ -93,10 +93,16 @@ void SwVisCrsr::Show()
if( m_pCrsrShell->VisArea().IsOver( m_pCrsrShell->m_aCharRect ) || m_pCrsrShell->isTiledRendering() )
_SetPosAndShow();
}
+
+ if (m_pCrsrShell->isTiledRendering())
+ m_pCrsrShell->libreOfficeKitCallback(LOK_CALLBACK_CURSOR_VISIBLE, OString::boolean(true).getStr());
}
void SwVisCrsr::Hide()
{
+ if (m_pCrsrShell->isTiledRendering())
+ m_pCrsrShell->libreOfficeKitCallback(LOK_CALLBACK_CURSOR_VISIBLE, OString::boolean(false).getStr());
+
if( m_bIsVisible )
{
m_bIsVisible = false;