LibreOffice Module chart2 (master) 1
|
#include <RegressionCurveModel.hxx>
Public Types | |
enum | tCurveType { CURVE_TYPE_MEAN_VALUE , CURVE_TYPE_LINEAR , CURVE_TYPE_LOGARITHM , CURVE_TYPE_EXPONENTIAL , CURVE_TYPE_POWER , CURVE_TYPE_POLYNOMIAL , CURVE_TYPE_MOVING_AVERAGE } |
Public Member Functions | |
RegressionCurveModel (tCurveType eCurveType) | |
RegressionCurveModel (const RegressionCurveModel &rOther) | |
virtual | ~RegressionCurveModel () override |
virtual css::uno::Reference< css::chart2::XRegressionCurveCalculator > SAL_CALL | getCalculator () override |
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL | getEquationProperties () override |
virtual void SAL_CALL | setEquationProperties (const css::uno::Reference< css::beans::XPropertySet > &xEquationProperties) override |
virtual OUString SAL_CALL | getServiceName () override |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
Public Member Functions inherited from property::OPropertySet | |
OPropertySet () | |
virtual | ~OPropertySet () |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override final |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override final |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override final |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override final |
virtual void SAL_CALL | setAllPropertiesToDefault () override final |
virtual void SAL_CALL | setPropertiesToDefault (const css::uno::Sequence< OUString > &aPropertyNames) override final |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyDefaults (const css::uno::Sequence< OUString > &aPropertyNames) override final |
virtual css::uno::Reference< css::style::XStyle > SAL_CALL | getStyle () override final |
virtual void SAL_CALL | setStyle (const css::uno::Reference< css::style::XStyle > &xStyle) override final |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) override final |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Public Member Functions inherited from cppu::OBroadcastHelperVar< class container, class keyType > | |
OBroadcastHelperVar (::osl::Mutex &rMutex_) | |
void | addListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r) |
void | removeListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r) |
OInterfaceContainerHelper *SAL_CALL | getContainer (const keyType &key) const |
Public Member Functions inherited from cppu::OPropertySetHelper | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
css::uno::Sequence< css::uno::Type > | getTypes () |
void SAL_CALL | disposing () |
virtual void SAL_CALL | setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
Protected Member Functions | |
virtual void | GetDefaultValue (sal_Int32 nHandle, css::uno::Any &rAny) const override |
merge XInterface implementations More... | |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
The InfoHelper table contains all property names and types of this object. More... | |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | modified (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void | firePropertyChangeEvent () override |
implement this method in derived classes to get called when properties change. More... | |
void | fireModifyEvent () |
Protected Member Functions inherited from property::OPropertySet | |
OPropertySet (const OPropertySet &rOther) | |
void | SetNewValuesExplicitlyEvenIfTheyEqualDefault () |
virtual void | GetDefaultValue (sal_Int32 nHandle, css::uno::Any &rAny) const =0 |
implement this method to provide default values for all properties supporting defaults. More... | |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override=0 |
The InfoHelper table contains all property names and types of this object. More... | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Try to convert the value rValue to the type required by the property associated with nHandle . More... | |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
The same as setFastPropertyValue; nHandle is always valid. More... | |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
The same as getFastPropertyValue, but return the value through rValue and nHandle is always valid. More... | |
virtual void | firePropertyChangeEvent () |
implement this method in derived classes to get called when properties change. More... | |
Protected Member Functions inherited from cppu::OBroadcastHelperVar< class container, class keyType > | |
OBroadcastHelperVar (::osl::Mutex &rMutex_) | |
void | addListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r) |
void | removeListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r) |
OInterfaceContainerHelper *SAL_CALL | getContainer (const keyType &key) const |
Protected Member Functions inherited from cppu::OPropertySetHelper | |
void SAL_CALL | fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable) |
void SAL_CALL | setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount) |
virtual IPropertyArrayHelper &SAL_CALL | getInfoHelper ()=0 |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
void | setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value) |
~OPropertySetHelper () | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
css::uno::Sequence< css::uno::Type > | getTypes () |
void SAL_CALL | disposing () |
virtual void SAL_CALL | setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
Private Member Functions | |
void | setPropertyMayHaveR2 () |
Private Attributes | |
const tCurveType | m_eRegressionCurveType |
rtl::Reference< ModifyEventForwarder > | m_xModifyEventForwarder |
css::uno::Reference< css::beans::XPropertySet > | m_xEquationProperties |
Additional Inherited Members | |
Static Public Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Public Attributes inherited from cppu::OBroadcastHelperVar< class container, class keyType > | |
::osl::Mutex & | rMutex |
container | aLC |
sal_Bool | bDisposed |
sal_Bool | bInDispose |
Static Protected Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Protected Attributes inherited from cppu::OBroadcastHelperVar< class container, class keyType > | |
::osl::Mutex & | rMutex |
container | aLC |
sal_Bool | bDisposed |
sal_Bool | bInDispose |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Definition at line 49 of file RegressionCurveModel.hxx.
Enumerator | |
---|---|
CURVE_TYPE_MEAN_VALUE | |
CURVE_TYPE_LINEAR | |
CURVE_TYPE_LOGARITHM | |
CURVE_TYPE_EXPONENTIAL | |
CURVE_TYPE_POWER | |
CURVE_TYPE_POLYNOMIAL | |
CURVE_TYPE_MOVING_AVERAGE |
Definition at line 54 of file RegressionCurveModel.hxx.
chart::RegressionCurveModel::RegressionCurveModel | ( | tCurveType | eCurveType | ) |
Definition at line 141 of file RegressionCurveModel.cxx.
References chart::ModifyListenerHelper::addListener(), m_xEquationProperties, m_xModifyEventForwarder, chart::LinePropertiesHelper::PROP_LINE_WIDTH, and property::OPropertySet::setFastPropertyValue_NoBroadcast().
chart::RegressionCurveModel::RegressionCurveModel | ( | const RegressionCurveModel & | rOther | ) |
Definition at line 153 of file RegressionCurveModel.cxx.
References chart::ModifyListenerHelper::addListener(), m_xEquationProperties, and m_xModifyEventForwarder.
|
overridevirtual |
Definition at line 163 of file RegressionCurveModel.cxx.
|
overridevirtual |
Definition at line 225 of file RegressionCurveModel.cxx.
References m_xModifyEventForwarder.
|
overrideprotectedvirtual |
Definition at line 242 of file RegressionCurveModel.cxx.
|
protected |
Definition at line 254 of file RegressionCurveModel.cxx.
References m_xModifyEventForwarder.
Referenced by firePropertyChangeEvent(), and setEquationProperties().
|
overrideprotectedvirtual |
implement this method in derived classes to get called when properties change.
Reimplemented from property::OPropertySet.
Definition at line 248 of file RegressionCurveModel.cxx.
References fireModifyEvent(), and setPropertyMayHaveR2().
|
overridevirtual |
Definition at line 168 of file RegressionCurveModel.cxx.
References chart::RegressionCurveHelper::createRegressionCurveCalculatorByServiceName(), and getServiceName().
|
overrideprotectedvirtual |
merge XInterface implementations
merge XTypeProvider implementations
Implements property::OPropertySet.
Definition at line 260 of file RegressionCurveModel.cxx.
References nHandle.
|
overridevirtual |
Definition at line 173 of file RegressionCurveModel.cxx.
References m_xEquationProperties.
|
overrideprotectedvirtual |
The InfoHelper table contains all property names and types of this object.
Implements property::OPropertySet.
Definition at line 270 of file RegressionCurveModel.cxx.
|
overrideprotectedvirtual |
Definition at line 276 of file RegressionCurveModel.cxx.
|
overridevirtual |
Definition at line 201 of file RegressionCurveModel.cxx.
References CURVE_TYPE_EXPONENTIAL, CURVE_TYPE_LINEAR, CURVE_TYPE_LOGARITHM, CURVE_TYPE_MEAN_VALUE, CURVE_TYPE_MOVING_AVERAGE, CURVE_TYPE_POLYNOMIAL, CURVE_TYPE_POWER, and m_eRegressionCurveType.
Referenced by getCalculator().
|
overrideprotectedvirtual |
Definition at line 236 of file RegressionCurveModel.cxx.
References aEvent, and m_xModifyEventForwarder.
|
overridevirtual |
Definition at line 230 of file RegressionCurveModel.cxx.
References m_xModifyEventForwarder.
|
overridevirtual |
Definition at line 178 of file RegressionCurveModel.cxx.
References chart::ModifyListenerHelper::addListener(), fireModifyEvent(), m_xEquationProperties, m_xModifyEventForwarder, chart::ModifyListenerHelper::removeListener(), and setPropertyMayHaveR2().
|
private |
Definition at line 192 of file RegressionCurveModel.cxx.
References CURVE_TYPE_MOVING_AVERAGE, m_eRegressionCurveType, and m_xEquationProperties.
Referenced by firePropertyChangeEvent(), and setEquationProperties().
|
private |
Definition at line 118 of file RegressionCurveModel.hxx.
Referenced by getServiceName(), and setPropertyMayHaveR2().
|
private |
Definition at line 121 of file RegressionCurveModel.hxx.
Referenced by getEquationProperties(), RegressionCurveModel(), setEquationProperties(), and setPropertyMayHaveR2().
|
private |
Definition at line 120 of file RegressionCurveModel.hxx.
Referenced by addModifyListener(), fireModifyEvent(), modified(), RegressionCurveModel(), removeModifyListener(), and setEquationProperties().