bump product version to 4.1.6.2
[LibreOffice.git] / filter / source / placeware / zipfile.hxx
blob72478d7a9dc9375bb4528828f17b5daf61159198
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 /* Local file head offsets. The header is followed by the filename and
21 possibly the extra field. */
22 #define zf_lfhSig 0
23 #define zf_lfhExVers 4
24 #define zf_lfhFlags 6
25 #define zf_lfhComp 8
26 #define zf_lfhModTime 10
27 #define zf_lfhModDate 12
28 #define zf_lfhCRC 14
29 #define zf_lfhCompSize 18
30 #define zf_lfhUncompSize 22
31 #define zf_lfhNameLen 26
32 #define zf_lfhExtraLen 28
33 #define zf_lfhSIZE 30 /* total size of header */
35 /* We don't write data descriptors. */
37 /* Central dir file header offsets. Each entry is followed by the filename,
38 optional extra field, and file comment. */
39 #define zf_cdhSig 0
40 #define zf_cdhVers 4
41 #define zf_cdhExVers 6
42 #define zf_cdhFlags 8
43 #define zf_cdhComp 10
44 #define zf_cdhTime 12
45 #define zf_cdhDate 14
46 #define zf_cdhCRC 16
47 #define zf_cdhCompSize 20
48 #define zf_cdhUncompSize 24
49 #define zf_cdhNameLen 28
50 #define zf_cdhExtraLen 30
51 #define zf_cdhCommentLen 32
52 #define zf_cdhDiskNum 34
53 #define zf_cdhIFAttrs 36
54 #define zf_cdhEFAttrs 38
55 #define zf_cdhLHOffset 42
56 #define zf_cdhSIZE 46 /* total size of header */
58 /* End of central dir record offsets. It is followed by the zipfile
59 comment. */
60 #define zf_ecdSig 0
61 #define zf_ecdDiskNum 4
62 #define zf_ecdDirDiskNum 6
63 #define zf_ecdNumEntries 8
64 #define zf_ecdTotalEntries 10
65 #define zf_ecdDirSize 12
66 #define zf_ecdDirOffset 16
67 #define zf_ecdCommentLen 20
68 #define zf_ecdSIZE 22 /* total size */
70 /* Magic constants to put in these structures. */
71 #define zf_LFHSIGValue 0x04034b50
72 #define zf_CDHSIGValue 0x02014b50
73 #define zf_ECDSIGValue 0x06054b50
75 /* OS values for upper byte of version field. */
76 #define zf_osUnix 3
78 /* Encode a major,minor version in a byte. */
79 #define zf_Vers(major,minor) ((major) * 10 + (minor))
81 /* Compression values. */
82 #define zf_compNone 0
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */