Kaydet (Commit) 7cbf629b authored tarafından Miklos Vajna's avatar Miklos Vajna

Add missing lok::Document::setPartMode() wrapper

Change-Id: I5dd5f0cfb8b34621b18a35be682249e042d9b173
(cherry picked from commit 42844c2a)
üst 787da24c
...@@ -93,10 +93,7 @@ struct _LibreOfficeKitDocumentClass ...@@ -93,10 +93,7 @@ struct _LibreOfficeKitDocumentClass
char* (*getPartName) (LibreOfficeKitDocument* pThis, char* (*getPartName) (LibreOfficeKitDocument* pThis,
int nPart); int nPart);
/** Sets mode of the current part. /// @see lok::Document::setPartMode().
*
* @param nMode - element from the LibreOfficeKitPartMode enum.
*/
void (*setPartMode) (LibreOfficeKitDocument* pThis, void (*setPartMode) (LibreOfficeKitDocument* pThis,
int nMode); int nMode);
...@@ -118,6 +115,7 @@ struct _LibreOfficeKitDocumentClass ...@@ -118,6 +115,7 @@ struct _LibreOfficeKitDocumentClass
/// @see lok::Document::initializeForRendering(). /// @see lok::Document::initializeForRendering().
void (*initializeForRendering) (LibreOfficeKitDocument* pThis); void (*initializeForRendering) (LibreOfficeKitDocument* pThis);
/// @see lok::Document::registerCallback().
void (*registerCallback) (LibreOfficeKitDocument* pThis, void (*registerCallback) (LibreOfficeKitDocument* pThis,
LibreOfficeKitCallback pCallback, LibreOfficeKitCallback pCallback,
void* pData); void* pData);
......
...@@ -94,6 +94,11 @@ public: ...@@ -94,6 +94,11 @@ public:
return mpDoc->pClass->getPartName(mpDoc, nPart); return mpDoc->pClass->getPartName(mpDoc, nPart);
} }
inline void setPartMode(int nMode)
{
mpDoc->pClass->setPartMode(mpDoc, nMode);
}
/** /**
* Renders a subset of the document to a pre-allocated buffer. * Renders a subset of the document to a pre-allocated buffer.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment