fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / model / template / FilledNetChartType.cxx
blobd62e9b00b493196f2ee85776b55f08420f9bca94
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 .
20 #include "FilledNetChartType.hxx"
21 #include "PropertyHelper.hxx"
22 #include "macros.hxx"
23 #include "PolarCoordinateSystem.hxx"
24 #include "Scaling.hxx"
25 #include "servicenames_charttypes.hxx"
26 #include "ContainerHelper.hxx"
27 #include "AxisIndexDefines.hxx"
28 #include <com/sun/star/beans/PropertyAttribute.hpp>
29 #include <com/sun/star/chart2/AxisType.hpp>
30 #include <cppuhelper/supportsservice.hxx>
32 using namespace ::com::sun::star;
33 using namespace ::com::sun::star::chart2;
35 using ::com::sun::star::beans::Property;
36 using ::com::sun::star::uno::Sequence;
37 using ::com::sun::star::uno::Reference;
38 using ::com::sun::star::uno::Any;
39 using ::osl::MutexGuard;
41 namespace chart
44 FilledNetChartType::FilledNetChartType(
45 const uno::Reference< uno::XComponentContext > & xContext ) :
46 NetChartType_Base( xContext )
49 FilledNetChartType::FilledNetChartType( const FilledNetChartType & rOther ) :
50 NetChartType_Base( rOther )
54 FilledNetChartType::~FilledNetChartType()
57 // ____ XCloneable ____
58 uno::Reference< util::XCloneable > SAL_CALL FilledNetChartType::createClone()
59 throw (uno::RuntimeException, std::exception)
61 return uno::Reference< util::XCloneable >( new FilledNetChartType( *this ));
64 // ____ XChartType ____
65 OUString SAL_CALL FilledNetChartType::getChartType()
66 throw (uno::RuntimeException, std::exception)
68 return OUString(CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET);
71 uno::Sequence< OUString > FilledNetChartType::getSupportedServiceNames_Static()
73 uno::Sequence< OUString > aServices( 3 );
74 aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET;
75 aServices[ 1 ] = "com.sun.star.chart2.ChartType";
76 aServices[ 2 ] = "com.sun.star.beans.PropertySet";
77 return aServices;
80 // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
81 OUString SAL_CALL FilledNetChartType::getImplementationName()
82 throw( css::uno::RuntimeException, std::exception )
84 return getImplementationName_Static();
87 OUString FilledNetChartType::getImplementationName_Static()
89 return OUString("com.sun.star.comp.chart.FilledNetChartType");
92 sal_Bool SAL_CALL FilledNetChartType::supportsService( const OUString& rServiceName )
93 throw( css::uno::RuntimeException, std::exception )
95 return cppu::supportsService(this, rServiceName);
98 css::uno::Sequence< OUString > SAL_CALL FilledNetChartType::getSupportedServiceNames()
99 throw( css::uno::RuntimeException, std::exception )
101 return getSupportedServiceNames_Static();
104 } // namespace chart
106 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
107 com_sun_star_comp_chart_FilledNetChartType_get_implementation(css::uno::XComponentContext *context,
108 css::uno::Sequence<css::uno::Any> const &)
110 return cppu::acquire(new ::chart::FilledNetChartType(context));
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */