summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-03-29 22:59:22 +0300
committerTor Lillqvist <tml@collabora.com>2015-04-01 13:50:35 +0300
commit8955af9b2b3d29118d314c77092c5c4c0f8e456c (patch)
tree4354888eafd373a052d837c952c9c6e3f8cb47c2 /desktop
parent2fc4a8c8113b1bf78258845ed06662a07996a6af (diff)
Add API to check whether being used through LibreOfficeKit
LibreOffice code, when used in a program through LibreOfficeKit, needs to be aware of that in certain crucial spots, to avoid behaviour and functionality that makes no sense in a LibreOfficeKit scenario. As LibreOfficeKit uses a normal LibreOffice installation to perform its job, this can't be a compile-time choice. Also, none of the existing run-time "headlessness" modes fully match what is needed. Change-Id: Iaccf7f958c549f019b508854800519f54dcadb11
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index bdab4850f4e2..f6aa90f2d246 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -22,6 +22,7 @@
#include <tools/errinf.hxx>
#include <osl/file.hxx>
+#include <osl/lok.hxx>
#include <osl/process.h>
#include <osl/thread.h>
#include <rtl/strbuf.hxx>
@@ -852,6 +853,8 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
if (bInitialized)
return 1;
+ osl::LibreOfficeKit::setActive();
+
OUString aAppPath;
if (pAppPath)
{