LibreOffice Module chart2 (master) 1
|
#include <NetChartTypeTemplate.hxx>
Public Member Functions | |
NetChartTypeTemplate (css::uno::Reference< css::uno::XComponentContext > const &xContext, const OUString &rServiceName, StackMode eStackMode, bool bSymbols, bool bHasLines=true, bool bHasFilledArea=false) | |
virtual | ~NetChartTypeTemplate () 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 |
Protected Member Functions | |
virtual bool | matchesTemplate2 (const rtl::Reference< ::chart::Diagram > &xDiagram, bool bAdaptProperties) 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 rtl::Reference< ::chart::ChartType > | getChartTypeForIndex (sal_Int32 nChartTypeIndex) override |
virtual StackMode | getStackMode (sal_Int32 nChartTypeIndex) const override |
returns StackMode::NONE by default. More... | |
Private Attributes | |
StackMode | m_eStackMode |
bool | m_bHasSymbols |
bool | m_bHasLines |
bool | m_bHasFilledArea |
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) |
Protected Attributes inherited from chart::ChartTypeTemplate | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
rtl::Reference< ::chart::DataInterpreter > | m_xDataInterpreter |
Definition at line 27 of file NetChartTypeTemplate.hxx.
|
explicit |
Definition at line 41 of file NetChartTypeTemplate.cxx.
|
overridevirtual |
Definition at line 55 of file NetChartTypeTemplate.cxx.
|
overrideprotectedvirtual |
Reimplemented from chart::ChartTypeTemplate.
Definition at line 63 of file NetChartTypeTemplate.cxx.
References chart::ChartTypeTemplate::applyStyle2(), DBG_UNHANDLED_EXCEPTION, m_bHasLines, m_bHasSymbols, chart::DataSeriesHelper::makeLinesThickOrThin(), chart::DataSeriesHelper::switchLinesOnOrOff(), and chart::DataSeriesHelper::switchSymbolsOnOrOff().
|
overrideprotectedvirtual |
Implements chart::ChartTypeTemplate.
Definition at line 156 of file NetChartTypeTemplate.cxx.
References m_bHasFilledArea.
Referenced by getChartTypeForNewSeries2().
|
overrideprotectedvirtual |
Implements chart::ChartTypeTemplate.
Definition at line 164 of file NetChartTypeTemplate.cxx.
References chart::ChartTypeTemplate::copyPropertiesFromOldToNewCoordinateSystem(), and getChartTypeForIndex().
|
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 58 of file NetChartTypeTemplate.cxx.
References m_eStackMode.
|
overrideprotectedvirtual |
Reimplemented from chart::ChartTypeTemplate.
Definition at line 84 of file NetChartTypeTemplate.cxx.
References DBG_UNHANDLED_EXCEPTION, m_bHasFilledArea, m_bHasLines, m_bHasSymbols, and chart::ChartTypeTemplate::matchesTemplate2().
|
private |
Definition at line 63 of file NetChartTypeTemplate.hxx.
Referenced by getChartTypeForIndex(), and matchesTemplate2().
|
private |
Definition at line 62 of file NetChartTypeTemplate.hxx.
Referenced by applyStyle2(), and matchesTemplate2().
|
private |
Definition at line 61 of file NetChartTypeTemplate.hxx.
Referenced by applyStyle2(), and matchesTemplate2().
|
private |
Definition at line 60 of file NetChartTypeTemplate.hxx.
Referenced by getStackMode().