diff options
Diffstat (limited to 'ucbhelper/source/client')
-rw-r--r-- | ucbhelper/source/client/activedatasink.cxx | 24 | ||||
-rw-r--r-- | ucbhelper/source/client/activedatastreamer.cxx | 24 | ||||
-rw-r--r-- | ucbhelper/source/client/commandenvironment.cxx | 24 | ||||
-rw-r--r-- | ucbhelper/source/client/content.cxx | 24 |
4 files changed, 76 insertions, 20 deletions
diff --git a/ucbhelper/source/client/activedatasink.cxx b/ucbhelper/source/client/activedatasink.cxx index aed7305e5efe..d83643f63f5b 100644 --- a/ucbhelper/source/client/activedatasink.cxx +++ b/ucbhelper/source/client/activedatasink.cxx @@ -42,13 +42,27 @@ namespace ucbhelper // XInterface methods +void SAL_CALL ActiveDataSink::acquire() + throw() +{ + OWeakObject::acquire(); +} +void SAL_CALL ActiveDataSink::release() + throw() +{ + OWeakObject::release(); +} -XINTERFACE_IMPL_2( ActiveDataSink, - lang::XTypeProvider, - io::XActiveDataSink ); - - +css::uno::Any SAL_CALL ActiveDataSink::queryInterface( const css::uno::Type & rType ) + throw( css::uno::RuntimeException, std::exception ) +{ + css::uno::Any aRet = cppu::queryInterface( rType, + (static_cast< lang::XTypeProvider* >(this)), + (static_cast< io::XActiveDataSink* >(this)) + ); + return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); +} // XTypeProvider methods diff --git a/ucbhelper/source/client/activedatastreamer.cxx b/ucbhelper/source/client/activedatastreamer.cxx index 27ab53a9b4c0..15baa8e65ebf 100644 --- a/ucbhelper/source/client/activedatastreamer.cxx +++ b/ucbhelper/source/client/activedatastreamer.cxx @@ -42,13 +42,27 @@ namespace ucbhelper // XInterface methods +void SAL_CALL ActiveDataStreamer::acquire() + throw() +{ + OWeakObject::acquire(); +} +void SAL_CALL ActiveDataStreamer::release() + throw() +{ + OWeakObject::release(); +} -XINTERFACE_IMPL_2( ActiveDataStreamer, - lang::XTypeProvider, - io::XActiveDataStreamer ); - - +css::uno::Any SAL_CALL ActiveDataStreamer::queryInterface( const css::uno::Type & rType ) + throw( css::uno::RuntimeException, std::exception ) +{ + css::uno::Any aRet = cppu::queryInterface( rType, + (static_cast< lang::XTypeProvider* >(this)), + (static_cast< io::XActiveDataStreamer* >(this)) + ); + return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); +} // XTypeProvider methods diff --git a/ucbhelper/source/client/commandenvironment.cxx b/ucbhelper/source/client/commandenvironment.cxx index a8e938cd21c0..80b0004b6035 100644 --- a/ucbhelper/source/client/commandenvironment.cxx +++ b/ucbhelper/source/client/commandenvironment.cxx @@ -85,13 +85,27 @@ CommandEnvironment::~CommandEnvironment() // XInterface methods +void SAL_CALL CommandEnvironment::acquire() + throw() +{ + OWeakObject::acquire(); +} +void SAL_CALL CommandEnvironment::release() + throw() +{ + OWeakObject::release(); +} -XINTERFACE_IMPL_2( CommandEnvironment, - XTypeProvider, - XCommandEnvironment ); - - +css::uno::Any SAL_CALL CommandEnvironment::queryInterface( const css::uno::Type & rType ) + throw( css::uno::RuntimeException, std::exception ) +{ + css::uno::Any aRet = cppu::queryInterface( rType, + (static_cast< XTypeProvider* >(this)), + (static_cast< XCommandEnvironment* >(this)) + ); + return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); +} // XTypeProvider methods diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 2cffd349e300..f4b9beba6891 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -1321,13 +1321,27 @@ void Content_Impl::inserted() // XInterface methods. +void SAL_CALL ContentEventListener_Impl::acquire() + throw() +{ + OWeakObject::acquire(); +} +void SAL_CALL ContentEventListener_Impl::release() + throw() +{ + OWeakObject::release(); +} -XINTERFACE_IMPL_2( ContentEventListener_Impl, - XContentEventListener, - XEventListener ); /* base of XContentEventListener */ - - +css::uno::Any SAL_CALL ContentEventListener_Impl::queryInterface( const css::uno::Type & rType ) + throw( css::uno::RuntimeException, std::exception ) +{ + css::uno::Any aRet = cppu::queryInterface( rType, + (static_cast< XContentEventListener* >(this)), + (static_cast< XEventListener* >(this)) + ); + return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); +} // XContentEventListener methods. |