LibreOffice Module chart2 (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
chart::BaseCoordinateSystem Class Reference

#include <BaseCoordinateSystem.hxx>

Inheritance diagram for chart::BaseCoordinateSystem:
[legend]
Collaboration diagram for chart::BaseCoordinateSystem:
[legend]

Public Member Functions

 BaseCoordinateSystem (sal_Int32 nDimensionCount)
 
 BaseCoordinateSystem (const BaseCoordinateSystem &rSource)
 
virtual ~BaseCoordinateSystem () override
 
virtual void GetDefaultValue (sal_Int32 nHandle, css::uno::Any &rAny) const override
 implement this method to provide default values for all properties supporting defaults. 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 ::sal_Int32 SAL_CALL getDimension () override
 merge XInterface implementations More...
 
virtual void SAL_CALL setAxisByDimension (::sal_Int32 nDimension, const css::uno::Reference< css::chart2::XAxis > &xAxis, ::sal_Int32 nIndex) override
 
virtual css::uno::Reference< css::chart2::XAxis > SAL_CALL getAxisByDimension (::sal_Int32 nDimension, ::sal_Int32 nIndex) override
 
virtual ::sal_Int32 SAL_CALL getMaximumAxisIndexByDimension (::sal_Int32 nDimension) override
 
virtual void SAL_CALL addChartType (const css::uno::Reference< css::chart2::XChartType > &aChartType) override
 
virtual void SAL_CALL removeChartType (const css::uno::Reference< css::chart2::XChartType > &aChartType) override
 
virtual css::uno::Sequence< css::uno::Reference< css::chart2::XChartType > > SAL_CALL getChartTypes () override
 
virtual void SAL_CALL setChartTypes (const css::uno::Sequence< css::uno::Reference< css::chart2::XChartType > > &aChartTypes) final 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
 
void setAxisByDimension (sal_Int32 nDimension, const rtl::Reference< ::chart::Axis > &xAxis, sal_Int32 nIndex)
 
const rtl::Reference< ::chart::Axis > & getAxisByDimension2 (sal_Int32 nDimension, sal_Int32 nIndex) const
 
void setChartTypes (const std::vector< rtl::Reference< ::chart::ChartType > > &aChartTypes)
 
const std::vector< rtl::Reference<::chart::ChartType > > & getChartTypes2 () const
 
- 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 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 Types

typedef std::vector< std::vector< rtl::Reference< ::chart::Axis > > > tAxisVecVecType
 

Private Attributes

rtl::Reference< ModifyEventForwarderm_xModifyEventForwarder
 
sal_Int32 m_nDimensionCount
 
tAxisVecVecType m_aAllAxis
 
std::vector< rtl::Reference<::chart::ChartType > > m_aChartTypes
 

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
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Detailed Description

Definition at line 49 of file BaseCoordinateSystem.hxx.

Member Typedef Documentation

◆ tAxisVecVecType

typedef std::vector< std::vector< rtl::Reference< ::chart::Axis > > > chart::BaseCoordinateSystem::tAxisVecVecType
private

Definition at line 122 of file BaseCoordinateSystem.hxx.

Constructor & Destructor Documentation

◆ BaseCoordinateSystem() [1/2]

chart::BaseCoordinateSystem::BaseCoordinateSystem ( sal_Int32  nDimensionCount)

◆ BaseCoordinateSystem() [2/2]

chart::BaseCoordinateSystem::BaseCoordinateSystem ( const BaseCoordinateSystem rSource)
explicit

◆ ~BaseCoordinateSystem()

chart::BaseCoordinateSystem::~BaseCoordinateSystem ( )
overridevirtual

Member Function Documentation

◆ addChartType()

void SAL_CALL chart::BaseCoordinateSystem::addChartType ( const css::uno::Reference< css::chart2::XChartType > &  aChartType)
overridevirtual

◆ addModifyListener()

void SAL_CALL chart::BaseCoordinateSystem::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

Definition at line 322 of file BaseCoordinateSystem.cxx.

References m_xModifyEventForwarder.

◆ disposing()

void SAL_CALL chart::BaseCoordinateSystem::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

Definition at line 339 of file BaseCoordinateSystem.cxx.

◆ fireModifyEvent()

void chart::BaseCoordinateSystem::fireModifyEvent ( )
protected

◆ firePropertyChangeEvent()

void chart::BaseCoordinateSystem::firePropertyChangeEvent ( )
overrideprotectedvirtual

implement this method in derived classes to get called when properties change.

Reimplemented from property::OPropertySet.

Definition at line 345 of file BaseCoordinateSystem.cxx.

References fireModifyEvent().

◆ getAxisByDimension()

Reference< chart2::XAxis > SAL_CALL chart::BaseCoordinateSystem::getAxisByDimension ( ::sal_Int32  nDimension,
::sal_Int32  nIndex 
)
overridevirtual

◆ getAxisByDimension2()

const rtl::Reference< Axis > & chart::BaseCoordinateSystem::getAxisByDimension2 ( sal_Int32  nDimension,
sal_Int32  nIndex 
) const

Definition at line 233 of file BaseCoordinateSystem.cxx.

References m_aAllAxis, m_nDimensionCount, o3tl::make_unsigned(), and size.

◆ getChartTypes()

Sequence< Reference< chart2::XChartType > > SAL_CALL chart::BaseCoordinateSystem::getChartTypes ( )
overridevirtual

Definition at line 291 of file BaseCoordinateSystem.cxx.

References m_aChartTypes.

◆ getChartTypes2()

const std::vector< rtl::Reference<::chart::ChartType > > & chart::BaseCoordinateSystem::getChartTypes2 ( ) const
inline

Definition at line 101 of file BaseCoordinateSystem.hxx.

◆ GetDefaultValue()

void chart::BaseCoordinateSystem::GetDefaultValue ( sal_Int32  nHandle,
css::uno::Any &  rAny 
) const
overridevirtual

implement this method to provide default values for all properties supporting defaults.

If a property does not have a default value, you may throw an UnknownPropertyException. We pass the any by reference because this code is very hot and doing it this way is cheaper than the two step process of constructing a new any and then assigning to via a return value.

Exceptions
css::beans::UnknownPropertyException
css::uno::RuntimeException

Implements property::OPropertySet.

Definition at line 356 of file BaseCoordinateSystem.cxx.

References nHandle.

◆ getDimension()

sal_Int32 SAL_CALL chart::BaseCoordinateSystem::getDimension ( )
override

merge XInterface implementations

merge XTypeProvider implementations

Definition at line 160 of file BaseCoordinateSystem.cxx.

References m_nDimensionCount.

Referenced by getAxisByDimension(), and getMaximumAxisIndexByDimension().

◆ getInfoHelper()

cppu::IPropertyArrayHelper &SAL_CALL chart::BaseCoordinateSystem::getInfoHelper ( )
overridevirtual

The InfoHelper table contains all property names and types of this object.

Returns
the object that provides information for the PropertySetInfo
See also
cppu::OPropertySetHelper

Implements property::OPropertySet.

Definition at line 367 of file BaseCoordinateSystem.cxx.

◆ getMaximumAxisIndexByDimension()

sal_Int32 SAL_CALL chart::BaseCoordinateSystem::getMaximumAxisIndexByDimension ( ::sal_Int32  nDimension)
override

Definition at line 247 of file BaseCoordinateSystem.cxx.

References getDimension(), and m_aAllAxis.

Referenced by getAxisByDimension().

◆ getPropertySetInfo()

Reference< beans::XPropertySetInfo > SAL_CALL chart::BaseCoordinateSystem::getPropertySetInfo ( )
overridevirtual

◆ modified()

void SAL_CALL chart::BaseCoordinateSystem::modified ( const css::lang::EventObject &  aEvent)
overrideprotectedvirtual

Definition at line 333 of file BaseCoordinateSystem.cxx.

References aEvent, and m_xModifyEventForwarder.

◆ removeChartType()

void SAL_CALL chart::BaseCoordinateSystem::removeChartType ( const css::uno::Reference< css::chart2::XChartType > &  aChartType)
overridevirtual

◆ removeModifyListener()

void SAL_CALL chart::BaseCoordinateSystem::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

Definition at line 327 of file BaseCoordinateSystem.cxx.

References m_xModifyEventForwarder.

◆ setAxisByDimension() [1/2]

virtual void SAL_CALL chart::BaseCoordinateSystem::setAxisByDimension ( ::sal_Int32  nDimension,
const css::uno::Reference< css::chart2::XAxis > &  xAxis,
::sal_Int32  nIndex 
)
overridevirtual

◆ setAxisByDimension() [2/2]

void chart::BaseCoordinateSystem::setAxisByDimension ( sal_Int32  nDimension,
const rtl::Reference< ::chart::Axis > &  xAxis,
sal_Int32  nIndex 
)

◆ setChartTypes() [1/2]

virtual void SAL_CALL chart::BaseCoordinateSystem::setChartTypes ( const css::uno::Sequence< css::uno::Reference< css::chart2::XChartType > > &  aChartTypes)
finaloverridevirtual

◆ setChartTypes() [2/2]

void chart::BaseCoordinateSystem::setChartTypes ( const std::vector< rtl::Reference< ::chart::ChartType > > &  aChartTypes)

Member Data Documentation

◆ m_aAllAxis

tAxisVecVecType chart::BaseCoordinateSystem::m_aAllAxis
private

◆ m_aChartTypes

std::vector< rtl::Reference<::chart::ChartType > > chart::BaseCoordinateSystem::m_aChartTypes
private

◆ m_nDimensionCount

sal_Int32 chart::BaseCoordinateSystem::m_nDimensionCount
private

◆ m_xModifyEventForwarder

rtl::Reference<ModifyEventForwarder> chart::BaseCoordinateSystem::m_xModifyEventForwarder
private

The documentation for this class was generated from the following files: