Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / ios / source / LibreOfficeKit.h
blobabc4fe87a4ceaf3c35b644db30193307219f8357
1 //
2 // This file is part of the LibreOffice project.
3 //
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/.
7 //
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
24 // LibreOfficeKit.
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);
33 #endif