From 7e174f327a3cf16a09e4b2f8e2ffba2225c21901 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Fri, 19 Jul 2019 23:51:16 +0100 Subject: LOK: Support detecting complex selections Includes unit-test, but is otherwise not complete implementation. Change-Id: I5fdcd543358caab1858f6351238c21312665839c --- include/LibreOfficeKit/LibreOfficeKit.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/LibreOfficeKit/LibreOfficeKit.hxx') 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 @@ -351,6 +351,16 @@ public: return mpDoc->pClass->getTextSelection(mpDoc, pMimeType, pUsedMimeType); } + /** + * 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. * -- cgit