Update ooo320-m1
[ooovba.git] / chart2 / source / model / inc / PolarCoordinateSystem.hxx
blobf0ca6e8d9c1ed02aab387730d1ae4dbeaf7fbc40
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: PolarCoordinateSystem.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_POLARCOORDINATESYSTEM_HXX
31 #define _CHART_POLARCOORDINATESYSTEM_HXX
33 #include "ServiceMacros.hxx"
34 #include "BaseCoordinateSystem.hxx"
36 namespace chart
39 class PolarCoordinateSystem : public BaseCoordinateSystem
41 public:
42 explicit PolarCoordinateSystem(
43 const ::com::sun::star::uno::Reference<
44 ::com::sun::star::uno::XComponentContext > & xContext,
45 sal_Int32 nDimensionCount = 2,
46 sal_Bool bSwapXAndYAxis = sal_False );
47 explicit PolarCoordinateSystem( const PolarCoordinateSystem & rSource );
48 virtual ~PolarCoordinateSystem();
50 // ____ XCoordinateSystem ____
51 virtual ::rtl::OUString SAL_CALL getCoordinateSystemType()
52 throw (::com::sun::star::uno::RuntimeException);
53 virtual ::rtl::OUString SAL_CALL getViewServiceName()
54 throw (::com::sun::star::uno::RuntimeException);
56 // ____ XCloneable ____
57 virtual ::com::sun::star::uno::Reference<
58 ::com::sun::star::util::XCloneable > SAL_CALL createClone()
59 throw (::com::sun::star::uno::RuntimeException);
61 // ____ XServiceInfo ____
62 APPHELPER_XSERVICEINFO_DECL()
65 class PolarCoordinateSystem2d : public PolarCoordinateSystem
67 public:
68 explicit PolarCoordinateSystem2d(
69 const ::com::sun::star::uno::Reference<
70 ::com::sun::star::uno::XComponentContext > & xContext );
71 virtual ~PolarCoordinateSystem2d();
73 /// establish methods for factory instatiation
74 APPHELPER_SERVICE_FACTORY_HELPER( PolarCoordinateSystem2d )
75 // ____ XServiceInfo ____
76 APPHELPER_XSERVICEINFO_DECL()
79 class PolarCoordinateSystem3d : public PolarCoordinateSystem
81 public:
82 explicit PolarCoordinateSystem3d(
83 const ::com::sun::star::uno::Reference<
84 ::com::sun::star::uno::XComponentContext > & xContext );
85 virtual ~PolarCoordinateSystem3d();
87 /// establish methods for factory instatiation
88 APPHELPER_SERVICE_FACTORY_HELPER( PolarCoordinateSystem3d )
89 // ____ XServiceInfo ____
90 APPHELPER_XSERVICEINFO_DECL()
93 } // namespace chart
95 // _CHART_POLARCOORDINATESYSTEM_HXX
96 #endif