merged tag ooo/OOO330_m14
[LibreOffice.git] / chart2 / source / model / template / ScatterChartTypeTemplate.hxx
blob048cca73a92c5c445838b4be06b9f3362fd14c19
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_SCATTERCHARTTYPETEMPLATE_HXX
28 #define CHART_SCATTERCHARTTYPETEMPLATE_HXX
30 #include "ChartTypeTemplate.hxx"
31 #include "OPropertySet.hxx"
32 #include "MutexContainer.hxx"
33 #include <comphelper/uno3.hxx>
34 #include <com/sun/star/chart2/CurveStyle.hpp>
36 namespace chart
39 class ScatterChartTypeTemplate :
40 public MutexContainer,
41 public ChartTypeTemplate,
42 public ::property::OPropertySet
44 public:
45 explicit ScatterChartTypeTemplate(
46 ::com::sun::star::uno::Reference<
47 ::com::sun::star::uno::XComponentContext > const & xContext,
48 const ::rtl::OUString & rServiceName,
49 bool bSymbols,
50 bool bHasLines = true,
51 sal_Int32 nDim = 2 );
52 virtual ~ScatterChartTypeTemplate();
54 /// XServiceInfo declarations
55 APPHELPER_XSERVICEINFO_DECL()
57 /// merge XInterface implementations
58 DECLARE_XINTERFACE()
59 /// merge XTypeProvider implementations
60 DECLARE_XTYPEPROVIDER()
62 protected:
63 // ____ OPropertySet ____
64 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
65 throw(::com::sun::star::beans::UnknownPropertyException);
66 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
68 // ____ XPropertySet ____
69 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
70 getPropertySetInfo()
71 throw (::com::sun::star::uno::RuntimeException);
73 // ____ XChartTypeTemplate ____
74 virtual sal_Bool SAL_CALL supportsCategories()
75 throw (::com::sun::star::uno::RuntimeException);
76 virtual sal_Bool SAL_CALL matchesTemplate(
77 const ::com::sun::star::uno::Reference<
78 ::com::sun::star::chart2::XDiagram >& xDiagram,
79 sal_Bool bAdaptProperties )
80 throw (::com::sun::star::uno::RuntimeException);
81 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL
82 getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence<
83 ::com::sun::star::uno::Reference<
84 ::com::sun::star::chart2::XChartType > >& aFormerlyUsedChartTypes )
85 throw (::com::sun::star::uno::RuntimeException);
86 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataInterpreter > SAL_CALL getDataInterpreter()
87 throw (::com::sun::star::uno::RuntimeException);
88 virtual void SAL_CALL applyStyle(
89 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries,
90 ::sal_Int32 nChartTypeGroupIndex,
91 ::sal_Int32 nSeriesIndex,
92 ::sal_Int32 nSeriesCount )
93 throw (::com::sun::star::uno::RuntimeException);
95 // ____ ChartTypeTemplate ____
96 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType >
97 getChartTypeForIndex( sal_Int32 nChartTypeIndex );
98 virtual sal_Int32 getDimension() const;
99 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const;
101 private:
102 bool m_bHasSymbols;
103 bool m_bHasLines;
104 sal_Int32 m_nDim;
107 } // namespace chart
109 // CHART_SCATTERCHARTTYPETEMPLATE_HXX
110 #endif