From 2ef24d89daeea0b549132b6c31606bcda9571d13 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Tue, 9 Jun 2015 22:19:40 -0400 Subject: [PATCH 035/398] sw: LOK_CALLBACK_CURSOR_VISIBLE callback. Change-Id: Ibf62a9d46df7d56dda737b4671d79b59bd01d35a (cherry picked from commit 698b344fdf42cc9738d5e91cd27876ce1ff39daf) --- sw/source/core/crsr/viscrs.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 3e92ce5ef4e5..9077a6533625 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()); } } -- 2.12.0