Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_CHART2_XCHARTTYPETEMPLATE_HDL
2 : #define INCLUDED_COM_SUN_STAR_CHART2_XCHARTTYPETEMPLATE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : namespace com { namespace sun { namespace star { namespace chart2 { class XDataSeries; } } } }
8 : namespace com { namespace sun { namespace star { namespace chart2 { class XDataInterpreter; } } } }
9 : namespace com { namespace sun { namespace star { namespace chart2 { class XChartType; } } } }
10 : #include "com/sun/star/beans/PropertyValue.hdl"
11 : namespace com { namespace sun { namespace star { namespace chart2 { namespace data { class XDataSource; } } } } }
12 : namespace com { namespace sun { namespace star { namespace chart2 { class XDiagram; } } } }
13 : #include "com/sun/star/uno/XInterface.hdl"
14 : #include "com/sun/star/uno/Reference.h"
15 : #include "com/sun/star/uno/Sequence.h"
16 : #include "cppu/macros.hxx"
17 : #include "sal/types.h"
18 :
19 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
20 :
21 : namespace com { namespace sun { namespace star { namespace chart2 {
22 :
23 41 : class SAL_NO_VTABLE XChartTypeTemplate : public css::uno::XInterface
24 : {
25 : public:
26 :
27 : // Methods
28 : virtual ::com::sun::star::uno::Reference< css::chart2::XDiagram > SAL_CALL createDiagramByDataSource( const ::com::sun::star::uno::Reference< css::chart2::data::XDataSource >& xDataSource, const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& aArguments ) = 0;
29 : virtual ::sal_Bool SAL_CALL supportsCategories() = 0;
30 : virtual void SAL_CALL changeDiagram( const ::com::sun::star::uno::Reference< css::chart2::XDiagram >& xDiagram ) = 0;
31 : virtual void SAL_CALL changeDiagramData( const ::com::sun::star::uno::Reference< css::chart2::XDiagram >& xDiagram, const ::com::sun::star::uno::Reference< css::chart2::data::XDataSource >& xDataSource, const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& aArguments ) = 0;
32 : virtual ::sal_Bool SAL_CALL matchesTemplate( const ::com::sun::star::uno::Reference< css::chart2::XDiagram >& xDiagram, ::sal_Bool bAdaptProperties ) = 0;
33 : virtual ::com::sun::star::uno::Reference< css::chart2::XChartType > SAL_CALL getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::chart2::XChartType > >& aFormerlyUsedChartTypes ) = 0;
34 : virtual ::com::sun::star::uno::Reference< css::chart2::XDataInterpreter > SAL_CALL getDataInterpreter() = 0;
35 : virtual void SAL_CALL applyStyle( const ::com::sun::star::uno::Reference< css::chart2::XDataSeries >& xSeries, ::sal_Int32 nChartTypeGroupIndex, ::sal_Int32 nSeriesIndex, ::sal_Int32 nSeriesCount ) = 0;
36 : virtual void SAL_CALL resetStyles( const ::com::sun::star::uno::Reference< css::chart2::XDiagram >& xDiagram ) = 0;
37 :
38 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
39 :
40 : protected:
41 41 : ~XChartTypeTemplate() throw () {} // avoid warnings about virtual members and non-virtual dtor
42 : };
43 :
44 :
45 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::chart2::XChartTypeTemplate const *);
46 : } } } }
47 :
48 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::chart2::XChartTypeTemplate > *) SAL_THROW(());
49 :
50 : #endif
|