diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2022-08-29 09:34:53 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2022-11-17 10:18:24 +0100 |
commit | 36a949435f5d16766d02aadf72d7324ce8f6b7e7 (patch) | |
tree | f80e36a6bc213b72394995e6cf60c72be8cf2320 /include | |
parent | 24b3e76cbc119ef47e40d858eaa9bc0d54016815 (diff) |
lok: masterpage: Introduce mode property to tile rendering
This is needed for Impress which can have slides in
two Edit Modes: Master Page and Page.
Change-Id: I3eca0f51ba7970e793026d1ac6aa09b19b7a904b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137869
Reviewed-by: Ashod Nakashian <ash@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 4 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index 2f57f744e1d4..61a68f632209 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -283,6 +283,7 @@ struct _LibreOfficeKitDocumentClass void (*paintPartTile) (LibreOfficeKitDocument* pThis, unsigned char* pBuffer, const int nPart, + const int nMode, const int nCanvasWidth, const int nCanvasHeight, const int nTilePosX, @@ -489,6 +490,9 @@ struct _LibreOfficeKitDocumentClass long* pCol, long* pRow); + /// @see lok::Document::getEditMode(). + int (*getEditMode) (LibreOfficeKitDocument* pThis); + #endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY }; diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 87ff25dcb445..94ff61f4ccdf 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -126,6 +126,11 @@ public: mpDoc->pClass->setPartMode(mpDoc, nMode); } + int getEditMode() + { + return mpDoc->pClass->getEditMode(mpDoc); + } + /** * Renders a subset of the document to a pre-allocated buffer. * @@ -604,6 +609,7 @@ public: */ void paintPartTile(unsigned char* pBuffer, const int nPart, + const int nMode, const int nCanvasWidth, const int nCanvasHeight, const int nTilePosX, @@ -611,7 +617,7 @@ public: const int nTileWidth, const int nTileHeight) { - return mpDoc->pClass->paintPartTile(mpDoc, pBuffer, nPart, + return mpDoc->pClass->paintPartTile(mpDoc, pBuffer, nPart, nMode, nCanvasWidth, nCanvasHeight, nTilePosX, nTilePosY, nTileWidth, nTileHeight); |