diff options
Diffstat (limited to 'ios')
-rw-r--r-- | ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeKit.mm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeKit.mm b/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeKit.mm index 677386ce196b..501c21cea8ae 100644 --- a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeKit.mm +++ b/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeKit.mm @@ -9,16 +9,16 @@ #include <TargetConditionals.h> #define LOK_USE_UNSTABLE_API #include <LibreOfficeKit/LibreOfficeKitInit.h> - #include <osl/process.h> - #include <unicode/udata.h> #include <unicode/ucnv.h> +//#define NO_LO + // generated by solenv/bin/native-code.py: +#ifndef NO_LO #include "native-code.mm" - // Force reference to libreofficekit_hook extern "C" __attribute__((used)) void *libreofficekit_hook(const char *); static __attribute__((used)) void *(*foop)(const char *) = libreofficekit_hook; @@ -26,6 +26,7 @@ static __attribute__((used)) void *(*foop)(const char *) = libreofficekit_hook; // pointers to our instance static LibreOfficeKit* kit; static LibreOfficeKitDocument* document; +#endif @@ -38,15 +39,19 @@ extern "C" int BridgeLOkit_Init(const char *path) strcpy(bufUserPath + strlen(path), "/user"); // Initialize LibreOfficeKit +#ifndef NO_LO if (!kit) kit = lok_init_2(path, bufUserPath); +#endif return 0; } int LOkit_open(char *file) { +#ifndef NO_LO document = kit->pClass->documentLoad(kit, file); document->pClass->initializeForRendering(document, ""); +#endif return 0; } |