2016-04-05 11:41:10 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2016-04-05 08:32:10 -05:00
|
|
|
/*
|
|
|
|
* 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/.
|
|
|
|
*/
|
2016-04-08 03:08:41 -05:00
|
|
|
#ifndef INCLUDED_LOOLKIT_HPP
|
|
|
|
#define INCLUDED_LOOLKIT_HPP
|
2016-04-05 08:32:10 -05:00
|
|
|
|
|
|
|
void lokit_main(const std::string& childRoot,
|
|
|
|
const std::string& sysTemplate,
|
|
|
|
const std::string& loTemplate,
|
2016-04-16 14:44:53 -05:00
|
|
|
const std::string& loSubPath,
|
2016-06-20 13:58:00 -05:00
|
|
|
bool noCapabilities,
|
2016-10-06 05:17:36 -05:00
|
|
|
bool queryVersionInfo,
|
|
|
|
bool displayVersion);
|
2016-04-05 08:32:10 -05:00
|
|
|
|
2016-10-29 20:15:00 -05:00
|
|
|
bool globalPreinit(const std::string& loTemplate);
|
2016-09-30 08:42:27 -05:00
|
|
|
/// Wrapper around private Document::ViewCallback().
|
|
|
|
void documentViewCallback(const int nType, const char* pPayload, void* pData);
|
2016-04-05 08:32:10 -05:00
|
|
|
|
2016-09-30 08:42:27 -05:00
|
|
|
class IDocumentManager;
|
|
|
|
|
|
|
|
/// Descriptor class used to link a LOK
|
|
|
|
/// callback to a specific view.
|
|
|
|
struct CallbackDescriptor
|
|
|
|
{
|
|
|
|
IDocumentManager* const Doc;
|
|
|
|
const int ViewId;
|
|
|
|
};
|
2016-10-26 10:08:25 -05:00
|
|
|
|
|
|
|
/// User Info container used to store user information
|
|
|
|
/// till the end of process lifecycle - including
|
|
|
|
/// after any child session goes away
|
|
|
|
struct UserInfo
|
|
|
|
{
|
|
|
|
std::string userid;
|
|
|
|
std::string username;
|
|
|
|
};
|
|
|
|
|
2016-04-08 03:08:41 -05:00
|
|
|
#endif
|
2016-04-05 08:32:10 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|