diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2018-02-18 22:12:29 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-04-12 10:54:39 +0200 |
commit | d8c6730472a002483740bc794febe1323b474ceb (patch) | |
tree | 8b128cf74a336dee87fd0e78b551c7c3ef25c1d6 /oox/source | |
parent | 0125d4b72f346d248b10c03c75c70fcb5c5b3fe8 (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>
(cherry picked from commit 49c0d98cb2bec7d171f9847b1335874c05042187)
Diffstat (limited to 'oox/source')
-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 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 ) ); } |