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

#include <NetChartTypeTemplate.hxx>

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

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::DiagramcreateDiagramByDataSource2 (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::ChartTypegetChartTypeForNewSeries2 (const std::vector< rtl::Reference< ::chart::ChartType > > &aFormerlyUsedChartTypes)=0
 
virtual rtl::Reference< ::chart::DataInterpretergetDataInterpreter2 ()
 
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::ChartTypegetChartTypeForIndex (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::ChartTypegetChartTypeForNewSeries2 (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::ChartTypegetChartTypeForIndex (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::DataInterpreterm_xDataInterpreter
 

Detailed Description

Definition at line 27 of file NetChartTypeTemplate.hxx.

Constructor & Destructor Documentation

◆ NetChartTypeTemplate()

chart::NetChartTypeTemplate::NetChartTypeTemplate ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
const OUString &  rServiceName,
StackMode  eStackMode,
bool  bSymbols,
bool  bHasLines = true,
bool  bHasFilledArea = false 
)
explicit

Definition at line 41 of file NetChartTypeTemplate.cxx.

◆ ~NetChartTypeTemplate()

chart::NetChartTypeTemplate::~NetChartTypeTemplate ( )
overridevirtual

Definition at line 55 of file NetChartTypeTemplate.cxx.

Member Function Documentation

◆ applyStyle2()

void chart::NetChartTypeTemplate::applyStyle2 ( const rtl::Reference< ::chart::DataSeries > &  xSeries,
::sal_Int32  nChartTypeGroupIndex,
::sal_Int32  nSeriesIndex,
::sal_Int32  nSeriesCount 
)
overrideprotectedvirtual

◆ getChartTypeForIndex()

rtl::Reference< ChartType > chart::NetChartTypeTemplate::getChartTypeForIndex ( sal_Int32  nChartTypeIndex)
overrideprotectedvirtual

Implements chart::ChartTypeTemplate.

Definition at line 156 of file NetChartTypeTemplate.cxx.

References m_bHasFilledArea.

Referenced by getChartTypeForNewSeries2().

◆ getChartTypeForNewSeries2()

rtl::Reference< ChartType > chart::NetChartTypeTemplate::getChartTypeForNewSeries2 ( const std::vector< rtl::Reference< ::chart::ChartType > > &  aFormerlyUsedChartTypes)
overrideprotectedvirtual

◆ getStackMode()

StackMode chart::NetChartTypeTemplate::getStackMode ( sal_Int32  nChartTypeIndex) const
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)

Parameters
nChartTypeIndexdenotes 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.

◆ matchesTemplate2()

bool chart::NetChartTypeTemplate::matchesTemplate2 ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
bool  bAdaptProperties 
)
overrideprotectedvirtual

Member Data Documentation

◆ m_bHasFilledArea

bool chart::NetChartTypeTemplate::m_bHasFilledArea
private

Definition at line 63 of file NetChartTypeTemplate.hxx.

Referenced by getChartTypeForIndex(), and matchesTemplate2().

◆ m_bHasLines

bool chart::NetChartTypeTemplate::m_bHasLines
private

Definition at line 62 of file NetChartTypeTemplate.hxx.

Referenced by applyStyle2(), and matchesTemplate2().

◆ m_bHasSymbols

bool chart::NetChartTypeTemplate::m_bHasSymbols
private

Definition at line 61 of file NetChartTypeTemplate.hxx.

Referenced by applyStyle2(), and matchesTemplate2().

◆ m_eStackMode

StackMode chart::NetChartTypeTemplate::m_eStackMode
private

Definition at line 60 of file NetChartTypeTemplate.hxx.

Referenced by getStackMode().


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