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 ::rtl
;
12 using namespace ::cppu
;
13 using namespace ::com::sun::star::uno
;
14 using namespace ::com::sun::star::lang
;
15 using namespace ::com::sun::star::registry
;
19 SAL_DLLPUBLIC_EXPORT
void * SAL_CALL
lotuswordpro_component_getFactory(
20 const sal_Char
* pImplName
, void * pServiceManager
, void * /*pRegistryKey*/ )
24 OUString implName
= OUString::createFromAscii( pImplName
);
25 if ( pServiceManager
&& implName
.equals(LotusWordProImportFilter_getImplementationName()) )
27 Reference
< XSingleServiceFactory
> xFactory( createSingleFactory(
28 reinterpret_cast< XMultiServiceFactory
* >( pServiceManager
),
29 OUString::createFromAscii( pImplName
),
30 LotusWordProImportFilter_createInstance
, LotusWordProImportFilter_getSupportedServiceNames() ) );
35 pRet
= xFactory
.get();
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */