diff options
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKit.hxx')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 6dbfbf964b29..035a0923ce35 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. * @@ -208,6 +213,12 @@ public: mpDoc->pClass->getDocumentSize(mpDoc, pWidth, pHeight); } + /// Get the data area (in Calc last row and column). + void getDataArea(long nPart, long* pCol, long* pRow) + { + mpDoc->pClass->getDataArea(mpDoc, nPart, pCol, pRow); + } + /** * Initialize document for rendering. * @@ -598,6 +609,7 @@ public: */ void paintPartTile(unsigned char* pBuffer, const int nPart, + const int nMode, const int nCanvasWidth, const int nCanvasHeight, const int nTilePosX, @@ -605,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); @@ -863,6 +875,17 @@ public: mpDoc->pClass->sendContentControlEvent(mpDoc, pArguments); } + /** + * Set the timezone of the window with the specified nId. + * + * @param nId a view ID, returned by createView(). + * @param timezone a timezone in the tzfile(5) format (e.g. Pacific/Auckland). + */ + void setViewTimezone(int nId, const char* timezone) + { + mpDoc->pClass->setViewTimezone(mpDoc, nId, timezone); + } + #endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY }; @@ -1103,6 +1126,26 @@ public: { mpThis->pClass->setOption(mpThis, pOption, pValue); } + + /** + * Debugging tool for triggering a dump of internal state. + * + * LibreOfficeKit can get into an unhelpful state at run-time when + * in heavy use. This provides a critical tool for inspecting + * relevant internal state. + * + * @param pOption future expansion - string options. + * @param pState - heap allocated, C string containing the state dump. + */ + void dumpState(const char* pOption, char** pState) + { + mpThis->pClass->dumpState(mpThis, pOption, pState); + } + + char* extractRequest(const char* pFilePath) + { + return mpThis->pClass->extractRequest(mpThis, pFilePath); + } }; /// Factory method to create a lok::Office instance. |