-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlokbridge_impl.c
More file actions
31 lines (24 loc) · 895 Bytes
/
Copy pathlokbridge_impl.c
File metadata and controls
31 lines (24 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "lokbridge.h"
#include "./headers/LibreOfficeKitInit.h"
#include "./headers/LibreOfficeKit.h"
LibreOfficeKit *initialize(const char *install_path) {
return lok_init_2(install_path, NULL);
}
void destroy_office(LibreOfficeKit* pThis) {
pThis->pClass->destroy(pThis);
}
char* get_error(LibreOfficeKit* pThis) {
return pThis->pClass->getError(pThis);
}
void free_error(LibreOfficeKit* pThis, char* message) {
pThis->pClass->freeError(message);
}
LibreOfficeKitDocument* document_load(LibreOfficeKit* pThis, const char* pURL) {
return pThis->pClass->documentLoad(pThis, pURL);
}
void destroy_document(LibreOfficeKitDocument* pThis) {
pThis->pClass->destroy(pThis);
}
int document_save(LibreOfficeKitDocument* pThis, const char* pUrl, const char* pFormat, const char* pFilterOptions) {
return pThis->pClass->saveAs(pThis, pUrl, pFormat, pFilterOptions);
}