LCOV - code coverage report
Current view: top level - chart2/source/model/main - PolarCoordinateSystem.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 46 0.0 %
Date: 2014-04-14 Functions: 0 30 0.0 %
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 "PolarCoordinateSystem.hxx"
      21             : #include "macros.hxx"
      22             : #include "servicenames_coosystems.hxx"
      23             : 
      24             : using namespace ::com::sun::star;
      25             : 
      26             : using ::com::sun::star::uno::RuntimeException;
      27             : using ::com::sun::star::uno::Reference;
      28             : using ::com::sun::star::uno::Sequence;
      29             : 
      30             : namespace
      31             : {
      32             : 
      33           0 : static const OUString lcl_aServiceNamePolar2d( "com.sun.star.chart2.PolarCoordinateSystem2d" );
      34           0 : static const OUString lcl_aServiceNamePolar3d( "com.sun.star.chart2.PolarCoordinateSystem3d" );
      35             : 
      36           0 : static const OUString lcl_aImplementationNamePolar2d( "com.sun.star.comp.chart2.PolarCoordinateSystem2d" );
      37           0 : static const OUString lcl_aImplementationNamePolar3d( "com.sun.star.comp.chart2.PolarCoordinateSystem3d" );
      38             : }
      39             : 
      40             : namespace chart
      41             : {
      42             : 
      43             : // explicit
      44           0 : PolarCoordinateSystem::PolarCoordinateSystem(
      45             :     const uno::Reference< uno::XComponentContext > & xContext,
      46             :     sal_Int32 nDimensionCount /* = 2 */,
      47             :     sal_Bool bSwapXAndYAxis /* = sal_False */ ) :
      48           0 :         BaseCoordinateSystem( xContext, nDimensionCount, bSwapXAndYAxis )
      49           0 : {}
      50             : 
      51           0 : PolarCoordinateSystem::PolarCoordinateSystem(
      52             :     const PolarCoordinateSystem & rSource ) :
      53           0 :         BaseCoordinateSystem( rSource )
      54           0 : {}
      55             : 
      56           0 : PolarCoordinateSystem::~PolarCoordinateSystem()
      57           0 : {}
      58             : 
      59             : // ____ XCoordinateSystem ____
      60           0 : OUString SAL_CALL PolarCoordinateSystem::getCoordinateSystemType()
      61             :     throw (RuntimeException, std::exception)
      62             : {
      63           0 :     return CHART2_COOSYSTEM_POLAR_SERVICE_NAME;
      64             : }
      65             : 
      66           0 : OUString SAL_CALL PolarCoordinateSystem::getViewServiceName()
      67             :     throw (RuntimeException, std::exception)
      68             : {
      69           0 :     return CHART2_COOSYSTEM_POLAR_VIEW_SERVICE_NAME;
      70             : }
      71             : 
      72             : // ____ XCloneable ____
      73           0 : uno::Reference< util::XCloneable > SAL_CALL PolarCoordinateSystem::createClone()
      74             :     throw (RuntimeException, std::exception)
      75             : {
      76           0 :     return Reference< util::XCloneable >( new PolarCoordinateSystem( *this ));
      77             : }
      78             : 
      79             : // ____ XServiceInfo ____
      80           0 : Sequence< OUString > PolarCoordinateSystem::getSupportedServiceNames_Static()
      81             : {
      82           0 :     Sequence< OUString > aServices( 1 );
      83           0 :     aServices[ 0 ] = CHART2_COOSYSTEM_POLAR_SERVICE_NAME;
      84           0 :     return aServices;
      85             : }
      86             : 
      87             : // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
      88           0 : APPHELPER_XSERVICEINFO_IMPL( PolarCoordinateSystem,
      89             :                              OUString("com.sun.star.comp.chart.PolarCoordinateSystem") )
      90             : 
      91             : // ==== PolarCoordinateSystem2d ====
      92             : 
      93           0 : PolarCoordinateSystem2d::PolarCoordinateSystem2d(
      94             :     const uno::Reference< uno::XComponentContext > & xContext ) :
      95           0 :         PolarCoordinateSystem( xContext, 2, sal_False )
      96           0 : {}
      97             : 
      98           0 : PolarCoordinateSystem2d::~PolarCoordinateSystem2d()
      99           0 : {}
     100             : 
     101             : // ____ XServiceInfo ____
     102           0 : Sequence< OUString > PolarCoordinateSystem2d::getSupportedServiceNames_Static()
     103             : {
     104           0 :     Sequence< OUString > aServices( 2 );
     105           0 :     aServices[ 0 ] = CHART2_COOSYSTEM_POLAR_SERVICE_NAME;
     106           0 :     aServices[ 1 ] = lcl_aServiceNamePolar2d;
     107           0 :     return aServices;
     108             : }
     109             : 
     110             : // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
     111           0 : APPHELPER_XSERVICEINFO_IMPL( PolarCoordinateSystem2d, lcl_aImplementationNamePolar2d )
     112             : 
     113             : // ==== PolarCoordinateSystem3d ====
     114             : 
     115           0 : PolarCoordinateSystem3d::PolarCoordinateSystem3d(
     116             :     const uno::Reference< uno::XComponentContext > & xContext ) :
     117           0 :         PolarCoordinateSystem( xContext, 3, sal_False )
     118           0 : {}
     119             : 
     120           0 : PolarCoordinateSystem3d::~PolarCoordinateSystem3d()
     121           0 : {}
     122             : 
     123             : // ____ XServiceInfo ____
     124           0 : Sequence< OUString > PolarCoordinateSystem3d::getSupportedServiceNames_Static()
     125             : {
     126           0 :     Sequence< OUString > aServices( 2 );
     127           0 :     aServices[ 0 ] = CHART2_COOSYSTEM_POLAR_SERVICE_NAME;
     128           0 :     aServices[ 1 ] = lcl_aServiceNamePolar3d;
     129           0 :     return aServices;
     130             : }
     131             : 
     132             : // implement XServiceInfo methods basing upon getSupportedServiceNames_Static
     133           0 : APPHELPER_XSERVICEINFO_IMPL( PolarCoordinateSystem3d, lcl_aImplementationNamePolar3d )
     134             : 
     135           0 : }  // namespace chart
     136             : 
     137             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10