summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/lok.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/lok.cxx')
-rw-r--r--comphelper/source/misc/lok.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index c06d7e87d9b8..0969b5399bd4 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -21,6 +21,8 @@ namespace LibreOfficeKit
static bool g_bActive(false);
+static bool g_bMobile(false);
+
static bool g_bPartInInvalidation(false);
static bool g_bTiledPainting(false);
@@ -52,6 +54,16 @@ bool isActive()
return g_bActive;
}
+void setMobile(bool bIsMobile)
+{
+ g_bMobile = bIsMobile;
+}
+
+bool isMobile()
+{
+ return g_bMobile;
+}
+
void setPartInInvalidation(bool bPartInInvalidation)
{
g_bPartInInvalidation = bPartInInvalidation;