diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-21 15:39:01 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-21 15:39:01 +0000 |
commit | 262a142c3adfb3a5e62a815c8e41688e773c4b4b (patch) | |
tree | 7ad0604f871c8b619e40f662b0b377ce1239c341 /connectivity/source/cpool | |
parent | b2024391dd078c9517cc623898bab379298341c6 (diff) |
INTEGRATION: CWS dba22 (1.5.234); FILE MERGED
2004/12/16 09:03:38 oj 1.5.234.1: #i39123# some clean ups
Diffstat (limited to 'connectivity/source/cpool')
-rw-r--r-- | connectivity/source/cpool/ZConnectionWrapper.hxx | 84 |
1 files changed, 2 insertions, 82 deletions
diff --git a/connectivity/source/cpool/ZConnectionWrapper.hxx b/connectivity/source/cpool/ZConnectionWrapper.hxx index 6daf52cdd6e1..aa47be6a7373 100644 --- a/connectivity/source/cpool/ZConnectionWrapper.hxx +++ b/connectivity/source/cpool/ZConnectionWrapper.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ZConnectionWrapper.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: oj $ $Date: 2002-08-23 09:57:53 $ + * last change: $Author: kz $ $Date: 2005-01-21 16:39:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -78,86 +78,6 @@ #include "connectivity/ConnectionWrapper.hxx" #endif -#if SUPD < 643 - #define DECLARE_XINTERFACE( ) \ - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException); \ - virtual void SAL_CALL acquire() throw(); \ - virtual void SAL_CALL release() throw(); - - #define IMPLEMENT_FORWARD_REFCOUNT( classname, refcountbase ) \ - void SAL_CALL classname::acquire() throw() { refcountbase::acquire(); } \ - void SAL_CALL classname::release() throw() { refcountbase::release(); } - - #define IMPLEMENT_FORWARD_XINTERFACE2( classname, refcountbase, baseclass2 ) \ - IMPLEMENT_FORWARD_REFCOUNT( classname, refcountbase ) \ - ::com::sun::star::uno::Any SAL_CALL classname::queryInterface( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException) \ - { \ - ::com::sun::star::uno::Any aReturn = refcountbase::queryInterface( _rType ); \ - if ( !aReturn.hasValue() ) \ - aReturn = baseclass2::queryInterface( _rType ); \ - return aReturn; \ - } - - #define IMPLEMENT_FORWARD_XINTERFACE3( classname, refcountbase, baseclass2, baseclass3 ) \ - IMPLEMENT_FORWARD_REFCOUNT( classname, refcountbase ) \ - ::com::sun::star::uno::Any SAL_CALL classname::queryInterface( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException) \ - { \ - ::com::sun::star::uno::Any aReturn = refcountbase::queryInterface( _rType ); \ - if ( !aReturn.hasValue() ) \ - { \ - aReturn = baseclass2::queryInterface( _rType ); \ - if ( !aReturn.hasValue() ) \ - aReturn = baseclass3::queryInterface( _rType ); \ - } \ - return aReturn; \ - } - //===================================================================== - //= forwarding/merging XTypeProvider funtionality - //===================================================================== - #define DECLARE_XTYPEPROVIDER( ) \ - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException); \ - virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException); - - #define IMPLEMENT_GET_IMPLEMENTATION_ID( classname ) \ - ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL classname::getImplementationId( ) throw (::com::sun::star::uno::RuntimeException) \ - { \ - static ::cppu::OImplementationId* pId = NULL; \ - if (!pId) \ - { \ - ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); \ - if (!pId) \ - { \ - static ::cppu::OImplementationId aId; \ - pId = &aId; \ - } \ - } \ - return pId->getImplementationId(); \ - } - - #define IMPLEMENT_FORWARD_XTYPEPROVIDER2( classname, baseclass1, baseclass2 ) \ - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL classname::getTypes( ) throw (::com::sun::star::uno::RuntimeException) \ - { \ - return ::comphelper::concatSequences( \ - baseclass1::getTypes(), \ - baseclass2::getTypes() \ - ); \ - } \ - \ - IMPLEMENT_GET_IMPLEMENTATION_ID( classname ) - - #define IMPLEMENT_FORWARD_XTYPEPROVIDER3( classname, baseclass1, baseclass2, baseclass3 ) \ - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL classname::getTypes( ) throw (::com::sun::star::uno::RuntimeException) \ - { \ - return ::comphelper::concatSequences( \ - baseclass1::getTypes(), \ - baseclass2::getTypes(), \ - baseclass3::getTypes() \ - ); \ - } \ - \ - IMPLEMENT_GET_IMPLEMENTATION_ID( classname ) -#endif // SUPD < 643 - namespace connectivity { |