LCOV - code coverage report
Current view: top level - extensions/source/propctrlr - pcrservices.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 32 32 100.0 %
Date: 2014-11-03 Functions: 2 2 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 "modulepcr.hxx"
      22             : #include "pcrservices.hxx"
      23             : 
      24             : using namespace ::com::sun::star::uno;
      25             : using namespace ::com::sun::star::lang;
      26             : using namespace ::com::sun::star::registry;
      27             : 
      28          16 : extern "C" void SAL_CALL pcr_initializeModule()
      29             : {
      30             :     static bool s_bInit = false;
      31          16 :     if (!s_bInit)
      32             :     {
      33           4 :         createRegistryInfo_OPropertyBrowserController();
      34           4 :         createRegistryInfo_FormController();
      35           4 :         createRegistryInfo_DefaultFormComponentInspectorModel();
      36           4 :         createRegistryInfo_DefaultHelpProvider();
      37           4 :         createRegistryInfo_OControlFontDialog();
      38           4 :         createRegistryInfo_OTabOrderDialog();
      39           4 :         createRegistryInfo_CellBindingPropertyHandler();
      40           4 :         createRegistryInfo_ButtonNavigationHandler();
      41           4 :         createRegistryInfo_EditPropertyHandler();
      42           4 :         createRegistryInfo_FormComponentPropertyHandler();
      43           4 :         createRegistryInfo_EFormsPropertyHandler();
      44           4 :         createRegistryInfo_XSDValidationPropertyHandler();
      45           4 :         createRegistryInfo_EventHandler();
      46           4 :         createRegistryInfo_GenericPropertyHandler();
      47           4 :         createRegistryInfo_ObjectInspectorModel();
      48           4 :         createRegistryInfo_SubmissionPropertyHandler();
      49           4 :         createRegistryInfo_StringRepresentation();
      50           4 :         createRegistryInfo_MasterDetailLinkDialog();
      51           4 :         createRegistryInfo_FormGeometryHandler();
      52           4 :         s_bInit = true;
      53             :     }
      54          16 : }
      55             : 
      56             : 
      57          16 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL pcr_component_getFactory(
      58             :                     const sal_Char* pImplementationName,
      59             :                     void* pServiceManager,
      60             :                     SAL_UNUSED_PARAMETER void* /*pRegistryKey*/)
      61             : {
      62          16 :     pcr_initializeModule();
      63             : 
      64          16 :     Reference< XInterface > xRet;
      65          16 :     if (pServiceManager && pImplementationName)
      66             :     {
      67          32 :         xRet = ::pcr::PcrModule::getInstance().getComponentFactory(
      68          16 :             OUString::createFromAscii(pImplementationName));
      69             :     }
      70             : 
      71          16 :     if (xRet.is())
      72          16 :         xRet->acquire();
      73          16 :     return xRet.get();
      74             : };
      75             : 
      76             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10