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 INCLUDED_CHART2_SOURCE_MODEL_INC_CARTESIANCOORDINATESYSTEM_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_INC_CARTESIANCOORDINATESYSTEM_HXX
22 #include "BaseCoordinateSystem.hxx"
27 class CartesianCoordinateSystem
: public BaseCoordinateSystem
30 explicit CartesianCoordinateSystem(
31 const ::com::sun::star::uno::Reference
<
32 ::com::sun::star::uno::XComponentContext
> & xContext
,
33 sal_Int32 nDimensionCount
= 2,
34 bool bSwapXAndYAxis
= false );
35 explicit CartesianCoordinateSystem( const CartesianCoordinateSystem
& rSource
);
36 virtual ~CartesianCoordinateSystem();
38 // ____ XCoordinateSystem ____
39 virtual OUString SAL_CALL
getCoordinateSystemType()
40 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
41 virtual OUString SAL_CALL
getViewServiceName()
42 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
44 // ____ XCloneable ____
45 virtual ::com::sun::star::uno::Reference
<
46 ::com::sun::star::util::XCloneable
> SAL_CALL
createClone()
47 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
49 // ____ XServiceInfo ____
50 virtual OUString SAL_CALL
getImplementationName()
51 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
52 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
)
53 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
54 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames()
55 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
57 static OUString
getImplementationName_Static();
58 static css::uno::Sequence
< OUString
> getSupportedServiceNames_Static();
61 class CartesianCoordinateSystem2d
: public CartesianCoordinateSystem
64 explicit CartesianCoordinateSystem2d(
65 const ::com::sun::star::uno::Reference
<
66 ::com::sun::star::uno::XComponentContext
> & xContext
);
67 virtual ~CartesianCoordinateSystem2d();
69 /// establish methods for factory instatiation
70 static css::uno::Reference
< css::uno::XInterface
> SAL_CALL
create( css::uno::Reference
< css::uno::XComponentContext
> const & xContext
)
71 throw(css::uno::Exception
)
73 return (::cppu::OWeakObject
*)new CartesianCoordinateSystem2d( xContext
);
75 // ____ XServiceInfo ____
76 virtual OUString SAL_CALL
getImplementationName()
77 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
78 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
)
79 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
80 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames()
81 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
83 static OUString
getImplementationName_Static();
84 static css::uno::Sequence
< OUString
> getSupportedServiceNames_Static();
87 class CartesianCoordinateSystem3d
: public CartesianCoordinateSystem
90 explicit CartesianCoordinateSystem3d(
91 const ::com::sun::star::uno::Reference
<
92 ::com::sun::star::uno::XComponentContext
> & xContext
);
93 virtual ~CartesianCoordinateSystem3d();
95 /// establish methods for factory instatiation
96 static css::uno::Reference
< css::uno::XInterface
> SAL_CALL
create( css::uno::Reference
< css::uno::XComponentContext
> const & xContext
)
97 throw(css::uno::Exception
)
99 return (::cppu::OWeakObject
*)new CartesianCoordinateSystem3d( xContext
);
101 // ____ XServiceInfo ____
102 virtual OUString SAL_CALL
getImplementationName()
103 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
104 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
)
105 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
106 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames()
107 throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
109 static OUString
getImplementationName_Static();
110 static css::uno::Sequence
< OUString
> getSupportedServiceNames_Static();
115 // INCLUDED_CHART2_SOURCE_MODEL_INC_CARTESIANCOORDINATESYSTEM_HXX
118 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */