Scribus
Open source desktop publishing at your fingertips
WPGXParser.h
1 /* libwpg
2  * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
3  * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
4  * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02111-1301 USA
20  *
21  * For further information visit http://libwpg.sourceforge.net
22  */
23 
24 /* "This product is not manufactured, approved, or supported by
25  * Corel Corporation or Corel Corporation Limited."
26  */
27 
28 #ifndef __WPGXPARSER_H__
29 #define __WPGXPARSER_H__
30 
31 #include "WPGPaintInterface.h"
32 #include "WPXStream.h"
33 #include "WPGColor.h"
34 
35 #include <map>
36 
38 {
39 public:
41  WPGXParser(const WPGXParser& parser);
42  virtual ~WPGXParser() {};
43  virtual bool parse() = 0;
44 
45  unsigned char readU8();
46  unsigned short readU16();
47  unsigned int readU32();
48  signed char readS8();
49  short readS16();
50  int readS32();
51  unsigned int readVariableLengthInteger();
52  WPGXParser& operator=(const WPGXParser& parser);
53 
54 protected:
55  WPXInputStream* m_input;
56  libwpg::WPGPaintInterface* m_painter;
57  std::map<int,libwpg::WPGColor> m_colorPalette;
58 };
59 
60 #endif // __WPGXPARSER_H__
Definition: WPGXParser.h:37
Definition: WPXStream.h:36
Definition: WPGPaintInterface.h:41