1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_DESKTOP_INC_LIBLIBREOFFICE_H
11 #define INCLUDED_DESKTOP_INC_LIBLIBREOFFICE_H
17 typedef struct _LibreOffice LibreOffice
;
18 typedef struct _LibreOfficeDocument LibreOfficeDocument
;
23 void (*destroy
) (LibreOffice
*pThis
);
24 int (*initialize
) (LibreOffice
*pThis
,
25 const char *pInstallPath
);
26 LibreOfficeDocument
*(*documentLoad
) (LibreOffice
*pThis
,
28 char * (*getError
) (LibreOffice
*pThis
);
31 struct _LibreOfficeDocument
{
34 void (*destroy
) (LibreOfficeDocument
*pThis
);
35 int (*saveAs
) (LibreOfficeDocument
*pThis
,
36 const char *pUrl
, const char *pFormat
);
39 LibreOffice
*lo_init (const char *install_path
);
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */