1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 #include <osl/mutex.hxx>
5 #include <osl/thread.h>
6 #include <cppuhelper/factory.hxx>
7 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
9 #include "LotusWordProImportFilter.hxx"
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
;
18 SAL_DLLPUBLIC_EXPORT
void * SAL_CALL
lotuswordpro_component_getFactory(
19 const sal_Char
* pImplName
, void * pServiceManager
, void * /*pRegistryKey*/ )
23 OUString implName
= OUString::createFromAscii( pImplName
);
24 if ( pServiceManager
&& implName
.equals(LotusWordProImportFilter_getImplementationName()) )
26 Reference
< XSingleServiceFactory
> xFactory( createSingleFactory(
27 reinterpret_cast< XMultiServiceFactory
* >( pServiceManager
),
28 OUString::createFromAscii( pImplName
),
29 LotusWordProImportFilter_createInstance
, LotusWordProImportFilter_getSupportedServiceNames() ) );
34 pRet
= xFactory
.get();
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */