Code

Cleaned up virtual destructor problem and compile warnings.
[inkscape.git] / src / extension / internal / libwpg / WPG1Parser.h
1 /* libwpg
2  * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
3  * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
4  * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
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  */
24 /* "This product is not manufactured, approved, or supported by
25  * Corel Corporation or Corel Corporation Limited."
26  */
28 #ifndef __WPG1PARSER_H__
29 #define __WPG1PARSER_H__
31 #include "WPGXParser.h"
32 #include "WPGBrush.h"
33 #include "WPGPen.h"
35 class WPG1Parser : public WPGXParser
36 {
37 public:
38         WPG1Parser(WPGInputStream *input, WPGPaintInterface* painter);
39         bool parse();
41 private:
42         void handleStartWPG();
43         void handleEndWPG();
45         void handleFillAttributes();
46         void handleLineAttributes();
47         void handleColormap();
49         void handleLine();
50         void handlePolyline();
51         void handleRectangle();
52         void handlePolygon();
53         void handleEllipse();
54         
55         void resetPalette();
57         // parsing context
58         bool m_success;
59         bool m_exit;
60         int m_width;
61         int m_height;
62         WPGPen m_pen;
63         WPGBrush m_brush;
64 };
66 #endif // __WPG1PARSER_H__