summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit/LibreOfficeKit.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-02-10 17:43:18 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-16 09:20:48 +0100
commit565a9f3fd8333e14497f058f9e4387e511aa36c9 (patch)
treefa1ecc90c51e5cfc7f479692c5b120bc0fe120bb /include/LibreOfficeKit/LibreOfficeKit.h
parent0135d5d5c2a41bc306062334db731b98438a6caf (diff)
LOK: add lok::Document::setTextSelection()
What's interesting about this is that it allows adjusting the position of both the point and mark of the selection, while the normal UI only allows adjusting the point. Change-Id: If61f57c68c28c67fec252f2b666a706f52dd8d26
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKit.h')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 204479502eb7..eccf19bd82ce 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -117,6 +117,15 @@ typedef enum
}
LibreOfficeKitMouseEventType;
+typedef enum
+{
+ /// The start of selection is to be adjusted.
+ LOK_SETTEXTSELECTION_START,
+ /// The end of selection is to be adjusted.
+ LOK_SETTEXTSELECTION_END
+}
+LibreOfficeKitSetTextSelectionType;
+
typedef void (*LibreOfficeKitCallback)(int nType, const char* pPayload, void* pData);
#endif // LOK_USE_UNSTABLE_API
@@ -204,6 +213,11 @@ struct _LibreOfficeKitDocumentClass
int nX,
int nY,
int nCount);
+ /// @see lok::Document::setTextSelection
+ void (*setTextSelection)(LibreOfficeKitDocument* pThis,
+ int nType,
+ int nX,
+ int nY);
#endif // LOK_USE_UNSTABLE_API
};