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