Main Page
Namespaces
Classes
Files
File List
File Members
WPGHeader.h
Go to the documentation of this file.
1
/* libwpg
2
* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
3
* Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02111-1301 USA
19
*
20
* For further information visit http://libwpg.sourceforge.net
21
*/
22
23
/* "This product is not manufactured, approved, or supported by
24
* Corel Corporation or Corel Corporation Limited."
25
*/
26
27
#ifndef __WPGHEADER_H__
28
#define __WPGHEADER_H__
29
30
#include <libwpd-stream/WPXStream.h>
31
32
class
WPGHeader
33
{
34
public
:
35
WPGHeader
();
36
37
bool
load
(WPXInputStream *input);
38
39
bool
isSupported
()
const
;
40
41
unsigned
long
startOfDocument
()
const
;
42
43
int
majorVersion
()
const
;
44
45
private
:
46
unsigned
char
m_identifier
[4];
// should always be 0xFF followed by "WPC"
47
unsigned
long
m_startOfDocument
;
// index into file
48
unsigned
char
m_productType
;
// should always be 1 for WPG files
49
unsigned
char
m_fileType
;
// should always be 22 for WPG files
50
unsigned
char
m_majorVersion
;
// 2 for WPG 8.0 files
51
unsigned
char
m_minorVersion
;
// 0 for WPG 8.0 files
52
unsigned
int
m_encryptionKey
;
// 0 when not encrypted
53
unsigned
int
m_startOfPacketData
;
// unused, since according to the docs no packets are defined
54
unsigned
char
m_entryCount
;
// number of entries in extension
55
unsigned
char
m_resourceComplete
;
// resource completeness indicator
56
unsigned
int
m_encryptionBlockOffset
;
// encryption block offset
57
unsigned
long
m_fileSize
;
// size of the entire wpg file
58
unsigned
int
m_encryptVersion
;
// encryption version information
59
};
60
61
#endif // WPGHEADER
Generated for libwpg by
doxygen
1.8.3.1