summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-09-04 15:45:51 +0300
committerMihai Varga <mihai.varga@collabora.com>2015-09-04 15:46:48 +0300
commit262e7be01461887202f629d1ccc57751b1a085c5 (patch)
treef382436b6975543bae27173a9d3e9d038882a791 /include
parentb70b4ae26a4d5256444996da46abee85a81b53be (diff)
Revert "LOK: added a general getCommandValues method"
This reverts commit 9640dcea46dd3201aa4c27f6a3918f7419288a2a.
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h2
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx9
2 files changed, 4 insertions, 7 deletions
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
};