1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef CHART_BUBBLECHARTTYPETEMPLATE_HXX
24 #define CHART_BUBBLECHARTTYPETEMPLATE_HXX
25 
26 #include "ChartTypeTemplate.hxx"
27 #include "OPropertySet.hxx"
28 #include "MutexContainer.hxx"
29 #include <comphelper/uno3.hxx>
30 
31 namespace chart
32 {
33 
34 class BubbleChartTypeTemplate :
35         public MutexContainer,
36         public ChartTypeTemplate,
37         public ::property::OPropertySet
38 {
39 public:
40     explicit BubbleChartTypeTemplate(
41         ::com::sun::star::uno::Reference<
42             ::com::sun::star::uno::XComponentContext > const & xContext,
43         const ::rtl::OUString & rServiceName );
44 	virtual ~BubbleChartTypeTemplate();
45 
46     /// XServiceInfo declarations
47     APPHELPER_XSERVICEINFO_DECL()
48 
49     /// merge XInterface implementations
50  	DECLARE_XINTERFACE()
51     /// merge XTypeProvider implementations
52  	DECLARE_XTYPEPROVIDER()
53 
54 protected:
55     // ____ OPropertySet ____
56     virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
57         throw(::com::sun::star::beans::UnknownPropertyException);
58     virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
59 
60     // ____ XPropertySet ____
61     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
62         getPropertySetInfo()
63         throw (::com::sun::star::uno::RuntimeException);
64 
65     // ____ XChartTypeTemplate ____
66     virtual sal_Bool SAL_CALL supportsCategories()
67         throw (::com::sun::star::uno::RuntimeException);
68     virtual sal_Bool SAL_CALL matchesTemplate(
69         const ::com::sun::star::uno::Reference<
70             ::com::sun::star::chart2::XDiagram >& xDiagram,
71         sal_Bool bAdaptProperties )
72         throw (::com::sun::star::uno::RuntimeException);
73     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL
74         getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence<
75             ::com::sun::star::uno::Reference<
76                 ::com::sun::star::chart2::XChartType > >& aFormerlyUsedChartTypes )
77         throw (::com::sun::star::uno::RuntimeException);
78     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataInterpreter > SAL_CALL getDataInterpreter()
79         throw (::com::sun::star::uno::RuntimeException);
80     virtual void SAL_CALL applyStyle(
81         const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries,
82         ::sal_Int32 nChartTypeGroupIndex,
83         ::sal_Int32 nSeriesIndex,
84         ::sal_Int32 nSeriesCount )
85         throw (::com::sun::star::uno::RuntimeException);
86 
87     // ____ ChartTypeTemplate ____
88     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType >
89                 getChartTypeForIndex( sal_Int32 nChartTypeIndex );
90     virtual sal_Int32 getDimension() const;
91     virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const;
92 };
93 
94 } //  namespace chart
95 
96 // CHART_BUBBLECHARTTYPETEMPLATE_HXX
97 #endif
98