LCOV - code coverage report
Current view: top level - dbaccess/source/ui/misc - uiservices.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 38 38 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             : #include <cppuhelper/factory.hxx>
      21             : #include <osl/diagnose.h>
      22             : #include "dbu_reghelper.hxx"
      23             : #include "uiservices.hxx"
      24             : 
      25             : using namespace ::dbaui;
      26             : using namespace ::com::sun::star::uno;
      27             : using namespace ::com::sun::star::lang;
      28             : using namespace ::com::sun::star::registry;
      29             : 
      30          42 : extern "C" void SAL_CALL createRegistryInfo_DBU()
      31             : {
      32             :     static bool bInit = false;
      33          42 :     if (!bInit)
      34             :     {
      35          24 :         createRegistryInfo_OTableFilterDialog();
      36          24 :         createRegistryInfo_ODataSourcePropertyDialog();
      37          24 :         createRegistryInfo_OSQLMessageDialog();
      38          24 :         createRegistryInfo_OBrowser();
      39          24 :         createRegistryInfo_OFormGridView();
      40          24 :         createRegistryInfo_DBContentLoader();
      41          24 :         createRegistryInfo_OInteractionHandler();
      42          24 :         createRegistryInfo_SbaXGridControl();
      43          24 :         createRegistryInfo_OQueryControl();
      44          24 :         createRegistryInfo_OViewControl();
      45          24 :         createRegistryInfo_OTableControl();
      46          24 :         createRegistryInfo_ORelationControl();
      47          24 :         createRegistryInfo_ComposerDialogs();
      48          24 :         createRegistryInfo_ODBApplication();
      49          24 :         createRegistryInfo_ODirectSQLDialog();
      50          24 :         createRegistryInfo_OAdvancedSettingsDialog();
      51          24 :         createRegistryInfo_ODBTypeWizDialog();
      52          24 :         createRegistryInfo_ODBTypeWizDialogSetup();
      53          24 :         createRegistryInfo_OUserSettingsDialog();
      54          24 :         createRegistryInfo_OColumnControlModel();
      55          24 :         createRegistryInfo_OColumnControl();
      56          24 :         createRegistryInfo_OToolboxController();
      57          24 :         createRegistryInfo_CopyTableWizard();
      58          24 :         createRegistryInfo_OTextConnectionSettingsDialog();
      59          24 :         createRegistryInfo_LimitBoxController();
      60          24 :         bInit = true;
      61             :     }
      62          42 : }
      63             : 
      64          42 : extern "C"  SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbu_component_getFactory(
      65             :                     const sal_Char* pImplementationName,
      66             :                     void* pServiceManager,
      67             :                     void* /*pRegistryKey*/)
      68             : {
      69          42 :     createRegistryInfo_DBU();
      70             : 
      71          42 :     Reference< XInterface > xRet;
      72          42 :     if (pServiceManager && pImplementationName)
      73             :     {
      74          84 :         xRet = ::dbaui::OModuleRegistration::getComponentFactory(
      75             :             OUString::createFromAscii(pImplementationName),
      76          42 :             static_cast< XMultiServiceFactory* >(pServiceManager));
      77             :     }
      78             : 
      79          42 :     if (xRet.is())
      80          42 :         xRet->acquire();
      81          42 :     return xRet.get();
      82             : };
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10