diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-17 10:59:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-21 07:30:23 +0200 |
commit | 1704221067e2bc6ba26eaa83573d29964b413a34 (patch) | |
tree | aaed3556544aa4bee958b9cdd001b061f1af2b32 /comphelper | |
parent | sfx2: add SfxViewShell::libreOfficeKitViewCallback() (diff) | |
download | core-1704221067e2bc6ba26eaa83573d29964b413a34.tar.gz core-1704221067e2bc6ba26eaa83573d29964b413a34.zip |
comphelper: add LibreOfficeKit::set/isViewCallback()
Change-Id: Iad0b2ee419327daf478f3ddda2378effe0184067
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); |