diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-17 10:59:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-06 16:26:56 +0200 |
commit | 17d82b77a567a2fb3d69e8541d60284702bc632e (patch) | |
tree | 318e30a7137acad7eb6f7b46f444c1186db507d5 /comphelper | |
parent | 7755b08d465d63503f2883de52e01b55c3189079 (diff) |
comphelper: add LibreOfficeKit::set/isViewCallback()
Change-Id: Iad0b2ee419327daf478f3ddda2378effe0184067
(cherry picked from commit 1704221067e2bc6ba26eaa83573d29964b413a34)
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/lok.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index a6abd2a65486..279ec65c600c 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -17,6 +17,8 @@ namespace LibreOfficeKit static bool g_bActive(false); +static bool g_bViewCallback(false); + void setActive(bool bActive) { g_bActive = bActive; @@ -27,6 +29,16 @@ bool isActive() return g_bActive; } +void setViewCallback(bool bViewCallback) +{ + g_bViewCallback = bViewCallback; +} + +bool isViewCallback() +{ + return g_bViewCallback; +} + static void (*pStatusIndicatorCallback)(void *data, statusIndicatorCallbackType type, int percent)(nullptr); static void *pStatusIndicatorCallbackData(nullptr); |