From a60b18a8c5d5c11c87dbbaaf884de138dfeb6c8f Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 14 Apr 2020 07:35:02 +0200 Subject: lok: add tabstop changing and callback to send tabstop updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds callback LOK_CALLBACK_TAB_STOP_LIST to send the tabstops for the current paragraph. In addition it adds .uno:ChangeTabStop action, with which it is possible to change just one tabstop identified by the index. Change-Id: I7762ead12e47288cbb0b0a1c8ffb8e9872cee8e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92147 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- include/LibreOfficeKit/LibreOfficeKitEnums.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/LibreOfficeKit') diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index 5ad801a7a74f..53bc3099e282 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -720,7 +720,12 @@ typedef enum * Send the list of functions whose name starts with the characters entered * by the user in the formula input bar. */ - LOK_CALLBACK_CALC_FUNCTION_LIST = 47 + LOK_CALLBACK_CALC_FUNCTION_LIST = 47, + + /** + * Sends the tab stop list for the current of the current cursor position. + */ + LOK_CALLBACK_TAB_STOP_LIST = 48, } LibreOfficeKitCallbackType; @@ -845,6 +850,8 @@ static inline const char* lokCallbackTypeToString(int nType) return "LOK_CALLBACK_JSDIALOG"; case LOK_CALLBACK_CALC_FUNCTION_LIST: return "LOK_CALLBACK_CALC_FUNCTION_LIST"; + case LOK_CALLBACK_TAB_STOP_LIST: + return "LOK_CALLBACK_TAB_STOP_LIST"; } assert(!"Unknown LibreOfficeKitCallbackType type."); -- cgit