This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch odf-devel
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 4360e285c1477f48321f9b9311925b2e2aef1f78
Author: Jim Jagielski <[email protected]>
AuthorDate: Wed Oct 28 11:05:28 2026 -0400

    dbaccess: don't write style:font-width in ODF 1.2 strict mode
---
 main/dbaccess/source/filter/xml/xmlExport.cxx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/main/dbaccess/source/filter/xml/xmlExport.cxx 
b/main/dbaccess/source/filter/xml/xmlExport.cxx
index 092262759a..5c56677af2 100644
--- a/main/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/main/dbaccess/source/filter/xml/xmlExport.cxx
@@ -197,6 +197,18 @@ namespace dbaxml
                {
                        // nothing to do here
                }
+               // style:font-width is not in ODF 1.2
+               virtual void ContextFilter( ::std::vector< XMLPropertyState >& 
rProperties,
+                               Reference< XPropertySet > rPropSet ) const
+               {
+                       if ( SvtSaveOptions().GetODFDefaultVersion() == 
SvtSaveOptions::ODFVER_012 )
+                       {
+                               for ( ::std::vector< XMLPropertyState 
>::iterator aIter = rProperties.begin(); aIter != rProperties.end(); ++aIter )
+                                       if ( aIter->mnIndex != -1 && 
getPropertySetMapper()->GetEntryAPIName( aIter->mnIndex ).equals( 
PROPERTY_FONTWIDTH ) )
+                                               aIter->mnIndex = -1;
+                       }
+                       SvXMLExportPropertyMapper::ContextFilter( rProperties, 
rPropSet );
+               }
        };
 // 
-----------------------------------------------------------------------------
 ODBExport::ODBExport(const Reference< XMultiServiceFactory >& 
_rxMSF,sal_uInt16 nExportFlag)

Reply via email to