From addcd016bf1bed16299697fd18b8f9b1faf2cf3f Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sat, 13 Aug 2022 14:14:00 +0200 Subject: chart2: support data table rendering when the X axis is swapped MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In case when the X axis is swapped, so the Y axis is rendered in the place of X axis, we need to render the data table below the Y-axis labels. This is best done to put the data table into the Y-axis instead, so we get the correct size and position of the data table, and then just allow rendering of the axis labels and (re)position the table below Y-axis. Change-Id: I74aa79402a5638133b0d1ed83bbd8aad6f6c9d1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138336 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- chart2/source/view/axes/VCartesianAxis.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chart2/source/view/axes/VCartesianAxis.hxx') diff --git a/chart2/source/view/axes/VCartesianAxis.hxx b/chart2/source/view/axes/VCartesianAxis.hxx index 132887510eff..210f36dd4802 100644 --- a/chart2/source/view/axes/VCartesianAxis.hxx +++ b/chart2/source/view/axes/VCartesianAxis.hxx @@ -156,6 +156,8 @@ private: //methods ::basegfx::B2DVector getScreenPosition( double fLogicX, double fLogicY, double fLogicZ ) const; ScreenPosAndLogicPos getScreenPosAndLogicPos( double fLogicX, double fLogicY, double fLogicZ ) const; + + void createDataTableShape(std::unique_ptr const& rTickFactory2D); }; } //namespace chart -- cgit