diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-06 16:09:22 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-06 16:09:22 +0000 |
commit | d2296d00564eb4427084d1b47252db90a18320f1 (patch) | |
tree | 7309c4d893e57f640ae6afb9008bcd8bbf15fba5 /chart2 | |
parent | 4a6b423438ff5e3941f78ee9cbc165245aa8a583 (diff) |
INTEGRATION: CWS chart20_DEV300 (1.2.228); FILE MERGED
2008/02/22 16:51:28 bm 1.2.228.2: #i366# +removeErrorBars()
2008/02/21 15:59:27 bm 1.2.228.1: #i366# error bars from ranges
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/StatisticsHelper.hxx | 76 |
1 files changed, 72 insertions, 4 deletions
diff --git a/chart2/source/inc/StatisticsHelper.hxx b/chart2/source/inc/StatisticsHelper.hxx index 216f608f3222..776217eac0dd 100644 --- a/chart2/source/inc/StatisticsHelper.hxx +++ b/chart2/source/inc/StatisticsHelper.hxx @@ -4,9 +4,9 @@ * * $RCSfile: StatisticsHelper.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2005-09-08 00:46:42 $ + * last change: $Author: kz $ $Date: 2008-03-06 17:09:22 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -35,9 +35,11 @@ #ifndef CHART2_STATISTICSHELPER_HXX #define CHART2_STATISTICSHELPER_HXX -#ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_ #include <com/sun/star/uno/Sequence.hxx> -#endif +#include <com/sun/star/uno/XComponentContext.hpp> +#include <com/sun/star/chart2/data/XDataSource.hpp> +#include <com/sun/star/chart2/data/XDataProvider.hpp> +#include <com/sun/star/chart2/XDataSeries.hpp> namespace chart { @@ -61,6 +63,72 @@ public: // also called "Standard deviation of the mean (SDOM)" static double getStandardError( const ::com::sun::star::uno::Sequence< double > & rData ); + static ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::data::XLabeledDataSequence > + getErrorLabeledDataSequenceFromDataSource( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::data::XDataSource > & xDataSource, + bool bPositiveValue, + bool bYError = true ); + + static ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::data::XDataSequence > + getErrorDataSequenceFromDataSource( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::data::XDataSource > & xDataSource, + bool bPositiveValue, + bool bYError = true ); + + static double getErrorFromDataSource( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::data::XDataSource > & xDataSource, + sal_Int32 nIndex, + bool bPositiveValue, + bool bYError = true ); + + static void setErrorDataSequence( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::data::XDataSource > & xDataSource, + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::data::XDataProvider > & xDataProvider, + const ::rtl::OUString & rNewRange, + bool bPositiveValue, + bool bYError = true, + ::rtl::OUString * pXMLRange = 0 ); + + /// @return the newly created or existing error bar object + static ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet > + addErrorBars( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XDataSeries > & xDataSeries, + const ::com::sun::star::uno::Reference< + ::com::sun::star::uno::XComponentContext > & xContext, + sal_Int32 nStyle, + bool bYError = true ); + + static ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet > + getErrorBars( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XDataSeries > & xDataSeries, + bool bYError = true ); + + static bool hasErrorBars( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XDataSeries > & xDataSeries, + bool bYError = true ); + + static void removeErrorBars( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XDataSeries > & xDataSeries, + bool bYError = true ); + + static bool usesErrorBarRanges( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XDataSeries > & xDataSeries, + bool bYError = true ); + private: // not implemented StatisticsHelper(); |