summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-06-28 23:34:34 +0200
committerLaurent BP <laurent.balland-poirier@laposte.net>2016-08-16 20:54:54 +0000
commit428711f03c31802e339e57384b9f925a0e4dcc12 (patch)
treea7c5d08b20a56890943df67bd82e12021aaee4ee /offapi
parent84d9a3642c62d930f4064536659c76a48b9f337e (diff)
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 <ci@libreoffice.org> Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/chart2/RegressionCurveEquation.idl2
-rw-r--r--offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl8
2 files changed, 10 insertions, 0 deletions
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