From be39d17a2ba8e0eb9e67f4e1e31afab623bb5c55 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Fri, 15 Jul 2011 16:40:20 +0200 Subject: Add prefixes for component_getFactory methods --- sw/source/filter/ww8/docxexportfilter.cxx | 2 +- sw/source/ui/uno/detreg.cxx | 2 +- sw/source/ui/uno/unofreg.cxx | 2 +- sw/source/ui/vba/service.cxx | 15 ++++++--------- sw/util/msword.component | 3 ++- sw/util/sw.component | 3 ++- sw/util/swd.component | 2 +- sw/util/vbaswobj.component | 2 +- 8 files changed, 15 insertions(+), 16 deletions(-) (limited to 'sw') diff --git a/sw/source/filter/ww8/docxexportfilter.cxx b/sw/source/filter/ww8/docxexportfilter.cxx index 62daec9417a9..38faf1c41020 100644 --- a/sw/source/filter/ww8/docxexportfilter.cxx +++ b/sw/source/filter/ww8/docxexportfilter.cxx @@ -143,7 +143,7 @@ extern "C" { 0, 0, 0, 0, 0, 0 } }; -SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplName, void* pServiceManager, void* pRegistryKey ) +SAL_DLLPUBLIC_EXPORT void* SAL_CALL msword_component_getFactory( const sal_Char* pImplName, void* pServiceManager, void* pRegistryKey ) { return ::cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, entries ); } diff --git a/sw/source/ui/uno/detreg.cxx b/sw/source/ui/uno/detreg.cxx index a94de8a0a064..c4c7b2be6e35 100644 --- a/sw/source/ui/uno/detreg.cxx +++ b/sw/source/ui/uno/detreg.cxx @@ -37,7 +37,7 @@ using namespace ::com::sun::star::lang; extern "C" { -SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( +SAL_DLLPUBLIC_EXPORT void* SAL_CALL swd_component_getFactory( const sal_Char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/ ) diff --git a/sw/source/ui/uno/unofreg.cxx b/sw/source/ui/uno/unofreg.cxx index 1badb9773b81..e47f8964a8f0 100644 --- a/sw/source/ui/uno/unofreg.cxx +++ b/sw/source/ui/uno/unofreg.cxx @@ -160,7 +160,7 @@ static ::cppu::ImplementationEntry const entries[] = { { 0, 0, 0, 0, 0, 0 } }; -SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( +SAL_DLLPUBLIC_EXPORT void * SAL_CALL sw_component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) diff --git a/sw/source/ui/vba/service.cxx b/sw/source/ui/vba/service.cxx index 0efdff4cadbc..ed31ee19d822 100644 --- a/sw/source/ui/vba/service.cxx +++ b/sw/source/ui/vba/service.cxx @@ -63,18 +63,15 @@ namespace vbaeventshelper extern sdecl::ServiceDecl const serviceDecl; } -extern "C" +extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaswobj_component_getFactory( + const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager, + registry::XRegistryKey * pRegistryKey ) { - SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( - const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager, - registry::XRegistryKey * pRegistryKey ) - { - OSL_TRACE("In component_getFactory for %s", pImplName ); - void* pRet = component_getFactoryHelper( - pImplName, pServiceManager, pRegistryKey, globals::serviceDecl, document::serviceDecl, wrapformat::serviceDecl, vbaeventshelper::serviceDecl ); + void* pRet = component_getFactoryHelper(pImplName, pServiceManager, + pRegistryKey, globals::serviceDecl, document::serviceDecl, + wrapformat::serviceDecl, vbaeventshelper::serviceDecl ); OSL_TRACE("Ret is 0x%x", pRet); return pRet; - } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/util/msword.component b/sw/util/msword.component index 54e638ebf8d1..5457603dd91b 100644 --- a/sw/util/msword.component +++ b/sw/util/msword.component @@ -25,7 +25,8 @@ * for a copy of the LGPLv3 License. * **********************************************************************--> - + diff --git a/sw/util/sw.component b/sw/util/sw.component index 7f7377754af7..643576c53689 100644 --- a/sw/util/sw.component +++ b/sw/util/sw.component @@ -25,7 +25,8 @@ * for a copy of the LGPLv3 License. * **********************************************************************--> - + diff --git a/sw/util/swd.component b/sw/util/swd.component index c89c007ec30a..74182f74d1e6 100644 --- a/sw/util/swd.component +++ b/sw/util/swd.component @@ -26,7 +26,7 @@ * **********************************************************************--> - diff --git a/sw/util/vbaswobj.component b/sw/util/vbaswobj.component index e6c6fe4a4149..b281a4bb72b9 100644 --- a/sw/util/vbaswobj.component +++ b/sw/util/vbaswobj.component @@ -26,7 +26,7 @@ * **********************************************************************--> - -- cgit