LibreOffice Module chart2 (master) 1
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
chart::Diagram Class Referencefinal

#include <Diagram.hxx>

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

Classes

struct  tTemplateWithServiceName
 

Public Types

typedef std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > tCoordinateSystemContainerType
 

Public Member Functions

 Diagram (css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual ~Diagram () override
 
virtual OUString SAL_CALL getImplementationName () override
 XServiceInfo declarations. More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
 Diagram (const Diagram &rOther)
 merge XInterface implementations More...
 
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 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 css::uno::Reference< css::beans::XPropertySet > SAL_CALL getWall () override
 
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getFloor () override
 
virtual css::uno::Reference< css::chart2::XLegend > SAL_CALL getLegend () override
 
virtual void SAL_CALL setLegend (const css::uno::Reference< css::chart2::XLegend > &xLegend) override
 
virtual css::uno::Reference< css::chart2::XColorScheme > SAL_CALL getDefaultColorScheme () override
 
virtual void SAL_CALL setDefaultColorScheme (const css::uno::Reference< css::chart2::XColorScheme > &xColorScheme) override
 
virtual void SAL_CALL setDiagramData (const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override
 
virtual css::uno::Reference< css::chart2::XDataTable > SAL_CALL getDataTable () override
 
virtual void SAL_CALL setDataTable (const css::uno::Reference< css::chart2::XDataTable > &xDataTable) override
 
virtual void SAL_CALL addCoordinateSystem (const css::uno::Reference< css::chart2::XCoordinateSystem > &aCoordSys) override
 
virtual void SAL_CALL removeCoordinateSystem (const css::uno::Reference< css::chart2::XCoordinateSystem > &aCoordSys) override
 
virtual css::uno::Sequence< css::uno::Reference< css::chart2::XCoordinateSystem > > SAL_CALL getCoordinateSystems () override
 
virtual void SAL_CALL setCoordinateSystems (const css::uno::Sequence< css::uno::Reference< css::chart2::XCoordinateSystem > > &aCoordinateSystems) override
 
virtual css::uno::Reference< css::chart2::XTitle > SAL_CALL getTitleObject () override
 
virtual void SAL_CALL setTitleObject (const css::uno::Reference< css::chart2::XTitle > &Title) override
 
virtual void SAL_CALL set3DSettingsToDefault () override
 
virtual void SAL_CALL setDefaultRotation () override
 
virtual void SAL_CALL setDefaultIllumination () override
 
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone () 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
 
tCoordinateSystemContainerType getBaseCoordinateSystems () const
 
void setCoordinateSystems (const std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > &aCoordinateSystems)
 
rtl::Reference< ::chart::LegendgetLegend2 () const
 
void setLegend (const rtl::Reference< ::chart::Legend > &)
 
void setDataTable (const rtl::Reference<::chart::DataTable > &xNewDataTable)
 
rtl::Reference<::chart::DataTablegetDataTableRef () const
 
DiagramPositioningMode getDiagramPositioningMode ()
 
sal_Int32 getCorrectedMissingValueTreatment (const rtl::Reference< ::chart::ChartType > &xChartType)
 
void setGeometry3D (sal_Int32 nNewGeometry)
 
sal_Int32 getGeometry3D (bool &rbFound, bool &rbAmbiguous)
 
bool isPieOrDonutChart ()
 
bool isSupportingFloorAndWall ()
 
bool moveSeries (const rtl::Reference< DataSeries > &xGivenDataSeries, bool bForward)
 Move a series forward or backward. More...
 
bool isSeriesMoveable (const rtl::Reference< DataSeries > &xGivenDataSeries, bool bForward)
 Test if a series can be moved. More...
 
std::vector< rtl::Reference< ChartType > > getChartTypes ()
 
rtl::Reference< ChartTypegetChartTypeByIndex (sal_Int32 nIndex)
 
bool isSupportingDateAxis ()
 
css::uno::Reference< css::chart2::data::XLabeledDataSequence > getCategories ()
 
void setCategories (const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &xCategories, bool bSetAxisType=false, bool bCategoryAxis=true)
 
bool isCategory ()
 
std::vector< std::vector< rtl::Reference< ::chart::DataSeries > > > getDataSeriesGroups ()
 return all data series in this diagram grouped by chart-types More...
 
std::vector< rtl::Reference< ::chart::DataSeries > > getDataSeries ()
 
rtl::Reference< ChartTypegetChartTypeOfSeries (const rtl::Reference< DataSeries > &xSeries)
 
rtl::Reference< ::chart::AxisgetAttachedAxis (const rtl::Reference< ::chart::DataSeries > &xSeries)
 
bool attachSeriesToAxis (bool bMainAxis, const rtl::Reference< DataSeries > &xSeries, const css::uno::Reference< css::uno::XComponentContext > &xContext, bool bAdaptAxes=true)
 
SAL_DLLPRIVATE void replaceCoordinateSystem (const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSysToReplace, const rtl::Reference< ::chart::BaseCoordinateSystem > &xReplacement)
 Replaces all occurrences of xCooSysToReplace in the tree with xReplacement in the diagram's tree. More...
 
sal_Int32 getDimension ()
 Returns the dimension found for all chart types in the tree. More...
 
void setDimension (sal_Int32 nNewDimensionCount)
 Sets the dimension of the diagram given. More...
 
StackMode getStackMode (bool &rbFound, bool &rbAmbiguous)
 
void setStackMode (StackMode eStackMode)
 The stacking mode is only set at the series found inside the first chart type. More...
 
void setVertical (bool bVertical)
 Sets the "SwapXAndYAxis" property at all coordinate systems found in the given diagram. More...
 
bool getVertical (bool &rbOutFoundResult, bool &rbOutAmbiguousResult)
 Gets the "SwapXAndYAxis" property at all coordinate systems found in the given diagram. More...
 
tTemplateWithServiceName getTemplate (const rtl::Reference< ::chart::ChartTypeManager > &xChartTypeManager)
 tries to find a template in the chart-type manager that matches this diagram. More...
 
std::vector< rtl::Reference<::chart::RegressionCurveModel > > getAllRegressionCurvesNotMeanValueLine ()
 
double getCameraDistance ()
 
void setCameraDistance (double fCameraDistance)
 
void getRotation (sal_Int32 &rnHorizontalAngleDegree, sal_Int32 &rnVerticalAngleDegree)
 
void setRotation (sal_Int32 nHorizontalAngleDegree, sal_Int32 nVerticalYAngleDegree)
 
void getRotationAngle (double &rfXAngleRad, double &rfYAngleRad, double &rfZAngleRad)
 
void setRotationAngle (double fXAngleRad, double fYAngleRad, double fZAngleRad)
 
ThreeDLookScheme detectScheme ()
 
void setScheme (ThreeDLookScheme aScheme)
 
void setDefaultRotation (bool bPieOrDonut)
 
void switchRightAngledAxes (bool bRightAngledAxes)
 
- 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
 

Private 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 ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
tCoordinateSystemContainerType m_aCoordSystems
 
rtl::Reference< Wallm_xWall
 
rtl::Reference< Wallm_xFloor
 
css::uno::Reference< css::chart2::XTitle > m_xTitle
 
rtl::Reference<::chart::Legendm_xLegend
 
rtl::Reference<::chart::DataTablem_xDataTable
 
css::uno::Reference< css::chart2::XColorScheme > m_xColorScheme
 
rtl::Reference< ModifyEventForwarderm_xModifyEventForwarder
 

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
 
- 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
 
- 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 75 of file Diagram.hxx.

Member Typedef Documentation

◆ tCoordinateSystemContainerType

Definition at line 164 of file Diagram.hxx.

Constructor & Destructor Documentation

◆ Diagram() [1/2]

chart::Diagram::Diagram ( css::uno::Reference< css::uno::XComponentContext >  xContext)

◆ ~Diagram()

chart::Diagram::~Diagram ( )
overridevirtual

◆ Diagram() [2/2]

chart::Diagram::Diagram ( const Diagram rOther)
explicit

merge XInterface implementations

merge XTypeProvider implementations

Definition at line 266 of file Diagram.cxx.

References chart::ModifyListenerHelper::addListener(), m_aCoordSystems, m_xDataTable, m_xFloor, m_xLegend, m_xModifyEventForwarder, m_xTitle, and m_xWall.

Member Function Documentation

◆ addCoordinateSystem()

void SAL_CALL chart::Diagram::addCoordinateSystem ( const css::uno::Reference< css::chart2::XCoordinateSystem > &  aCoordSys)
overridevirtual

◆ addModifyListener()

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

Definition at line 675 of file Diagram.cxx.

References m_xModifyEventForwarder.

◆ attachSeriesToAxis()

bool chart::Diagram::attachSeriesToAxis ( bool  bMainAxis,
const rtl::Reference< DataSeries > &  xSeries,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
bool  bAdaptAxes = true 
)

◆ createClone()

Reference< util::XCloneable > SAL_CALL chart::Diagram::createClone ( )
overridevirtual

Definition at line 668 of file Diagram.cxx.

References Diagram(), and cppu::BaseMutex::m_aMutex.

◆ detectScheme()

ThreeDLookScheme chart::Diagram::detectScheme ( )

◆ disposing()

void SAL_CALL chart::Diagram::disposing ( const css::lang::EventObject &  Source)
overrideprivatevirtual

Definition at line 692 of file Diagram.cxx.

◆ fireModifyEvent()

void chart::Diagram::fireModifyEvent ( )
private

◆ firePropertyChangeEvent()

void chart::Diagram::firePropertyChangeEvent ( )
overrideprivatevirtual

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

Reimplemented from property::OPropertySet.

Definition at line 698 of file Diagram.cxx.

References fireModifyEvent().

◆ getAllRegressionCurvesNotMeanValueLine()

std::vector< rtl::Reference< RegressionCurveModel > > chart::Diagram::getAllRegressionCurvesNotMeanValueLine ( )

◆ getAttachedAxis()

rtl::Reference< Axis > chart::Diagram::getAttachedAxis ( const rtl::Reference< ::chart::DataSeries > &  xSeries)

◆ getBaseCoordinateSystems()

Diagram::tCoordinateSystemContainerType chart::Diagram::getBaseCoordinateSystems ( ) const

◆ getCameraDistance()

double chart::Diagram::getCameraDistance ( )

◆ getCategories()

uno::Reference< chart2::data::XLabeledDataSequence > chart::Diagram::getCategories ( )

◆ getChartTypeByIndex()

rtl::Reference< ChartType > chart::Diagram::getChartTypeByIndex ( sal_Int32  nIndex)

◆ getChartTypeOfSeries()

rtl::Reference< ChartType > chart::Diagram::getChartTypeOfSeries ( const rtl::Reference< DataSeries > &  xSeries)

Definition at line 1382 of file Diagram.cxx.

References getBaseCoordinateSystems().

◆ getChartTypes()

std::vector< rtl::Reference< ChartType > > chart::Diagram::getChartTypes ( )

Definition at line 1155 of file Diagram.cxx.

References DBG_UNHANDLED_EXCEPTION, and getBaseCoordinateSystems().

Referenced by isSupportingFloorAndWall().

◆ getCoordinateSystems()

uno::Sequence< uno::Reference< chart2::XCoordinateSystem > > SAL_CALL chart::Diagram::getCoordinateSystems ( )
overridevirtual

Definition at line 609 of file Diagram.cxx.

References m_aCoordSystems, and cppu::BaseMutex::m_aMutex.

◆ getCorrectedMissingValueTreatment()

sal_Int32 chart::Diagram::getCorrectedMissingValueTreatment ( const rtl::Reference< ::chart::ChartType > &  xChartType)

◆ getDataSeries()

std::vector< rtl::Reference<::chart::DataSeries > > chart::Diagram::getDataSeries ( )

◆ getDataSeriesGroups()

std::vector< std::vector< rtl::Reference< DataSeries > > > chart::Diagram::getDataSeriesGroups ( )

return all data series in this diagram grouped by chart-types

Definition at line 1343 of file Diagram.cxx.

References getBaseCoordinateSystems().

◆ getDataTable()

uno::Reference< chart2::XDataTable > SAL_CALL chart::Diagram::getDataTable ( )
overridevirtual

Definition at line 785 of file Diagram.cxx.

References cppu::BaseMutex::m_aMutex, and m_xDataTable.

◆ getDataTableRef()

rtl::Reference<::chart::DataTable > chart::Diagram::getDataTableRef ( ) const

Definition at line 791 of file Diagram.cxx.

References cppu::BaseMutex::m_aMutex, and m_xDataTable.

◆ getDefaultColorScheme()

Reference< chart2::XColorScheme > SAL_CALL chart::Diagram::getDefaultColorScheme ( )
overridevirtual

◆ GetDefaultValue()

void chart::Diagram::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 709 of file Diagram.cxx.

References nHandle.

◆ getDiagramPositioningMode()

DiagramPositioningMode chart::Diagram::getDiagramPositioningMode ( )

Definition at line 845 of file Diagram.cxx.

References chart::Auto, eMode, chart::Excluding, getFastPropertyValue(), and chart::Including.

◆ getDimension()

sal_Int32 chart::Diagram::getDimension ( )

Returns the dimension found for all chart types in the tree.

If the dimension is not unique, 0 is returned.

Definition at line 1481 of file Diagram.cxx.

References DBG_UNHANDLED_EXCEPTION, and getBaseCoordinateSystems().

Referenced by setDimension().

◆ getFastPropertyValue()

void SAL_CALL chart::Diagram::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overridevirtual

◆ getFloor()

uno::Reference< beans::XPropertySet > SAL_CALL chart::Diagram::getFloor ( )
overridevirtual

Definition at line 333 of file Diagram.cxx.

References cppu::BaseMutex::m_aMutex, m_xFloor, and m_xModifyEventForwarder.

◆ getGeometry3D()

sal_Int32 chart::Diagram::getGeometry3D ( bool &  rbFound,
bool &  rbAmbiguous 
)

Definition at line 901 of file Diagram.cxx.

References DBG_UNHANDLED_EXCEPTION, and getDataSeries().

◆ getImplementationName()

OUString SAL_CALL chart::Diagram::getImplementationName ( )
overridevirtual

XServiceInfo declarations.

Definition at line 827 of file Diagram.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper &SAL_CALL chart::Diagram::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 720 of file Diagram.cxx.

◆ getLegend()

uno::Reference< chart2::XLegend > SAL_CALL chart::Diagram::getLegend ( )
overridevirtual

Definition at line 351 of file Diagram.cxx.

References cppu::BaseMutex::m_aMutex, and m_xLegend.

◆ getLegend2()

rtl::Reference<::chart::Legend > chart::Diagram::getLegend2 ( ) const

Definition at line 357 of file Diagram.cxx.

References cppu::BaseMutex::m_aMutex, and m_xLegend.

◆ getPropertySetInfo()

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

Definition at line 726 of file Diagram.cxx.

◆ getRotation()

void chart::Diagram::getRotation ( sal_Int32 &  rnHorizontalAngleDegree,
sal_Int32 &  rnVerticalAngleDegree 
)

◆ getRotationAngle()

void chart::Diagram::getRotationAngle ( double &  rfXAngleRad,
double &  rfYAngleRad,
double &  rfZAngleRad 
)

◆ getStackMode()

StackMode chart::Diagram::getStackMode ( bool &  rbFound,
bool &  rbAmbiguous 
)

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL chart::Diagram::getSupportedServiceNames ( )
overridevirtual

Definition at line 837 of file Diagram.cxx.

◆ getTemplate()

Diagram::tTemplateWithServiceName chart::Diagram::getTemplate ( const rtl::Reference< ::chart::ChartTypeManager > &  xChartTypeManager)

tries to find a template in the chart-type manager that matches this diagram.

Returns
A pair containing a template with the correct properties set as first entry and the service name of the templates second entry. If no template was found both elements are empty.

Definition at line 1736 of file Diagram.cxx.

References aServiceNames, DBG_UNHANDLED_EXCEPTION, i, nLength, chart::Diagram::tTemplateWithServiceName::sServiceName, and chart::Diagram::tTemplateWithServiceName::xChartTypeTemplate.

Referenced by setDiagramData().

◆ getTitleObject()

uno::Reference< chart2::XTitle > SAL_CALL chart::Diagram::getTitleObject ( )
overridevirtual

Definition at line 428 of file Diagram.cxx.

References cppu::BaseMutex::m_aMutex, and m_xTitle.

◆ getVertical()

bool chart::Diagram::getVertical ( bool &  rbOutFoundResult,
bool &  rbOutAmbiguousResult 
)

Gets the "SwapXAndYAxis" property at all coordinate systems found in the given diagram.

"vertical==true" for bar charts, "vertical==false" for column charts

Definition at line 1709 of file Diagram.cxx.

References getBaseCoordinateSystems().

◆ getWall()

uno::Reference< beans::XPropertySet > SAL_CALL chart::Diagram::getWall ( )
overridevirtual

Definition at line 315 of file Diagram.cxx.

References cppu::BaseMutex::m_aMutex, m_xModifyEventForwarder, and m_xWall.

◆ isCategory()

bool chart::Diagram::isCategory ( )

Definition at line 1311 of file Diagram.cxx.

References DBG_UNHANDLED_EXCEPTION, and getBaseCoordinateSystems().

◆ isPieOrDonutChart()

bool chart::Diagram::isPieOrDonutChart ( )

Definition at line 942 of file Diagram.cxx.

References CHART2_SERVICE_NAME_CHARTTYPE_PIE, and getChartTypeByIndex().

Referenced by setDefaultRotation().

◆ isSeriesMoveable()

bool chart::Diagram::isSeriesMoveable ( const rtl::Reference< DataSeries > &  xGivenDataSeries,
bool  bForward 
)

Test if a series can be moved.

Parameters
xDiagramReference to the diagram that contains the series.
xGivenDataSeriesReference to the series that should be tested for moving.
bForwardDirection of the move to be checked.
Returns
</sal_True> if the series can be moved.

Definition at line 1133 of file Diagram.cxx.

References chart::lcl_moveSeriesOrCheckIfMoveIsAllowed().

◆ isSupportingDateAxis()

bool chart::Diagram::isSupportingDateAxis ( )

Definition at line 1194 of file Diagram.cxx.

References getChartTypeByIndex().

◆ isSupportingFloorAndWall()

bool chart::Diagram::isSupportingFloorAndWall ( )

◆ modified()

void SAL_CALL chart::Diagram::modified ( const css::lang::EventObject &  aEvent)
overrideprivatevirtual

Definition at line 686 of file Diagram.cxx.

References aEvent, and m_xModifyEventForwarder.

◆ moveSeries()

bool chart::Diagram::moveSeries ( const rtl::Reference< DataSeries > &  xGivenDataSeries,
bool  bForward 
)

Move a series forward or backward.

Parameters
xDiagramReference to the diagram that contains the series.
xGivenDataSeriesReference to the series that should be moved.
bForwardDirection in which the series should be moved.
Returns
</sal_True> if the series was moved successfully.

Definition at line 1145 of file Diagram.cxx.

References chart::lcl_moveSeriesOrCheckIfMoveIsAllowed().

◆ removeCoordinateSystem()

void SAL_CALL chart::Diagram::removeCoordinateSystem ( const css::uno::Reference< css::chart2::XCoordinateSystem > &  aCoordSys)
overridevirtual

◆ removeModifyListener()

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

Definition at line 680 of file Diagram.cxx.

References m_xModifyEventForwarder.

◆ replaceCoordinateSystem()

void chart::Diagram::replaceCoordinateSystem ( const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSysToReplace,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xReplacement 
)

Replaces all occurrences of xCooSysToReplace in the tree with xReplacement in the diagram's tree.

Definition at line 1457 of file Diagram.cxx.

References addCoordinateSystem(), DBG_UNHANDLED_EXCEPTION, getCategories(), removeCoordinateSystem(), and setCategories().

Referenced by setDimension().

◆ set3DSettingsToDefault()

void SAL_CALL chart::Diagram::set3DSettingsToDefault ( )
overridevirtual

◆ setCameraDistance()

void chart::Diagram::setCameraDistance ( double  fCameraDistance)

◆ setCategories()

void chart::Diagram::setCategories ( const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &  xCategories,
bool  bSetAxisType = false,
bool  bCategoryAxis = true 
)

Definition at line 1285 of file Diagram.cxx.

References chart::lcl_getAxisHoldingCategoriesFromDiagram().

Referenced by replaceCoordinateSystem().

◆ setCoordinateSystems() [1/2]

virtual void SAL_CALL chart::Diagram::setCoordinateSystems ( const css::uno::Sequence< css::uno::Reference< css::chart2::XCoordinateSystem > > &  aCoordinateSystems)
overridevirtual

◆ setCoordinateSystems() [2/2]

void chart::Diagram::setCoordinateSystems ( const std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > &  aCoordinateSystems)

◆ setDataTable() [1/2]

virtual void SAL_CALL chart::Diagram::setDataTable ( const css::uno::Reference< css::chart2::XDataTable > &  xDataTable)
overridevirtual

◆ setDataTable() [2/2]

void chart::Diagram::setDataTable ( const rtl::Reference<::chart::DataTable > &  xNewDataTable)

◆ setDefaultColorScheme()

void SAL_CALL chart::Diagram::setDefaultColorScheme ( const css::uno::Reference< css::chart2::XColorScheme > &  xColorScheme)
overridevirtual

Definition at line 404 of file Diagram.cxx.

References fireModifyEvent(), cppu::BaseMutex::m_aMutex, and m_xColorScheme.

◆ setDefaultIllumination()

void SAL_CALL chart::Diagram::setDefaultIllumination ( )
overridevirtual

◆ setDefaultRotation() [1/2]

void SAL_CALL chart::Diagram::setDefaultRotation ( )
overridevirtual

Definition at line 460 of file Diagram.cxx.

References isPieOrDonutChart(), and setDefaultRotation().

Referenced by set3DSettingsToDefault(), and setDefaultRotation().

◆ setDefaultRotation() [2/2]

void chart::Diagram::setDefaultRotation ( bool  bPieOrDonut)

◆ setDiagramData()

void SAL_CALL chart::Diagram::setDiagramData ( const css::uno::Reference< css::chart2::data::XDataSource > &  xDataSource,
const css::uno::Sequence< css::beans::PropertyValue > &  aArguments 
)
overridevirtual

◆ setDimension()

void chart::Diagram::setDimension ( sal_Int32  nNewDimensionCount)

Sets the dimension of the diagram given.

  1. Sets the dimension of all used ChartTypes
  2. Adapts the DataSeriesTree to reflect the new dimension
  3. If new coordinate-systems have to be created, adapts the XCoordinateSystemContainer of the diagram.

Definition at line 1505 of file Diagram.cxx.

References DBG_UNHANDLED_EXCEPTION, getBaseCoordinateSystems(), getDimension(), getStackMode(), chart::ChartTypeHelper::isSupportingOnlyDeepStackingFor3D(), chart::NONE, replaceCoordinateSystem(), setStackMode(), and chart::ZStacked.

◆ setFastPropertyValue_NoBroadcast()

void SAL_CALL chart::Diagram::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

The same as setFastPropertyValue; nHandle is always valid.

The changes must not be broadcasted in this method.

Attention: \n
Although you are permitted to throw any UNO exception, only the following are valid for usage: – css::beans::UnknownPropertyException – css::beans::PropertyVetoException – css::lang::IllegalArgumentException – css::lang::WrappedTargetException – css::uno::RuntimeException
Parameters
nHandlehandle
rValuevalue
See also
cppu::OPropertySetHelper

Reimplemented from property::OPropertySet.

Definition at line 732 of file Diagram.cxx.

References getRotation(), nHandle, nHorizontal, nVertical, chart::ThreeDHelper::PerspectiveToCameraDistance(), setCameraDistance(), and setRotation().

◆ setGeometry3D()

void chart::Diagram::setGeometry3D ( sal_Int32  nNewGeometry)

◆ setLegend() [1/2]

virtual void SAL_CALL chart::Diagram::setLegend ( const css::uno::Reference< css::chart2::XLegend > &  xLegend)
overridevirtual

◆ setLegend() [2/2]

void chart::Diagram::setLegend ( const rtl::Reference< ::chart::Legend > &  )

◆ setRotation()

void chart::Diagram::setRotation ( sal_Int32  nHorizontalAngleDegree,
sal_Int32  nVerticalYAngleDegree 
)

◆ setRotationAngle()

void chart::Diagram::setRotationAngle ( double  fXAngleRad,
double  fYAngleRad,
double  fZAngleRad 
)

◆ setScheme()

void chart::Diagram::setScheme ( ThreeDLookScheme  aScheme)

◆ setStackMode()

void chart::Diagram::setStackMode ( StackMode  eStackMode)

The stacking mode is only set at the series found inside the first chart type.

This is the standard for all current templates (the only template that has more than one chart-type and allows stacking is bar/line combi, and for this the stacking only applies to the first chart type/the bars)

Definition at line 1554 of file Diagram.cxx.

References DBG_UNHANDLED_EXCEPTION, getBaseCoordinateSystems(), getStackMode(), chart::YStacked, chart::YStackedPercent, and chart::ZStacked.

Referenced by setDimension().

◆ setTitleObject()

void SAL_CALL chart::Diagram::setTitleObject ( const css::uno::Reference< css::chart2::XTitle > &  Title)
overridevirtual

◆ setVertical()

void chart::Diagram::setVertical ( bool  bVertical)

Sets the "SwapXAndYAxis" property at all coordinate systems found in the given diagram.

"vertical==true" for bar charts, "vertical==false" for column charts

Definition at line 1650 of file Diagram.cxx.

References DBG_UNHANDLED_EXCEPTION, and getBaseCoordinateSystems().

◆ supportsService()

sal_Bool SAL_CALL chart::Diagram::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 832 of file Diagram.cxx.

References cppu::supportsService().

◆ switchRightAngledAxes()

void chart::Diagram::switchRightAngledAxes ( bool  bRightAngledAxes)

Member Data Documentation

◆ m_aCoordSystems

tCoordinateSystemContainerType chart::Diagram::m_aCoordSystems
private

◆ m_xColorScheme

css::uno::Reference<css::chart2::XColorScheme> chart::Diagram::m_xColorScheme
private

Definition at line 376 of file Diagram.hxx.

Referenced by getDefaultColorScheme(), and setDefaultColorScheme().

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> chart::Diagram::m_xContext
private

Definition at line 366 of file Diagram.hxx.

Referenced by getDefaultColorScheme(), and setDiagramData().

◆ m_xDataTable

rtl::Reference<::chart::DataTable> chart::Diagram::m_xDataTable
private

Definition at line 375 of file Diagram.hxx.

Referenced by Diagram(), getDataTable(), and getDataTableRef().

◆ m_xFloor

rtl::Reference<Wall> chart::Diagram::m_xFloor
private

Definition at line 370 of file Diagram.hxx.

Referenced by Diagram(), getFloor(), and ~Diagram().

◆ m_xLegend

rtl::Reference<::chart::Legend> chart::Diagram::m_xLegend
private

Definition at line 374 of file Diagram.hxx.

Referenced by Diagram(), getLegend(), getLegend2(), and ~Diagram().

◆ m_xModifyEventForwarder

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

◆ m_xTitle

css::uno::Reference<css::chart2::XTitle> chart::Diagram::m_xTitle
private

Definition at line 372 of file Diagram.hxx.

Referenced by Diagram(), getTitleObject(), setTitleObject(), and ~Diagram().

◆ m_xWall

rtl::Reference<Wall> chart::Diagram::m_xWall
private

Definition at line 369 of file Diagram.hxx.

Referenced by Diagram(), getWall(), and ~Diagram().


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