diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-20 00:12:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-22 09:39:13 +0100 |
commit | 0c3296aee4875d79a88b2e1ee85e0f29e4ee913e (patch) | |
tree | 91c27dcfad958a152fbfb1c64613e234cd89f1fb | |
parent | afd8c5919fee3a2716a67b9933a23c31bce8cef7 (diff) |
callcatcher: post-unotools cleanup this is now unused
-rw-r--r-- | comphelper/inc/comphelper/componentfactory.hxx | 38 | ||||
-rw-r--r-- | comphelper/source/processfactory/componentfactory.cxx | 21 |
2 files changed, 0 insertions, 59 deletions
diff --git a/comphelper/inc/comphelper/componentfactory.hxx b/comphelper/inc/comphelper/componentfactory.hxx index 2da7de3f3c82..03381a08da43 100644 --- a/comphelper/inc/comphelper/componentfactory.hxx +++ b/comphelper/inc/comphelper/componentfactory.hxx @@ -54,9 +54,6 @@ namespace rtl { class OUString; } namespace com { namespace sun { namespace star { - namespace uno { - class XInterface; - } namespace lang { class XSingleServiceFactory; class XMultiServiceFactory; @@ -70,41 +67,6 @@ namespace com { namespace sun { namespace star { namespace comphelper { -/** - * Get an instance of the component <code>rImplementationName</code> located - * in library <code>rLibraryName</code>. The instance must then be queried - * for the desired interface with a queryInterface call. - * The library name must be constructed with the macro - * <code>LLCF_LIBNAME( name )</code> if it is a library from the normal build - * process which includes build number and platform name. - * - * @example:C++ - * <listing> - - using namespace ::com::sun::star; - using namespace ::com::sun::star::uno; - Reference< whatever::XYourComponent > xComp; - // library name, e.g. xyz603mi.dll or libxyz603.so - ::rtl::OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( LLCF_LIBNAME( "xyz" ) ) ); - ::rtl::OUString aImplName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.whatever.YourComponent" ) ); - Reference< Xinterface > xI = ::comphelper::getComponentInstance( aLibName, aImplName ); - if ( xI.is() ) - { - Any x = xI->queryInterface( ::getCppuType((const Reference< whatever::XYourComponent >*)0) ); - x >>= xComp; - } - if ( !xComp.is() ) - // you're lost - - * </listing> - */ -COMPHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > - getComponentInstance( - const ::rtl::OUString & rLibraryName, - const ::rtl::OUString & rImplementationName - ); - - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > loadLibComponentFactory( const ::rtl::OUString & rLibraryName, diff --git a/comphelper/source/processfactory/componentfactory.cxx b/comphelper/source/processfactory/componentfactory.cxx index ec72a25dc615..c7d41e8d77bf 100644 --- a/comphelper/source/processfactory/componentfactory.cxx +++ b/comphelper/source/processfactory/componentfactory.cxx @@ -46,27 +46,6 @@ using namespace ::rtl; namespace comphelper { -Reference< XInterface > getComponentInstance( - const OUString & rLibraryName, - const OUString & rImplementationName - ) -{ - Reference< XInterface > xI; - Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory(); - if ( xMSF.is() ) - xI = xMSF->createInstance( rImplementationName ); - if( !xI.is() ) - { - Reference< XSingleServiceFactory > xSSF = - loadLibComponentFactory( rLibraryName, rImplementationName, - Reference< XMultiServiceFactory >(), Reference< XRegistryKey >() ); - if (xSSF.is()) - xI = xSSF->createInstance(); - } - return xI; -} - - Reference< XSingleServiceFactory > loadLibComponentFactory( const OUString & rLibName, const OUString & rImplName, |