1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _CHART_POLARCOORDINATESYSTEM_HXX 24 #define _CHART_POLARCOORDINATESYSTEM_HXX 25 26 #include "ServiceMacros.hxx" 27 #include "BaseCoordinateSystem.hxx" 28 29 namespace chart 30 { 31 32 class PolarCoordinateSystem : public BaseCoordinateSystem 33 { 34 public: 35 explicit PolarCoordinateSystem( 36 const ::com::sun::star::uno::Reference< 37 ::com::sun::star::uno::XComponentContext > & xContext, 38 sal_Int32 nDimensionCount = 2, 39 sal_Bool bSwapXAndYAxis = sal_False ); 40 explicit PolarCoordinateSystem( const PolarCoordinateSystem & rSource ); 41 virtual ~PolarCoordinateSystem(); 42 43 // ____ XCoordinateSystem ____ 44 virtual ::rtl::OUString SAL_CALL getCoordinateSystemType() 45 throw (::com::sun::star::uno::RuntimeException); 46 virtual ::rtl::OUString SAL_CALL getViewServiceName() 47 throw (::com::sun::star::uno::RuntimeException); 48 49 // ____ XCloneable ____ 50 virtual ::com::sun::star::uno::Reference< 51 ::com::sun::star::util::XCloneable > SAL_CALL createClone() 52 throw (::com::sun::star::uno::RuntimeException); 53 54 // ____ XServiceInfo ____ 55 APPHELPER_XSERVICEINFO_DECL() 56 }; 57 58 class PolarCoordinateSystem2d : public PolarCoordinateSystem 59 { 60 public: 61 explicit PolarCoordinateSystem2d( 62 const ::com::sun::star::uno::Reference< 63 ::com::sun::star::uno::XComponentContext > & xContext ); 64 virtual ~PolarCoordinateSystem2d(); 65 66 /// establish methods for factory instatiation 67 APPHELPER_SERVICE_FACTORY_HELPER( PolarCoordinateSystem2d ) 68 // ____ XServiceInfo ____ 69 APPHELPER_XSERVICEINFO_DECL() 70 }; 71 72 class PolarCoordinateSystem3d : public PolarCoordinateSystem 73 { 74 public: 75 explicit PolarCoordinateSystem3d( 76 const ::com::sun::star::uno::Reference< 77 ::com::sun::star::uno::XComponentContext > & xContext ); 78 virtual ~PolarCoordinateSystem3d(); 79 80 /// establish methods for factory instatiation 81 APPHELPER_SERVICE_FACTORY_HELPER( PolarCoordinateSystem3d ) 82 // ____ XServiceInfo ____ 83 APPHELPER_XSERVICEINFO_DECL() 84 }; 85 86 } // namespace chart 87 88 // _CHART_POLARCOORDINATESYSTEM_HXX 89 #endif 90