LibreOffice
LibreOffice 7.3 SDK API Reference
ZipConstants.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef __com_sun_star_packages_zip_ZipConstants_idl__
20 #define __com_sun_star_packages_zip_ZipConstants_idl__
21 
22 
23 
24 
25 module com { module sun { module star { module packages { module zip {
26 
27 
30 published constants ZipConstants
31 {
35  const short DEFLATED = 8;
36 
39  const short NO_COMPRESSION = 0;
40 
43  const short BEST_SPEED = 1;
44 
47  const short BEST_COMPRESSION = 9;
48 
51  const short DEFAULT_COMPRESSION = -1;
52 
57  const short FILTERED = 1;
58 
61  const short HUFFMAN_ONLY = 2;
62 
65  const short DEFAULT_STRATEGY = 0;
66 
69  const short STORED = 0;
70 
73  const short DEF_MEM_LEVEL = 8;
74 
77  const long LOCSIG = 0x04034b50;
78 
81  const long EXTSIG = 0x08074b50;
82 
85  const long CENSIG = 0x02014b50;
86 
89  const long ENDSIG = 0x06054b50;
90 
93  const long SPANSIG = 0x08074b50;
94 
97  const short LOCHDR = 30;
98 
101  const short EXTHDR = 16;
102 
105  const short CENHDR = 46;
106 
109  const short ENDHDR = 22;
110 
112 
114  const short LOCVER = 4;
115 
118  const short LOCFLG = 6;
119 
122  const short LOCHOW = 8;
123 
126  const short LOCTIM = 10;
127 
130  const short LOCCRC = 14;
131 
134  const short LOCSIZ = 18;
135 
138  const short LOCLEN = 22;
139 
142  const short LOCNAM = 26;
143 
146  const short LOCEXT = 28;
147 
150  const short EXTCRC = 4;
151 
154  const short EXTSIZ = 8;
155 
158  const short EXTLEN = 12;
159 
162  const short CENVEM = 4;
163 
166  const short CENVER = 6;
167 
170  const short CENFLG = 8;
171 
174  const short CENHOW = 10;
175 
178  const short CENTIM = 12;
179 
182  const short CENDAT = 14;
183 
186  const short CENCRC = 16;
187 
190  const short CENSIZ = 20;
191 
194  const short CENLEN = 24;
195 
198  const short CENNAM = 28;
199 
202  const short CENEXT = 30;
203 
206  const short CENCOM = 32;
207 
210  const short CENDSK = 34;
211 
214  const short CENATT = 36;
215 
218  const short CENATX = 38;
219 
222  const short CENOFF = 42;
223 
226  const short ENDSUB = 8;
227 
230  const short ENDTOT = 10;
231 
234  const short ENDSIZ = 12;
235 
238  const short ENDOFF = 16;
239 
242  const short ENDCOM = 20;
243 
244 };
245 
246 }; }; }; }; };
247 
248 #endif
249 
250 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const short LOCCRC
LOC header field "CRC of uncompressed data" offset.
Definition: ZipConstants.idl:130
const long SPANSIG
Header Signature: "PK\007\008".
Definition: ZipConstants.idl:93
const short EXTLEN
EXT header field "uncompressed size" offsets.
Definition: ZipConstants.idl:158
const short CENDAT
CEN header field "modification time" offset.
Definition: ZipConstants.idl:182
const short CENVEM
CEN header field "version made by" offset.
Definition: ZipConstants.idl:162
const short LOCNAM
LOC header field "filename length" offset.
Definition: ZipConstants.idl:142
const short ENDSIZ
END header field "central directory size" offset.
Definition: ZipConstants.idl:234
const short CENFLG
CEN header field "general purpose bit flags" offset.
Definition: ZipConstants.idl:170
const short ENDOFF
END header field "central directory offset" offset.
Definition: ZipConstants.idl:238
const short CENDSK
CEN header field "disk number start" offset.
Definition: ZipConstants.idl:210
const short CENHOW
CEN header field "compression method" offset.
Definition: ZipConstants.idl:174
const short CENTIM
CEN header field "modification time" offset.
Definition: ZipConstants.idl:178
const short CENSIZ
CEN header field "compressed size" offset.
Definition: ZipConstants.idl:190
const short DEFLATED
Compression method for the deflate algorithm (the only one currently supported).
Definition: ZipConstants.idl:35
const short CENEXT
CEN header field "length of extra field" offset.
Definition: ZipConstants.idl:202
const short EXTHDR
EXT header size in bytes (including signatures)
Definition: ZipConstants.idl:101
const short LOCEXT
LOC header field "extra field length" offset.
Definition: ZipConstants.idl:146
const short ENDSUB
END header field "number of entries on this disk" offset.
Definition: ZipConstants.idl:226
const short DEF_MEM_LEVEL
entry is uncompressed
Definition: ZipConstants.idl:73
const short ENDHDR
END header size in bytes (including signatures)
Definition: ZipConstants.idl:109
const short CENNAM
CEN header field "length of filename" offset.
Definition: ZipConstants.idl:198
const short CENCRC
CEN header field "CRC of uncompressed data" offset.
Definition: ZipConstants.idl:186
const short CENLEN
CEN header field "uncompressed size" offset.
Definition: ZipConstants.idl:194
const short NO_COMPRESSION
Compression level for no compression.
Definition: ZipConstants.idl:39
const short BEST_COMPRESSION
Compression level for best compression.
Definition: ZipConstants.idl:47
const long ENDSIG
Header Signature: "PK\005\006".
Definition: ZipConstants.idl:89
const short STORED
entry is uncompressed
Definition: ZipConstants.idl:69
const long LOCSIG
Header Signature: "PK\003\004".
Definition: ZipConstants.idl:77
const long CENSIG
Header Signature: "PK\001\002".
Definition: ZipConstants.idl:85
const short HUFFMAN_ONLY
Compression strategy for Huffman coding only.
Definition: ZipConstants.idl:61
const short ENDCOM
END header field "size of zip file comment" offset.
Definition: ZipConstants.idl:242
const short LOCSIZ
LOC header field "compressed data size" offset.
Definition: ZipConstants.idl:134
const short FILTERED
Compression strategy best used for data consisting mostly of small values with a somewhat random dist...
Definition: ZipConstants.idl:57
const short DEFAULT_COMPRESSION
Default compression level.
Definition: ZipConstants.idl:51
const short LOCLEN
LOC header field "uncompressed data size" offset.
Definition: ZipConstants.idl:138
const short LOCHDR
LOC header size in bytes (including signatures)
Definition: ZipConstants.idl:97
const short EXTSIZ
EXT header field "compressed size" offsets.
Definition: ZipConstants.idl:154
const short CENATT
CEN header field "internal file attributes" offset.
Definition: ZipConstants.idl:214
const short ENDTOT
END header field "total number of entries" offset.
Definition: ZipConstants.idl:230
const short CENOFF
CEN header field "offset of local header" offset.
Definition: ZipConstants.idl:222
const short LOCHOW
LOC header field "compression method" offset.
Definition: ZipConstants.idl:122
const short CENVER
CEN header field "version needed to extract" offset.
Definition: ZipConstants.idl:166
const short LOCVER
LOC LOC LOC.
Definition: ZipConstants.idl:114
const short DEFAULT_STRATEGY
Default compression strategy.
Definition: ZipConstants.idl:65
const short BEST_SPEED
Compression level for fastest compression.
Definition: ZipConstants.idl:43
const long EXTSIG
Header Signature: "PK\007\008".
Definition: ZipConstants.idl:81
const short LOCTIM
LOC header field "modification time" offset.
Definition: ZipConstants.idl:126
const short CENCOM
CEN header field "file comment length" offset.
Definition: ZipConstants.idl:206
const short EXTCRC
EXT header field "CRC of uncompressed data" offsets.
Definition: ZipConstants.idl:150
const short CENHDR
CEN header size in bytes (including signatures)
Definition: ZipConstants.idl:105
const short LOCFLG
LOC header field "general purpose bit flags" offset.
Definition: ZipConstants.idl:118
const short CENATX
CEN header field "external file attributes" offset.
Definition: ZipConstants.idl:218
Definition: Ambiguous.idl:22