update dev300-m58
[ooovba.git] / chart2 / source / model / template / ScatterChartType.hxx
blobc2d2431027ab79e8724151aa28e9cce3910c07f7
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: ScatterChartType.hxx,v $
10 * $Revision: 1.6 $
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_SCATTERCHARTTYPE_HXX
31 #define CHART_SCATTERCHARTTYPE_HXX
33 #include "ChartType.hxx"
34 #include "ServiceMacros.hxx"
35 #include <com/sun/star/chart2/CurveStyle.hpp>
37 namespace chart
40 class ScatterChartType : public ChartType
42 public:
43 ScatterChartType(
44 ::com::sun::star::uno::Reference<
45 ::com::sun::star::uno::XComponentContext > const & xContext,
46 ::com::sun::star::chart2::CurveStyle eCurveStyle =
47 ::com::sun::star::chart2::CurveStyle_LINES,
48 sal_Int32 nResolution = 20,
49 sal_Int32 nOrder = 3 );
50 virtual ~ScatterChartType();
52 APPHELPER_XSERVICEINFO_DECL()
54 /// establish methods for factory instatiation
55 APPHELPER_SERVICE_FACTORY_HELPER( ScatterChartType )
57 protected:
58 explicit ScatterChartType( const ScatterChartType & rOther );
60 // ____ XChartType ____
61 virtual ::rtl::OUString SAL_CALL getChartType()
62 throw (::com::sun::star::uno::RuntimeException);
63 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
64 getSupportedMandatoryRoles()
65 throw (::com::sun::star::uno::RuntimeException);
66 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
67 getSupportedOptionalRoles()
68 throw (::com::sun::star::uno::RuntimeException);
69 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XCoordinateSystem > SAL_CALL
70 createCoordinateSystem( ::sal_Int32 DimensionCount )
71 throw (::com::sun::star::lang::IllegalArgumentException,
72 ::com::sun::star::uno::RuntimeException);
74 // ____ OPropertySet ____
75 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
76 throw(::com::sun::star::beans::UnknownPropertyException);
78 // ____ OPropertySet ____
79 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
81 // ____ XPropertySet ____
82 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
83 getPropertySetInfo()
84 throw (::com::sun::star::uno::RuntimeException);
86 // ____ XCloneable ____
87 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
88 throw (::com::sun::star::uno::RuntimeException);
91 } // namespace chart
93 // CHART_SCATTERCHARTTYPE_HXX
94 #endif