diff options
author | Henry Castro <hcastro@collabora.com> | 2015-06-09 22:19:40 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2015-06-09 22:19:40 -0400 |
commit | 698b344fdf42cc9738d5e91cd27876ce1ff39daf (patch) | |
tree | 4d5f645214d51ffbef42ed69d1cba870d6cbe301 /sw | |
parent | 782c116b5ac39aef27c3a00f7fc145c9f755e3a3 (diff) |
sw: LOK_CALLBACK_CURSOR_VISIBLE callback.
Change-Id: Ibf62a9d46df7d56dda737b4671d79b59bd01d35a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/viscrs.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 38cb79e8ef52..724118500111 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -90,7 +90,10 @@ void SwVisCrsr::Show() // display at all? if( m_pCrsrShell->VisArea().IsOver( m_pCrsrShell->m_aCharRect ) || m_pCrsrShell->isTiledRendering() ) + { + m_pCrsrShell->libreOfficeKitCallback(LOK_CALLBACK_CURSOR_VISIBLE, OString::boolean(true).getStr()); _SetPosAndShow(); + } } } @@ -102,6 +105,9 @@ void SwVisCrsr::Hide() if( m_aTextCrsr.IsVisible() ) // Shouldn't the flags be in effect? m_aTextCrsr.Hide(); + + if( m_pCrsrShell->isTiledRendering() ) + m_pCrsrShell->libreOfficeKitCallback(LOK_CALLBACK_CURSOR_VISIBLE, OString::boolean(false).getStr()); } } |