diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-05 19:47:58 -0600 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-06 10:04:33 +0100 |
commit | a6e19ea7a8885dcbdb1d8b2f56586373595ba8aa (patch) | |
tree | bb05bf857759210591f5a1e6824ad63a096b0310 /include/ucbhelper | |
parent | 8556cd881270823865662e9a7700da58d11c2785 (diff) |
use WeakImplHelper for ActivaDataSink
Change-Id: Ife32157ff876a0860b3920cadc24b7888200796b
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/ucbhelper')
-rw-r--r-- | include/ucbhelper/activedatasink.hxx | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/include/ucbhelper/activedatasink.hxx b/include/ucbhelper/activedatasink.hxx index 5adf7be58fe0..3a8470f769ed 100644 --- a/include/ucbhelper/activedatasink.hxx +++ b/include/ucbhelper/activedatasink.hxx @@ -20,51 +20,31 @@ #ifndef INCLUDED_UCBHELPER_ACTIVEDATASINK_HXX #define INCLUDED_UCBHELPER_ACTIVEDATASINK_HXX -#include <com/sun/star/lang/XTypeProvider.hpp> #include <com/sun/star/io/XActiveDataSink.hpp> -#include <cppuhelper/weak.hxx> -#include <ucbhelper/macros.hxx> #include <ucbhelper/ucbhelperdllapi.h> +#include <cppuhelper/implbase1.hxx> namespace ucbhelper { - - /** * This class implements the interface com::sun::star::io::XActiveDataSink. * Instances of this class can be passed with the parameters of an * "open" command. */ -class UCBHELPER_DLLPUBLIC ActiveDataSink : public cppu::OWeakObject, - public com::sun::star::lang::XTypeProvider, - public com::sun::star::io::XActiveDataSink +class UCBHELPER_DLLPUBLIC ActiveDataSink : + public cppu::WeakImplHelper1< css::io::XActiveDataSink > { - com::sun::star::uno::Reference< - com::sun::star::io::XInputStream > m_xStream; + css::uno::Reference< css::io::XInputStream > m_xStream; public: - // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) + // XActiveDataSink methods. + virtual void SAL_CALL setInputStream( const css::uno::Reference< css::io::XInputStream >& aStream ) throw( css::uno::RuntimeException, std::exception ); - virtual void SAL_CALL acquire() - throw(); - virtual void SAL_CALL release() - throw(); - // XTypeProvider - XTYPEPROVIDER_DECL() - - // XActiveDataSink methods. - virtual void SAL_CALL - setInputStream( const com::sun::star::uno::Reference< - com::sun::star::io::XInputStream >& aStream ) - throw( com::sun::star::uno::RuntimeException, std::exception ); - virtual com::sun::star::uno::Reference< - com::sun::star::io::XInputStream > SAL_CALL - getInputStream() - throw( com::sun::star::uno::RuntimeException, std::exception ); + virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream() + throw( css::uno::RuntimeException, std::exception ); }; } /* namespace ucbhelper */ |