summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-13 20:47:12 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-13 20:48:31 +0100
commit6483f39e8959050ca4d5df42c27695ae98efa8c9 (patch)
tree7d3ccaa01a5e987c3742261f187bdbdc801c5c85 /oox
parente1ace08771da5b32ed9801d4ee6166c619aae8fa (diff)
also export hiLowLines for lineChart
Change-Id: I7b96fcb1e537517a80de87d997818d372d03f74a
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx30
1 files changed, 21 insertions, 9 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index fddaf8ec7173..0c0620820968 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1246,6 +1246,7 @@ void ChartExport::exportLineChart( Reference< chart2::XChartType > xChartType )
if( !mbIs3DChart )
{
+ exportHiLowLines();
exportUpDownBars(xChartType);
const char* marker = nSymbolType == ::com::sun::star::chart::ChartSymbolType::NONE? "0":"1";
pFS->singleElement( FSNS( XML_c, XML_marker ),
@@ -1347,15 +1348,7 @@ void ChartExport::exportStockChart( Reference< chart2::XChartType > xChartType )
Reference< ::com::sun::star::chart::XStatisticDisplay > xStockPropProvider( mxDiagram, uno::UNO_QUERY );
if( xStockPropProvider.is())
{
- // stock-range-line
- Reference< beans::XPropertySet > xStockPropSet = xStockPropProvider->getMinMaxLine();
- if( xStockPropSet.is() )
- {
- pFS->startElement( FSNS( XML_c, XML_hiLowLines ),
- FSEND );
- exportShapeProps( xStockPropSet );
- pFS->endElement( FSNS( XML_c, XML_hiLowLines ) );
- }
+ exportHiLowLines();
exportUpDownBars(xChartType);
}
@@ -1364,6 +1357,25 @@ void ChartExport::exportStockChart( Reference< chart2::XChartType > xChartType )
pFS->endElement( FSNS( XML_c, XML_stockChart ) );
}
+void ChartExport::exportHiLowLines()
+{
+ FSHelperPtr pFS = GetFS();
+ // export the chart property
+ Reference< ::com::sun::star::chart::XStatisticDisplay > xChartPropProvider( mxDiagram, uno::UNO_QUERY );
+
+ if (!xChartPropProvider.is())
+ return;
+
+ Reference< beans::XPropertySet > xStockPropSet = xChartPropProvider->getMinMaxLine();
+ if( xStockPropSet.is() )
+ {
+ pFS->startElement( FSNS( XML_c, XML_hiLowLines ),
+ FSEND );
+ exportShapeProps( xStockPropSet );
+ pFS->endElement( FSNS( XML_c, XML_hiLowLines ) );
+ }
+}
+
void ChartExport::exportUpDownBars( Reference< chart2::XChartType > xChartType)
{
FSHelperPtr pFS = GetFS();