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 --- offapi/com/sun/star/chart2/RegressionCurveEquation.idl | 2 ++ offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'offapi/com') diff --git a/offapi/com/sun/star/chart2/RegressionCurveEquation.idl b/offapi/com/sun/star/chart2/RegressionCurveEquation.idl index 1956ce6f5dad..0aea580b9c17 100644 --- a/offapi/com/sun/star/chart2/RegressionCurveEquation.idl +++ b/offapi/com/sun/star/chart2/RegressionCurveEquation.idl @@ -42,6 +42,8 @@ service RegressionCurveEquation service ::com::sun::star::style::CharacterProperties; [property] boolean ShowEquation; + [property] string XName; + [property] string YName; [property] boolean ShowCorrelationCoefficient; [property, maybevoid] ::com::sun::star::chart2::RelativePosition RelativePosition; diff --git a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl index ce0632c861c9..e7599ae4480d 100644 --- a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl +++ b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl @@ -162,6 +162,14 @@ interface XRegressionCurveCalculator : com::sun::star::uno::XInterface [in] long nNumberFormatKey, [in] long nFormulaLength ); + /** Set the names of X and Y variables of the equation to replace "x" and "f(x)" in representation + + @param aXName string of the name of X variable + @param aYName string of the name of Y variable + */ + void setXYNames( [in] string aXName, + [in] string aYName ); + }; } ; // chart2 -- cgit v1.2.3