LCOV - code coverage report
Current view: top level - lotuswordpro/source/filter - genericfilter.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 10 10 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 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             : #include <osl/mutex.hxx>
       3             : #include <osl/thread.h>
       4             : #include <cppuhelper/factory.hxx>
       5             : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
       6             : 
       7             : #include "LotusWordProImportFilter.hxx"
       8             : 
       9             : using namespace ::cppu;
      10             : using namespace ::com::sun::star::uno;
      11             : using namespace ::com::sun::star::lang;
      12             : using namespace ::com::sun::star::registry;
      13             : 
      14             : extern "C"
      15             : {
      16           4 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL lotuswordpro_component_getFactory(
      17             :     const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
      18             : {
      19           4 :     void * pRet = 0;
      20             : 
      21           4 :     OUString implName = OUString::createFromAscii( pImplName );
      22           4 :     if ( pServiceManager && implName.equals(LotusWordProImportFilter_getImplementationName()) )
      23             :     {
      24             :         Reference< XSingleServiceFactory > xFactory( createSingleFactory(
      25             :             static_cast< XMultiServiceFactory * >( pServiceManager ),
      26             :             OUString::createFromAscii( pImplName ),
      27           4 :             LotusWordProImportFilter_createInstance, LotusWordProImportFilter_getSupportedServiceNames() ) );
      28             : 
      29           4 :         if (xFactory.is())
      30             :         {
      31           4 :             xFactory->acquire();
      32           4 :             pRet = xFactory.get();
      33           4 :         }
      34             :     }
      35             : 
      36           4 :     return pRet;
      37             : }
      38             : }
      39             : 
      40             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11