diff options
author | Martin Gallwey <mtg@openoffice.org> | 2000-11-29 02:21:56 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2000-11-29 02:21:56 +0000 |
commit | 07c2807484991b45fdd6cb87485d854567f2f87b (patch) | |
tree | bb523c478b3fa02cb0e32f2533896d662f7c5aef /package/inc/ZipFile.hxx | |
parent | 81c60a38c4187ad2fc4885eff6dcc28c382bc4f4 (diff) |
#80556# bug fixes
Diffstat (limited to 'package/inc/ZipFile.hxx')
-rw-r--r-- | package/inc/ZipFile.hxx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx index 0f11195fe6d0..9b5554038257 100644 --- a/package/inc/ZipFile.hxx +++ b/package/inc/ZipFile.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipFile.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mtg $ $Date: 2000-11-28 16:49:34 $ + * last change: $Author: mtg $ $Date: 2000-11-29 03:18:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -85,10 +85,20 @@ #include "ByteGrabber.hxx" #endif +#ifndef _MANIFEST_ENTRY_HXX_ +#include "ManifestEntry.hxx" +#endif + +#include <vector> + #ifndef _VOS_DIAGNOSE_H_ #include <vos/diagnose.hxx> #endif +#ifndef _COM_SUN_STAR_PACKAGE_ZIPCONSTANTS_HPP_ +#include <com/sun/star/package/ZipConstants.hpp> +#endif + /* * We impose arbitrary but reasonable limit on ZIP files. */ @@ -102,14 +112,12 @@ class ZipFile : public cppu::WeakImplHelper1< private: ::rtl::OUString sName; /* zip file name */ ::rtl::OUString sComment; /* zip file comment */ - sal_uInt16 nTotal; /* total number of entries */ - com::sun::star::package::ZipEntry *pEntries; /* array of zip entries */ - ZipEntryImpl **pTable; /* Hash chain heads: indexes into entries */ - sal_Int32 nTableLen; /* number of hash eads */ + EntryHash aEntries; ByteGrabber aGrabber; com::sun::star::uno::Reference < com::sun::star::io::XInputStream > xStream; public: ZipFile( com::sun::star::uno::Reference < com::sun::star::io::XInputStream > &xInput); + void updateFromManList(std::vector < ManifestEntry * > &rManList); virtual ~ZipFile(); // XElementAccess |