From 13861b853fd707c9f288197302fb76db32c8dc66 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 22 Apr 2013 10:22:42 +0200 Subject: get the handling of error bar ranges correct in xmloff We finally produce valid files again for error bars export. Additionally we don't export unnecessary attributes anymore. Change-Id: Idc4b4259c47a945e3679dac1a9810cd9f1f05bac --- xmloff/source/chart/SchXMLExport.cxx | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'xmloff/source/chart/SchXMLExport.cxx') diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 22dc3ac1e575..0b44488bd002 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -1145,6 +1145,8 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >& return; } + mxExpPropMapper->setChartDoc(xNewDoc); + awt::Size aPageSize( getPageSize( xNewDoc )); if( bExportContent ) addSize( aPageSize ); @@ -3069,26 +3071,6 @@ void SchXMLExportHelper_Impl::exportErrorBar( const Reference >::const_iterator aIt( aErrorBarSequences.begin()); aIt != aErrorBarSequences.end(); ++aIt ) { - if ( nCurrentVersion > SvtSaveOptions::ODFVER_012 ) - { - OUString aRole, aRange; - Reference< beans::XPropertySet > xSeqProp( *aIt, uno::UNO_QUERY_THROW ); - xSeqProp->getPropertyValue("Role") >>= aRole; - - aRange = lcl_ConvertRange((*aIt)->getSourceRangeRepresentation(), xNewDoc ); - - if ( aRole.indexOf("positive") != -1 ) - { - if ( bPositive ) - mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_ERROR_UPPER_RANGE, aRange ); - } - else - { - if ( bNegative ) - mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_ERROR_LOWER_RANGE, aRange ); - } - } - m_aDataSequencesToExport.push_back( tLabelValuesDataPair( (uno::Reference< chart2::data::XDataSequence >)0, *aIt )); } -- cgit