diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-02-11 07:53:15 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-02-22 07:36:21 +0100 |
commit | 4141533a3fb984fbaefe87b15fceeda7f2082061 (patch) | |
tree | 46b7dc9e659033666cdef2275ec283dd2de8fd96 /offapi | |
parent | c40ce0c542b46d45a00561a926953df2fe9a9762 (diff) |
[API CHANGE] tdf#133423 Implement chart:regression-moving-type
Change-Id: Icb967367fbf12e5a1566b7f18ebe5e3d8a3534f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110748
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 1 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/MovingAverageType.idl | 35 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/RegressionCurve.idl | 2 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl | 7 |
4 files changed, 44 insertions, 1 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 5e2384552b5b..020149df1311 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -653,6 +653,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,com/sun/star/chart2,\ GridProperties \ Legend \ LogicTargetModel \ + MovingAverageType \ PropertyPool \ RegressionCurve \ RegressionCurveEquation \ diff --git a/offapi/com/sun/star/chart2/MovingAverageType.idl b/offapi/com/sun/star/chart2/MovingAverageType.idl new file mode 100644 index 000000000000..3b2ff6c22ca0 --- /dev/null +++ b/offapi/com/sun/star/chart2/MovingAverageType.idl @@ -0,0 +1,35 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef com_sun_star_chart2_MovingAverageType_idl +#define com_sun_star_chart2_MovingAverageType_idl + +module com +{ +module sun +{ +module star +{ +module chart2 +{ + +constants MovingAverageType { + const long Prior = 1; + const long Central = 2; + const long AveragedAbscissa = 3; +}; + +} ; // chart2 +} ; // com +} ; // sun +} ; // star + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/offapi/com/sun/star/chart2/RegressionCurve.idl b/offapi/com/sun/star/chart2/RegressionCurve.idl index 72c2684180cd..3ba881465a6c 100644 --- a/offapi/com/sun/star/chart2/RegressionCurve.idl +++ b/offapi/com/sun/star/chart2/RegressionCurve.idl @@ -39,6 +39,8 @@ service RegressionCurve service ::com::sun::star::drawing::LineProperties; interface XRegressionCurve; + + [property] long MovingAverageType; }; } ; // chart2 diff --git a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl index 8162b8cfb781..c4313f42b30d 100644 --- a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl +++ b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl @@ -52,11 +52,16 @@ interface XRegressionCurveCalculator : com::sun::star::uno::XInterface @param interceptValue Intercept value. + @param movingType + Only if regression type is "Moving Average" + @see ::com::sun::star::chart2::MovingAverageType + */ void setRegressionProperties( [in] long degree, [in] boolean forceIntercept, [in] double interceptValue, - [in] long period); + [in] long period, + [in] long movingType); /** recalculates the parameters of the internal regression curve according to the <i>x</i>- and <i>y</i>-values given. |