From 3da402de735542e628897cf3f9f967bd18dc5501 Mon Sep 17 00:00:00 2001 From: Martin Gallwey Date: Thu, 15 Nov 2001 19:28:55 +0000 Subject: #94679# support XTypeProvider --- package/source/zippackage/ZipPackageSink.cxx | 24 ++---------------------- package/source/zippackage/ZipPackageSink.hxx | 24 ++++++++++-------------- 2 files changed, 12 insertions(+), 36 deletions(-) (limited to 'package') diff --git a/package/source/zippackage/ZipPackageSink.cxx b/package/source/zippackage/ZipPackageSink.cxx index 8adac4875d1f..e7116dac8f0e 100644 --- a/package/source/zippackage/ZipPackageSink.cxx +++ b/package/source/zippackage/ZipPackageSink.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackageSink.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mtg $ $Date: 2001-04-19 14:16:31 $ + * last change: $Author: mtg $ $Date: 2001-11-15 20:28:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -69,26 +69,6 @@ ZipPackageSink::ZipPackageSink(void) ZipPackageSink::~ZipPackageSink(void) { } -com::sun::star::uno::Any SAL_CALL ZipPackageSink::queryInterface( const com::sun::star::uno::Type& rType ) - throw(com::sun::star::uno::RuntimeException) -{ - com::sun::star::uno::Any aReturn( ::cppu::queryInterface - ( rType, static_cast< com::sun::star::io::XActiveDataSink*> ( this ))); - if ( aReturn.hasValue () == sal_True ) - return aReturn ; - else - return OWeakObject::queryInterface ( rType ) ; -} -void SAL_CALL ZipPackageSink::acquire(void) - throw() -{ - OWeakObject::acquire(); -} -void SAL_CALL ZipPackageSink::release(void) - throw() -{ - OWeakObject::release(); -} void SAL_CALL ZipPackageSink::setInputStream( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& aStream ) throw(::com::sun::star::uno::RuntimeException) { diff --git a/package/source/zippackage/ZipPackageSink.hxx b/package/source/zippackage/ZipPackageSink.hxx index 80bfde7a3c0c..a390b2684363 100644 --- a/package/source/zippackage/ZipPackageSink.hxx +++ b/package/source/zippackage/ZipPackageSink.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackageSink.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mtg $ $Date: 2001-04-27 14:56:07 $ + * last change: $Author: mtg $ $Date: 2001-11-15 20:28:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,24 +64,20 @@ #ifndef _COM_SUN_STAR_IO_XACTIVEDATASINK_HPP_ #include #endif -#ifndef _CPPUHELPER_WEAK_HXX_ -#include +#ifndef _CPPUHELPER_IMPLBASE1_HXX_ +#include #endif -class ZipPackageSink : public com::sun::star::io::XActiveDataSink, - public cppu::OWeakObject +class ZipPackageSink : public ::cppu::WeakImplHelper1 +< + com::sun::star::io::XActiveDataSink +> { protected: com::sun::star::uno::Reference < com::sun::star::io::XInputStream > xStream; public: - ZipPackageSink(void); - ~ZipPackageSink(void); - virtual com::sun::star::uno::Any SAL_CALL queryInterface( const com::sun::star::uno::Type& rType ) - throw(com::sun::star::uno::RuntimeException); - virtual void SAL_CALL acquire(void) - throw(); - virtual void SAL_CALL release(void) - throw(); + ZipPackageSink(); + virtual ~ZipPackageSink(); virtual void SAL_CALL setInputStream( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& aStream ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getInputStream( ) -- cgit v1.2.3