From d13c7fc98effcef0c9b6cf8e7858e9aa472b78bf Mon Sep 17 00:00:00 2001 From: Martin Gallwey Date: Thu, 15 Nov 2001 19:41:02 +0000 Subject: #94679# support XTypeProvider --- package/source/zippackage/ZipPackageBuffer.cxx | 28 ++++---------------------- 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'package') diff --git a/package/source/zippackage/ZipPackageBuffer.cxx b/package/source/zippackage/ZipPackageBuffer.cxx index 275439c5c2a6..46b24ed1a83e 100644 --- a/package/source/zippackage/ZipPackageBuffer.cxx +++ b/package/source/zippackage/ZipPackageBuffer.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackageBuffer.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: mtg $ $Date: 2001-09-28 16:24:08 $ + * last change: $Author: mtg $ $Date: 2001-11-15 20:41:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,8 @@ #ifndef _ZIP_PACKAGE_BUFFER_HXX #include #endif +#include // for memcpy + using namespace com::sun::star::uno; using namespace com::sun::star::io; @@ -83,29 +85,7 @@ ZipPackageBuffer::ZipPackageBuffer(Sequence < sal_Int8 > &nNewBuffer ) ZipPackageBuffer::~ZipPackageBuffer(void) { } -Any SAL_CALL ZipPackageBuffer::queryInterface( const Type& rType ) - throw(RuntimeException) -{ - return ::cppu::queryInterface ( rType , - // OWeakObject interfaces - reinterpret_cast< XInterface* > ( this ) , - static_cast< XWeak* > ( this ) , - // my interfaces - static_cast< XInputStream* > ( this ) , - static_cast< XSeekable* > ( this ) , - static_cast< XOutputStream* > ( this ) ); -} -void SAL_CALL ZipPackageBuffer::acquire(void) - throw() -{ - OWeakObject::acquire(); -} -void SAL_CALL ZipPackageBuffer::release(void) - throw() -{ - OWeakObject::release(); -} sal_Int32 SAL_CALL ZipPackageBuffer::readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) { -- cgit v1.2.3