xref: /trunk/main/chart2/source/model/inc/CartesianCoordinateSystem.hxx (revision 91144cd0085a7583d2099b982122deb2184ab956)
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_CARTESIANCOORDINATESYSTEM_HXX
24 #define _CHART_CARTESIANCOORDINATESYSTEM_HXX
25 
26 #include "ServiceMacros.hxx"
27 #include "BaseCoordinateSystem.hxx"
28 
29 namespace chart
30 {
31 
32 class CartesianCoordinateSystem : public BaseCoordinateSystem
33 {
34 public:
35     explicit CartesianCoordinateSystem(
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 CartesianCoordinateSystem( const CartesianCoordinateSystem & rSource );
41     virtual ~CartesianCoordinateSystem();
42 
43     // ____ XCoordinateSystem ____
44     virtual ::rtl::OUString SAL_CALL getCoordinateSystemType();
45     virtual ::rtl::OUString SAL_CALL getViewServiceName();
46 
47     // ____ XCloneable ____
48     virtual ::com::sun::star::uno::Reference<
49             ::com::sun::star::util::XCloneable > SAL_CALL createClone();
50 
51     // ____ XServiceInfo ____
52     APPHELPER_XSERVICEINFO_DECL()
53 };
54 
55 class CartesianCoordinateSystem2d : public CartesianCoordinateSystem
56 {
57 public:
58     explicit CartesianCoordinateSystem2d(
59         const ::com::sun::star::uno::Reference<
60             ::com::sun::star::uno::XComponentContext > & xContext );
61     virtual ~CartesianCoordinateSystem2d();
62 
63     /// establish methods for factory instantiation
64     APPHELPER_SERVICE_FACTORY_HELPER( CartesianCoordinateSystem2d )
65     // ____ XServiceInfo ____
66     APPHELPER_XSERVICEINFO_DECL()
67 };
68 
69 class CartesianCoordinateSystem3d : public CartesianCoordinateSystem
70 {
71 public:
72     explicit CartesianCoordinateSystem3d(
73         const ::com::sun::star::uno::Reference<
74             ::com::sun::star::uno::XComponentContext > & xContext );
75     virtual ~CartesianCoordinateSystem3d();
76 
77     /// establish methods for factory instantiation
78     APPHELPER_SERVICE_FACTORY_HELPER( CartesianCoordinateSystem3d )
79     // ____ XServiceInfo ____
80     APPHELPER_XSERVICEINFO_DECL()
81 };
82 
83 }  // namespace chart
84 
85 // _CHART_CARTESIANCOORDINATESYSTEM_HXX
86 #endif
87