LCOV - code coverage report
Current view: top level - libreoffice/comphelper/source/misc - comphelper_services.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 20 20 100.0 %
Date: 2012-12-27 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             : 
      21             : #include "comphelper_module.hxx"
      22             : 
      23             : #include <rtl/instance.hxx>
      24             : 
      25             : //--------------------------------------------------------------------
      26             : extern void createRegistryInfo_OPropertyBag();
      27             : extern void createRegistryInfo_SequenceOutputStream();
      28             : extern void createRegistryInfo_SequenceInputStream();
      29             : extern void createRegistryInfo_UNOMemoryStream();
      30             : extern void createRegistryInfo_IndexedPropertyValuesContainer();
      31             : extern void createRegistryInfo_NamedPropertyValuesContainer();
      32             : extern void createRegistryInfo_AnyCompareFactory();
      33             : extern void createRegistryInfo_OfficeInstallationDirectories();
      34             : extern void createRegistryInfo_OInstanceLocker();
      35             : extern void createRegistryInfo_Map();
      36             : extern void createRegistryInfo_OSimpleLogRing();
      37             : extern void createRegistryInfo_OOfficeRestartManager();
      38             : 
      39             : //........................................................................
      40             : namespace comphelper { namespace module
      41             : {
      42             : //........................................................................
      43             : 
      44             :     namespace
      45             :     {
      46             :         class doInitialize
      47             :         {
      48             :         public:
      49          14 :             doInitialize()
      50             :             {
      51          14 :                 createRegistryInfo_OPropertyBag();
      52          14 :                 createRegistryInfo_SequenceOutputStream();
      53          14 :                 createRegistryInfo_SequenceInputStream();
      54          14 :                 createRegistryInfo_UNOMemoryStream();
      55          14 :                 createRegistryInfo_IndexedPropertyValuesContainer();
      56          14 :                 createRegistryInfo_NamedPropertyValuesContainer();
      57          14 :                 createRegistryInfo_AnyCompareFactory();
      58          14 :                 createRegistryInfo_OfficeInstallationDirectories();
      59          14 :                 createRegistryInfo_OInstanceLocker();
      60          14 :                 createRegistryInfo_Map();
      61          14 :                 createRegistryInfo_OSimpleLogRing();
      62          14 :                 createRegistryInfo_OOfficeRestartManager();
      63          14 :             }
      64             :         };
      65             : 
      66             :         struct theInitializer : public rtl::Static< doInitialize, theInitializer > {};
      67             :     }
      68             : 
      69          56 :     static void initializeModule()
      70             :     {
      71          56 :         theInitializer::get();
      72          56 :     }
      73             : 
      74             : //........................................................................
      75             : } } // namespace comphelper::module
      76             : //........................................................................
      77             : 
      78          56 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL comphelp_component_getFactory(
      79             :     const sal_Char* pImplementationName, SAL_UNUSED_PARAMETER void*,
      80             :     SAL_UNUSED_PARAMETER void* )
      81             : {
      82          56 :     ::comphelper::module::initializeModule();
      83          56 :     return ::comphelper::module::ComphelperModule::getInstance().getComponentFactory( pImplementationName );
      84             : }
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10