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

Generated by: LCOV version 1.11