Blame SOURCES/0035-sw-LOK_CALLBACK_CURSOR_VISIBLE-callback.patch

f325b2
From 2ef24d89daeea0b549132b6c31606bcda9571d13 Mon Sep 17 00:00:00 2001
f325b2
From: Henry Castro <hcastro@collabora.com>
f325b2
Date: Tue, 9 Jun 2015 22:19:40 -0400
f325b2
Subject: [PATCH 035/398] sw: LOK_CALLBACK_CURSOR_VISIBLE callback.
f325b2
f325b2
Change-Id: Ibf62a9d46df7d56dda737b4671d79b59bd01d35a
f325b2
(cherry picked from commit 698b344fdf42cc9738d5e91cd27876ce1ff39daf)
f325b2
---
f325b2
 sw/source/core/crsr/viscrs.cxx | 6 ++++++
f325b2
 1 file changed, 6 insertions(+)
f325b2
f325b2
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
f325b2
index 3e92ce5ef4e5..9077a6533625 100644
f325b2
--- a/sw/source/core/crsr/viscrs.cxx
f325b2
+++ b/sw/source/core/crsr/viscrs.cxx
f325b2
@@ -90,7 +90,10 @@ void SwVisCrsr::Show()
f325b2
 
f325b2
         // display at all?
f325b2
         if( m_pCrsrShell->VisArea().IsOver( m_pCrsrShell->m_aCharRect ) || m_pCrsrShell->isTiledRendering() )
f325b2
+        {
f325b2
+            m_pCrsrShell->libreOfficeKitCallback(LOK_CALLBACK_CURSOR_VISIBLE, OString::boolean(true).getStr());
f325b2
             _SetPosAndShow();
f325b2
+        }
f325b2
     }
f325b2
 }
f325b2
 
f325b2
@@ -102,6 +105,9 @@ void SwVisCrsr::Hide()
f325b2
 
f325b2
         if( m_aTextCrsr.IsVisible() )      // Shouldn't the flags be in effect?
f325b2
             m_aTextCrsr.Hide();
f325b2
+
f325b2
+        if( m_pCrsrShell->isTiledRendering() )
f325b2
+            m_pCrsrShell->libreOfficeKitCallback(LOK_CALLBACK_CURSOR_VISIBLE, OString::boolean(false).getStr());
f325b2
     }
f325b2
 }
f325b2
 
f325b2
-- 
f325b2
2.12.0
f325b2