diff options
author | Mihai Varga <mihai.varga@collabora.com> | 2015-08-17 18:49:40 +0300 |
---|---|---|
committer | Mihai Varga <mihai.varga@collabora.com> | 2015-08-18 13:04:35 +0300 |
commit | c5a516bd1bf0216ee39f31322369f6bffdf464eb (patch) | |
tree | b4641152ef602ac4f03a17062aec4a9c91c928b1 /include/LibreOfficeKit | |
parent | 0405975042e91e5cca56068ad0d16ad8ab910737 (diff) |
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')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 3 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index e3b485052444..af7155c4db67 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -159,6 +159,9 @@ struct _LibreOfficeKitDocumentClass /// @see lok::Document::resetSelection void (*resetSelection) (LibreOfficeKitDocument* pThis); + + /// @see lok::Document:getStyles + char* (*getStyles) (LibreOfficeKitDocument* pThis); #endif // LOK_USE_UNSTABLE_API }; 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 }; |