[Libreoffice-commits] core.git: sw/source

Henry Castro hcastro at collabora.com
Tue Jun 9 19:23:25 PDT 2015


 sw/source/core/crsr/viscrs.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 698b344fdf42cc9738d5e91cd27876ce1ff39daf
Author: Henry Castro <hcastro at collabora.com>
Date:   Tue Jun 9 22:19:40 2015 -0400

    sw: LOK_CALLBACK_CURSOR_VISIBLE callback.
    
    Change-Id: Ibf62a9d46df7d56dda737b4671d79b59bd01d35a

diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index 38cb79e..7241185 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());
     }
 }
 


More information about the Libreoffice-commits mailing list