From 90e1698dab3d286c10136719aa85fee2f56ad9fd Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 23 Jan 2023 16:38:03 +0100 Subject: tdf#153090 xmloff: ODF import/export of source style on ToX For Table of Figures/Objects/Tables. Make this similar to DOCX: only one source style is possible, so omit the intermediate text:index-source-styles element. Also a boolean attribute like text:use-index-source-styles appears as unnecessary complexity, so try to do without. Change-Id: I7cb599c7ec1261ddedc196a25c3eafe35f35fbe9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146013 Tested-by: Jenkins Reviewed-by: Michael Stahl --- xmloff/source/text/XMLIndexTableSourceContext.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmloff/source/text/XMLIndexTableSourceContext.cxx') diff --git a/xmloff/source/text/XMLIndexTableSourceContext.cxx b/xmloff/source/text/XMLIndexTableSourceContext.cxx index 480baf0cee16..3a7f8a5a779b 100644 --- a/xmloff/source/text/XMLIndexTableSourceContext.cxx +++ b/xmloff/source/text/XMLIndexTableSourceContext.cxx @@ -45,8 +45,7 @@ using ::com::sun::star::xml::sax::XAttributeList; XMLIndexTableSourceContext::XMLIndexTableSourceContext( SvXMLImport& rImport, Reference & rPropSet) - : XMLIndexSourceBaseContext(rImport, - rPropSet, false) + : XMLIndexSourceBaseContext(rImport, rPropSet, UseStyles::Single) , nDisplayFormat(0) , bSequenceOK(false) , bDisplayFormatOK(false) -- cgit