From 262e7be01461887202f629d1ccc57751b1a085c5 Mon Sep 17 00:00:00 2001 From: Mihai Varga Date: Fri, 4 Sep 2015 15:45:51 +0300 Subject: Revert "LOK: added a general getCommandValues method" This reverts commit 9640dcea46dd3201aa4c27f6a3918f7419288a2a. --- include/LibreOfficeKit/LibreOfficeKit.h | 2 +- include/LibreOfficeKit/LibreOfficeKit.hxx | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index 8060f0e6ec7c..af7155c4db67 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -161,7 +161,7 @@ struct _LibreOfficeKitDocumentClass void (*resetSelection) (LibreOfficeKitDocument* pThis); /// @see lok::Document:getStyles - char* (*getCommandValues) (LibreOfficeKitDocument* pThis, const char* pCommand); + char* (*getStyles) (LibreOfficeKitDocument* pThis); #endif // LOK_USE_UNSTABLE_API }; diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 44599948e659..c526bda95593 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -248,14 +248,11 @@ public: } /** - * Returns a json mapping of the possible values for the given command - * e.g. {commandName: ".uno:StyleApply", commandValues: {"familyName1" : ["list of style names in the family1"], etc.}} - * @param pCommand a uno command for which the possible values are requested - * @return {commandName: unoCmd, commandValues: {possible_values}} + * Returns a json map, {"familyName1" : ["list of style names in the family1"], etc.} */ - inline char* getCommandValues(const char* pCommand) + inline char* getStyles() { - return mpDoc->pClass->getCommandValues(mpDoc, pCommand); + return mpDoc->pClass->getStyles(mpDoc); } #endif // LOK_USE_UNSTABLE_API }; -- cgit