diff options
author | Povilas Kanapickas <povilas.kanapickas@gmail.com> | 2010-10-18 19:33:02 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 19:33:02 +0100 |
commit | 42b0ace3fa39a2f672d2222ea57482258058d249 (patch) | |
tree | 89a2ec5bce3b142c21dfac67abb3dccd1b85a63b /lotuswordpro/source/filter/lwpfilter.cxx | |
parent | Remove unnecessary comments from sw_unotbl.cxx (diff) | |
download | core-42b0ace3fa39a2f672d2222ea57482258058d249.tar.gz core-42b0ace3fa39a2f672d2222ea57482258058d249.zip |
remove non-compiled code
Diffstat (limited to 'lotuswordpro/source/filter/lwpfilter.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfilter.cxx | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx index e4c09b2eb34b..34836c8b7921 100644 --- a/lotuswordpro/source/filter/lwpfilter.cxx +++ b/lotuswordpro/source/filter/lwpfilter.cxx @@ -326,65 +326,6 @@ Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) thro } return ret; } -#if 0 -EXTERN_C void SAL_CALL -component_getImplementationEnvironment(const sal_Char** ppEnvTypeName, uno_Environment** ppEnv) -{ - *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; -} - -EXTERN_C sal_Bool SAL_CALL -component_writeInfo(void* pServiceManager, void* pRegistryKey) -{ - if (pRegistryKey) - { - try - { - uno::Reference< XRegistryKey > xKey( reinterpret_cast<XRegistryKey*>(pRegistryKey) ); - - uno::Reference< XRegistryKey > xNewKey = xKey->createKey( OUString::createFromAscii( IMPLEMENTATION_NAME ) ); - xNewKey = xNewKey->createKey( OUString::createFromAscii( "/UNO/SERVICES" ) ); - - xNewKey->createKey( OUString::createFromAscii( STR_SERVICE_NAME ) ); - - return sal_True; - } - catch (InvalidRegistryException &) - { - OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); - } - } - return sal_False; -} - -EXTERN_C void* SAL_CALL -component_getFactory(const sal_Char* pImplName, void* pServiceManager, void* pRegistryKey) -{ - void * pRet = 0; - - if(pServiceManager ) - { - uno::Reference< XSingleServiceFactory > xRet; - uno::Reference< XMultiServiceFactory > xSMgr = reinterpret_cast< XMultiServiceFactory * > ( pServiceManager ); - - OUString aImplementationName = OUString::createFromAscii( pImplName ); - - if(aImplementationName == OUString::createFromAscii( STR_IMPLEMENTATION_NAME ) ) - { - xRet = createSingleFactory( xSMgr, aImplementationName, - LWPFilterImportFilter_CreateInstance, - LWPFilterImportFilter::getSupportedServiceNames_Static() ); - } - if (xRet.is()) - { - xRet->acquire(); - pRet = xRet.get(); - } - } - - return pRet; -} -#endif /** * @descr decompressed small file @@ -533,11 +474,6 @@ sal_Bool IsWordProStr(const sal_Int8 *pBuf) { 0x57, 0x6F, 0x72, 0x64, 0x50, 0x72, 0x6F -#if 0 - , 0, - 0, 0, 0, 0, - 0, 0, 0, 0 -#endif }; for(size_t i=0; i<sizeof(pLotusLwp); ++i) { |