diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-04-08 17:39:10 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-04-08 18:11:34 +0200 |
commit | 55e39c72d6ac462b201dc0ae0ab0c610a0f13056 (patch) | |
tree | 1bf004c8e418b1e6dd626264ab3dd5f5cde2cdfc /desktop/inc | |
parent | 98668cd581f9f8dc272d42580c3989ee5dee0b53 (diff) |
liblo: new saveAsWithOptions function
To not break API compatibility of libLO, add a new saveAsWithOptions
function and revert the old saveAs to initial state.
Change-Id: If245c0261a932b6ed5d65e20cb1b6d8bd1c50ce6
Diffstat (limited to 'desktop/inc')
-rw-r--r-- | desktop/inc/liblibreoffice.h | 9 | ||||
-rw-r--r-- | desktop/inc/liblibreoffice.hxx | 9 |
2 files changed, 13 insertions, 5 deletions
diff --git a/desktop/inc/liblibreoffice.h b/desktop/inc/liblibreoffice.h index e9df56602083..87111c43bc67 100644 --- a/desktop/inc/liblibreoffice.h +++ b/desktop/inc/liblibreoffice.h @@ -35,14 +35,17 @@ struct _LibreOfficeDocument void (*destroy) (LibreOfficeDocument* pThis); int (*saveAs) (LibreOfficeDocument* pThis, const char *pUrl, - const char *pFormat, - const char *pFilterOptions); + const char *pFormat); + int (*saveAsWithOptions) (LibreOfficeDocument* pThis, + const char *pUrl, + const char *pFormat, + const char *pFilterOptions); }; LibreOffice* lo_init (const char* pInstallPath); #ifdef __cplusplus - } +} #endif #endif diff --git a/desktop/inc/liblibreoffice.hxx b/desktop/inc/liblibreoffice.hxx index ef01cb31620b..29d3f7222373 100644 --- a/desktop/inc/liblibreoffice.hxx +++ b/desktop/inc/liblibreoffice.hxx @@ -35,9 +35,14 @@ public: } // Save as the given format, if format is NULL sniff from ext'n - inline bool saveAs(const char* pUrl, const char* pFormat = NULL, const char* pFilterOptions = NULL) + inline bool saveAs(const char* pUrl, const char* pFormat = NULL) { - return mpDoc->saveAs(mpDoc, pUrl, pFormat, pFilterOptions); + return mpDoc->saveAs(mpDoc, pUrl, pFormat); + } + + inline bool saveAsWithOptions(const char* pUrl, const char* pFormat = NULL, const char* pFilterOptions = NULL) + { + return mpDoc->saveAsWithOptions(mpDoc, pUrl, pFormat, pFilterOptions); } }; |