This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit b6e10c215bf2c4cbd0b299e3e0e97c5c7df9aef5 Author: Jim Jagielski <[email protected]> AuthorDate: Tue Nov 3 16:07:18 2026 -0500 xmloff: write paragraph fills as loext:graphic-properties in ODF 1.4 Extended --- main/xmloff/source/style/xmlexppr.cxx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/main/xmloff/source/style/xmlexppr.cxx b/main/xmloff/source/style/xmlexppr.cxx index 2f62c0872b..8d96192272 100644 --- a/main/xmloff/source/style/xmlexppr.cxx +++ b/main/xmloff/source/style/xmlexppr.cxx @@ -877,7 +877,20 @@ void SvXMLExportPropertyMapper::exportXML( (nFlags & XML_EXPORT_FLAG_EMPTY) != 0 || aIndexArray.Count() != 0 ) { - SvXMLElementExport aElem( rExport, XML_NAMESPACE_STYLE, + sal_uInt16 nElemPrefix = XML_NAMESPACE_STYLE; + // ODF 1.4 Extended: paragraph fills are not valid in style:graphic-properties + if( aPropTokens[i].eToken == XML_GRAPHIC_PROPERTIES && + SvtSaveOptions().GetODFDefaultVersion() == SvtSaveOptions::ODFVER_014_EXT && + maPropMapper->GetEntryCount() > 1 && + maPropMapper->GetEntryAPIName( 0 ).equalsAscii( "ParaUserDefinedAttributes" ) && + maPropMapper->GetEntryAPIName( 1 ).equalsAscii( "FillStyle" ) ) + { + const OUString aExtNs( RTL_CONSTASCII_USTRINGPARAM( + "urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" ) ); + rExport.EnsureNamespace( aExtNs, OUString( RTL_CONSTASCII_USTRINGPARAM( "loext" ) ) ); + nElemPrefix = rExport.GetNamespaceMap().GetKeyByName( aExtNs ); + } + SvXMLElementExport aElem( rExport, nElemPrefix, aPropTokens[i].eToken, (nFlags & XML_EXPORT_FLAG_IGN_WS) != 0, sal_False );
