From 908d058c67c4efb3dc142ea8d6ad59badf01c9c6 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Fri, 2 Dec 2022 10:48:46 -0500 Subject: tdf#151548 sw content controls: preserve tabIndex This has to be vital to keyboard navigation. Certainly it is good to have it imported before we start to consider tab-movements for form controls. All tabIndex 1's are processed (in placement order) and then the 2's etc. 0's are to be done last. XML_TAB_INDEX already existed in include/xmloff/xmltoken.hxx and "tab-index" already exists in xmloff/source/token/tokens.txt make CppunitTest_writerfilter_dmapper CPPUNIT_TEST_NAME=testSdtRunRichText make CppunitTest_sw_ooxmlexport17 CPPUNIT_TEST_NAME=testDateContentControlExport make CppunitTest_sw_core_unocore CPPUNIT_TEST_NAME=testContentControlDate make CppunitTest_xmloff_text CPPUNIT_TEST_NAME=testAliasContentControlExport make CppunitTest_xmloff_text CPPUNIT_TEST_NAME=testAliasContentControlImport No existing unit test found containing blockSDT with tabIndex. Change-Id: I8a958844e6192b079a2b22a62dedfd8739021f4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143603 Tested-by: Jenkins Reviewed-by: Justin Luth Reviewed-by: Miklos Vajna --- offapi/com/sun/star/text/ContentControl.idl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'offapi') diff --git a/offapi/com/sun/star/text/ContentControl.idl b/offapi/com/sun/star/text/ContentControl.idl index 59894741de2b..ce741d9b2926 100644 --- a/offapi/com/sun/star/text/ContentControl.idl +++ b/offapi/com/sun/star/text/ContentControl.idl @@ -128,6 +128,12 @@ service ContentControl */ [optional, property] long Id; + /** Describes the order in which keyboard navigation moves between controls + + @since LibreOffice 7.6 + */ + [optional, property] unsigned long TabIndex; + /** Describes whether the control itself and/or its data can be modified or deleted by the user. @since LibreOffice 7.6 -- cgit