diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-11-15 19:28:55 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-11-15 19:28:55 +0000 |
commit | 3da402de735542e628897cf3f9f967bd18dc5501 (patch) | |
tree | b57f9b951043f0adb418d193cfcad2247b52c80d /package/source/zippackage | |
parent | 3269035ee8f15af7484d1247a349cd38a6fa7fde (diff) |
#94679# support XTypeProvider
Diffstat (limited to 'package/source/zippackage')
-rw-r--r-- | package/source/zippackage/ZipPackageSink.cxx | 24 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageSink.hxx | 24 |
2 files changed, 12 insertions, 36 deletions
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 <com/sun/star/io/XActiveDataSink.hpp> #endif -#ifndef _CPPUHELPER_WEAK_HXX_ -#include <cppuhelper/weak.hxx> +#ifndef _CPPUHELPER_IMPLBASE1_HXX_ +#include <cppuhelper/implbase1.hxx> #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( ) |