2 // This file is part of the LibreOffice project.
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 // Bridge functions between LibreOfficeKit library and swift application.
10 // Only functions mentioned here can be used from the application
11 // The swift compiler uses this header to generate a needed interface
12 // The functions (LibreOfficeKit.mm) calls functions directly in LibreOffice
14 int BridgeLOkit_Init(const char *appPath
, const char *userPath
);
15 int BridgeLOkit_Sizing(const int countXtiles
, const int countYtiles
,
16 const int pixelsXtile
, const int pixelsYtile
);
17 int BridgeLOkit_open(const char *path
);
18 int BridgeLOkit_ClientCommand(const char *input
);
19 int BridgeLOkit_Hipernate(void);
20 int BridgeLOkit_LeaveHipernate(void);
23 // Use LOK_USE_UNSTABLE_API to get access to the low level
25 // REMARK: There are no guarantee these functions will work !!
26 // REMARK: BridgeLOkit_Init MUST be called, NOT the original init()
28 #ifdef LOK_USE_UNSTABLE_API
29 #include <LibreOfficeKit/LibreOfficeKit.h>
30 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
32 LibreOfficeKit
* BridgeLOkit_getLOK(void);