diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2018-02-18 22:12:29 +0100 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2018-02-19 21:19:47 +0100 |
commit | ff63bae0133e3b90b32af88a4307fb4f5dafd95f (patch) | |
tree | 1560b9ada013772ef92745410e2f009b2d40a3ea | |
parent | 8d4d2bf5405ef9d4b0b126f96f882f01031defd6 (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>
-rw-r--r-- | oox/source/export/chartexport.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index cb4994aa89be..085427e803bb 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -738,15 +738,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 ) ); } |