1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_chart2.hxx"
26 #include "FilledNetChartType.hxx"
27 #include "PropertyHelper.hxx"
28 #include "macros.hxx"
29 #include "PolarCoordinateSystem.hxx"
30 #include "Scaling.hxx"
31 #include "servicenames_charttypes.hxx"
32 #include "ContainerHelper.hxx"
33 #include "AxisIndexDefines.hxx"
34 #include <com/sun/star/beans/PropertyAttribute.hpp>
35 #include <com/sun/star/chart2/AxisType.hpp>
36 
37 using namespace ::com::sun::star;
38 using namespace ::com::sun::star::chart2;
39 
40 using ::rtl::OUString;
41 using ::com::sun::star::beans::Property;
42 using ::com::sun::star::uno::Sequence;
43 using ::com::sun::star::uno::Reference;
44 using ::com::sun::star::uno::Any;
45 using ::osl::MutexGuard;
46 
47 namespace chart
48 {
49 
FilledNetChartType(const uno::Reference<uno::XComponentContext> & xContext)50 FilledNetChartType::FilledNetChartType(
51     const uno::Reference< uno::XComponentContext > & xContext ) :
52         NetChartType_Base( xContext )
53 {}
54 
FilledNetChartType(const FilledNetChartType & rOther)55 FilledNetChartType::FilledNetChartType( const FilledNetChartType & rOther ) :
56         NetChartType_Base( rOther )
57 {
58 }
59 
~FilledNetChartType()60 FilledNetChartType::~FilledNetChartType()
61 {}
62 
63 // ____ XCloneable ____
createClone()64 uno::Reference< util::XCloneable > SAL_CALL FilledNetChartType::createClone()
65     throw (uno::RuntimeException)
66 {
67     return uno::Reference< util::XCloneable >( new FilledNetChartType( *this ));
68 }
69 
70 // ____ XChartType ____
getChartType()71 ::rtl::OUString SAL_CALL FilledNetChartType::getChartType()
72     throw (uno::RuntimeException)
73 {
74     return CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET;
75 }
76 
getSupportedServiceNames_Static()77 uno::Sequence< ::rtl::OUString > FilledNetChartType::getSupportedServiceNames_Static()
78 {
79     uno::Sequence< ::rtl::OUString > aServices( 3 );
80     aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET;
81     aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
82     aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
83     return aServices;
84 }
85 
86 // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
87 APPHELPER_XSERVICEINFO_IMPL( FilledNetChartType,
88                              C2U( "com.sun.star.comp.chart.FilledNetChartType" ));
89 
90 } //  namespace chart
91