Line data Source code
1 : /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : */
9 :
10 : #ifndef INCLUDED_DESKTOP_INC_LIBLIBREOFFICE_H
11 : #define INCLUDED_DESKTOP_INC_LIBLIBREOFFICE_H
12 :
13 : #ifdef __cplusplus
14 : extern "C"
15 : {
16 : #endif
17 :
18 : typedef struct _LibreOffice LibreOffice;
19 : typedef struct _LibreOfficeDocument LibreOfficeDocument;
20 :
21 0 : struct _LibreOffice
22 : {
23 : int nSize;
24 :
25 : void (*destroy) (LibreOffice *pThis);
26 : int (*initialize) (LibreOffice *pThis, const char *pInstallPath);
27 : LibreOfficeDocument* (*documentLoad) (LibreOffice *pThis, const char *pURL);
28 : char* (*getError) (LibreOffice *pThis);
29 : };
30 :
31 0 : struct _LibreOfficeDocument
32 : {
33 : int nSize;
34 :
35 : void (*destroy) (LibreOfficeDocument* pThis);
36 : int (*saveAs) (LibreOfficeDocument* pThis,
37 : const char *pUrl,
38 : const char *pFormat);
39 : int (*saveAsWithOptions) (LibreOfficeDocument* pThis,
40 : const char *pUrl,
41 : const char *pFormat,
42 : const char *pFilterOptions);
43 : };
44 :
45 : LibreOffice* lo_init (const char* pInstallPath);
46 :
47 : #ifdef __cplusplus
48 : }
49 : #endif
50 :
51 : #endif
52 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|