LCOV - code coverage report
Current view: top level - svx/source/core - coreservices.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 104 0.0 %

           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                 :            : /** this file contains the uno service registrations for all services in the svxcore lib */
      30                 :            : 
      31                 :            : 
      32                 :            : #include "sal/types.h"
      33                 :            : #include "osl/diagnose.h"
      34                 :            : #include "cppuhelper/factory.hxx"
      35                 :            : #include "uno/lbnames.h"
      36                 :            : 
      37                 :            : using rtl::OUString;
      38                 :            : 
      39                 :            : using namespace com::sun::star::uno;
      40                 :            : using namespace com::sun::star::lang;
      41                 :            : using namespace com::sun::star::registry;
      42                 :            : 
      43                 :            : namespace svx
      44                 :            : {
      45                 :            : extern OUString SAL_CALL ExtrusionDepthController_getImplementationName();
      46                 :            : extern Reference< XInterface > SAL_CALL ExtrusionDepthController_createInstance(const Reference< XMultiServiceFactory > &)  throw( RuntimeException );
      47                 :            : extern Sequence< OUString > SAL_CALL ExtrusionDepthController_getSupportedServiceNames() throw( RuntimeException );
      48                 :            : 
      49                 :            : extern OUString SAL_CALL ExtrusionDirectionControl_getImplementationName();
      50                 :            : extern Reference< XInterface > SAL_CALL ExtrusionDirectionControl_createInstance(const Reference< XMultiServiceFactory > &)  throw( RuntimeException );
      51                 :            : extern Sequence< OUString > SAL_CALL ExtrusionDirectionControl_getSupportedServiceNames() throw( RuntimeException );
      52                 :            : 
      53                 :            : extern OUString SAL_CALL ExtrusionLightingControl_getImplementationName();
      54                 :            : extern Reference< XInterface > SAL_CALL ExtrusionLightingControl_createInstance(const Reference< XMultiServiceFactory > &)  throw( RuntimeException );
      55                 :            : extern Sequence< OUString > SAL_CALL ExtrusionLightingControl_getSupportedServiceNames() throw( RuntimeException );
      56                 :            : 
      57                 :            : extern OUString SAL_CALL ExtrusionSurfaceControl_getImplementationName();
      58                 :            : extern Reference< XInterface > SAL_CALL ExtrusionSurfaceControl_createInstance(const Reference< XMultiServiceFactory > &)  throw( RuntimeException );
      59                 :            : extern Sequence< OUString > SAL_CALL ExtrusionSurfaceControl_getSupportedServiceNames() throw( RuntimeException );
      60                 :            : 
      61                 :            : extern OUString SAL_CALL FontWorkAlignmentControl_getImplementationName();
      62                 :            : extern Reference< XInterface > SAL_CALL FontWorkAlignmentControl_createInstance(const Reference< XMultiServiceFactory > &)  throw( RuntimeException );
      63                 :            : extern Sequence< OUString > SAL_CALL FontWorkAlignmentControl_getSupportedServiceNames() throw( RuntimeException );
      64                 :            : 
      65                 :            : extern OUString SAL_CALL FontWorkCharacterSpacingControl_getImplementationName();
      66                 :            : extern Reference< XInterface > SAL_CALL FontWorkCharacterSpacingControl_createInstance(const Reference< XMultiServiceFactory > &)  throw( RuntimeException );
      67                 :            : extern Sequence< OUString > SAL_CALL FontWorkCharacterSpacingControl_getSupportedServiceNames() throw( RuntimeException );
      68                 :            : }
      69                 :            : 
      70                 :            : extern "C"
      71                 :            : {
      72                 :            : 
      73                 :          0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory (
      74                 :            :     const sal_Char * pImplName, void * pServiceManager, void *  )
      75                 :            : {
      76                 :          0 :     void * pRet = 0;
      77         [ #  # ]:          0 :     if( pServiceManager  )
      78                 :            :     {
      79                 :          0 :         Reference< XSingleServiceFactory > xFactory;
      80                 :            : 
      81 [ #  # ][ #  # ]:          0 :         if( ::svx::ExtrusionDepthController_getImplementationName().equalsAscii( pImplName ) )
      82                 :            :         {
      83                 :            :             xFactory = ::cppu::createSingleFactory(
      84                 :            :                 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
      85                 :            :                 ::svx::ExtrusionDepthController_getImplementationName(),
      86                 :            :                 ::svx::ExtrusionDepthController_createInstance,
      87 [ #  # ][ #  # ]:          0 :                 ::svx::ExtrusionDepthController_getSupportedServiceNames() );
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
      88                 :            :         }
      89 [ #  # ][ #  # ]:          0 :         else if( ::svx::ExtrusionDirectionControl_getImplementationName().equalsAscii( pImplName ) )
      90                 :            :         {
      91                 :            :             xFactory = ::cppu::createSingleFactory(
      92                 :            :                 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
      93                 :            :                 ::svx::ExtrusionDirectionControl_getImplementationName(),
      94                 :            :                 ::svx::ExtrusionDirectionControl_createInstance,
      95 [ #  # ][ #  # ]:          0 :                 ::svx::ExtrusionDirectionControl_getSupportedServiceNames() );
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
      96                 :            :         }
      97 [ #  # ][ #  # ]:          0 :         else if( ::svx::ExtrusionLightingControl_getImplementationName().equalsAscii( pImplName ) )
      98                 :            :         {
      99                 :            :             xFactory = ::cppu::createSingleFactory(
     100                 :            :                 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
     101                 :            :                 ::svx::ExtrusionLightingControl_getImplementationName(),
     102                 :            :                 ::svx::ExtrusionLightingControl_createInstance,
     103 [ #  # ][ #  # ]:          0 :                 ::svx::ExtrusionLightingControl_getSupportedServiceNames() );
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
     104                 :            :         }
     105 [ #  # ][ #  # ]:          0 :         else if( ::svx::ExtrusionSurfaceControl_getImplementationName().equalsAscii( pImplName ) )
     106                 :            :         {
     107                 :            :             xFactory = ::cppu::createSingleFactory(
     108                 :            :                 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
     109                 :            :                 ::svx::ExtrusionSurfaceControl_getImplementationName(),
     110                 :            :                 ::svx::ExtrusionSurfaceControl_createInstance,
     111 [ #  # ][ #  # ]:          0 :                 ::svx::ExtrusionSurfaceControl_getSupportedServiceNames() );
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
     112                 :            :         }
     113 [ #  # ][ #  # ]:          0 :         else if( ::svx::FontWorkAlignmentControl_getImplementationName().equalsAscii( pImplName ) )
     114                 :            :         {
     115                 :            :             xFactory = ::cppu::createSingleFactory(
     116                 :            :                 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
     117                 :            :                 ::svx::FontWorkAlignmentControl_getImplementationName(),
     118                 :            :                 ::svx::FontWorkAlignmentControl_createInstance,
     119 [ #  # ][ #  # ]:          0 :                 ::svx::FontWorkAlignmentControl_getSupportedServiceNames() );
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
     120                 :            :         }
     121 [ #  # ][ #  # ]:          0 :         else if( ::svx::FontWorkCharacterSpacingControl_getImplementationName().equalsAscii( pImplName ) )
     122                 :            :         {
     123                 :            :             xFactory = ::cppu::createSingleFactory(
     124                 :            :                 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
     125                 :            :                 ::svx::FontWorkCharacterSpacingControl_getImplementationName(),
     126                 :            :                 ::svx::FontWorkCharacterSpacingControl_createInstance,
     127 [ #  # ][ #  # ]:          0 :                 ::svx::FontWorkCharacterSpacingControl_getSupportedServiceNames() );
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
     128         [ #  # ]:          0 :         }       if( xFactory.is())
     129                 :            :         {
     130         [ #  # ]:          0 :             xFactory->acquire();
     131         [ #  # ]:          0 :             pRet = xFactory.get();
     132                 :          0 :         }
     133                 :            :     }
     134                 :            : 
     135                 :          0 :     return pRet;
     136                 :            : }
     137                 :            : 
     138                 :            : }
     139                 :            : 
     140                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10