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

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
üst 0081cdaa
...@@ -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: SchXMLExport.cxx,v $ * $RCSfile: SchXMLExport.cxx,v $
* $Revision: 1.98 $ * $Revision: 1.99 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -2537,8 +2537,12 @@ void SchXMLExportHelper::exportSeries( ...@@ -2537,8 +2537,12 @@ void SchXMLExportHelper::exportSeries(
RTL_TEXTENCODING_ASCII_US ).getStr()); RTL_TEXTENCODING_ASCII_US ).getStr());
} }
lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion( SvtSaveOptions().GetODFDefaultVersion() );
lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); if( nCurrentODFVersion >= SvtSaveOptions::ODFVER_012 )
{
lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport );
lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport );
}
if( mxExpPropMapper.is()) if( mxExpPropMapper.is())
aPropertyStates = mxExpPropMapper->Filter( xPropSet ); aPropertyStates = mxExpPropMapper->Filter( xPropSet );
...@@ -2802,6 +2806,9 @@ void SchXMLExportHelper::exportRegressionCurve( ...@@ -2802,6 +2806,9 @@ void SchXMLExportHelper::exportRegressionCurve(
xEquationProperties->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "ShowCorrelationCoefficient" ))) xEquationProperties->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "ShowCorrelationCoefficient" )))
>>= bShowRSquared; >>= bShowRSquared;
bExportEquation = ( bShowEquation || bShowRSquared ); bExportEquation = ( bShowEquation || bShowRSquared );
const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() );
if( nCurrentVersion < SvtSaveOptions::ODFVER_012 )
bExportEquation=false;
if( bExportEquation ) if( bExportEquation )
{ {
// number format // number format
...@@ -3071,8 +3078,12 @@ void SchXMLExportHelper::exportDataPoints( ...@@ -3071,8 +3078,12 @@ void SchXMLExportHelper::exportDataPoints(
DBG_ASSERT( xPropSet.is(), "Pie Segments should have properties" ); DBG_ASSERT( xPropSet.is(), "Pie Segments should have properties" );
if( xPropSet.is()) if( xPropSet.is())
{ {
lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion( SvtSaveOptions().GetODFDefaultVersion() );
lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); if( nCurrentODFVersion >= SvtSaveOptions::ODFVER_012 )
{
lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport );
lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport );
}
aPropertyStates = mxExpPropMapper->Filter( xPropSet ); aPropertyStates = mxExpPropMapper->Filter( xPropSet );
if( aPropertyStates.size() > 0 ) if( aPropertyStates.size() > 0 )
...@@ -3130,8 +3141,12 @@ void SchXMLExportHelper::exportDataPoints( ...@@ -3130,8 +3141,12 @@ void SchXMLExportHelper::exportDataPoints(
} }
if( xPropSet.is()) if( xPropSet.is())
{ {
lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport ); const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion( SvtSaveOptions().GetODFDefaultVersion() );
lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport ); if( nCurrentODFVersion >= SvtSaveOptions::ODFVER_012 )
{
lcl_exportNumberFormat( sNumFormat, xPropSet, mrExport );
lcl_exportNumberFormat( sPercentageNumFormat, xPropSet, mrExport );
}
aPropertyStates = mxExpPropMapper->Filter( xPropSet ); aPropertyStates = mxExpPropMapper->Filter( xPropSet );
if( aPropertyStates.size() > 0 ) if( aPropertyStates.size() > 0 )
......
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