summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-10 11:31:51 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-11 21:36:46 +0100
commitf646e8c8e275dd984ad8aa8592228a89998abf79 (patch)
tree882100249e96c8cb92f7057a85cd0605546feb41 /include
parent7d210d6b32dc28bb2725983ffb66d8f153299c01 (diff)
Rename C api of LibreOfficeKit.
However for the sake of ABI compatibility we can't change liblibreoffice_hook. Change-Id: I0e921efeeab40ef1b53a67c0e7a89d4c75ced831
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h24
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx12
2 files changed, 18 insertions, 18 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 9176eba0ae38..97acbab80821 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -15,34 +15,34 @@ extern "C"
{
#endif
-typedef struct _LibreOffice LibreOffice;
-typedef struct _LibreOfficeDocument LibreOfficeDocument;
+typedef struct _LibreOfficeKit LibreOfficeKit;
+typedef struct _LibreOfficeKitDocument LibreOfficeKitDocument;
-struct _LibreOffice
+struct _LibreOfficeKit
{
int nSize;
- void (*destroy) (LibreOffice *pThis);
- int (*initialize) (LibreOffice *pThis, const char *pInstallPath);
- LibreOfficeDocument* (*documentLoad) (LibreOffice *pThis, const char *pURL);
- char* (*getError) (LibreOffice *pThis);
+ void (*destroy) (LibreOfficeKit *pThis);
+ int (*initialize) (LibreOfficeKit *pThis, const char *pInstallPath);
+ LibreOfficeKitDocument* (*documentLoad) (LibreOfficeKit *pThis, const char *pURL);
+ char* (*getError) (LibreOfficeKit *pThis);
};
-struct _LibreOfficeDocument
+struct _LibreOfficeKitDocument
{
int nSize;
- void (*destroy) (LibreOfficeDocument* pThis);
- int (*saveAs) (LibreOfficeDocument* pThis,
+ void (*destroy) (LibreOfficeKitDocument* pThis);
+ int (*saveAs) (LibreOfficeKitDocument* pThis,
const char *pUrl,
const char *pFormat);
- int (*saveAsWithOptions) (LibreOfficeDocument* pThis,
+ int (*saveAsWithOptions) (LibreOfficeKitDocument* pThis,
const char *pUrl,
const char *pFormat,
const char *pFilterOptions);
};
-LibreOffice* lo_init (const char* pInstallPath);
+LibreOfficeKit* lok_init (const char* pInstallPath);
#ifdef __cplusplus
}
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index d689e4b9bc97..de8224c4e0b6 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -22,10 +22,10 @@
class LODocument
{
private:
- LibreOfficeDocument* mpDoc;
+ LibreOfficeKitDocument* mpDoc;
public:
- inline LODocument(LibreOfficeDocument* pDoc) :
+ inline LODocument(LibreOfficeKitDocument* pDoc) :
mpDoc(pDoc)
{}
@@ -53,10 +53,10 @@ public:
class LibLibreOffice
{
private:
- LibreOffice* mpThis;
+ LibreOfficeKit* mpThis;
public:
- inline LibLibreOffice(LibreOffice* pThis) :
+ inline LibLibreOffice(LibreOfficeKit* pThis) :
mpThis(pThis)
{}
@@ -72,7 +72,7 @@ public:
inline LODocument* documentLoad(const char* pUrl)
{
- LibreOfficeDocument* pDoc = mpThis->documentLoad(mpThis, pUrl);
+ LibreOfficeKitDocument* pDoc = mpThis->documentLoad(mpThis, pUrl);
if (pDoc == NULL)
return NULL;
return new LODocument(pDoc);
@@ -87,7 +87,7 @@ public:
inline LibLibreOffice* lo_cpp_init(const char* pInstallPath)
{
- LibreOffice* pThis = lo_init(pInstallPath);
+ LibreOfficeKit* pThis = lok_init(pInstallPath);
if (pThis == NULL || pThis->nSize == 0)
return NULL;
return new LibLibreOffice(pThis);