Branch data 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 "AreaChartType.hxx"
21 : : #include "macros.hxx"
22 : : #include "servicenames_charttypes.hxx"
23 : :
24 : : using namespace ::com::sun::star;
25 : :
26 : : namespace chart
27 : : {
28 : :
29 : 217 : AreaChartType::AreaChartType(
30 : : const uno::Reference< uno::XComponentContext > & xContext ) :
31 : 217 : ChartType( xContext )
32 : 217 : {}
33 : :
34 : 0 : AreaChartType::AreaChartType( const AreaChartType & rOther ) :
35 : 0 : ChartType( rOther )
36 : 0 : {}
37 : :
38 : 217 : AreaChartType::~AreaChartType()
39 [ - + ]: 434 : {}
40 : :
41 : : // ____ XCloneable ____
42 : 0 : uno::Reference< util::XCloneable > SAL_CALL AreaChartType::createClone()
43 : : throw (uno::RuntimeException)
44 : : {
45 [ # # ][ # # ]: 0 : return uno::Reference< util::XCloneable >( new AreaChartType( *this ));
46 : : }
47 : :
48 : : // ____ XChartType ____
49 : 434 : ::rtl::OUString SAL_CALL AreaChartType::getChartType()
50 : : throw (uno::RuntimeException)
51 : : {
52 : 434 : return CHART2_SERVICE_NAME_CHARTTYPE_AREA;
53 : : }
54 : :
55 : 9 : uno::Sequence< ::rtl::OUString > AreaChartType::getSupportedServiceNames_Static()
56 : : {
57 : 9 : uno::Sequence< ::rtl::OUString > aServices( 2 );
58 [ + - ][ + - ]: 9 : aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_AREA;
59 [ + - ][ + - ]: 9 : aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
60 : 9 : return aServices;
61 : : }
62 : :
63 : : // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
64 [ # # ][ # # ]: 77 : APPHELPER_XSERVICEINFO_IMPL( AreaChartType,
[ # # ][ # # ]
[ # # ]
65 : : C2U( "com.sun.star.comp.chart.AreaChartType" ));
66 : :
67 : : } // namespace chart
68 : :
69 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|