From 4bddfc00d25a42917db79ceaf0547c2e792132c4 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 18 Nov 2015 14:59:51 +0100 Subject: lok::Document::initializeForRendering: support init. arguments Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80 --- include/LibreOfficeKit/LibreOfficeKit.h | 3 ++- include/LibreOfficeKit/LibreOfficeKit.hxx | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'include/LibreOfficeKit') 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); } /** -- cgit