summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLExport.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-22 10:22:42 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-22 13:57:32 +0200
commit13861b853fd707c9f288197302fb76db32c8dc66 (patch)
treedd72f51eede06c98e2bd94d050b09106c3577105 /xmloff/source/chart/SchXMLExport.cxx
parent4475e4f3d94f312798dd90f8a8b861f981e0fd22 (diff)
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
Diffstat (limited to 'xmloff/source/chart/SchXMLExport.cxx')
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx22
1 files changed, 2 insertions, 20 deletions
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<beans::XPropertySe
for( ::std::vector< Reference< chart2::data::XDataSequence > >::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 ));
}