summaryrefslogtreecommitdiff
path: root/package/inc/ZipOutputStream.hxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-09-14 13:47:23 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-09-14 13:47:23 +0000
commit447eceb846ee9edc2db0c82207f9e7c50e72b494 (patch)
tree4401230c05697c201871bf10371945f0f4deb843 /package/inc/ZipOutputStream.hxx
parent4e98063880de6511a6134462228c498f9bc2e7a1 (diff)
#89303# Use local ZipEntry struct
Diffstat (limited to 'package/inc/ZipOutputStream.hxx')
-rw-r--r--package/inc/ZipOutputStream.hxx20
1 files changed, 9 insertions, 11 deletions
diff --git a/package/inc/ZipOutputStream.hxx b/package/inc/ZipOutputStream.hxx
index 148f4c184c49..08ad2cb32516 100644
--- a/package/inc/ZipOutputStream.hxx
+++ b/package/inc/ZipOutputStream.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipOutputStream.hxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: mtg $ $Date: 2001-09-06 12:10:27 $
+ * last change: $Author: mtg $ $Date: 2001-09-14 14:47:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,9 +76,6 @@
#ifndef _RTL_CIPHER_H_
#include <rtl/cipher.h>
#endif
-#ifndef _COM_SUN_STAR_PACKAGES_ZIP_ZIPENTRY_HPP_
-#include <com/sun/star/packages/zip/ZipEntry.hpp>
-#endif
#ifndef _VOS_REF_H_
#include <vos/ref.hxx>
#endif
@@ -86,13 +83,14 @@
#include <rtl/digest.h>
#endif
+struct ZipEntry;
class EncryptionData;
class ZipOutputStream
{
protected:
com::sun::star::uno::Reference < com::sun::star::io::XOutputStream > xStream;
- ::std::vector < ::com::sun::star::packages::zip::ZipEntry *> aZipList;
+ ::std::vector < ZipEntry *> aZipList;
com::sun::star::uno::Sequence < sal_Int8 > aBuffer;
com::sun::star::uno::Sequence < sal_Int8 > aEncryptionBuffer;
::rtl::OUString sComment;
@@ -101,7 +99,7 @@ protected:
rtlDigest aDigest;
CRC32 aCRC;
ByteChucker aChucker;
- com::sun::star::packages::zip::ZipEntry *pCurrentEntry;
+ ZipEntry *pCurrentEntry;
sal_Int16 nMethod, nLevel;
sal_Bool bFinished, bEncryptCurrentEntry, bSpanning;
sal_Int16 nCurrentDiskNumber;
@@ -125,7 +123,7 @@ public:
throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL setLevel( sal_Int32 nNewLevel )
throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL putNextEntry( ::com::sun::star::packages::zip::ZipEntry& rEntry,
+ void SAL_CALL putNextEntry( ZipEntry& rEntry,
vos::ORef < EncryptionData > &rData,
sal_Bool bEncrypt = sal_False )
throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
@@ -142,11 +140,11 @@ protected:
void doDeflate();
void writeEND(sal_uInt32 nOffset, sal_uInt32 nLength)
throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- void writeCEN( const com::sun::star::packages::zip::ZipEntry &rEntry )
+ void writeCEN( const ZipEntry &rEntry )
throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- void writeEXT( const com::sun::star::packages::zip::ZipEntry &rEntry )
+ void writeEXT( const ZipEntry &rEntry )
throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- sal_Int32 writeLOC( const com::sun::star::packages::zip::ZipEntry &rEntry )
+ sal_Int32 writeLOC( const ZipEntry &rEntry )
throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
};