summaryrefslogtreecommitdiffstats
path: root/include/LibreOfficeKit/LibreOfficeKit.hxx
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-08-17 18:49:40 +0300
committerMihai Varga <mihai.varga@collabora.com>2015-08-18 13:04:35 +0300
commitc5a516bd1bf0216ee39f31322369f6bffdf464eb (patch)
treeb4641152ef602ac4f03a17062aec4a9c91c928b1 /include/LibreOfficeKit/LibreOfficeKit.hxx
parenttdf#75973 : User Defined Types in password encrypted macros (diff)
downloadcore-c5a516bd1bf0216ee39f31322369f6bffdf464eb.tar.gz
core-c5a516bd1bf0216ee39f31322369f6bffdf464eb.zip
lok::Document getStyles method
This method returns a JSON mapping of style families to a list of styles from the corresponding family. Will be used to know and apply styles in tiledrendering. Change-Id: I0aa395c40b9573920ade44255f97c077475ae5f1
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKit.hxx')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 816ade5649b2..c526bda95593 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -246,6 +246,14 @@ public:
{
mpDoc->pClass->resetSelection(mpDoc);
}
+
+ /**
+ * Returns a json map, {"familyName1" : ["list of style names in the family1"], etc.}
+ */
+ inline char* getStyles()
+ {
+ return mpDoc->pClass->getStyles(mpDoc);
+ }
#endif // LOK_USE_UNSTABLE_API
};