LCOV - code coverage report
Current view: top level - sw/source/ui/uno - unofreg.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 79 86 91.9 %
Date: 2012-08-25 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 102 214 47.7 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #include "SwXFilterOptions.hxx"
      30                 :            : #include "sal/types.h"
      31                 :            : #include <osl/diagnose.h>
      32                 :            : #include <uno/lbnames.h>
      33                 :            : #include <cppuhelper/factory.hxx>
      34                 :            : #include <sfx2/sfxmodelfactory.hxx>
      35                 :            : 
      36                 :            : #include <string.h>
      37                 :            : 
      38                 :            : using namespace ::com::sun::star;
      39                 :            : using namespace ::com::sun::star::lang;
      40                 :            : 
      41                 :            : using ::rtl::OUString;
      42                 :            : 
      43                 :            : // module
      44                 :            : extern uno::Sequence< OUString > SAL_CALL SwUnoModule_getSupportedServiceNames() throw();
      45                 :            : extern OUString SAL_CALL SwUnoModule_getImplementationName() throw();
      46                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwUnoModule_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
      47                 :            : 
      48                 :            : // writer documents
      49                 :            : extern uno::Sequence< OUString > SAL_CALL SwTextDocument_getSupportedServiceNames() throw();
      50                 :            : extern OUString SAL_CALL SwTextDocument_getImplementationName() throw();
      51                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwTextDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr, const sal_uInt64 _nCreationFlags ) throw( uno::Exception );
      52                 :            : extern uno::Sequence< OUString > SAL_CALL SwWebDocument_getSupportedServiceNames() throw();
      53                 :            : extern OUString SAL_CALL SwWebDocument_getImplementationName() throw();
      54                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwWebDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
      55                 :            : extern uno::Sequence< OUString > SAL_CALL SwGlobalDocument_getSupportedServiceNames() throw();
      56                 :            : extern OUString SAL_CALL SwGlobalDocument_getImplementationName() throw();
      57                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwGlobalDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
      58                 :            : 
      59                 :            : // xml import
      60                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLImport_getSupportedServiceNames() throw();
      61                 :            : extern OUString SAL_CALL SwXMLImport_getImplementationName() throw();
      62                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImport_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)  throw( uno::Exception );
      63                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLImportStyles_getSupportedServiceNames() throw();
      64                 :            : extern OUString SAL_CALL SwXMLImportStyles_getImplementationName() throw();
      65                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportStyles_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)    throw( uno::Exception );
      66                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLImportContent_getSupportedServiceNames() throw();
      67                 :            : extern OUString SAL_CALL SwXMLImportContent_getImplementationName() throw();
      68                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportContent_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)   throw( uno::Exception );
      69                 :            : 
      70                 :            : extern uno::Sequence< OUString > SAL_CALL     SwXMLImportMeta_getSupportedServiceNames() throw();
      71                 :            : extern OUString SAL_CALL     SwXMLImportMeta_getImplementationName() throw();
      72                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportMeta_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)  throw( uno::Exception );
      73                 :            : 
      74                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLImportSettings_getSupportedServiceNames() throw();
      75                 :            : extern OUString SAL_CALL SwXMLImportSettings_getImplementationName() throw();
      76                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportSettings_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)  throw( uno::Exception );
      77                 :            : 
      78                 :            : // xml export (OOo)
      79                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportOOO_getSupportedServiceNames() throw();
      80                 :            : extern OUString SAL_CALL SwXMLExportOOO_getImplementationName() throw();
      81                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)   throw( uno::Exception );
      82                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportContentOOO_getSupportedServiceNames() throw();
      83                 :            : extern OUString SAL_CALL SwXMLExportContentOOO_getImplementationName() throw();
      84                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportContentOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)    throw( uno::Exception );
      85                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportStylesOOO_getSupportedServiceNames() throw();
      86                 :            : extern OUString SAL_CALL SwXMLExportStylesOOO_getImplementationName() throw();
      87                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportStylesOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
      88                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportMetaOOO_getSupportedServiceNames() throw();
      89                 :            : extern OUString SAL_CALL SwXMLExportMetaOOO_getImplementationName() throw();
      90                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportMetaOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)   throw( uno::Exception );
      91                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportSettingsOOO_getSupportedServiceNames() throw();
      92                 :            : extern OUString SAL_CALL SwXMLExportSettingsOOO_getImplementationName() throw();
      93                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportSettingsOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)   throw( uno::Exception );
      94                 :            : 
      95                 :            : // xml export (OASIS)
      96                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExport_getSupportedServiceNames() throw();
      97                 :            : extern OUString SAL_CALL SwXMLExport_getImplementationName() throw();
      98                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExport_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)  throw( uno::Exception );
      99                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportContent_getSupportedServiceNames() throw();
     100                 :            : extern OUString SAL_CALL SwXMLExportContent_getImplementationName() throw();
     101                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportContent_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)   throw( uno::Exception );
     102                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportStyles_getSupportedServiceNames() throw();
     103                 :            : extern OUString SAL_CALL SwXMLExportStyles_getImplementationName() throw();
     104                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportStyles_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)    throw( uno::Exception );
     105                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportMeta_getSupportedServiceNames() throw();
     106                 :            : extern OUString SAL_CALL SwXMLExportMeta_getImplementationName() throw();
     107                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportMeta_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)  throw( uno::Exception );
     108                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMLExportSettings_getSupportedServiceNames() throw();
     109                 :            : extern OUString SAL_CALL SwXMLExportSettings_getImplementationName() throw();
     110                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportSettings_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)  throw( uno::Exception );
     111                 :            : 
     112                 :            : //API objects
     113                 :            : extern uno::Sequence< OUString > SAL_CALL SwXAutoTextContainer_getSupportedServiceNames() throw();
     114                 :            : extern OUString SAL_CALL SwXAutoTextContainer_getImplementationName() throw();
     115                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXAutoTextContainer_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
     116                 :            : 
     117                 :            : extern uno::Sequence< OUString > SAL_CALL SwXModule_getSupportedServiceNames() throw();
     118                 :            : extern OUString SAL_CALL SwXModule_getImplementationName() throw();
     119                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXModule_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
     120                 :            : 
     121                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMailMerge_getSupportedServiceNames() throw();
     122                 :            : extern OUString SAL_CALL SwXMailMerge_getImplementationName() throw();
     123                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMailMerge_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
     124                 :            : 
     125                 :            : extern uno::Sequence< OUString > SAL_CALL SwXMailMerge_getSupportedServiceNames() throw();
     126                 :            : extern OUString SAL_CALL SwXMailMerge_getImplementationName() throw();
     127                 :            : extern uno::Reference< uno::XInterface > SAL_CALL SwXMailMerge_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
     128                 :            : 
     129                 :            : // Layout dump filter
     130                 :            : extern uno::Sequence< OUString > SAL_CALL LayoutDumpFilter_getSupportedServiceNames() throw();
     131                 :            : extern OUString SAL_CALL LayoutDumpFilter_getImplementationName() throw();
     132                 :            : extern uno::Reference< uno::XInterface > SAL_CALL LayoutDumpFilter_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
     133                 :            : 
     134                 :            : // #i73788#
     135                 :            : #include "cppuhelper/implementationentry.hxx"
     136                 :            : namespace comp_FinalThreadManager {
     137                 :            : 
     138                 :            : // component and service helper functions:
     139                 :            : ::rtl::OUString SAL_CALL _getImplementationName();
     140                 :            : com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames();
     141                 :            : com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL _create(
     142                 :            :     com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > const & context );
     143                 :            : 
     144                 :            : }
     145                 :            : 
     146                 :            : #ifdef __cplusplus
     147                 :            : extern "C"
     148                 :            : {
     149                 :            : #endif
     150                 :            : 
     151                 :            : static ::cppu::ImplementationEntry const entries[] = {
     152                 :            :     { &comp_FinalThreadManager::_create,
     153                 :            :       &comp_FinalThreadManager::_getImplementationName,
     154                 :            :       &comp_FinalThreadManager::_getSupportedServiceNames,
     155                 :            :       &::cppu::createSingleComponentFactory, 0, 0 },
     156                 :            :     { 0, 0, 0, 0, 0, 0 }
     157                 :            : };
     158                 :            : 
     159                 :        278 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL sw_component_getFactory(
     160                 :            :     const sal_Char * pImplName,
     161                 :            :     void * pServiceManager,
     162                 :            :     void * pRegistryKey )
     163                 :            : {
     164                 :        278 :     void * pRet = 0;
     165         [ +  - ]:        278 :     if( pServiceManager )
     166                 :            :     {
     167                 :            :         uno::Reference< XMultiServiceFactory > xMSF(
     168         [ +  - ]:        278 :             reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
     169                 :            : 
     170                 :        278 :         uno::Reference< XSingleServiceFactory > xFactory;
     171                 :            : 
     172                 :        278 :         const sal_Int32 nImplNameLen = strlen( pImplName );
     173         [ +  + ]:        278 :         if( SwXMLImport_getImplementationName().equalsAsciiL( pImplName,
     174                 :        278 :                                                               nImplNameLen ) )
     175                 :            :         {
     176                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     177                 :            :                 SwXMLImport_getImplementationName(),
     178                 :            :                 SwXMLImport_createInstance,
     179 [ +  - ][ +  - ]:          2 :                 SwXMLImport_getSupportedServiceNames() );
                 [ +  - ]
     180                 :            :         }
     181         [ +  + ]:        276 :         else if( SwXMLImportStyles_getImplementationName().equalsAsciiL(
     182                 :        276 :                                                     pImplName, nImplNameLen ) )
     183                 :            :         {
     184                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     185                 :            :                 SwXMLImportStyles_getImplementationName(),
     186                 :            :                 SwXMLImportStyles_createInstance,
     187 [ +  - ][ +  - ]:         31 :                 SwXMLImportStyles_getSupportedServiceNames() );
                 [ +  - ]
     188                 :            :         }
     189         [ +  + ]:        245 :         else if( SwXMLImportContent_getImplementationName().equalsAsciiL(
     190                 :        245 :                                                     pImplName, nImplNameLen ) )
     191                 :            :         {
     192                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     193                 :            :                 SwXMLImportContent_getImplementationName(),
     194                 :            :                 SwXMLImportContent_createInstance,
     195 [ +  - ][ +  - ]:         31 :                 SwXMLImportContent_getSupportedServiceNames() );
                 [ +  - ]
     196                 :            :         }
     197         [ +  + ]:        214 :         else if( SwXMLImportMeta_getImplementationName().equalsAsciiL(
     198                 :        214 :                                                     pImplName, nImplNameLen ) )
     199                 :            :         {
     200                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     201                 :            :                 SwXMLImportMeta_getImplementationName(),
     202                 :            :                 SwXMLImportMeta_createInstance,
     203 [ +  - ][ +  - ]:         33 :                 SwXMLImportMeta_getSupportedServiceNames() );
                 [ +  - ]
     204                 :            :         }
     205         [ +  + ]:        181 :         else if( SwXMLImportSettings_getImplementationName().equalsAsciiL(
     206                 :        181 :                                                     pImplName, nImplNameLen ) )
     207                 :            :         {
     208                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     209                 :            :                 SwXMLImportSettings_getImplementationName(),
     210                 :            :                 SwXMLImportSettings_createInstance,
     211 [ +  - ][ +  - ]:         33 :                 SwXMLImportSettings_getSupportedServiceNames() );
                 [ +  - ]
     212                 :            :         }
     213         [ -  + ]:        148 :         else if( SwXMLExportOOO_getImplementationName().equalsAsciiL( pImplName,
     214                 :        148 :                                                             nImplNameLen ) )
     215                 :            :         {
     216                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     217                 :            :                 SwXMLExportOOO_getImplementationName(),
     218                 :            :                 SwXMLExportOOO_createInstance,
     219 [ #  # ][ #  # ]:          0 :                 SwXMLExportOOO_getSupportedServiceNames() );
                 [ #  # ]
     220                 :            :         }
     221         [ +  + ]:        148 :         else if( SwXMLExportStylesOOO_getImplementationName().equalsAsciiL(
     222                 :        148 :                                                     pImplName, nImplNameLen ) )
     223                 :            :         {
     224                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     225                 :            :                 SwXMLExportStylesOOO_getImplementationName(),
     226                 :            :                 SwXMLExportStylesOOO_createInstance,
     227 [ +  - ][ +  - ]:          6 :                 SwXMLExportStylesOOO_getSupportedServiceNames() );
                 [ +  - ]
     228                 :            :         }
     229         [ +  + ]:        142 :         else if( SwXMLExportContentOOO_getImplementationName().equalsAsciiL(
     230                 :        142 :                                                     pImplName, nImplNameLen ) )
     231                 :            :         {
     232                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     233                 :            :                 SwXMLExportContentOOO_getImplementationName(),
     234                 :            :                 SwXMLExportContentOOO_createInstance,
     235 [ +  - ][ +  - ]:          6 :                 SwXMLExportContentOOO_getSupportedServiceNames() );
                 [ +  - ]
     236                 :            :         }
     237         [ +  + ]:        136 :         else if( SwXMLExportMetaOOO_getImplementationName().equalsAsciiL(
     238                 :        136 :                                                     pImplName, nImplNameLen ) )
     239                 :            :         {
     240                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     241                 :            :                 SwXMLExportMetaOOO_getImplementationName(),
     242                 :            :                 SwXMLExportMetaOOO_createInstance,
     243 [ +  - ][ +  - ]:          4 :                 SwXMLExportMetaOOO_getSupportedServiceNames() );
                 [ +  - ]
     244                 :            :         }
     245         [ +  + ]:        132 :         else if( SwXMLExportSettingsOOO_getImplementationName().equalsAsciiL(
     246                 :        132 :                                                     pImplName, nImplNameLen ) )
     247                 :            :         {
     248                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     249                 :            :                 SwXMLExportSettingsOOO_getImplementationName(),
     250                 :            :                 SwXMLExportSettingsOOO_createInstance,
     251 [ +  - ][ +  - ]:          6 :                 SwXMLExportSettingsOOO_getSupportedServiceNames() );
                 [ +  - ]
     252                 :            :         }
     253         [ -  + ]:        126 :         else if( SwXMLExport_getImplementationName().equalsAsciiL( pImplName,
     254                 :        126 :                                                             nImplNameLen ) )
     255                 :            :         {
     256                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     257                 :            :                 SwXMLExport_getImplementationName(),
     258                 :            :                 SwXMLExport_createInstance,
     259 [ #  # ][ #  # ]:          0 :                 SwXMLExport_getSupportedServiceNames() );
                 [ #  # ]
     260                 :            :         }
     261         [ +  + ]:        126 :         else if( SwXMLExportStyles_getImplementationName().equalsAsciiL(
     262                 :        126 :                                                     pImplName, nImplNameLen ) )
     263                 :            :         {
     264                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     265                 :            :                 SwXMLExportStyles_getImplementationName(),
     266                 :            :                 SwXMLExportStyles_createInstance,
     267 [ +  - ][ +  - ]:         13 :                 SwXMLExportStyles_getSupportedServiceNames() );
                 [ +  - ]
     268                 :            :         }
     269         [ +  + ]:        113 :         else if( SwXMLExportContent_getImplementationName().equalsAsciiL(
     270                 :        113 :                                                     pImplName, nImplNameLen ) )
     271                 :            :         {
     272                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     273                 :            :                 SwXMLExportContent_getImplementationName(),
     274                 :            :                 SwXMLExportContent_createInstance,
     275 [ +  - ][ +  - ]:         13 :                 SwXMLExportContent_getSupportedServiceNames() );
                 [ +  - ]
     276                 :            :         }
     277         [ +  + ]:        100 :         else if( SwXMLExportMeta_getImplementationName().equalsAsciiL(
     278                 :        100 :                                                     pImplName, nImplNameLen ) )
     279                 :            :         {
     280                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     281                 :            :                 SwXMLExportMeta_getImplementationName(),
     282                 :            :                 SwXMLExportMeta_createInstance,
     283 [ +  - ][ +  - ]:         11 :                 SwXMLExportMeta_getSupportedServiceNames() );
                 [ +  - ]
     284                 :            :         }
     285         [ +  + ]:         89 :         else if( SwXMLExportSettings_getImplementationName().equalsAsciiL(
     286                 :         89 :                                                     pImplName, nImplNameLen ) )
     287                 :            :         {
     288                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     289                 :            :                 SwXMLExportSettings_getImplementationName(),
     290                 :            :                 SwXMLExportSettings_createInstance,
     291 [ +  - ][ +  - ]:         11 :                 SwXMLExportSettings_getSupportedServiceNames() );
                 [ +  - ]
     292                 :            :         }
     293         [ +  + ]:         78 :         else if( SwXAutoTextContainer_getImplementationName().equalsAsciiL(
     294                 :         78 :                                                     pImplName, nImplNameLen ) )
     295                 :            :         {
     296                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     297                 :            :                 SwXAutoTextContainer_getImplementationName(),
     298                 :            :                 SwXAutoTextContainer_createInstance,
     299 [ +  - ][ +  - ]:          2 :                 SwXAutoTextContainer_getSupportedServiceNames() );
                 [ +  - ]
     300                 :            :         }
     301         [ +  + ]:         76 :         else if( SwXModule_getImplementationName().equalsAsciiL(
     302                 :         76 :                                                     pImplName, nImplNameLen ) )
     303                 :            :         {
     304                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     305                 :            :                 SwXModule_getImplementationName(),
     306                 :            :                 SwXModule_createInstance,
     307 [ +  - ][ +  - ]:          2 :                 SwXModule_getSupportedServiceNames() );
                 [ +  - ]
     308                 :            :         }
     309         [ -  + ]:         74 :         else if( SwXMailMerge_getImplementationName().equalsAsciiL(
     310                 :         74 :                                                     pImplName, nImplNameLen ) )
     311                 :            :         {
     312                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     313                 :            :                 SwXMailMerge_getImplementationName(),
     314                 :            :                 SwXMailMerge_createInstance,
     315 [ #  # ][ #  # ]:          0 :                 SwXMailMerge_getSupportedServiceNames() );
                 [ #  # ]
     316                 :            :         }
     317         [ -  + ]:         74 :         else if( SwXFilterOptions::getImplementationName_Static().equalsAsciiL(
     318         [ +  - ]:         74 :                                                     pImplName, nImplNameLen ) )
     319                 :            :         {
     320                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     321                 :            :                 SwXFilterOptions::getImplementationName_Static(),
     322                 :            :                 SwXFilterOptions_createInstance,
     323 [ #  # ][ #  # ]:          0 :                 SwXFilterOptions::getSupportedServiceNames_Static() );
         [ #  # ][ #  # ]
                 [ #  # ]
     324                 :            :         }
     325         [ +  + ]:         74 :         else if( SwTextDocument_getImplementationName().equalsAsciiL(
     326                 :         74 :                                                     pImplName, nImplNameLen ) )
     327                 :            :         {
     328                 :            :             xFactory = ::sfx2::createSfxModelFactory( xMSF,
     329                 :            :                 SwTextDocument_getImplementationName(),
     330                 :            :                 SwTextDocument_createInstance,
     331 [ +  - ][ +  - ]:         70 :                 SwTextDocument_getSupportedServiceNames() );
                 [ +  - ]
     332                 :            :         }
     333         [ +  + ]:          4 :         else if( SwWebDocument_getImplementationName().equalsAsciiL(
     334                 :          4 :                                                     pImplName, nImplNameLen ) )
     335                 :            :         {
     336                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     337                 :            :                 SwWebDocument_getImplementationName(),
     338                 :            :                 SwWebDocument_createInstance,
     339 [ +  - ][ +  - ]:          2 :                 SwWebDocument_getSupportedServiceNames() );
                 [ +  - ]
     340                 :            :         }
     341         [ -  + ]:          2 :         else if( SwGlobalDocument_getImplementationName().equalsAsciiL(
     342                 :          2 :                                                     pImplName, nImplNameLen ) )
     343                 :            :         {
     344                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     345                 :            :                 SwGlobalDocument_getImplementationName(),
     346                 :            :                 SwGlobalDocument_createInstance,
     347 [ #  # ][ #  # ]:          0 :                 SwGlobalDocument_getSupportedServiceNames() );
                 [ #  # ]
     348                 :            :         }
     349         [ -  + ]:          2 :         else if( SwUnoModule_getImplementationName().equalsAsciiL(
     350                 :          2 :                                                     pImplName, nImplNameLen ) )
     351                 :            :         {
     352                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     353                 :            :                 SwUnoModule_getImplementationName(),
     354                 :            :                 SwUnoModule_createInstance,
     355 [ #  # ][ #  # ]:          0 :                 SwUnoModule_getSupportedServiceNames() );
                 [ #  # ]
     356                 :            :         }
     357         [ -  + ]:          2 :         else if( LayoutDumpFilter_getImplementationName().equalsAsciiL(
     358                 :          2 :                                                     pImplName, nImplNameLen ) )
     359                 :            :         {
     360                 :            :             xFactory = ::cppu::createSingleFactory( xMSF,
     361                 :            :                 LayoutDumpFilter_getImplementationName(),
     362                 :            :                 LayoutDumpFilter_createInstance,
     363 [ #  # ][ #  # ]:          0 :                 LayoutDumpFilter_getSupportedServiceNames() );
                 [ #  # ]
     364                 :            :         }
     365         [ +  - ]:          2 :         else if( comp_FinalThreadManager::_getImplementationName().equalsAsciiL(
     366         [ +  - ]:          2 :                                                     pImplName, nImplNameLen ) )
     367                 :            :         {
     368                 :            :             pRet = ::cppu::component_getFactoryHelper(
     369         [ +  - ]:          2 :                         pImplName, pServiceManager, pRegistryKey, entries);
     370                 :            :         }
     371                 :            : 
     372         [ +  + ]:        278 :         if( xFactory.is())
     373                 :            :         {
     374         [ +  - ]:        276 :             xFactory->acquire();
     375         [ +  - ]:        276 :             pRet = xFactory.get();
     376                 :        278 :         }
     377                 :            :     }
     378                 :        278 :     return pRet;
     379                 :            : }
     380                 :            : 
     381                 :            : #ifdef __cplusplus
     382                 :            : }
     383                 :            : #endif
     384                 :            : 
     385                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10