diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:57:40 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:57:40 +0100 |
commit | 2716f7dce26f16a2b677c178aa7d01cea096ae47 (patch) | |
tree | 9e9f67205cd5b72f1031721273e1534a3a1e5b0f /offapi/com/sun/star/packages/zip/ZipConstants.idl | |
parent | 10ac9e750447fd57e3cef7993b0ad6c6538d6269 (diff) |
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'offapi/com/sun/star/packages/zip/ZipConstants.idl')
-rw-r--r-- | offapi/com/sun/star/packages/zip/ZipConstants.idl | 311 |
1 files changed, 0 insertions, 311 deletions
diff --git a/offapi/com/sun/star/packages/zip/ZipConstants.idl b/offapi/com/sun/star/packages/zip/ZipConstants.idl deleted file mode 100644 index aa904c66d..000000000 --- a/offapi/com/sun/star/packages/zip/ZipConstants.idl +++ /dev/null @@ -1,311 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef __com_sun_star_package_zip_ZipConstants_idl__ -#define __com_sun_star_package_zip_ZipConstants_idl__ - - - -//============================================================================= - -module com { module sun { module star { module packages { module zip { - -//============================================================================= - -/** defines the constants used by the ZIP interfaces. - */ -published constants ZipConstants -{ - //------------------------------------------------------------------------- - /** Compression method for the deflate algorithm (the only one currently - supported). - */ - const short DEFLATED = 8; - - //------------------------------------------------------------------------- - /** Compression level for no compression. - */ - const short NO_COMPRESSION = 0; - - //------------------------------------------------------------------------- - /** Compression level for fastest compression - */ - const short BEST_SPEED = 1; - - //------------------------------------------------------------------------- - /** Compression level for best compression - */ - const short BEST_COMPRESSION = 9; - - //------------------------------------------------------------------------- - /** Default compression level. - */ - const short DEFAULT_COMPRESSION = -1; - - //------------------------------------------------------------------------- - /** Compression strategy best used for data consisting mostly of small - values with a somewhat random distribution. Forces more Huffman - coding and less string matching. - */ - const short FILTERED = 1; - - //------------------------------------------------------------------------- - /** Compression strategy for Huffman coding only. - */ - const short HUFFMAN_ONLY = 2; - - //------------------------------------------------------------------------- - /** Default compression strategy - */ - const short DEFAULT_STRATEGY = 0; - - //------------------------------------------------------------------------- - /** entry is uncompressed - */ - const short STORED = 0; - - //------------------------------------------------------------------------- - /** entry is uncompressed - */ - const short DEF_MEM_LEVEL = 8; - - //------------------------------------------------------------------------- - /** Header Signature: "PK\003\004" - */ - const long LOCSIG = 0x04034b50; - - //------------------------------------------------------------------------- - /** Header Signature: "PK\007\008" - */ - const long EXTSIG = 0x08074b50; - - //------------------------------------------------------------------------- - /** Header Signature: "PK\001\002" - */ - const long CENSIG = 0x02014b50; - - //------------------------------------------------------------------------- - /** Header Signature: "PK\005\006" - */ - const long ENDSIG = 0x06054b50; - - //------------------------------------------------------------------------- - /** Header Signature: "PK\007\008" - */ - const long SPANSIG = 0x08074b50; - - //------------------------------------------------------------------------- - /** LOC header size in bytes (including signatures) - */ - const short LOCHDR = 30; - - //------------------------------------------------------------------------- - /** EXT header size in bytes (including signatures) - */ - const short EXTHDR = 16; - - //------------------------------------------------------------------------- - /** CEN header size in bytes (including signatures) - */ - const short CENHDR = 46; - - //------------------------------------------------------------------------- - /** END header size in bytes (including signatures) - */ - const short ENDHDR = 22; - - //------------------------------------------------------------------------- - /// LOC LOC LOC - /** LOC header field "version needed to extract" offset - */ - const short LOCVER = 4; - - //------------------------------------------------------------------------- - /** LOC header field "general purpose bit flags" offset - */ - const short LOCFLG = 6; - - //------------------------------------------------------------------------- - /** LOC header field "compression method" offset - */ - const short LOCHOW = 8; - - //------------------------------------------------------------------------- - /** LOC header field "modification time" offset - */ - const short LOCTIM = 10; - - //------------------------------------------------------------------------- - /** LOC header field "CRC of uncompressed data" offset - */ - const short LOCCRC = 14; - - //------------------------------------------------------------------------- - /** LOC header field "compressed data size" offset - */ - const short LOCSIZ = 18; - - //------------------------------------------------------------------------- - /** LOC header field "uncompressed data size" offset - */ - const short LOCLEN = 22; - - //------------------------------------------------------------------------- - /** LOC header field "filename length" offset - */ - const short LOCNAM = 26; - - //------------------------------------------------------------------------- - /** LOC header field "extra field length" offset - */ - const short LOCEXT = 28; - - //------------------------------------------------------------------------- - /** EXT header field "CRC of uncompressed data" offsets - */ - const short EXTCRC = 4; - - //------------------------------------------------------------------------- - /** EXT header field "compressed size" offsets - */ - const short EXTSIZ = 8; - - //------------------------------------------------------------------------- - /** EXT header field "uncompressed size" offsets - */ - const short EXTLEN = 12; - - //------------------------------------------------------------------------- - /** CEN header field "version made by" offset - */ - const short CENVEM = 4; - - //------------------------------------------------------------------------- - /** CEN header field "version needed to extract" offset - */ - const short CENVER = 6; - - //------------------------------------------------------------------------- - /** CEN header field "general purpose bit flags" offset - */ - const short CENFLG = 8; - - //------------------------------------------------------------------------- - /** CEN header field "compression method" offset - */ - const short CENHOW = 10; - - //------------------------------------------------------------------------- - /** CEN header field "modification time" offset - */ - const short CENTIM = 12; - - //------------------------------------------------------------------------- - /** CEN header field "modification time" offset - */ - const short CENDAT = 14; - - //------------------------------------------------------------------------- - /** CEN header field "CRC of uncompressed data" offset - */ - const short CENCRC = 16; - - //------------------------------------------------------------------------- - /** CEN header field "compressed size" offset - */ - const short CENSIZ = 20; - - //------------------------------------------------------------------------- - /** CEN header field "uncompressed size" offset - */ - const short CENLEN = 24; - - //------------------------------------------------------------------------- - /** CEN header field "length of filename" offset - */ - const short CENNAM = 28; - - //------------------------------------------------------------------------- - /** CEN header field "length of extra field" offset - */ - const short CENEXT = 30; - - //------------------------------------------------------------------------- - /** CEN header field "file comment length" offset - */ - const short CENCOM = 32; - - //------------------------------------------------------------------------- - /** CEN header field "disk number start" offset - */ - const short CENDSK = 34; - - //------------------------------------------------------------------------- - /** CEN header field "internal file attributes" offset - */ - const short CENATT = 36; - - //------------------------------------------------------------------------- - /** CEN header field "external file attributes" offset - */ - const short CENATX = 38; - - //------------------------------------------------------------------------- - /** CEN header field "offset of local header" offset - */ - const short CENOFF = 42; - - //------------------------------------------------------------------------- - /** END header field "number of entries on this disk" offset - */ - const short ENDSUB = 8; - - //------------------------------------------------------------------------- - /** END header field "total number of entries" offset - */ - const short ENDTOT = 10; - - //------------------------------------------------------------------------- - /** END header field "central directory size" offset - */ - const short ENDSIZ = 12; - - //------------------------------------------------------------------------- - /** END header field "central directory offset" offset - */ - const short ENDOFF = 16; - - //------------------------------------------------------------------------- - /** END header field "size of zip file comment" offset - */ - const short ENDCOM = 20; - -}; -//============================================================================= - -}; }; }; }; }; - -#endif |