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

Generated by: LCOV version 1.10