From cbd8587ffb4b4e01705fc7f07fc4740382b78a08 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 2 Apr 2015 13:22:04 +0300 Subject: Move osl::LibreOfficeKit stuff to comphelper for now Let's see where it actually will be needed. Sal is a "picky" place for new API, even inside LIBO_INTERNAL_ONLY. Change-Id: Ia0c5ee8cfc6ee526c5ad34d2f8aab0b14b5f805b --- comphelper/Library_comphelper.mk | 1 + comphelper/source/misc/lok.cxx | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 comphelper/source/misc/lok.cxx (limited to 'comphelper') diff --git a/comphelper/Library_comphelper.mk b/comphelper/Library_comphelper.mk index e36fe31c2713..2192217a4338 100644 --- a/comphelper/Library_comphelper.mk +++ b/comphelper/Library_comphelper.mk @@ -94,6 +94,7 @@ $(eval $(call gb_Library_add_exception_objects,comphelper,\ comphelper/source/misc/interaction \ comphelper/source/misc/listenernotification \ comphelper/source/misc/logging \ + comphelper/source/misc/lok \ comphelper/source/misc/mimeconfighelper \ comphelper/source/misc/namedvaluecollection \ comphelper/source/misc/numberedcollection \ diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx new file mode 100644 index 000000000000..71bc922c5d5f --- /dev/null +++ b/comphelper/source/misc/lok.cxx @@ -0,0 +1,34 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include + +namespace comphelper +{ + +namespace LibreOfficeKit +{ + +static bool bActive(false); + +void setActive() +{ + bActive = true; +} + +bool isActive() +{ + return bActive; +} + +} // namespace LibreOfficeKit + +} // namespace comphelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit