Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
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>
31 :
32 : using namespace ::com::sun::star;
33 : using namespace ::com::sun::star::chart2;
34 :
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;
40 :
41 : namespace chart
42 : {
43 :
44 4342 : FilledNetChartType::FilledNetChartType(
45 : const uno::Reference< uno::XComponentContext > & xContext ) :
46 4342 : NetChartType_Base( xContext )
47 4342 : {}
48 :
49 0 : FilledNetChartType::FilledNetChartType( const FilledNetChartType & rOther ) :
50 0 : NetChartType_Base( rOther )
51 : {
52 0 : }
53 :
54 8684 : FilledNetChartType::~FilledNetChartType()
55 8684 : {}
56 :
57 : // ____ XCloneable ____
58 0 : uno::Reference< util::XCloneable > SAL_CALL FilledNetChartType::createClone()
59 : throw (uno::RuntimeException, std::exception)
60 : {
61 0 : return uno::Reference< util::XCloneable >( new FilledNetChartType( *this ));
62 : }
63 :
64 : // ____ XChartType ____
65 9524 : OUString SAL_CALL FilledNetChartType::getChartType()
66 : throw (uno::RuntimeException, std::exception)
67 : {
68 9524 : return OUString(CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET);
69 : }
70 :
71 1 : uno::Sequence< OUString > FilledNetChartType::getSupportedServiceNames_Static()
72 : {
73 1 : uno::Sequence< OUString > aServices( 3 );
74 1 : aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET;
75 1 : aServices[ 1 ] = "com.sun.star.chart2.ChartType";
76 1 : aServices[ 2 ] = "com.sun.star.beans.PropertySet";
77 1 : return aServices;
78 : }
79 :
80 : // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
81 1 : OUString SAL_CALL FilledNetChartType::getImplementationName()
82 : throw( css::uno::RuntimeException, std::exception )
83 : {
84 1 : return getImplementationName_Static();
85 : }
86 :
87 1 : OUString FilledNetChartType::getImplementationName_Static()
88 : {
89 1 : return OUString("com.sun.star.comp.chart.FilledNetChartType");
90 : }
91 :
92 0 : sal_Bool SAL_CALL FilledNetChartType::supportsService( const OUString& rServiceName )
93 : throw( css::uno::RuntimeException, std::exception )
94 : {
95 0 : return cppu::supportsService(this, rServiceName);
96 : }
97 :
98 1 : css::uno::Sequence< OUString > SAL_CALL FilledNetChartType::getSupportedServiceNames()
99 : throw( css::uno::RuntimeException, std::exception )
100 : {
101 1 : return getSupportedServiceNames_Static();
102 : }
103 :
104 : } // namespace chart
105 :
106 : extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
107 4342 : com_sun_star_comp_chart_FilledNetChartType_get_implementation(css::uno::XComponentContext *context,
108 : css::uno::Sequence<css::uno::Any> const &)
109 : {
110 4342 : return cppu::acquire(new ::chart::FilledNetChartType(context));
111 : }
112 :
113 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|