diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-07-19 23:51:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-08-02 11:41:47 -0400 |
commit | 7e174f327a3cf16a09e4b2f8e2ffba2225c21901 (patch) | |
tree | 934ba482dafdd9b5fe7a9a68e579d40e990713c4 /include/LibreOfficeKit/LibreOfficeKit.hxx | |
parent | dc4e514f17d1923c19d2b61f733b196e5acf7dec (diff) |
LOK: Support detecting complex selections
Includes unit-test, but is otherwise not complete
implementation.
Change-Id: I5fdcd543358caab1858f6351238c21312665839c
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKit.hxx')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index cb1ca1e4c2d3..ca0287a6b584 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -352,6 +352,16 @@ public: } /** + * Gets the type of the selected content. + * + * @return an element of the LibreOfficeKitSelectionType enum. + */ + int getSelectionType(LibreOfficeKitDocument* pThis) + { + return mpDoc->pClass->getSelectionType(mpDoc); + } + + /** * Gets the selected content for the current view as a series of binary streams. * * NB. returns a complete set of possible selection types if nullptr is passed for pMimeTypes. |