tdf#90839: support for wrapped text in data labels and for centered data value
commit9ed1dd01be8afa0961e388a79e9ff4c1235820c2
authorMarco Cecchetti <marco.cecchetti@collabora.com>
Sun, 19 Jul 2015 16:18:00 +0000 (19 18:18 +0200)
committerAndras Timar <andras.timar@collabora.com>
Wed, 9 Sep 2015 07:41:51 +0000 (9 07:41 +0000)
tree366cad6bae91e791be462e4c03f499ab0ba3e2f2
parent79bc956e7f44b762bfd6560e5a9c9812fa3dcf4d
tdf#90839: support for wrapped text in data labels and for centered data value

Now in a pie chart the text of a label can be wrapped, the wrapping is
automatic and the maximum text width is fixed to almost half the pie
radius. This feature is used to import correctly the relative text
wrapping property provided by MSO.

Moreover the data value and percent value of a label are now centered
horizontally, respect with the label text.

Conflicts:
chart2/qa/extras/xshape/chart2xshape.cxx

Change-Id: Ie10d6184365436f763cd9693a5bbefcfa9b3862b
Reviewed-on: https://gerrit.libreoffice.org/17193
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
37 files changed:
chart2/qa/extras/xshape/chart2xshape.cxx
chart2/qa/extras/xshape/data/ods/tdf90839-4.ods [new file with mode: 0644]
chart2/qa/extras/xshape/data/reference/tdf90839-1.xml
chart2/qa/extras/xshape/data/reference/tdf90839-2.xml [copied from chart2/qa/extras/xshape/data/reference/tdf90839-1.xml with 72% similarity]
chart2/qa/extras/xshape/data/reference/tdf90839-3.xml [copied from chart2/qa/extras/xshape/data/reference/tdf90839-1.xml with 74% similarity]
chart2/qa/extras/xshape/data/reference/tdf90839-4.xml [copied from chart2/qa/extras/xshape/data/reference/tdf90839-1.xml with 71% similarity]
chart2/qa/extras/xshape/data/xlsx/tdf90839-2.xlsx [new file with mode: 0644]
chart2/qa/extras/xshape/data/xlsx/tdf90839-3.xlsx [new file with mode: 0644]
chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
chart2/source/controller/dialogs/res_DataLabel.cxx
chart2/source/controller/dialogs/res_DataLabel.hxx
chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx
chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx
chart2/source/inc/chartview/ChartSfxItemIds.hxx
chart2/source/model/main/DataPointProperties.cxx
chart2/source/model/main/DataPointProperties.hxx
chart2/source/view/charttypes/PieChart.cxx
chart2/source/view/charttypes/VSeriesPlotter.cxx
chart2/source/view/inc/AbstractShapeFactory.hxx
chart2/source/view/inc/OpenglShapeFactory.hxx
chart2/source/view/inc/ShapeFactory.hxx
chart2/source/view/inc/VSeriesPlotter.hxx
chart2/source/view/main/ChartItemPool.cxx
chart2/source/view/main/OpenglShapeFactory.cxx
chart2/source/view/main/ShapeFactory.cxx
chart2/uiconfig/ui/dlg_DataLabel.ui
chart2/uiconfig/ui/tp_DataLabel.ui
include/xmloff/xmltoken.hxx
offapi/com/sun/star/chart/ChartDataPointProperties.idl
offapi/com/sun/star/chart2/DataPointProperties.idl
offapi/type_reference/offapi.idl
oox/inc/drawingml/chart/objectformatter.hxx
oox/source/drawingml/chart/objectformatter.cxx
oox/source/drawingml/chart/seriesconverter.cxx
xmloff/source/chart/PropertyMap.hxx
xmloff/source/chart/PropertyMaps.cxx
xmloff/source/core/xmltoken.cxx