LibreOffice Module chart2 (master) 1
|
#include <Diagram.hxx>
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::Legend > | getLegend2 () const |
void | setLegend (const rtl::Reference< ::chart::Legend > &) |
void | setDataTable (const rtl::Reference<::chart::DataTable > &xNewDataTable) |
rtl::Reference<::chart::DataTable > | getDataTableRef () 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< ChartType > | getChartTypeByIndex (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< ChartType > | getChartTypeOfSeries (const rtl::Reference< DataSeries > &xSeries) |
rtl::Reference< ::chart::Axis > | getAttachedAxis (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< Wall > | m_xWall |
rtl::Reference< Wall > | m_xFloor |
css::uno::Reference< css::chart2::XTitle > | m_xTitle |
rtl::Reference<::chart::Legend > | m_xLegend |
rtl::Reference<::chart::DataTable > | m_xDataTable |
css::uno::Reference< css::chart2::XColorScheme > | m_xColorScheme |
rtl::Reference< ModifyEventForwarder > | m_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 | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Definition at line 75 of file Diagram.hxx.
typedef std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > chart::Diagram::tCoordinateSystemContainerType |
Definition at line 164 of file Diagram.hxx.
chart::Diagram::Diagram | ( | css::uno::Reference< css::uno::XComponentContext > | xContext | ) |
References DECLARE_XINTERFACE, getImplementationName(), getSupportedServiceNames(), and supportsService().
Referenced by createClone().
|
overridevirtual |
Definition at line 294 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, m_aCoordSystems, m_xFloor, m_xLegend, m_xModifyEventForwarder, m_xTitle, m_xWall, and chart::ModifyListenerHelper::removeListener().
|
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.
|
overridevirtual |
Definition at line 569 of file Diagram.cxx.
References chart::ModifyListenerHelper::addListener(), fireModifyEvent(), m_aCoordSystems, cppu::BaseMutex::m_aMutex, and m_xModifyEventForwarder.
Referenced by replaceCoordinateSystem().
|
overridevirtual |
Definition at line 675 of file Diagram.cxx.
References m_xModifyEventForwarder.
bool chart::Diagram::attachSeriesToAxis | ( | bool | bMainAxis, |
const rtl::Reference< DataSeries > & | xSeries, | ||
const css::uno::Reference< css::uno::XComponentContext > & | xContext, | ||
bool | bAdaptAxes = true |
||
) |
Definition at line 1416 of file Diagram.cxx.
References chart::AxisHelper::createAxis(), DBG_UNHANDLED_EXCEPTION, getAttachedAxis(), chart::DataSeriesHelper::getAttachedAxisIndex(), chart::AxisHelper::getAxis(), chart::AxisHelper::hideAxisIfNoDataIsAttached(), and chart::AxisHelper::makeAxisVisible().
|
overridevirtual |
Definition at line 668 of file Diagram.cxx.
References Diagram(), and cppu::BaseMutex::m_aMutex.
ThreeDLookScheme chart::Diagram::detectScheme | ( | ) |
Definition at line 2151 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, getFastPropertyValue(), chart::ThreeDHelper::getRoundedEdgesAndObjectLines(), chart::lcl_isRealisticLightScheme(), chart::lcl_isRealisticScheme(), chart::lcl_isSimpleLightScheme(), chart::lcl_isSimpleScheme(), chart::SceneProperties::PROP_SCENE_SHADE_MODE, chart::ThreeDLookScheme_Realistic, chart::ThreeDLookScheme_Simple, and chart::ThreeDLookScheme_Unknown.
|
overrideprivatevirtual |
Definition at line 692 of file Diagram.cxx.
|
private |
Definition at line 703 of file Diagram.cxx.
References m_xModifyEventForwarder.
Referenced by addCoordinateSystem(), firePropertyChangeEvent(), removeCoordinateSystem(), setDefaultColorScheme(), and setTitleObject().
|
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().
std::vector< rtl::Reference< RegressionCurveModel > > chart::Diagram::getAllRegressionCurvesNotMeanValueLine | ( | ) |
Definition at line 1773 of file Diagram.cxx.
References getDataSeries(), and chart::RegressionCurveHelper::isMeanValueLine().
rtl::Reference< Axis > chart::Diagram::getAttachedAxis | ( | const rtl::Reference< ::chart::DataSeries > & | xSeries | ) |
Definition at line 1410 of file Diagram.cxx.
References chart::AxisHelper::getAxis(), and chart::DiagramHelper::isSeriesAttachedToMainAxis().
Referenced by attachSeriesToAxis().
Diagram::tCoordinateSystemContainerType chart::Diagram::getBaseCoordinateSystems | ( | ) | const |
Definition at line 615 of file Diagram.cxx.
References m_aCoordSystems, and cppu::BaseMutex::m_aMutex.
Referenced by getChartTypeByIndex(), getChartTypeOfSeries(), getChartTypes(), getDataSeries(), getDataSeriesGroups(), getDimension(), getStackMode(), getVertical(), isCategory(), chart::lcl_getAxisHoldingCategoriesFromDiagram(), chart::lcl_moveSeriesOrCheckIfMoveIsAllowed(), setDimension(), setStackMode(), and setVertical().
double chart::Diagram::getCameraDistance | ( | ) |
Definition at line 1789 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, chart::ThreeDHelper::ensureCameraDistanceRange(), FIXED_SIZE_FOR_3D_CHART_VOLUME, chart::ThreeDHelper::getDefaultCameraGeometry(), getFastPropertyValue(), basegfx::B3DVector::getLength(), chart::BaseGFXHelper::Position3DToB3DVector(), and chart::SceneProperties::PROP_SCENE_CAMERA_GEOMETRY.
Referenced by getFastPropertyValue().
uno::Reference< chart2::data::XLabeledDataSequence > chart::Diagram::getCategories | ( | ) |
Definition at line 1243 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, and chart::lcl_getAxisHoldingCategoriesFromDiagram().
Referenced by replaceCoordinateSystem().
rtl::Reference< ChartType > chart::Diagram::getChartTypeByIndex | ( | sal_Int32 | nIndex | ) |
Definition at line 1174 of file Diagram.cxx.
References getBaseCoordinateSystems(), o3tl::make_unsigned(), and nIndex.
Referenced by isPieOrDonutChart(), isSupportingDateAxis(), chart::lcl_isLightScheme(), chart::lcl_isRightAngledAxesSetAndSupported(), chart::lcl_setLightsForScheme(), and setRotationAngle().
rtl::Reference< ChartType > chart::Diagram::getChartTypeOfSeries | ( | const rtl::Reference< DataSeries > & | xSeries | ) |
Definition at line 1382 of file Diagram.cxx.
References getBaseCoordinateSystems().
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().
|
overridevirtual |
Definition at line 609 of file Diagram.cxx.
References m_aCoordSystems, and cppu::BaseMutex::m_aMutex.
sal_Int32 chart::Diagram::getCorrectedMissingValueTreatment | ( | const rtl::Reference< ::chart::ChartType > & | xChartType | ) |
Definition at line 864 of file Diagram.cxx.
References getFastPropertyValue(), chart::ChartTypeHelper::getSupportedMissingValueTreatments(), and n.
std::vector< rtl::Reference<::chart::DataSeries > > chart::Diagram::getDataSeries | ( | ) |
Definition at line 1360 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, and getBaseCoordinateSystems().
Referenced by getAllRegressionCurvesNotMeanValueLine(), getGeometry3D(), and setGeometry3D().
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().
|
overridevirtual |
Definition at line 785 of file Diagram.cxx.
References cppu::BaseMutex::m_aMutex, and m_xDataTable.
rtl::Reference<::chart::DataTable > chart::Diagram::getDataTableRef | ( | ) | const |
Definition at line 791 of file Diagram.cxx.
References cppu::BaseMutex::m_aMutex, and m_xDataTable.
|
overridevirtual |
Definition at line 387 of file Diagram.cxx.
References chart::createConfigColorScheme(), cppu::BaseMutex::m_aMutex, m_xColorScheme, and m_xContext.
|
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.
css::beans::UnknownPropertyException | |
css::uno::RuntimeException |
Implements property::OPropertySet.
Definition at line 709 of file Diagram.cxx.
References nHandle.
DiagramPositioningMode chart::Diagram::getDiagramPositioningMode | ( | ) |
Definition at line 845 of file Diagram.cxx.
References chart::Auto, eMode, chart::Excluding, getFastPropertyValue(), and chart::Including.
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().
|
overridevirtual |
The same as getFastPropertyValue, but return the value through rValue and nHandle is always valid.
Reimplemented from property::OPropertySet.
Definition at line 760 of file Diagram.cxx.
References chart::ThreeDHelper::CameraDistanceToPerspective(), getCameraDistance(), getRotation(), nHandle, nHorizontal, and nVertical.
Referenced by detectScheme(), getCameraDistance(), getCorrectedMissingValueTreatment(), getDiagramPositioningMode(), getRotationAngle(), chart::lcl_getCameraMatrix(), chart::lcl_isLightScheme(), chart::lcl_isRightAngledAxesSetAndSupported(), chart::lcl_RotateLightSource(), chart::lcl_setLightsForScheme(), setCameraDistance(), setDefaultIllumination(), setRotationAngle(), setScheme(), and switchRightAngledAxes().
|
overridevirtual |
Definition at line 333 of file Diagram.cxx.
References cppu::BaseMutex::m_aMutex, m_xFloor, and m_xModifyEventForwarder.
sal_Int32 chart::Diagram::getGeometry3D | ( | bool & | rbFound, |
bool & | rbAmbiguous | ||
) |
Definition at line 901 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, and getDataSeries().
|
overridevirtual |
XServiceInfo declarations.
Definition at line 827 of file Diagram.cxx.
|
overridevirtual |
The InfoHelper table contains all property names and types of this object.
Implements property::OPropertySet.
Definition at line 720 of file Diagram.cxx.
|
overridevirtual |
Definition at line 351 of file Diagram.cxx.
References cppu::BaseMutex::m_aMutex, and m_xLegend.
rtl::Reference<::chart::Legend > chart::Diagram::getLegend2 | ( | ) | const |
Definition at line 357 of file Diagram.cxx.
References cppu::BaseMutex::m_aMutex, and m_xLegend.
|
overridevirtual |
Definition at line 726 of file Diagram.cxx.
void chart::Diagram::getRotation | ( | sal_Int32 & | rnHorizontalAngleDegree, |
sal_Int32 & | rnVerticalAngleDegree | ||
) |
Definition at line 1847 of file Diagram.cxx.
References chart::ThreeDHelper::convertXYZAngleRadToElevationRotationDeg(), basegfx::fround(), getRotationAngle(), chart::lcl_isRightAngledAxesSetAndSupported(), NormAngle180(), and basegfx::rad2deg().
Referenced by getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().
void chart::Diagram::getRotationAngle | ( | double & | rfXAngleRad, |
double & | rfYAngleRad, | ||
double & | rfZAngleRad | ||
) |
Definition at line 1936 of file Diagram.cxx.
References getFastPropertyValue(), chart::BaseGFXHelper::GetRotationFromMatrix(), basegfx::Tuple3D< typename TYPE >::getX(), basegfx::Tuple3D< typename TYPE >::getY(), basegfx::Tuple3D< typename TYPE >::getZ(), chart::BaseGFXHelper::HomogenMatrixToB3DHomMatrix(), chart::lcl_getCameraMatrix(), chart::lcl_shiftAngleToIntervalMinusPiToPi(), chart::SceneProperties::PROP_SCENE_TRANSF_MATRIX, and chart::BaseGFXHelper::ReduceToRotationMatrix().
Referenced by getRotation(), chart::lcl_getCompleteRotationMatrix(), and chart::lcl_getInverseRotationMatrix().
StackMode chart::Diagram::getStackMode | ( | bool & | rbFound, |
bool & | rbAmbiguous | ||
) |
Definition at line 1618 of file Diagram.cxx.
References getBaseCoordinateSystems(), chart::DiagramHelper::getStackModeFromChartType(), and chart::NONE.
Referenced by setDimension(), and setStackMode().
|
overridevirtual |
Definition at line 837 of file Diagram.cxx.
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.
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().
|
overridevirtual |
Definition at line 428 of file Diagram.cxx.
References cppu::BaseMutex::m_aMutex, and m_xTitle.
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().
|
overridevirtual |
Definition at line 315 of file Diagram.cxx.
References cppu::BaseMutex::m_aMutex, m_xModifyEventForwarder, and m_xWall.
bool chart::Diagram::isCategory | ( | ) |
Definition at line 1311 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, and getBaseCoordinateSystems().
bool chart::Diagram::isPieOrDonutChart | ( | ) |
Definition at line 942 of file Diagram.cxx.
References CHART2_SERVICE_NAME_CHARTTYPE_PIE, and getChartTypeByIndex().
Referenced by setDefaultRotation().
bool chart::Diagram::isSeriesMoveable | ( | const rtl::Reference< DataSeries > & | xGivenDataSeries, |
bool | bForward | ||
) |
Test if a series can be moved.
xDiagram | Reference to the diagram that contains the series. |
xGivenDataSeries | Reference to the series that should be tested for moving. |
bForward | Direction of the move to be checked. |
Definition at line 1133 of file Diagram.cxx.
References chart::lcl_moveSeriesOrCheckIfMoveIsAllowed().
bool chart::Diagram::isSupportingDateAxis | ( | ) |
Definition at line 1194 of file Diagram.cxx.
References getChartTypeByIndex().
bool chart::Diagram::isSupportingFloorAndWall | ( | ) |
Definition at line 955 of file Diagram.cxx.
References aTypes, CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET, CHART2_SERVICE_NAME_CHARTTYPE_NET, CHART2_SERVICE_NAME_CHARTTYPE_PIE, and getChartTypes().
|
overrideprivatevirtual |
Definition at line 686 of file Diagram.cxx.
References aEvent, and m_xModifyEventForwarder.
bool chart::Diagram::moveSeries | ( | const rtl::Reference< DataSeries > & | xGivenDataSeries, |
bool | bForward | ||
) |
Move a series forward or backward.
xDiagram | Reference to the diagram that contains the series. |
xGivenDataSeries | Reference to the series that should be moved. |
bForward | Direction in which the series should be moved. |
Definition at line 1145 of file Diagram.cxx.
References chart::lcl_moveSeriesOrCheckIfMoveIsAllowed().
|
overridevirtual |
Definition at line 591 of file Diagram.cxx.
References fireModifyEvent(), m_aCoordSystems, cppu::BaseMutex::m_aMutex, m_xModifyEventForwarder, and chart::ModifyListenerHelper::removeListener().
Referenced by replaceCoordinateSystem().
|
overridevirtual |
Definition at line 680 of file Diagram.cxx.
References m_xModifyEventForwarder.
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().
|
overridevirtual |
Definition at line 452 of file Diagram.cxx.
References setDefaultIllumination(), setDefaultRotation(), and property::OPropertySet::setPropertyToDefault().
void chart::Diagram::setCameraDistance | ( | double | fCameraDistance | ) |
Definition at line 1809 of file Diagram.cxx.
References chart::BaseGFXHelper::B3DVectorToPosition3D(), DBG_UNHANDLED_EXCEPTION, FIXED_SIZE_FOR_3D_CHART_VOLUME, chart::ThreeDHelper::getDefaultCameraGeometry(), getFastPropertyValue(), basegfx::B3DVector::getLength(), chart::BaseGFXHelper::Position3DToB3DVector(), chart::SceneProperties::PROP_SCENE_CAMERA_GEOMETRY, property::OPropertySet::setFastPropertyValue(), and basegfx::B3DVector::setLength().
Referenced by setFastPropertyValue_NoBroadcast().
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().
|
overridevirtual |
void chart::Diagram::setCoordinateSystems | ( | const std::vector< rtl::Reference< ::chart::BaseCoordinateSystem > > & | aCoordinateSystems | ) |
|
overridevirtual |
void chart::Diagram::setDataTable | ( | const rtl::Reference<::chart::DataTable > & | xNewDataTable | ) |
|
overridevirtual |
Definition at line 404 of file Diagram.cxx.
References fireModifyEvent(), cppu::BaseMutex::m_aMutex, and m_xColorScheme.
|
overridevirtual |
Definition at line 541 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, getFastPropertyValue(), chart::lcl_setLightsForScheme(), chart::SceneProperties::PROP_SCENE_LIGHT_ON_1, chart::SceneProperties::PROP_SCENE_LIGHT_ON_3, chart::SceneProperties::PROP_SCENE_LIGHT_ON_4, chart::SceneProperties::PROP_SCENE_LIGHT_ON_5, chart::SceneProperties::PROP_SCENE_LIGHT_ON_6, chart::SceneProperties::PROP_SCENE_LIGHT_ON_7, chart::SceneProperties::PROP_SCENE_LIGHT_ON_8, chart::SceneProperties::PROP_SCENE_SHADE_MODE, property::OPropertySet::setFastPropertyValue(), chart::ThreeDLookScheme_Realistic, and chart::ThreeDLookScheme_Simple.
Referenced by set3DSettingsToDefault().
|
overridevirtual |
Definition at line 460 of file Diagram.cxx.
References isPieOrDonutChart(), and setDefaultRotation().
Referenced by set3DSettingsToDefault(), and setDefaultRotation().
void chart::Diagram::setDefaultRotation | ( | bool | bPieOrDonut | ) |
Definition at line 2238 of file Diagram.cxx.
References chart::BaseGFXHelper::B3DHomMatrixToHomogenMatrix(), chart::ThreeDHelper::getDefaultCameraGeometry(), chart::SceneProperties::PROP_SCENE_CAMERA_GEOMETRY, chart::SceneProperties::PROP_SCENE_TRANSF_MATRIX, basegfx::B3DHomMatrix::rotate(), and property::OPropertySet::setFastPropertyValue().
|
overridevirtual |
Definition at line 413 of file Diagram.cxx.
References aArguments, getTemplate(), m_xContext, and chart::Diagram::tTemplateWithServiceName::xChartTypeTemplate.
void chart::Diagram::setDimension | ( | sal_Int32 | nNewDimensionCount | ) |
Sets the dimension of the diagram given.
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.
|
overridevirtual |
The same as setFastPropertyValue; nHandle is always valid.
The changes must not be broadcasted in this method.
nHandle | handle |
rValue | value |
Reimplemented from property::OPropertySet.
Definition at line 732 of file Diagram.cxx.
References getRotation(), nHandle, nHorizontal, nVertical, chart::ThreeDHelper::PerspectiveToCameraDistance(), setCameraDistance(), and setRotation().
void chart::Diagram::setGeometry3D | ( | sal_Int32 | nNewGeometry | ) |
Definition at line 889 of file Diagram.cxx.
References getDataSeries(), and chart::DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints().
|
overridevirtual |
void chart::Diagram::setLegend | ( | const rtl::Reference< ::chart::Legend > & | ) |
void chart::Diagram::setRotation | ( | sal_Int32 | nHorizontalAngleDegree, |
sal_Int32 | nVerticalYAngleDegree | ||
) |
Definition at line 1869 of file Diagram.cxx.
References chart::ThreeDHelper::convertElevationRotationDegToXYZAngleRad(), basegfx::deg2rad(), chart::lcl_isRightAngledAxesSetAndSupported(), and setRotationAngle().
Referenced by setFastPropertyValue_NoBroadcast().
void chart::Diagram::setRotationAngle | ( | double | fXAngleRad, |
double | fYAngleRad, | ||
double | fZAngleRad | ||
) |
Definition at line 2006 of file Diagram.cxx.
References chart::BaseGFXHelper::B3DHomMatrixToHomogenMatrix(), DBG_UNHANDLED_EXCEPTION, getChartTypeByIndex(), getFastPropertyValue(), chart::BaseGFXHelper::GetRotationFromMatrix(), basegfx::Tuple3D< typename TYPE >::getX(), basegfx::Tuple3D< typename TYPE >::getY(), basegfx::Tuple3D< typename TYPE >::getZ(), chart::ChartTypeHelper::isSupportingRightAngledAxes(), chart::lcl_getCameraMatrix(), chart::lcl_getInverseRotationMatrix(), chart::lcl_rotateLights(), chart::SceneProperties::PROP_SCENE_TRANSF_MATRIX, chart::BaseGFXHelper::ReduceToRotationMatrix(), basegfx::B3DHomMatrix::rotate(), and property::OPropertySet::setFastPropertyValue().
Referenced by setRotation().
void chart::Diagram::setScheme | ( | ThreeDLookScheme | aScheme | ) |
Definition at line 2204 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, getFastPropertyValue(), chart::lcl_setLightsForScheme(), chart::lcl_setRealisticScheme(), chart::lcl_setSimpleScheme(), chart::SceneProperties::PROP_SCENE_SHADE_MODE, property::OPropertySet::setFastPropertyValue(), chart::ThreeDHelper::setRoundedEdgesAndObjectLines(), chart::ThreeDLookScheme_Simple, and chart::ThreeDLookScheme_Unknown.
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().
|
overridevirtual |
Definition at line 434 of file Diagram.cxx.
References chart::ModifyListenerHelper::addListener(), fireModifyEvent(), cppu::BaseMutex::m_aMutex, m_xModifyEventForwarder, m_xTitle, and chart::ModifyListenerHelper::removeListener().
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().
|
overridevirtual |
Definition at line 832 of file Diagram.cxx.
References cppu::supportsService().
void chart::Diagram::switchRightAngledAxes | ( | bool | bRightAngledAxes | ) |
Definition at line 2252 of file Diagram.cxx.
References DBG_UNHANDLED_EXCEPTION, getFastPropertyValue(), chart::lcl_getCompleteRotationMatrix(), chart::lcl_getInverseRotationMatrix(), chart::lcl_rotateLights(), and property::OPropertySet::setFastPropertyValue().
|
private |
Definition at line 367 of file Diagram.hxx.
Referenced by addCoordinateSystem(), Diagram(), getBaseCoordinateSystems(), getCoordinateSystems(), removeCoordinateSystem(), and ~Diagram().
|
private |
Definition at line 376 of file Diagram.hxx.
Referenced by getDefaultColorScheme(), and setDefaultColorScheme().
|
private |
Definition at line 366 of file Diagram.hxx.
Referenced by getDefaultColorScheme(), and setDiagramData().
|
private |
Definition at line 375 of file Diagram.hxx.
Referenced by Diagram(), getDataTable(), and getDataTableRef().
|
private |
Definition at line 370 of file Diagram.hxx.
Referenced by Diagram(), getFloor(), and ~Diagram().
|
private |
Definition at line 374 of file Diagram.hxx.
Referenced by Diagram(), getLegend(), getLegend2(), and ~Diagram().
|
private |
Definition at line 377 of file Diagram.hxx.
Referenced by addCoordinateSystem(), addModifyListener(), Diagram(), fireModifyEvent(), getFloor(), getWall(), modified(), removeCoordinateSystem(), removeModifyListener(), setTitleObject(), and ~Diagram().
|
private |
Definition at line 372 of file Diagram.hxx.
Referenced by Diagram(), getTitleObject(), setTitleObject(), and ~Diagram().
|
private |
Definition at line 369 of file Diagram.hxx.
Referenced by Diagram(), getWall(), and ~Diagram().