summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes/VCartesianAxis.hxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-06-05 22:45:43 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-06-11 10:24:57 +0000
commit99226f343e4ad9ebcbb4e31c17d3fb706153e18b (patch)
treee54430f4e6525b12ae9a5d9fb251bebd495fb421 /chart2/source/view/axes/VCartesianAxis.hxx
parentffac8e3a483c84de2961784fceac2b21aa39a18c (diff)
try auto rotate tick labels only when useful tdf#99883
By default we try to fit as many tick labels as possible on an axis. One way is (auto) rotating the labels at 45 degrees. But rotating only works for horizontal axes with horizontal text or vertical axes with vertical text, else rotated tick labels need more space. Join the check for this prerequisite with isAutoStaggeringOfLabelsAllowed. while here make isAutoStaggeringOfLabelsAllowed local and wrap stuff in anonymous namespaces Change-Id: I5784d0e5aa42ff90927e19d0bd2c6fed488d39f4 Reviewed-on: https://gerrit.libreoffice.org/25792 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'chart2/source/view/axes/VCartesianAxis.hxx')
-rw-r--r--chart2/source/view/axes/VCartesianAxis.hxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.hxx b/chart2/source/view/axes/VCartesianAxis.hxx
index 8ba89a455380..61c14d4f5473 100644
--- a/chart2/source/view/axes/VCartesianAxis.hxx
+++ b/chart2/source/view/axes/VCartesianAxis.hxx
@@ -147,13 +147,6 @@ private: //methods
, TickFactory2D* pTickFactory2D );
/**
- * @return true if we can try to stagger labels in order to avoid
- * overlaps, otherwise false.
- */
- static bool isAutoStaggeringOfLabelsAllowed(
- const AxisLabelProperties& rAxisLabelProperties, bool bIsHorizontalAxis, bool bIsVerticalAxis );
-
- /**
* @return true if we can break a single line label text into multiple
* lines for better fitting, otherwise false.
*/