Bump for 3.6-28
[LibreOffice.git] / chart2 / source / model / template / ScatterChartTypeTemplate.hxx
blob24ee0c15d1ad7f25f0166270361820c0ae36884e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef CHART_SCATTERCHARTTYPETEMPLATE_HXX
29 #define CHART_SCATTERCHARTTYPETEMPLATE_HXX
31 #include "ChartTypeTemplate.hxx"
32 #include "OPropertySet.hxx"
33 #include "MutexContainer.hxx"
34 #include <comphelper/uno3.hxx>
35 #include <com/sun/star/chart2/CurveStyle.hpp>
37 namespace chart
40 class ScatterChartTypeTemplate :
41 public MutexContainer,
42 public ChartTypeTemplate,
43 public ::property::OPropertySet
45 public:
46 explicit ScatterChartTypeTemplate(
47 ::com::sun::star::uno::Reference<
48 ::com::sun::star::uno::XComponentContext > const & xContext,
49 const ::rtl::OUString & rServiceName,
50 bool bSymbols,
51 bool bHasLines = true,
52 sal_Int32 nDim = 2 );
53 virtual ~ScatterChartTypeTemplate();
55 /// XServiceInfo declarations
56 APPHELPER_XSERVICEINFO_DECL()
58 /// merge XInterface implementations
59 DECLARE_XINTERFACE()
60 /// merge XTypeProvider implementations
61 DECLARE_XTYPEPROVIDER()
63 protected:
64 // ____ OPropertySet ____
65 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
66 throw(::com::sun::star::beans::UnknownPropertyException);
67 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
69 // ____ XPropertySet ____
70 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
71 getPropertySetInfo()
72 throw (::com::sun::star::uno::RuntimeException);
74 // ____ XChartTypeTemplate ____
75 virtual sal_Bool SAL_CALL supportsCategories()
76 throw (::com::sun::star::uno::RuntimeException);
77 virtual sal_Bool SAL_CALL matchesTemplate(
78 const ::com::sun::star::uno::Reference<
79 ::com::sun::star::chart2::XDiagram >& xDiagram,
80 sal_Bool bAdaptProperties )
81 throw (::com::sun::star::uno::RuntimeException);
82 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL
83 getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence<
84 ::com::sun::star::uno::Reference<
85 ::com::sun::star::chart2::XChartType > >& aFormerlyUsedChartTypes )
86 throw (::com::sun::star::uno::RuntimeException);
87 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataInterpreter > SAL_CALL getDataInterpreter()
88 throw (::com::sun::star::uno::RuntimeException);
89 virtual void SAL_CALL applyStyle(
90 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries,
91 ::sal_Int32 nChartTypeGroupIndex,
92 ::sal_Int32 nSeriesIndex,
93 ::sal_Int32 nSeriesCount )
94 throw (::com::sun::star::uno::RuntimeException);
96 // ____ ChartTypeTemplate ____
97 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType >
98 getChartTypeForIndex( sal_Int32 nChartTypeIndex );
99 virtual sal_Int32 getDimension() const;
100 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const;
102 private:
103 bool m_bHasSymbols;
104 bool m_bHasLines;
105 sal_Int32 m_nDim;
108 } // namespace chart
110 // CHART_SCATTERCHARTTYPETEMPLATE_HXX
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */