LCOV - code coverage report
Current view: top level - chart2/source/model/template - FilledNetChartType.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 14 19 73.7 %
Date: 2014-04-11 Functions: 6 11 54.5 %
Legend: Lines: hit not hit

          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             : 
      31             : using namespace ::com::sun::star;
      32             : using namespace ::com::sun::star::chart2;
      33             : 
      34             : using ::com::sun::star::beans::Property;
      35             : using ::com::sun::star::uno::Sequence;
      36             : using ::com::sun::star::uno::Reference;
      37             : using ::com::sun::star::uno::Any;
      38             : using ::osl::MutexGuard;
      39             : 
      40             : namespace chart
      41             : {
      42             : 
      43        3333 : FilledNetChartType::FilledNetChartType(
      44             :     const uno::Reference< uno::XComponentContext > & xContext ) :
      45        3333 :         NetChartType_Base( xContext )
      46        3333 : {}
      47             : 
      48           0 : FilledNetChartType::FilledNetChartType( const FilledNetChartType & rOther ) :
      49           0 :         NetChartType_Base( rOther )
      50             : {
      51           0 : }
      52             : 
      53        6666 : FilledNetChartType::~FilledNetChartType()
      54        6666 : {}
      55             : 
      56             : // ____ XCloneable ____
      57           0 : uno::Reference< util::XCloneable > SAL_CALL FilledNetChartType::createClone()
      58             :     throw (uno::RuntimeException, std::exception)
      59             : {
      60           0 :     return uno::Reference< util::XCloneable >( new FilledNetChartType( *this ));
      61             : }
      62             : 
      63             : // ____ XChartType ____
      64        6666 : OUString SAL_CALL FilledNetChartType::getChartType()
      65             :     throw (uno::RuntimeException, std::exception)
      66             : {
      67        6666 :     return CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET;
      68             : }
      69             : 
      70           5 : uno::Sequence< OUString > FilledNetChartType::getSupportedServiceNames_Static()
      71             : {
      72           5 :     uno::Sequence< OUString > aServices( 3 );
      73           5 :     aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET;
      74           5 :     aServices[ 1 ] = "com.sun.star.chart2.ChartType";
      75           5 :     aServices[ 2 ] = "com.sun.star.beans.PropertySet";
      76           5 :     return aServices;
      77             : }
      78             : 
      79             : // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
      80         107 : APPHELPER_XSERVICEINFO_IMPL( FilledNetChartType,
      81             :                              OUString("com.sun.star.comp.chart.FilledNetChartType") );
      82             : 
      83             : } //  namespace chart
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10