diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 14:12:42 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 15:27:34 -0600 |
commit | a14e1cb35b93131ee8492cffdf936097f4fc8306 (patch) | |
tree | 180183787c928a9355cc0c961b8bf1fafe4b4d93 /include/ucbhelper | |
parent | c8117c46f1e4f9aaf6245d5d68f26d5656116b39 (diff) |
de-macroize ucbhelper activedatastreamer
Change-Id: I55bbce1f8e3c0dcd92d0e2af03d7be5c7ac910c0
Diffstat (limited to 'include/ucbhelper')
-rw-r--r-- | include/ucbhelper/activedatastreamer.hxx | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/include/ucbhelper/activedatastreamer.hxx b/include/ucbhelper/activedatastreamer.hxx index 0c1af6a52056..71b96750562e 100644 --- a/include/ucbhelper/activedatastreamer.hxx +++ b/include/ucbhelper/activedatastreamer.hxx @@ -20,10 +20,8 @@ #ifndef INCLUDED_UCBHELPER_ACTIVEDATASTREAMER_HXX #define INCLUDED_UCBHELPER_ACTIVEDATASTREAMER_HXX -#include <com/sun/star/lang/XTypeProvider.hpp> #include <com/sun/star/io/XActiveDataStreamer.hpp> -#include <cppuhelper/weak.hxx> -#include <ucbhelper/macros.hxx> +#include <cppuhelper/implbase1.hxx> namespace ucbhelper { @@ -36,30 +34,19 @@ namespace ucbhelper * "open" command. */ -class ActiveDataStreamer : public cppu::OWeakObject, - public com::sun::star::lang::XTypeProvider, - public com::sun::star::io::XActiveDataStreamer +class ActiveDataStreamer : + public cppu::WeakImplHelper1< css::io::XActiveDataStreamer > { - com::sun::star::uno::Reference< - com::sun::star::io::XStream > m_xStream; + css::uno::Reference< css::io::XStream > m_xStream; public: - // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ); - virtual void SAL_CALL acquire() - throw(); - virtual void SAL_CALL release() - throw(); - - // XTypeProvider - XTYPEPROVIDER_DECL() - // XActiveDataStreamer methods. - virtual void SAL_CALL setStream( const com::sun::star::uno::Reference< com::sun::star::io::XStream >& xStream ) - throw( com::sun::star::uno::RuntimeException, std::exception ); - virtual com::sun::star::uno::Reference< com::sun::star::io::XStream > SAL_CALL getStream() - throw( com::sun::star::uno::RuntimeException, std::exception ); + virtual void SAL_CALL setStream( const css::uno::Reference< css::io::XStream >& xStream ) + throw( css::uno::RuntimeException, + std::exception ); + virtual css::uno::Reference< css::io::XStream > SAL_CALL getStream() + throw( css::uno::RuntimeException, + std::exception ); }; } /* namespace ucbhelper */ |