LibreOffice Module chart2 (master) 1
|
#include <AreaChartTypeTemplate.hxx>
Public Member Functions | |
AreaChartTypeTemplate (css::uno::Reference< css::uno::XComponentContext > const &xContext, const OUString &rServiceName, StackMode eStackMode, sal_Int32 nDim=2) | |
virtual | ~AreaChartTypeTemplate () override |
Public Member Functions inherited from chart::ChartTypeTemplate | |
ChartTypeTemplate (css::uno::Reference< css::uno::XComponentContext > const &xContext, OUString aServiceName) | |
virtual | ~ChartTypeTemplate () override |
rtl::Reference< ::chart::Diagram > | createDiagramByDataSource2 (const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, const css::uno::Sequence< css::beans::PropertyValue > &aArguments) |
virtual css::uno::Reference< css::chart2::XDiagram > SAL_CALL | createDiagramByDataSource (const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override final |
virtual sal_Bool SAL_CALL | supportsCategories () override |
denotes if the chart needs categories at the first scale More... | |
virtual void SAL_CALL | changeDiagram (const css::uno::Reference< css::chart2::XDiagram > &xDiagram) override final |
virtual void SAL_CALL | changeDiagramData (const css::uno::Reference< css::chart2::XDiagram > &xDiagram, const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override final |
virtual sal_Bool SAL_CALL | matchesTemplate (const css::uno::Reference< css::chart2::XDiagram > &xDiagram, sal_Bool bAdaptProperties) override final |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getDataInterpreter () override final |
virtual css::uno::Reference< ::css::chart2::XChartType > SAL_CALL | getChartTypeForNewSeries (const css::uno::Sequence< css::uno::Reference< css::chart2::XChartType > > &aFormerlyUsedChartTypes) override final |
virtual void SAL_CALL | applyStyle (const css::uno::Reference< css::chart2::XDataSeries > &xSeries, ::sal_Int32 nChartTypeIndex, ::sal_Int32 nSeriesIndex, ::sal_Int32 nSeriesCount) override final |
virtual void SAL_CALL | resetStyles (const css::uno::Reference< css::chart2::XDiagram > &xDiagram) override final |
void | changeDiagram (const rtl::Reference< ::chart::Diagram > &xDiagram) |
void | changeDiagramData (const rtl::Reference< ::chart::Diagram > &xDiagram, const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, const css::uno::Sequence< css::beans::PropertyValue > &aArguments) |
virtual bool | matchesTemplate2 (const rtl::Reference< ::chart::Diagram > &xDiagram, bool bAdaptProperties) |
virtual rtl::Reference< ::chart::ChartType > | getChartTypeForNewSeries2 (const std::vector< rtl::Reference< ::chart::ChartType > > &aFormerlyUsedChartTypes)=0 |
virtual rtl::Reference< ::chart::DataInterpreter > | getDataInterpreter2 () |
virtual void | applyStyle2 (const rtl::Reference< ::chart::DataSeries > &xSeries, ::sal_Int32 nChartTypeIndex, ::sal_Int32 nSeriesIndex, ::sal_Int32 nSeriesCount) |
virtual void | resetStyles2 (const rtl::Reference< ::chart::Diagram > &xDiagram) |
void | applyStyles (const rtl::Reference< ::chart::Diagram > &xDiagram) |
virtual OUString SAL_CALL | getServiceName () override |
virtual sal_Int32 | getDimension () const |
returns 2 by default. Supported are 2 and 3 More... | |
virtual StackMode | getStackMode (sal_Int32 nChartTypeIndex) const |
returns StackMode::NONE by default. More... | |
virtual rtl::Reference< ::chart::ChartType > | getChartTypeForIndex (sal_Int32 nChartTypeIndex)=0 |
virtual bool | isSwapXAndY () const |
virtual void | adaptDiagram (const rtl::Reference< ::chart::Diagram > &xDiagram) |
Allows derived classes to manipulate the diagrams whole, like changing the wall color. More... | |
virtual void | createCoordinateSystems (const rtl::Reference< ::chart::Diagram > &xDiagram) |
Creates a 2d or 3d cartesian coordinate system with mathematically oriented, linear scales with auto-min/max. More... | |
virtual void | adaptScales (const std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > &aCooSysSeq, const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &xCategories) |
Sets categories at the scales of dimension 0 and the percent stacking at the scales of dimension 1 of all given coordinate systems. More... | |
virtual void | createChartTypes (const std::vector< std::vector< rtl::Reference< ::chart::DataSeries > > > &aSeriesSeq, const std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > &rCoordSys, const std::vector< rtl::Reference< ChartType > > &aOldChartTypesSeq) |
create a data series tree, that fits the requirements of the chart type. More... | |
void | createAxes (const std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > &rCoordSys) |
create axes and add them to the given container. More... | |
virtual sal_Int32 | getAxisCountByDimension (sal_Int32 nDimension) |
Give the number of requested axis per dimension here. More... | |
virtual void | adaptAxes (const std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > &rCoordSys) |
adapt properties of existing axes and remove superfluous axes More... | |
const css::uno::Reference< css::uno::XComponentContext > & | GetComponentContext () 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 | 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 rtl::Reference< ::chart::ChartType > | getChartTypeForNewSeries2 (const std::vector< rtl::Reference< ::chart::ChartType > > &aFormerlyUsedChartTypes) override |
virtual void | applyStyle2 (const rtl::Reference< ::chart::DataSeries > &xSeries, ::sal_Int32 nChartTypeGroupIndex, ::sal_Int32 nSeriesIndex, ::sal_Int32 nSeriesCount) override |
virtual void | resetStyles2 (const rtl::Reference< ::chart::Diagram > &xDiagram) override |
virtual rtl::Reference< ::chart::ChartType > | getChartTypeForIndex (sal_Int32 nChartTypeIndex) override |
virtual sal_Int32 | getDimension () const override |
returns 2 by default. Supported are 2 and 3 More... | |
virtual StackMode | getStackMode (sal_Int32 nChartTypeIndex) const override |
returns StackMode::NONE by default. More... | |
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 Attributes | |
StackMode | m_eStackMode |
Additional Inherited Members | |
Static Public Member Functions inherited from chart::ChartTypeTemplate | |
static void | copyPropertiesFromOldToNewCoordinateSystem (const std::vector< rtl::Reference< ChartType > > &rOldChartTypesSeq, const rtl::Reference< ChartType > &xNewChartType) |
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 chart::ChartTypeTemplate | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
rtl::Reference< ::chart::DataInterpreter > | m_xDataInterpreter |
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 30 of file AreaChartTypeTemplate.hxx.
|
explicit |
Definition at line 78 of file AreaChartTypeTemplate.cxx.
References property::OPropertySet::setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Definition at line 90 of file AreaChartTypeTemplate.cxx.
|
overrideprotectedvirtual |
Reimplemented from chart::ChartTypeTemplate.
Definition at line 145 of file AreaChartTypeTemplate.cxx.
References chart::ChartTypeTemplate::applyStyle2(), and chart::DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints().
|
overrideprotectedvirtual |
Implements chart::ChartTypeTemplate.
Definition at line 170 of file AreaChartTypeTemplate.cxx.
Referenced by getChartTypeForNewSeries2().
|
overrideprotectedvirtual |
Implements chart::ChartTypeTemplate.
Definition at line 175 of file AreaChartTypeTemplate.cxx.
References chart::ChartTypeTemplate::copyPropertiesFromOldToNewCoordinateSystem(), and getChartTypeForIndex().
|
overrideprotectedvirtual |
merge XInterface implementations
merge XTypeProvider implementations
Implements property::OPropertySet.
Definition at line 94 of file AreaChartTypeTemplate.cxx.
References nHandle.
|
overrideprotectedvirtual |
returns 2 by default. Supported are 2 and 3
Reimplemented from chart::ChartTypeTemplate.
Definition at line 122 of file AreaChartTypeTemplate.cxx.
References DBG_UNHANDLED_EXCEPTION, and property::OPropertySet::getFastPropertyValue().
|
overrideprotectedvirtual |
The InfoHelper table contains all property names and types of this object.
Implements property::OPropertySet.
Definition at line 109 of file AreaChartTypeTemplate.cxx.
|
overrideprotectedvirtual |
Definition at line 115 of file AreaChartTypeTemplate.cxx.
References cppu::OPropertySetHelper::createPropertySetInfo().
|
overrideprotectedvirtual |
returns StackMode::NONE by default.
This is a global flag used for all series of a specific chart type. If percent stacking is supported, the percent stacking mode is retrieved from the first chart type (index 0)
nChartTypeIndex | denotes the index of the charttype in means defined by the template creation order, i.e., 0 means the first chart type that a template creates. |
Reimplemented from chart::ChartTypeTemplate.
Definition at line 139 of file AreaChartTypeTemplate.cxx.
References m_eStackMode.
|
overrideprotectedvirtual |
Reimplemented from chart::ChartTypeTemplate.
Definition at line 155 of file AreaChartTypeTemplate.cxx.
References chart::ChartTypeTemplate::resetStyles2().
|
private |
Definition at line 75 of file AreaChartTypeTemplate.hxx.
Referenced by getStackMode().