fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / lotuswordpro / source / filter / genericfilter.cxx
blob3ff90ec00a3de1a9d452df7ba3f7fd5380010023
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 #include <stdio.h>
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;
16 extern "C"
18 SAL_DLLPUBLIC_EXPORT void * SAL_CALL lotuswordpro_component_getFactory(
19 const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
21 void * pRet = 0;
23 OUString implName = OUString::createFromAscii( pImplName );
24 if ( pServiceManager && implName.equals(LotusWordProImportFilter_getImplementationName()) )
26 Reference< XSingleServiceFactory > xFactory( createSingleFactory(
27 static_cast< XMultiServiceFactory * >( pServiceManager ),
28 OUString::createFromAscii( pImplName ),
29 LotusWordProImportFilter_createInstance, LotusWordProImportFilter_getSupportedServiceNames() ) );
31 if (xFactory.is())
33 xFactory->acquire();
34 pRet = xFactory.get();
38 return pRet;
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */