LibreOffice
LibreOffice 25.2 SDK API Reference
 
Loading...
Searching...
No Matches
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
20
21
22
23module com { module sun { module star { module packages { module zip {
24
25
28published constants ZipConstants
29{
33 const short DEFLATED = 8;
34
37 const short NO_COMPRESSION = 0;
38
41 const short BEST_SPEED = 1;
42
45 const short BEST_COMPRESSION = 9;
46
49 const short DEFAULT_COMPRESSION = -1;
50
55 const short FILTERED = 1;
56
59 const short HUFFMAN_ONLY = 2;
60
63 const short DEFAULT_STRATEGY = 0;
64
67 const short STORED = 0;
68
71 const short DEF_MEM_LEVEL = 8;
72
75 const long LOCSIG = 0x04034b50;
76
79 const long EXTSIG = 0x08074b50;
80
83 const long CENSIG = 0x02014b50;
84
87 const long ENDSIG = 0x06054b50;
88
91 const long SPANSIG = 0x08074b50;
92
95 const short LOCHDR = 30;
96
99 const short EXTHDR = 16;
100
103 const short CENHDR = 46;
104
107 const short ENDHDR = 22;
108
110
112 const short LOCVER = 4;
113
116 const short LOCFLG = 6;
117
120 const short LOCHOW = 8;
121
124 const short LOCTIM = 10;
125
128 const short LOCCRC = 14;
129
132 const short LOCSIZ = 18;
133
136 const short LOCLEN = 22;
137
140 const short LOCNAM = 26;
141
144 const short LOCEXT = 28;
145
148 const short EXTCRC = 4;
149
152 const short EXTSIZ = 8;
153
156 const short EXTLEN = 12;
157
160 const short CENVEM = 4;
161
164 const short CENVER = 6;
165
168 const short CENFLG = 8;
169
172 const short CENHOW = 10;
173
176 const short CENTIM = 12;
177
180 const short CENDAT = 14;
181
184 const short CENCRC = 16;
185
188 const short CENSIZ = 20;
189
192 const short CENLEN = 24;
193
196 const short CENNAM = 28;
197
200 const short CENEXT = 30;
201
204 const short CENCOM = 32;
205
208 const short CENDSK = 34;
209
212 const short CENATT = 36;
213
216 const short CENATX = 38;
217
220 const short CENOFF = 42;
221
224 const short ENDSUB = 8;
225
228 const short ENDTOT = 10;
229
232 const short ENDSIZ = 12;
233
236 const short ENDOFF = 16;
237
240 const short ENDCOM = 20;
241
242};
243
244}; }; }; }; };
245
246/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
defines the constants used by the ZIP interfaces.
Definition ZipConstants.idl:29
const short LOCCRC
LOC header field "CRC of uncompressed data" offset.
Definition ZipConstants.idl:128
const long SPANSIG
Header Signature: "PK\007\008".
Definition ZipConstants.idl:91
const short EXTLEN
EXT header field "uncompressed size" offsets.
Definition ZipConstants.idl:156
const short CENDAT
CEN header field "modification time" offset.
Definition ZipConstants.idl:180
const short CENVEM
CEN header field "version made by" offset.
Definition ZipConstants.idl:160
const short LOCNAM
LOC header field "filename length" offset.
Definition ZipConstants.idl:140
const short ENDSIZ
END header field "central directory size" offset.
Definition ZipConstants.idl:232
const short CENFLG
CEN header field "general purpose bit flags" offset.
Definition ZipConstants.idl:168
const short ENDOFF
END header field "central directory offset" offset.
Definition ZipConstants.idl:236
const short CENDSK
CEN header field "disk number start" offset.
Definition ZipConstants.idl:208
const short CENHOW
CEN header field "compression method" offset.
Definition ZipConstants.idl:172
const short CENTIM
CEN header field "modification time" offset.
Definition ZipConstants.idl:176
const short CENSIZ
CEN header field "compressed size" offset.
Definition ZipConstants.idl:188
const short DEFLATED
Compression method for the deflate algorithm (the only one currently supported).
Definition ZipConstants.idl:33
const short CENEXT
CEN header field "length of extra field" offset.
Definition ZipConstants.idl:200
const short EXTHDR
EXT header size in bytes (including signatures)
Definition ZipConstants.idl:99
const short LOCEXT
LOC header field "extra field length" offset.
Definition ZipConstants.idl:144
const short ENDSUB
END header field "number of entries on this disk" offset.
Definition ZipConstants.idl:224
const short DEF_MEM_LEVEL
entry is uncompressed
Definition ZipConstants.idl:71
const short ENDHDR
END header size in bytes (including signatures)
Definition ZipConstants.idl:107
const short CENNAM
CEN header field "length of filename" offset.
Definition ZipConstants.idl:196
const short CENCRC
CEN header field "CRC of uncompressed data" offset.
Definition ZipConstants.idl:184
const short CENLEN
CEN header field "uncompressed size" offset.
Definition ZipConstants.idl:192
const short NO_COMPRESSION
Compression level for no compression.
Definition ZipConstants.idl:37
const short BEST_COMPRESSION
Compression level for best compression.
Definition ZipConstants.idl:45
const long ENDSIG
Header Signature: "PK\005\006".
Definition ZipConstants.idl:87
const short STORED
entry is uncompressed
Definition ZipConstants.idl:67
const long LOCSIG
Header Signature: "PK\003\004".
Definition ZipConstants.idl:75
const long CENSIG
Header Signature: "PK\001\002".
Definition ZipConstants.idl:83
const short HUFFMAN_ONLY
Compression strategy for Huffman coding only.
Definition ZipConstants.idl:59
const short ENDCOM
END header field "size of zip file comment" offset.
Definition ZipConstants.idl:240
const short LOCSIZ
LOC header field "compressed data size" offset.
Definition ZipConstants.idl:132
const short FILTERED
Compression strategy best used for data consisting mostly of small values with a somewhat random dist...
Definition ZipConstants.idl:55
const short DEFAULT_COMPRESSION
Default compression level.
Definition ZipConstants.idl:49
const short LOCLEN
LOC header field "uncompressed data size" offset.
Definition ZipConstants.idl:136
const short LOCHDR
LOC header size in bytes (including signatures)
Definition ZipConstants.idl:95
const short EXTSIZ
EXT header field "compressed size" offsets.
Definition ZipConstants.idl:152
const short CENATT
CEN header field "internal file attributes" offset.
Definition ZipConstants.idl:212
const short ENDTOT
END header field "total number of entries" offset.
Definition ZipConstants.idl:228
const short CENOFF
CEN header field "offset of local header" offset.
Definition ZipConstants.idl:220
const short LOCHOW
LOC header field "compression method" offset.
Definition ZipConstants.idl:120
const short CENVER
CEN header field "version needed to extract" offset.
Definition ZipConstants.idl:164
const short LOCVER
LOC LOC LOC.
Definition ZipConstants.idl:112
const short DEFAULT_STRATEGY
Default compression strategy.
Definition ZipConstants.idl:63
const short BEST_SPEED
Compression level for fastest compression.
Definition ZipConstants.idl:41
const long EXTSIG
Header Signature: "PK\007\008".
Definition ZipConstants.idl:79
const short LOCTIM
LOC header field "modification time" offset.
Definition ZipConstants.idl:124
const short CENCOM
CEN header field "file comment length" offset.
Definition ZipConstants.idl:204
const short EXTCRC
EXT header field "CRC of uncompressed data" offsets.
Definition ZipConstants.idl:148
const short CENHDR
CEN header size in bytes (including signatures)
Definition ZipConstants.idl:103
const short LOCFLG
LOC header field "general purpose bit flags" offset.
Definition ZipConstants.idl:116
const short CENATX
CEN header field "external file attributes" offset.
Definition ZipConstants.idl:216
Definition Ambiguous.idl:20