summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-12 15:06:03 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-12 15:22:10 +0300
commita6e1f214c9c8c338da7cd216884e45e234e64669 (patch)
tree8c2f59039d7e6d71042eda883b0dcae0a0c576eb /sw
parent80004068611191107c0f44cc5d3b29181b1ad157 (diff)
Start implementing on-demand keyboard display for non-DESKTOP
Change-Id: I9321dcf9d863cb59eee9b2a012d887a17cb1b454
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/crsrsh.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index d5999cd591b0..fe0e61fdca37 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include <com/sun/star/util/SearchOptions.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <hintids.hxx>
@@ -62,6 +64,8 @@
#include <comcore.hrc>
+#include <touch/touch.h>
+
using namespace com::sun::star;
using namespace util;
@@ -2000,6 +2004,9 @@ void SwCrsrShell::ShowCrsr()
{
m_bSVCrsrVis = sal_True;
UpdateCrsr();
+#if !HAVE_FEATURE_DESKTOP
+ lo_show_keyboard();
+#endif
}
}
@@ -2012,6 +2019,9 @@ void SwCrsrShell::HideCrsr()
// possibly reverse selected areas!!
SET_CURR_SHELL( this );
m_pVisCrsr->Hide();
+#if !HAVE_FEATURE_DESKTOP
+ lo_hide_keyboard();
+#endif
}
}