1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PolarCoordinateSystem.hxx,v $
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"
39 class PolarCoordinateSystem
: public BaseCoordinateSystem
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
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
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()
95 // _CHART_POLARCOORDINATESYSTEM_HXX