24#include <com/sun/star/chart2/XChartTypeTemplate.hpp>
25#include <com/sun/star/lang/XServiceName.hpp>
42class BaseCoordinateSystem;
46class LabeledDataSequence;
83 css::chart2::XChartTypeTemplate,
84 css::lang::XServiceName >
87 explicit ChartTypeTemplate( css::uno::Reference< css::uno::XComponentContext >
const & xContext,
88 OUString aServiceName );
92 const css::uno::Reference< css::chart2::data::XDataSource >& xDataSource,
93 const css::uno::Sequence< css::beans::PropertyValue >&
aArguments );
96 virtual css::uno::Reference< css::chart2::XDiagram > SAL_CALL createDiagramByDataSource(
97 const css::uno::Reference< css::chart2::data::XDataSource >& xDataSource,
98 const css::uno::Sequence< css::beans::PropertyValue >&
aArguments )
override final;
100 virtual sal_Bool SAL_CALL supportsCategories()
override;
101 virtual void SAL_CALL changeDiagram(
102 const css::uno::Reference< css::chart2::XDiagram >& xDiagram )
override final;
103 virtual void SAL_CALL changeDiagramData(
104 const css::uno::Reference< css::chart2::XDiagram >& xDiagram,
105 const css::uno::Reference< css::chart2::data::XDataSource >& xDataSource,
106 const css::uno::Sequence< css::beans::PropertyValue >&
aArguments )
override final;
107 virtual sal_Bool SAL_CALL matchesTemplate(
108 const css::uno::Reference< css::chart2::XDiagram >& xDiagram,
109 sal_Bool bAdaptProperties )
override final;
110 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getDataInterpreter()
override final;
111 virtual css::uno::Reference< ::css::chart2::XChartType > SAL_CALL getChartTypeForNewSeries(
112 const css::uno::Sequence< css::uno::Reference< css::chart2::XChartType > >& aFormerlyUsedChartTypes )
override final;
113 virtual void SAL_CALL applyStyle(
114 const css::uno::Reference< css::chart2::XDataSeries >& xSeries,
115 ::sal_Int32 nChartTypeIndex,
116 ::sal_Int32 nSeriesIndex,
117 ::sal_Int32 nSeriesCount )
override final;
118 virtual void SAL_CALL resetStyles(
119 const css::uno::Reference< css::chart2::XDiagram >& xDiagram )
override final;
125 const css::uno::Reference< css::chart2::data::XDataSource >& xDataSource,
126 const css::uno::Sequence< css::beans::PropertyValue >& aArguments );
127 virtual bool matchesTemplate2(
129 bool bAdaptProperties );
134 virtual void applyStyle2(
136 ::sal_Int32 nChartTypeIndex,
137 ::sal_Int32 nSeriesIndex,
138 ::sal_Int32 nSeriesCount );
139 virtual void resetStyles2(
147 virtual OUString SAL_CALL getServiceName()
override;
152 virtual sal_Int32 getDimension()
const;
162 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex )
const;
167 virtual bool isSwapXAndY()
const;
176 virtual void adaptDiagram(
186 virtual void createCoordinateSystems(
194 virtual void adaptScales(
196 const css::uno::Reference< css::chart2::data::XLabeledDataSequence > & xCategories );
223 virtual void createChartTypes(
248 virtual sal_Int32 getAxisCountByDimension( sal_Int32 nDimension );
252 virtual void adaptAxes(
255 const css::uno::Reference< css::uno::XComponentContext >&
258 static void copyPropertiesFromOldToNewCoordinateSystem(
263 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
277 const css::uno::Reference< css::chart2::data::XLabeledDataSequence >& xCategories,
Reference< uno::XComponentContext > m_xContext
For creating diagrams and modifying existing diagrams.
css::uno::Reference< css::uno::XComponentContext > m_xContext
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 rtl::Reference< ::chart::ChartType > getChartTypeForIndex(sal_Int32 nChartTypeIndex)=0
const css::uno::Reference< css::uno::XComponentContext > & GetComponentContext() const
const OUString m_aServiceName
rtl::Reference< ::chart::DataInterpreter > m_xDataInterpreter
virtual rtl::Reference< ::chart::ChartType > getChartTypeForNewSeries2(const std::vector< rtl::Reference< ::chart::ChartType > > &aFormerlyUsedChartTypes)=0
Sequence< PropertyValue > aArguments