diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2015-07-19 18:18:00 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-09 07:41:51 +0000 |
commit | 9ed1dd01be8afa0961e388a79e9ff4c1235820c2 (patch) | |
tree | 366cad6bae91e791be462e4c03f499ab0ba3e2f2 /offapi | |
parent | 79bc956e7f44b762bfd6560e5a9c9812fa3dcf4d (diff) |
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>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/chart/ChartDataPointProperties.idl | 5 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/DataPointProperties.idl | 4 | ||||
-rw-r--r-- | offapi/type_reference/offapi.idl | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/offapi/com/sun/star/chart/ChartDataPointProperties.idl b/offapi/com/sun/star/chart/ChartDataPointProperties.idl index 61aeec40547f..8b586dce08cf 100644 --- a/offapi/com/sun/star/chart/ChartDataPointProperties.idl +++ b/offapi/com/sun/star/chart/ChartDataPointProperties.idl @@ -92,6 +92,11 @@ published service ChartDataPointProperties [optional, property] string LabelSeparator; + /** specifies if the text of a data label (caption) must be wrapped + */ + [optional, property] boolean TextWordWrap; + + /** specifies a number format for the display of the value in the data label */ [optional, property] long NumberFormat; diff --git a/offapi/com/sun/star/chart2/DataPointProperties.idl b/offapi/com/sun/star/chart2/DataPointProperties.idl index 647d4edb0f21..090d08661e68 100644 --- a/offapi/com/sun/star/chart2/DataPointProperties.idl +++ b/offapi/com/sun/star/chart2/DataPointProperties.idl @@ -262,6 +262,10 @@ service DataPointProperties */ [optional, property] string LabelSeparator; + /** specifies if the text of a data label (caption) must be wrapped + */ + [optional, property] boolean TextWordWrap; + /** specifies a number format for the display of the value in the data label */ [optional, property] long NumberFormat; diff --git a/offapi/type_reference/offapi.idl b/offapi/type_reference/offapi.idl index f95e6b7f1844..888180e03ff4 100644 --- a/offapi/type_reference/offapi.idl +++ b/offapi/type_reference/offapi.idl @@ -3136,6 +3136,7 @@ module com { interface ::com::sun::star::beans::XPropertySet; [property] long DataCaption; [property, optional] string LabelSeparator; + [property, optional] boolean TextWordWrap; [property, optional] long NumberFormat; [property, optional] long PercentageNumberFormat; [property, optional] long LabelPlacement; |