LCOV - code coverage report
Current view: top level - chart2/source/model/main - _serviceregistration_model.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 8 8 100.0 %
Date: 2014-11-03 Functions: 3 3 100.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 <cppuhelper/implementationentry.hxx>
      21             : #include "ChartModel.hxx"
      22             : 
      23             : #include "Diagram.hxx"
      24             : #include "Legend.hxx"
      25             : #include "Axis.hxx"
      26             : #include "GridProperties.hxx"
      27             : #include "Title.hxx"
      28             : #include "FormattedString.hxx"
      29             : #include "PageBackground.hxx"
      30             : #include "DataSeries.hxx"
      31             : #include "PolarCoordinateSystem.hxx"
      32             : #include "CartesianCoordinateSystem.hxx"
      33             : 
      34             : #include "ChartTypeManager.hxx"
      35             : #include "XMLFilter.hxx"
      36             : 
      37             : #include "_serviceregistration_charttypes.hxx"
      38             : #include "charttoolsdllapi.hxx"
      39             : 
      40             : static const struct ::cppu::ImplementationEntry g_entries_chart2_model[] =
      41             : {
      42             :     {
      43             :           ::chart::ChartModel::create
      44             :         , ::chart::ChartModel::getImplementationName_Static
      45             :         , ::chart::ChartModel::getSupportedServiceNames_Static
      46             :         , ::cppu::createSingleComponentFactory
      47             :         , 0
      48             :         , 0
      49             :     }
      50             :     ,{
      51             :           ::chart::Diagram::create
      52             :         , ::chart::Diagram::getImplementationName_Static
      53             :         , ::chart::Diagram::getSupportedServiceNames_Static
      54             :         , ::cppu::createSingleComponentFactory
      55             :         , 0
      56             :         , 0
      57             :     }
      58             :     ,{
      59             :           ::chart::Legend::create
      60             :         , ::chart::Legend::getImplementationName_Static
      61             :         , ::chart::Legend::getSupportedServiceNames_Static
      62             :         , ::cppu::createSingleComponentFactory
      63             :         , 0
      64             :         , 0
      65             :     }
      66             :     ,{
      67             :           ::chart::Axis::create
      68             :         , ::chart::Axis::getImplementationName_Static
      69             :         , ::chart::Axis::getSupportedServiceNames_Static
      70             :         , ::cppu::createSingleComponentFactory
      71             :         , 0
      72             :         , 0
      73             :     }
      74             :     ,{
      75             :           ::chart::GridProperties::create
      76             :         , ::chart::GridProperties::getImplementationName_Static
      77             :         , ::chart::GridProperties::getSupportedServiceNames_Static
      78             :         , ::cppu::createSingleComponentFactory
      79             :         , 0
      80             :         , 0
      81             :     }
      82             :     ,{
      83             :           ::chart::Title::create
      84             :         , ::chart::Title::getImplementationName_Static
      85             :         , ::chart::Title::getSupportedServiceNames_Static
      86             :         , ::cppu::createSingleComponentFactory
      87             :         , 0
      88             :         , 0
      89             :     }
      90             : 
      91             :     ,{
      92             :           ::chart::FormattedString::create
      93             :         , ::chart::FormattedString::getImplementationName_Static
      94             :         , ::chart::FormattedString::getSupportedServiceNames_Static
      95             :         , ::cppu::createSingleComponentFactory
      96             :         , 0
      97             :         , 0
      98             :     }
      99             : 
     100             :     ,{
     101             :           ::chart::ChartTypeManager::create
     102             :         , ::chart::ChartTypeManager::getImplementationName_Static
     103             :         , ::chart::ChartTypeManager::getSupportedServiceNames_Static
     104             :         , ::cppu::createSingleComponentFactory
     105             :         , 0
     106             :         , 0
     107             :     }
     108             :      ,{
     109             :           ::chart::PageBackground::create
     110             :         , ::chart::PageBackground::getImplementationName_Static
     111             :         , ::chart::PageBackground::getSupportedServiceNames_Static
     112             :         , ::cppu::createSingleComponentFactory
     113             :         , 0
     114             :         , 0
     115             :     }
     116             :      ,{
     117             :           ::chart::DataSeries::create
     118             :         , ::chart::DataSeries::getImplementationName_Static
     119             :         , ::chart::DataSeries::getSupportedServiceNames_Static
     120             :         , ::cppu::createSingleComponentFactory
     121             :         , 0
     122             :         , 0
     123             :     }
     124             :      ,{
     125             :           ::chart::XMLFilter::create
     126             :         , ::chart::XMLFilter::getImplementationName_Static
     127             :         , ::chart::XMLFilter::getSupportedServiceNames_Static
     128             :         , ::cppu::createSingleComponentFactory
     129             :         , 0
     130             :         , 0
     131             :     }
     132             :      ,{
     133             :           ::chart::XMLReportFilterHelper::create
     134             :         , ::chart::XMLReportFilterHelper::getImplementationName_Static
     135             :         , ::chart::XMLFilter::getSupportedServiceNames_Static // we support the same, because we are derived from
     136             :         , ::cppu::createSingleComponentFactory
     137             :         , 0
     138             :         , 0
     139             :     }
     140             :      ,{
     141             :           ::chart::PolarCoordinateSystem2d::create
     142             :         , ::chart::PolarCoordinateSystem2d::getImplementationName_Static
     143             :         , ::chart::PolarCoordinateSystem2d::getSupportedServiceNames_Static
     144             :         , ::cppu::createSingleComponentFactory
     145             :         , 0
     146             :         , 0
     147             :     }
     148             :      ,{
     149             :           ::chart::PolarCoordinateSystem3d::create
     150             :         , ::chart::PolarCoordinateSystem3d::getImplementationName_Static
     151             :         , ::chart::PolarCoordinateSystem3d::getSupportedServiceNames_Static
     152             :         , ::cppu::createSingleComponentFactory
     153             :         , 0
     154             :         , 0
     155             :     }
     156             :      ,{
     157             :           ::chart::CartesianCoordinateSystem2d::create
     158             :         , ::chart::CartesianCoordinateSystem2d::getImplementationName_Static
     159             :         , ::chart::CartesianCoordinateSystem2d::getSupportedServiceNames_Static
     160             :         , ::cppu::createSingleComponentFactory
     161             :         , 0
     162             :         , 0
     163             :     }
     164             :      ,{
     165             :           ::chart::CartesianCoordinateSystem3d::create
     166             :         , ::chart::CartesianCoordinateSystem3d::getImplementationName_Static
     167             :         , ::chart::CartesianCoordinateSystem3d::getSupportedServiceNames_Static
     168             :         , ::cppu::createSingleComponentFactory
     169             :         , 0
     170             :         , 0
     171             :     }
     172             :    ,{ 0, 0, 0, 0, 0, 0 }
     173             : };
     174             : 
     175             : // component exports
     176             : extern "C"
     177             : {
     178         486 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartcore_component_getFactory(
     179             :     const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
     180             : {
     181             :     void * pResult = ::cppu::component_getFactoryHelper(
     182         486 :         pImplName, pServiceManager, pRegistryKey, g_entries_chart2_model );
     183             : 
     184         486 :     if( ! pResult )
     185             :         pResult = ::cppu::component_getFactoryHelper(
     186             :             pImplName, pServiceManager, pRegistryKey,
     187         236 :             ChartTypeEntriesForServiceRegistration::getImplementationEntries() );
     188         486 :     if (!pResult)
     189             :     {
     190             :         pResult = charttools_component_getFactory(
     191          94 :             pImplName, pServiceManager, pRegistryKey);
     192             :     }
     193             : 
     194         486 :     return pResult;
     195             : }
     196         108 : }
     197             : 
     198             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10