merged tag ooo/OOO330_m14
[LibreOffice.git] / chart2 / source / model / template / BubbleChartTypeTemplate.hxx
blob24d35c6acbb7c638e0fa8c3b695aee3fb3a2e57e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef CHART_BUBBLECHARTTYPETEMPLATE_HXX
28 #define CHART_BUBBLECHARTTYPETEMPLATE_HXX
30 #include "ChartTypeTemplate.hxx"
31 #include "OPropertySet.hxx"
32 #include "MutexContainer.hxx"
33 #include <comphelper/uno3.hxx>
35 namespace chart
38 class BubbleChartTypeTemplate :
39 public MutexContainer,
40 public ChartTypeTemplate,
41 public ::property::OPropertySet
43 public:
44 explicit BubbleChartTypeTemplate(
45 ::com::sun::star::uno::Reference<
46 ::com::sun::star::uno::XComponentContext > const & xContext,
47 const ::rtl::OUString & rServiceName );
48 virtual ~BubbleChartTypeTemplate();
50 /// XServiceInfo declarations
51 APPHELPER_XSERVICEINFO_DECL()
53 /// merge XInterface implementations
54 DECLARE_XINTERFACE()
55 /// merge XTypeProvider implementations
56 DECLARE_XTYPEPROVIDER()
58 protected:
59 // ____ OPropertySet ____
60 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
61 throw(::com::sun::star::beans::UnknownPropertyException);
62 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
64 // ____ XPropertySet ____
65 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
66 getPropertySetInfo()
67 throw (::com::sun::star::uno::RuntimeException);
69 // ____ XChartTypeTemplate ____
70 virtual sal_Bool SAL_CALL supportsCategories()
71 throw (::com::sun::star::uno::RuntimeException);
72 virtual sal_Bool SAL_CALL matchesTemplate(
73 const ::com::sun::star::uno::Reference<
74 ::com::sun::star::chart2::XDiagram >& xDiagram,
75 sal_Bool bAdaptProperties )
76 throw (::com::sun::star::uno::RuntimeException);
77 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL
78 getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence<
79 ::com::sun::star::uno::Reference<
80 ::com::sun::star::chart2::XChartType > >& aFormerlyUsedChartTypes )
81 throw (::com::sun::star::uno::RuntimeException);
82 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataInterpreter > SAL_CALL getDataInterpreter()
83 throw (::com::sun::star::uno::RuntimeException);
84 virtual void SAL_CALL applyStyle(
85 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries,
86 ::sal_Int32 nChartTypeGroupIndex,
87 ::sal_Int32 nSeriesIndex,
88 ::sal_Int32 nSeriesCount )
89 throw (::com::sun::star::uno::RuntimeException);
91 // ____ ChartTypeTemplate ____
92 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType >
93 getChartTypeForIndex( sal_Int32 nChartTypeIndex );
94 virtual sal_Int32 getDimension() const;
95 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const;
98 } // namespace chart
100 // CHART_BUBBLECHARTTYPETEMPLATE_HXX
101 #endif