From 428711f03c31802e339e57384b9f925a0e4dcc12 Mon Sep 17 00:00:00 2001 From: Laurent Balland-Poirier Date: Tue, 28 Jun 2016 23:34:34 +0200 Subject: Start tdf#100547 Trendline equation: customize X, Y names Change trend line UI to add fields: X name and Y name to change "x" and "f(x)" in equation representation Next to be done: save it to ODF file Change-Id: I0680ee1bbfbbb74016ecc858917e10d6790ac63a Reviewed-on: https://gerrit.libreoffice.org/27069 Tested-by: Jenkins Reviewed-by: Laurent BP --- chart2/source/inc/RegressionCurveCalculator.hxx | 5 +++++ chart2/source/inc/chartview/ChartSfxItemIds.hxx | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'chart2/source/inc') diff --git a/chart2/source/inc/RegressionCurveCalculator.hxx b/chart2/source/inc/RegressionCurveCalculator.hxx index 4f8e2604f87f..422c39b3ed55 100644 --- a/chart2/source/inc/RegressionCurveCalculator.hxx +++ b/chart2/source/inc/RegressionCurveCalculator.hxx @@ -60,6 +60,7 @@ protected: bool mForceIntercept; double mInterceptValue; sal_Int32 mPeriod; + OUString mXName, mYName; // ____ XRegressionCurveCalculator ____ virtual void SAL_CALL setRegressionProperties( @@ -98,6 +99,10 @@ protected: const css::uno::Reference< css::util::XNumberFormatsSupplier >& xNumFmtSupplier, sal_Int32 nNumberFormatKey, sal_Int32 nFormulaLength ) throw (css::uno::RuntimeException, std::exception) override; + + virtual void SAL_CALL setXYNames( + const OUString& aXName, const OUString& aYName ) + throw (css::uno::RuntimeException, std::exception) override; }; } // namespace chart diff --git a/chart2/source/inc/chartview/ChartSfxItemIds.hxx b/chart2/source/inc/chartview/ChartSfxItemIds.hxx index 3bce731ebdce..d2b873cf80a0 100644 --- a/chart2/source/inc/chartview/ChartSfxItemIds.hxx +++ b/chart2/source/inc/chartview/ChartSfxItemIds.hxx @@ -169,7 +169,9 @@ #define SCHATTR_REGRESSION_SET_INTERCEPT (SCHATTR_REGRESSION_START + 7) #define SCHATTR_REGRESSION_INTERCEPT_VALUE (SCHATTR_REGRESSION_START + 8) #define SCHATTR_REGRESSION_CURVE_NAME (SCHATTR_REGRESSION_START + 9) -#define SCHATTR_REGRESSION_END SCHATTR_REGRESSION_CURVE_NAME +#define SCHATTR_REGRESSION_XNAME (SCHATTR_REGRESSION_START + 10) +#define SCHATTR_REGRESSION_YNAME (SCHATTR_REGRESSION_START + 11) +#define SCHATTR_REGRESSION_END SCHATTR_REGRESSION_YNAME #define SCHATTR_END SCHATTR_REGRESSION_END -- cgit