Kaydet (Commit) 84cb8265 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS odfversionedexport (1.50.22); FILE MERGED

2008/04/30 14:54:48 iha 1.50.22.1: #i88889# ODF: Omit export of OFD 1.2 properties when 1.1 is set
üst 2bb940a3
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: xmlexppr.cxx,v $ * $RCSfile: xmlexppr.cxx,v $
* $Revision: 1.50 $ * $Revision: 1.51 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -676,7 +676,15 @@ vector< XMLPropertyState > SvXMLExportPropertyMapper::_Filter( ...@@ -676,7 +676,15 @@ vector< XMLPropertyState > SvXMLExportPropertyMapper::_Filter(
if( (0 == (nFlags & MID_FLAG_NO_PROPERTY_EXPORT)) && if( (0 == (nFlags & MID_FLAG_NO_PROPERTY_EXPORT)) &&
( (0 != (nFlags & MID_FLAG_MUST_EXIST)) || ( (0 != (nFlags & MID_FLAG_MUST_EXIST)) ||
xInfo->hasPropertyByName( rAPIName ) ) ) xInfo->hasPropertyByName( rAPIName ) ) )
pFilterInfo->AddProperty(rAPIName, i); {
const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() );
const SvtSaveOptions::ODFDefaultVersion nEarliestODFVersionForExport(
maPropMapper->GetEarliestODFVersionForExport( i ) );
if( nCurrentVersion >= nEarliestODFVersionForExport
|| nCurrentVersion == SvtSaveOptions::ODFVER_UNKNOWN
|| nEarliestODFVersionForExport == SvtSaveOptions::ODFVER_UNKNOWN )
pFilterInfo->AddProperty(rAPIName, i);
}
} }
if( xTypeProv.is() && aImplId.getLength() == 16 ) if( xTypeProv.is() && aImplId.getLength() == 16 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment