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"
36 class NetChartTypeTemplate
: public ChartTypeTemplate
39 explicit NetChartTypeTemplate(
40 ::com::sun::star::uno::Reference
<
41 ::com::sun::star::uno::XComponentContext
> const & xContext
,
42 const ::rtl::OUString
& rServiceName
,
45 bool bHasLines
= true,
46 bool bHasFilledArea
= false
48 virtual ~NetChartTypeTemplate();
50 APPHELPER_XSERVICEINFO_DECL()
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;
78 StackMode m_eStackMode
;
81 bool m_bHasFilledArea
;
86 // CHART_NETCHARTTYPETEMPLATE_HXX