summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-21 19:16:38 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-22 05:38:59 +0200
commita4f16736496fda7b29561de14fe8990028e88799 (patch)
tree625c969199be56e432f024974ddad67c9e7154d6 /oox
parentc8961a43bd6605f4a06165f31f7a7fbb8ffdb8d0 (diff)
first step for better scatterStyle export
Change-Id: I33f7a0e629564834730a13a8501100a62f16017e
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index f8a33a87b961..cd1d81413305 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1558,7 +1558,18 @@ void ChartExport::exportScatterChart( Reference< chart2::XChartType > xChartType
pFS->startElement( FSNS( XML_c, XML_scatterChart ),
FSEND );
// TODO:scatterStyle
+
+ sal_Int32 nSymbolType = ::com::sun::star::chart::ChartSymbolType::NONE;
+ Reference< XPropertySet > xPropSet( mxDiagram , uno::UNO_QUERY);
+ if( GetProperty( xPropSet, "SymbolType" ) )
+ mAny >>= nSymbolType;
+
const char* scatterStyle = "lineMarker";
+ if (nSymbolType == css::chart::ChartSymbolType::NONE)
+ {
+ scatterStyle = "line";
+ }
+
pFS->singleElement( FSNS( XML_c, XML_scatterStyle ),
XML_val, scatterStyle,
FSEND );