summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2019-01-04 15:12:38 +0100
committerBartosz Kosiorek <gang65@poczta.onet.pl>2019-01-07 13:54:55 +0100
commit015569fc919b702f7a1b0f09038bafa9f104ca70 (patch)
tree2eb901dd27f288aa6c3c2a961ce6be8f2b0baf09 /oox/inc
parent7fc28192864c30ae95b24aceb9cdf7e869dc9dcf (diff)
tdf#122091 OOXML Import: Automatically break of X Axis labels
Set the TextBreak value automatically true, only if the X axis labels rotation is 0 degree. The MS Office using a similar method because there is no any XML tag in the OOXML standard which refer to this setting. Change-Id: Ie84a95935f0d5c4c1f9a30803e22572141385960 Reviewed-on: https://gerrit.libreoffice.org/65853 Tested-by: Jenkins Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/drawingml/chart/objectformatter.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/inc/drawingml/chart/objectformatter.hxx b/oox/inc/drawingml/chart/objectformatter.hxx
index 446c3d899293..8282844b1ab3 100644
--- a/oox/inc/drawingml/chart/objectformatter.hxx
+++ b/oox/inc/drawingml/chart/objectformatter.hxx
@@ -144,6 +144,11 @@ public:
/** Returns true, if the passed shape properties have automatic fill mode. */
static bool isAutomaticFill( const ModelRef< Shape >& rxShapeProp );
+ /** Returns true, if the X Axis label rotation is 0 degree. */
+ static bool getTextRotation(
+ const ModelRef< TextBody >& rxTextProp,
+ sal_Int32 nDefaultRotation = 0 );
+
private:
std::shared_ptr< ObjectFormatterData > mxData;
};