diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-06-04 08:47:48 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-06-04 08:47:48 +0000 |
commit | e43e52aaf9b9790d6037688de9b490d6e17e957c (patch) | |
tree | 8956284fa711bc9f3b9cca6fb13a89ffc10ada29 /xmloff/source/chart | |
parent | 0081cdaa9e014b094603b3be7832e0915755d2f4 (diff) |
INTEGRATION: CWS odfversionedexport (1.98.22); FILE MERGED
2008/04/30 15:08:24 iha 1.98.22.1: #i88889# ODF: Omit export of OFD 1.2 chart features when 1.1 is set
Diffstat (limited to 'xmloff/source/chart')
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 7801d1518546..57e3771f64bf 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SchXMLExport.cxx,v $ - * $Revision: 1.98 $ + * $Revision: 1.99 $ * * This file is part of OpenOffice.org. * @@ -2537,8 +2537,12 @@ void SchXMLExportHelper::exportSeries( RTL_TEXTENCODING_ASCII_US ).getStr()); } - lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); - lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); + const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion( SvtSaveOptions().GetODFDefaultVersion() ); + if( nCurrentODFVersion >= SvtSaveOptions::ODFVER_012 ) + { + lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); + lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); + } if( mxExpPropMapper.is()) aPropertyStates = mxExpPropMapper->Filter( xPropSet ); @@ -2802,6 +2806,9 @@ void SchXMLExportHelper::exportRegressionCurve( xEquationProperties->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "ShowCorrelationCoefficient" ))) >>= bShowRSquared; bExportEquation = ( bShowEquation || bShowRSquared ); + const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() ); + if( nCurrentVersion < SvtSaveOptions::ODFVER_012 ) + bExportEquation=false; if( bExportEquation ) { // number format @@ -3071,8 +3078,12 @@ void SchXMLExportHelper::exportDataPoints( DBG_ASSERT( xPropSet.is(), "Pie Segments should have properties" ); if( xPropSet.is()) { - lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); - lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); + const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion( SvtSaveOptions().GetODFDefaultVersion() ); + if( nCurrentODFVersion >= SvtSaveOptions::ODFVER_012 ) + { + lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); + lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); + } aPropertyStates = mxExpPropMapper->Filter( xPropSet ); if( aPropertyStates.size() > 0 ) @@ -3130,8 +3141,12 @@ void SchXMLExportHelper::exportDataPoints( } if( xPropSet.is()) { - lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); - lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); + const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion( SvtSaveOptions().GetODFDefaultVersion() ); + if( nCurrentODFVersion >= SvtSaveOptions::ODFVER_012 ) + { + lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); + lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); + } aPropertyStates = mxExpPropMapper->Filter( xPropSet ); if( aPropertyStates.size() > 0 ) |