merged tag ooo/OOO330_m14
[LibreOffice.git] / chart2 / source / model / template / NetChartTypeTemplate.hxx
blobf66355a3576ec4c27d12f1f9c5c2d86fbee47e76
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_NETCHARTTYPETEMPLATE_HXX
28 #define CHART_NETCHARTTYPETEMPLATE_HXX
30 #include "ChartTypeTemplate.hxx"
31 #include "StackMode.hxx"
33 namespace chart
36 class NetChartTypeTemplate : public ChartTypeTemplate
38 public:
39 explicit NetChartTypeTemplate(
40 ::com::sun::star::uno::Reference<
41 ::com::sun::star::uno::XComponentContext > const & xContext,
42 const ::rtl::OUString & rServiceName,
43 StackMode eStackMode,
44 bool bSymbols,
45 bool bHasLines = true,
46 bool bHasFilledArea = false
48 virtual ~NetChartTypeTemplate();
50 APPHELPER_XSERVICEINFO_DECL()
52 protected:
53 // ____ XChartTypeTemplate ____
54 virtual sal_Bool SAL_CALL matchesTemplate(
55 const ::com::sun::star::uno::Reference<
56 ::com::sun::star::chart2::XDiagram >& xDiagram,
57 sal_Bool bAdaptProperties )
58 throw (::com::sun::star::uno::RuntimeException);
59 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL
60 getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence<
61 ::com::sun::star::uno::Reference<
62 ::com::sun::star::chart2::XChartType > >& aFormerlyUsedChartTypes )
63 throw (::com::sun::star::uno::RuntimeException);
64 virtual void SAL_CALL applyStyle(
65 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries,
66 ::sal_Int32 nChartTypeGroupIndex,
67 ::sal_Int32 nSeriesIndex,
68 ::sal_Int32 nSeriesCount )
69 throw (::com::sun::star::uno::RuntimeException);
71 // ____ ChartTypeTemplate ____
72 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType >
73 getChartTypeForIndex( sal_Int32 nChartTypeIndex );
74 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const;
77 private:
78 StackMode m_eStackMode;
79 bool m_bHasSymbols;
80 bool m_bHasLines;
81 bool m_bHasFilledArea;
84 } // namespace chart
86 // CHART_NETCHARTTYPETEMPLATE_HXX
87 #endif