1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 #ifndef _CHART_CARTESIANCOORDINATESYSTEM_HXX 28 #define _CHART_CARTESIANCOORDINATESYSTEM_HXX 29 30 #include "ServiceMacros.hxx" 31 #include "BaseCoordinateSystem.hxx" 32 33 namespace chart 34 { 35 36 class CartesianCoordinateSystem : public BaseCoordinateSystem 37 { 38 public: 39 explicit CartesianCoordinateSystem( 40 const ::com::sun::star::uno::Reference< 41 ::com::sun::star::uno::XComponentContext > & xContext, 42 sal_Int32 nDimensionCount = 2, 43 sal_Bool bSwapXAndYAxis = sal_False ); 44 explicit CartesianCoordinateSystem( const CartesianCoordinateSystem & rSource ); 45 virtual ~CartesianCoordinateSystem(); 46 47 // ____ XCoordinateSystem ____ 48 virtual ::rtl::OUString SAL_CALL getCoordinateSystemType() 49 throw (::com::sun::star::uno::RuntimeException); 50 virtual ::rtl::OUString SAL_CALL getViewServiceName() 51 throw (::com::sun::star::uno::RuntimeException); 52 53 // ____ XCloneable ____ 54 virtual ::com::sun::star::uno::Reference< 55 ::com::sun::star::util::XCloneable > SAL_CALL createClone() 56 throw (::com::sun::star::uno::RuntimeException); 57 58 // ____ XServiceInfo ____ 59 APPHELPER_XSERVICEINFO_DECL() 60 }; 61 62 class CartesianCoordinateSystem2d : public CartesianCoordinateSystem 63 { 64 public: 65 explicit CartesianCoordinateSystem2d( 66 const ::com::sun::star::uno::Reference< 67 ::com::sun::star::uno::XComponentContext > & xContext ); 68 virtual ~CartesianCoordinateSystem2d(); 69 70 /// establish methods for factory instatiation 71 APPHELPER_SERVICE_FACTORY_HELPER( CartesianCoordinateSystem2d ) 72 // ____ XServiceInfo ____ 73 APPHELPER_XSERVICEINFO_DECL() 74 }; 75 76 class CartesianCoordinateSystem3d : public CartesianCoordinateSystem 77 { 78 public: 79 explicit CartesianCoordinateSystem3d( 80 const ::com::sun::star::uno::Reference< 81 ::com::sun::star::uno::XComponentContext > & xContext ); 82 virtual ~CartesianCoordinateSystem3d(); 83 84 /// establish methods for factory instatiation 85 APPHELPER_SERVICE_FACTORY_HELPER( CartesianCoordinateSystem3d ) 86 // ____ XServiceInfo ____ 87 APPHELPER_XSERVICEINFO_DECL() 88 }; 89 90 } // namespace chart 91 92 // _CHART_CARTESIANCOORDINATESYSTEM_HXX 93 #endif 94