fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / model / inc / PolarCoordinateSystem.hxx
blobdecf8ba381cca80c23322de36457756a432f4791
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_POLARCOORDINATESYSTEM_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_INC_POLARCOORDINATESYSTEM_HXX
22 #include "BaseCoordinateSystem.hxx"
24 namespace chart
27 class PolarCoordinateSystem : public BaseCoordinateSystem
29 public:
30 explicit PolarCoordinateSystem(
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 PolarCoordinateSystem( const PolarCoordinateSystem & rSource );
36 virtual ~PolarCoordinateSystem();
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 PolarCoordinateSystem2d : public PolarCoordinateSystem
63 public:
64 explicit PolarCoordinateSystem2d(
65 const ::com::sun::star::uno::Reference<
66 ::com::sun::star::uno::XComponentContext > & xContext );
67 virtual ~PolarCoordinateSystem2d();
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 PolarCoordinateSystem2d( 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 PolarCoordinateSystem3d : public PolarCoordinateSystem
89 public:
90 explicit PolarCoordinateSystem3d(
91 const ::com::sun::star::uno::Reference<
92 ::com::sun::star::uno::XComponentContext > & xContext );
93 virtual ~PolarCoordinateSystem3d();
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 PolarCoordinateSystem3d( 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();
113 } // namespace chart
115 // INCLUDED_CHART2_SOURCE_MODEL_INC_POLARCOORDINATESYSTEM_HXX
116 #endif
118 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */