diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-03-29 22:59:22 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-04-01 13:50:35 +0300 |
commit | 8955af9b2b3d29118d314c77092c5c4c0f8e456c (patch) | |
tree | 4354888eafd373a052d837c952c9c6e3f8cb47c2 /include | |
parent | 2fc4a8c8113b1bf78258845ed06662a07996a6af (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 'include')
-rw-r--r-- | include/osl/lok.hxx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/osl/lok.hxx b/include/osl/lok.hxx new file mode 100644 index 000000000000..3b241ef49748 --- /dev/null +++ b/include/osl/lok.hxx @@ -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/. + */ + +#ifndef INCLUDED_OSL_LOK_HXX +#define INCLUDED_OSL_LOK_HXX + +#ifdef LIBO_INTERNAL_ONLY + +#include <sal/saldllapi.h> + +namespace osl +{ + +namespace LibreOfficeKit +{ + +SAL_DLLPUBLIC void setActive(); + +SAL_DLLPUBLIC bool isActive(); + +} +} + +#endif // LIBO_INTERNAL_ONLY + +#endif // INCLUDED_OSL_LOK_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |