summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Kosiorek <gang65@poczta.onet.pl>2018-02-18 22:12:29 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-04-07 11:43:08 +0200
commit49c0d98cb2bec7d171f9847b1335874c05042187 (patch)
treef55b8203b7d456291f38540b57d1d5af18fa09ee
parent40e722fd44e3cf026e1aee2b2c2c97eb57b53468 (diff)
Add export of the side wall for 3D chart, during .xlsx export
LibreOffice doens't distinguish between sideWall and backWall. It is controlled by the same Wall property. Change-Id: If1919cf0a9bad3e80544cc5b2ae0f40f606febeb Reviewed-on: https://gerrit.libreoffice.org/49429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl> (cherry picked from commit ff63bae0133e3b90b32af88a4307fb4f5dafd95f) Reviewed-on: https://gerrit.libreoffice.org/50679 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--oox/source/export/chartexport.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 86e7c7c6afb1..d3ff150d47b5 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -735,15 +735,21 @@ void ChartExport::exportChart( const Reference< css::chart::XChartDocument >& xC
pFS->endElement( FSNS( XML_c, XML_floor ) );
}
- // sideWall
-
- // backWall
- Reference< beans::XPropertySet > xBackWall( mxNewDiagram->getWall(), uno::UNO_QUERY );
- if( xBackWall.is() )
+ // LibreOffice doens't distinguish between sideWall and backWall (both are using the same color).
+ // It is controlled by the same Wall property.
+ Reference< beans::XPropertySet > xWall( mxNewDiagram->getWall(), uno::UNO_QUERY );
+ if( xWall.is() )
{
+ // sideWall
+ pFS->startElement( FSNS( XML_c, XML_sideWall ),
+ FSEND );
+ exportShapeProps( xWall );
+ pFS->endElement( FSNS( XML_c, XML_sideWall ) );
+
+ // backWall
pFS->startElement( FSNS( XML_c, XML_backWall ),
FSEND );
- exportShapeProps( xBackWall );
+ exportShapeProps( xWall );
pFS->endElement( FSNS( XML_c, XML_backWall ) );
}