From 2901052174aaaee2101019211117a63078c35a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Mon, 18 Feb 2008 14:59:39 +0000 Subject: [PATCH] INTEGRATION: CWS chart19 (1.9.8); FILE MERGED 2008/01/14 16:08:42 bm 1.9.8.2: #i44768# +getRegressionCurveIndex 2008/01/11 15:58:43 bm 1.9.8.1: #i44768# make it easier to add and modify trendlines --- chart2/source/inc/RegressionCurveHelper.hxx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/chart2/source/inc/RegressionCurveHelper.hxx b/chart2/source/inc/RegressionCurveHelper.hxx index c15818e41d71..7adf21e8008e 100644 --- a/chart2/source/inc/RegressionCurveHelper.hxx +++ b/chart2/source/inc/RegressionCurveHelper.hxx @@ -4,9 +4,9 @@ * * $RCSfile: RegressionCurveHelper.hxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: ihi $ $Date: 2007-11-23 11:58:07 $ + * last change: $Author: rt $ $Date: 2008-02-18 15:59:39 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -106,7 +106,9 @@ public: REGRESSION_TYPE_LINEAR, REGRESSION_TYPE_LOG, REGRESSION_TYPE_EXP, - REGRESSION_TYPE_POWER + REGRESSION_TYPE_POWER, + REGRESSION_TYPE_MEAN_VALUE, + REGRESSION_TYPE_UNKNOWN }; /** Returns the first regression curve found that is not of type @@ -125,6 +127,10 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XRegressionCurveContainer > & xRegCnt ); + static tRegressionType getRegressionType( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XRegressionCurve > & xCurve ); + /** @param xPropertySource is taken as source to copy all properties from if not null @param xEquationProperties is set at the new regression curve as @@ -221,6 +227,13 @@ public: static void resetEquationPosition( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XRegressionCurve > & xCurve ); + /// @return the index of the given curve in the given container. -1 if not contained + static sal_Int32 getRegressionCurveIndex( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XRegressionCurveContainer > & xContainer, + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XRegressionCurve > & xCurve ); + private: // not implemented RegressionCurveHelper();