773c15f710
With the help of clang-format. For reference, the following command was used, but not all changes were commited: clang-format-3.9 -style='{BasedOnStyle: WebKit, AlignAfterOpenBracket: Align, AlwaysBreakAfterReturnType: None, BreakBeforeBraces: Allman, DerivePointerAlignment: 'true', ExperimentalAutoDetectBinPacking: 'true', IndentWrappedFunctionNames: 'true', UseTab: Never}' Change-Id: I0f7490c7ee38aeefeefcf9d5d4c3dab380cd63b8 Reviewed-on: https://gerrit.libreoffice.org/30416 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
/* -*- 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_LOOLKIT_HPP
|
|
#define INCLUDED_LOOLKIT_HPP
|
|
|
|
void lokit_main(const std::string& childRoot,
|
|
const std::string& sysTemplate,
|
|
const std::string& loTemplate,
|
|
const std::string& loSubPath,
|
|
bool noCapabilities,
|
|
bool queryVersionInfo,
|
|
bool displayVersion);
|
|
|
|
bool globalPreinit(const std::string& loTemplate);
|
|
/// Wrapper around private Document::ViewCallback().
|
|
void documentViewCallback(const int nType, const char* pPayload, void* pData);
|
|
|
|
class IDocumentManager;
|
|
|
|
/// Descriptor class used to link a LOK
|
|
/// callback to a specific view.
|
|
struct CallbackDescriptor
|
|
{
|
|
IDocumentManager* const Doc;
|
|
const int ViewId;
|
|
};
|
|
|
|
/// 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;
|
|
};
|
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|