diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-05-18 08:36:16 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-25 13:04:29 +0100 |
commit | fd5f324b0988f62f89216ce01ef23131bffb4e0c (patch) | |
tree | 7188ecb033b316620aebfecf6b4f45482613314e /include/LibreOfficeKit | |
parent | 41911db36efa2b97fdca18e468b6dd162d654a4d (diff) |
Implement document size retrieval for LibLO.
Change-Id: Ibd69f8e766fd421b05d2305f967179a969bc5b56
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 5 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index cf2bcb2a757e..f63f3a71ac91 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -98,6 +98,11 @@ struct _LibreOfficeKitDocumentClass const int nTilePosY, const int nTileWidth, const int nTileHeight); + + // Get the document sizes in twips. + void (*getDocumentSize) (LibreOfficeKitDocument* pThis, + long* pWidth, + long* pHeight); #endif // LOK_USE_UNSTABLE_API }; diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 09b4ae61b28f..ee310fec0f0e 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -70,6 +70,11 @@ public: return mpDoc->pClass->paintTile(mpDoc, nCanvasWidth, nCanvasHeight, pRowStride, nTilePosX, nTilePosY, nTileWidth, nTileHeight); } + + inline void getDocumentSize(long* pWidth, long* pHeight) + { + mpDoc->getDocumentSize(mpDoc, pWidth, pHeight); + } #endif // LOK_USE_UNSTABLE_API }; |