summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-18 14:59:51 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-18 16:39:17 +0100
commit4bddfc00d25a42917db79ceaf0547c2e792132c4 (patch)
treee74e06da83f92501b6a96b3d80ae1bae1bce70a8 /include/LibreOfficeKit
parent0a779d1dc3e08a9f5407f96b98d7fffa3e789a79 (diff)
lok::Document::initializeForRendering: support init. arguments
Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h3
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx16
2 files changed, 16 insertions, 3 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 03210376c61e..93f7dca6d455 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -124,7 +124,8 @@ struct _LibreOfficeKitDocumentClass
long* pHeight);
/// @see lok::Document::initializeForRendering().
- void (*initializeForRendering) (LibreOfficeKitDocument* pThis);
+ void (*initializeForRendering) (LibreOfficeKitDocument* pThis,
+ const char* pArguments);
/// @see lok::Document::registerCallback().
void (*registerCallback) (LibreOfficeKitDocument* pThis,
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index d21abddd0448..a3c0cd8c0f6a 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -156,10 +156,22 @@ public:
* needed to render the document correctly using tiled rendering. This
* method has to be called right after documentLoad() in case any of the
* tiled rendering methods are to be used later.
+ *
+ * Example argument string for text documents:
+ *
+ * {
+ * ".uno:HideWhitespace":
+ * {
+ * "type": "boolean",
+ * "value": "true"
+ * }
+ * }
+ *
+ * @param pArguments arguments of the rendering
*/
- inline void initializeForRendering()
+ inline void initializeForRendering(const char* pArguments = NULL)
{
- mpDoc->pClass->initializeForRendering(mpDoc);
+ mpDoc->pClass->initializeForRendering(mpDoc, pArguments);
}
/**