merged tag ooo/OOO330_m14
[LibreOffice.git] / chart2 / source / model / template / AreaChartType.cxx
blob003220c87dfb4456d3c71634d52bd81b0cf69250
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_chart2.hxx"
30 #include "AreaChartType.hxx"
31 #include "macros.hxx"
32 #include "servicenames_charttypes.hxx"
34 using namespace ::com::sun::star;
36 namespace chart
39 AreaChartType::AreaChartType(
40 const uno::Reference< uno::XComponentContext > & xContext ) :
41 ChartType( xContext )
44 AreaChartType::AreaChartType( const AreaChartType & rOther ) :
45 ChartType( rOther )
48 AreaChartType::~AreaChartType()
51 // ____ XCloneable ____
52 uno::Reference< util::XCloneable > SAL_CALL AreaChartType::createClone()
53 throw (uno::RuntimeException)
55 return uno::Reference< util::XCloneable >( new AreaChartType( *this ));
58 // ____ XChartType ____
59 ::rtl::OUString SAL_CALL AreaChartType::getChartType()
60 throw (uno::RuntimeException)
62 return CHART2_SERVICE_NAME_CHARTTYPE_AREA;
65 uno::Sequence< ::rtl::OUString > AreaChartType::getSupportedServiceNames_Static()
67 uno::Sequence< ::rtl::OUString > aServices( 2 );
68 aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_AREA;
69 aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
70 return aServices;
73 // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
74 APPHELPER_XSERVICEINFO_IMPL( AreaChartType,
75 C2U( "com.sun.star.comp.chart.AreaChartType" ));
77 } // namespace chart