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