diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-22 14:28:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-22 15:42:36 +0200 |
commit | 6a8719b12e2f24e926fccdfabc60b95c089320fc (patch) | |
tree | 6d16317f7bccb2132258ab4b7511ddad5c4ff460 /include/LibreOfficeKit/LibreOfficeKit.hxx | |
parent | 5dc81ae20145d66019d3853e033514a9b1bc9c57 (diff) |
lok::Document::postUnoCommand: allow passing arguments
Change-Id: I6c24a8e392473f3985d3bde9b76a3148fd03bc9a
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKit.hxx')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 4f0a77acba86..01403480096c 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -181,11 +181,27 @@ public: /** * Posts an UNO command to the document. * + * Example argument string: + * + * { + * "SearchItem.SearchString": + * { + * "type": "string", + * "value": "foobar" + * }, + * "SearchItem.Backward": + * { + * "type": "boolean", + * "value": "false" + * } + * } + * * @param pCommand uno command to be posted to the document, like ".uno:Bold" + * @param pArguments arguments of the uno command. */ - inline void postUnoCommand(const char* pCommand) + inline void postUnoCommand(const char* pCommand, const char* pArguments = 0) { - mpDoc->pClass->postUnoCommand(mpDoc, pCommand); + mpDoc->pClass->postUnoCommand(mpDoc, pCommand, pArguments); } /** |