1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _CHART_CARTESIANCOORDINATESYSTEM_HXX
20 #define _CHART_CARTESIANCOORDINATESYSTEM_HXX
22 #include "ServiceMacros.hxx"
23 #include "BaseCoordinateSystem.hxx"
28 class CartesianCoordinateSystem
: public BaseCoordinateSystem
31 explicit CartesianCoordinateSystem(
32 const ::com::sun::star::uno::Reference
<
33 ::com::sun::star::uno::XComponentContext
> & xContext
,
34 sal_Int32 nDimensionCount
= 2,
35 sal_Bool bSwapXAndYAxis
= sal_False
);
36 explicit CartesianCoordinateSystem( const CartesianCoordinateSystem
& rSource
);
37 virtual ~CartesianCoordinateSystem();
39 // ____ XCoordinateSystem ____
40 virtual OUString SAL_CALL
getCoordinateSystemType()
41 throw (::com::sun::star::uno::RuntimeException
);
42 virtual OUString SAL_CALL
getViewServiceName()
43 throw (::com::sun::star::uno::RuntimeException
);
45 // ____ XCloneable ____
46 virtual ::com::sun::star::uno::Reference
<
47 ::com::sun::star::util::XCloneable
> SAL_CALL
createClone()
48 throw (::com::sun::star::uno::RuntimeException
);
50 // ____ XServiceInfo ____
51 APPHELPER_XSERVICEINFO_DECL()
54 class CartesianCoordinateSystem2d
: public CartesianCoordinateSystem
57 explicit CartesianCoordinateSystem2d(
58 const ::com::sun::star::uno::Reference
<
59 ::com::sun::star::uno::XComponentContext
> & xContext
);
60 virtual ~CartesianCoordinateSystem2d();
62 /// establish methods for factory instatiation
63 APPHELPER_SERVICE_FACTORY_HELPER( CartesianCoordinateSystem2d
)
64 // ____ XServiceInfo ____
65 APPHELPER_XSERVICEINFO_DECL()
68 class CartesianCoordinateSystem3d
: public CartesianCoordinateSystem
71 explicit CartesianCoordinateSystem3d(
72 const ::com::sun::star::uno::Reference
<
73 ::com::sun::star::uno::XComponentContext
> & xContext
);
74 virtual ~CartesianCoordinateSystem3d();
76 /// establish methods for factory instatiation
77 APPHELPER_SERVICE_FACTORY_HELPER( CartesianCoordinateSystem3d
)
78 // ____ XServiceInfo ____
79 APPHELPER_XSERVICEINFO_DECL()
84 // _CHART_CARTESIANCOORDINATESYSTEM_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */