diff options
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 3 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 11 |
2 files changed, 10 insertions, 4 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index ba4319f70a3d..675eabc5ae5e 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -77,8 +77,9 @@ struct _LibreOfficeKitDocumentClass // Part refers to either indivual sheets in a Spreadsheet, or slides // in a Slideshow, and has no relevance for wrtier documents. - int (*getNumberOfParts) (LibreOfficeKitDocument* pThis); + int (*getParts) (LibreOfficeKitDocument* pThis); + int (*getPart) (LibreOfficeKitDocument* pThis); void (*setPart) (LibreOfficeKitDocument* pThis, int nPart); diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 427ea833c5a9..32faf26e6291 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -49,9 +49,14 @@ public: return mpDoc->pClass->getDocumentType(mpDoc); } - inline int getNumberOfParts() + inline int getParts() { - return mpDoc->pClass->getNumberOfParts(mpDoc); + return mpDoc->pClass->getParts(mpDoc); + } + + inline int getPart() + { + return mpDoc->pClass->getPart(mpDoc); } inline void setPart(int nPart) @@ -75,7 +80,7 @@ public: inline void getDocumentSize(long* pWidth, long* pHeight) { - mpDoc->getDocumentSize(mpDoc, pWidth, pHeight); + mpDoc->pClass->getDocumentSize(mpDoc, pWidth, pHeight); } #endif // LOK_USE_UNSTABLE_API }; |