diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-09-14 13:45:19 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-09-14 13:45:19 +0000 |
commit | 4e98063880de6511a6134462228c498f9bc2e7a1 (patch) | |
tree | a4a142f548e4a950c7336eb83d50c0f52805c355 /package/inc/ZipFile.hxx | |
parent | 23ce8b76d8e1b6fce89e76aa9e05f01be424d37e (diff) |
#89303# use new hash map and ZipEntry struct
Diffstat (limited to 'package/inc/ZipFile.hxx')
-rw-r--r-- | package/inc/ZipFile.hxx | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx index 6d71855cb6e9..184d37d3a261 100644 --- a/package/inc/ZipFile.hxx +++ b/package/inc/ZipFile.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipFile.hxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: mtg $ $Date: 2001-09-05 19:32:43 $ + * last change: $Author: mtg $ $Date: 2001-09-14 14:45:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,8 +64,8 @@ #ifndef _BYTE_GRABBER_HXX_ #include <ByteGrabber.hxx> #endif -#ifndef _ENTRY_HASH_HXX -#include <EntryHash.hxx> +#ifndef _HASHMAPS_HXX +#include <HashMaps.hxx> #endif #ifndef _INFLATER_HXX #include <Inflater.hxx> @@ -110,12 +110,12 @@ protected: const ::com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > xFactory; com::sun::star::uno::Reference < com::sun::star::io::XInputStream > createMemoryStream( - com::sun::star::packages::zip::ZipEntry & rEntry, + ZipEntry & rEntry, const vos::ORef < EncryptionData > &rData, sal_Bool bRawStream ); com::sun::star::uno::Reference < com::sun::star::io::XInputStream > createFileStream( - com::sun::star::packages::zip::ZipEntry & rEntry, + ZipEntry & rEntry, const vos::ORef < EncryptionData > &rData, sal_Bool bRawStream ); public: @@ -127,43 +127,25 @@ public: ~ZipFile(); void setInputStream ( com::sun::star::uno::Reference < com::sun::star::io::XInputStream > xNewStream ); - sal_uInt32 SAL_CALL getHeader(const ::com::sun::star::packages::zip::ZipEntry& rEntry) - throw(::com::sun::star::io::IOException, ::com::sun::star::packages::zip::ZipException, ::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getRawStream( - ::com::sun::star::packages::zip::ZipEntry& rEntry, + ZipEntry& rEntry, const vos::ORef < EncryptionData > &rData) throw(::com::sun::star::io::IOException, ::com::sun::star::packages::zip::ZipException, ::com::sun::star::uno::RuntimeException); static void StaticGetCipher ( const vos::ORef < EncryptionData > & xEncryptionData, rtlCipher &rCipher ); - // XElementAccess - ::com::sun::star::uno::Type SAL_CALL getElementType( ) - throw(::com::sun::star::uno::RuntimeException); - sal_Bool SAL_CALL hasElements( ) - throw(::com::sun::star::uno::RuntimeException); - // XZipFile ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getInputStream( - ::com::sun::star::packages::zip::ZipEntry& rEntry, + ZipEntry& rEntry, const vos::ORef < EncryptionData > &rData) throw(::com::sun::star::io::IOException, ::com::sun::star::packages::zip::ZipException, ::com::sun::star::uno::RuntimeException); ::rtl::OUString SAL_CALL getName( ) throw(::com::sun::star::uno::RuntimeException); sal_Int32 SAL_CALL getSize( ) throw(::com::sun::star::uno::RuntimeException); - void SAL_CALL close( ) - throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); - - // XNameAccess - ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) - throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); - ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames( ) - throw(::com::sun::star::uno::RuntimeException); - sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) - throw(::com::sun::star::uno::RuntimeException); ZipEnumeration * SAL_CALL entries( ); protected: - sal_Bool readLOC (com::sun::star::packages::zip::ZipEntry &rEntry) + sal_Bool readLOC ( ZipEntry &rEntry) throw(::com::sun::star::io::IOException, com::sun::star::packages::zip::ZipException, com::sun::star::uno::RuntimeException); sal_Int32 readCEN() throw(::com::sun::star::io::IOException, com::sun::star::packages::zip::ZipException, com::sun::star::uno::RuntimeException); |