<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>libwpg: WPG1Parser.h Source File documentation</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>WPG1Parser.h</h1><a href="WPG1Parser_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* libwpg</span> <a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)</span> <a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)</span> <a name="l00005"></a>00005 <span class="comment"> *</span> <a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> <a name="l00008"></a>00008 <span class="comment"> * License as published by the Free Software Foundation; either</span> <a name="l00009"></a>00009 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span> <a name="l00010"></a>00010 <span class="comment"> *</span> <a name="l00011"></a>00011 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00012"></a>00012 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00013"></a>00013 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00014"></a>00014 <span class="comment"> * Library General Public License for more details.</span> <a name="l00015"></a>00015 <span class="comment"> *</span> <a name="l00016"></a>00016 <span class="comment"> * You should have received a copy of the GNU Library General Public</span> <a name="l00017"></a>00017 <span class="comment"> * License along with this library; if not, write to the </span> <a name="l00018"></a>00018 <span class="comment"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, </span> <a name="l00019"></a>00019 <span class="comment"> * Boston, MA 02111-1301 USA</span> <a name="l00020"></a>00020 <span class="comment"> *</span> <a name="l00021"></a>00021 <span class="comment"> * For further information visit http://libwpg.sourceforge.net</span> <a name="l00022"></a>00022 <span class="comment"> */</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="comment">/* "This product is not manufactured, approved, or supported by</span> <a name="l00025"></a>00025 <span class="comment"> * Corel Corporation or Corel Corporation Limited."</span> <a name="l00026"></a>00026 <span class="comment"> */</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#ifndef __WPG1PARSER_H__</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __WPG1PARSER_H__</span> <a name="l00030"></a>00030 <span class="preprocessor"></span> <a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="WPGXParser_8h.html">WPGXParser.h</a>"</span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="WPGBrush_8h.html">WPGBrush.h</a>"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="WPGPen_8h.html">WPGPen.h</a>"</span> <a name="l00034"></a>00034 <span class="preprocessor">#include <vector></span> <a name="l00035"></a>00035 <a name="l00036"></a><a class="code" href="classWPG1Parser.html">00036</a> <span class="keyword">class </span><a class="code" href="classWPG1Parser.html">WPG1Parser</a> : <span class="keyword">public</span> <a class="code" href="classWPGXParser.html">WPGXParser</a> <a name="l00037"></a>00037 { <a name="l00038"></a>00038 <span class="keyword">public</span>: <a name="l00039"></a>00039 <a class="code" href="classWPG1Parser.html#cc824acd077349895bed92707e70525e">WPG1Parser</a>(WPXInputStream *input, <a class="code" href="classlibwpg_1_1WPGPaintInterface.html">libwpg::WPGPaintInterface</a>* painter); <a name="l00040"></a>00040 <span class="keywordtype">bool</span> <a class="code" href="classWPG1Parser.html#aff9f4e4048d8f28c38c76c76ae73c5d">parse</a>(); <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="keyword">private</span>: <a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#0848c8cd7198838badd1be3fb192998d">handleStartWPG</a>(); <a name="l00044"></a>00044 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#405d099ca9eae703bd878783c2684a00">handleEndWPG</a>(); <a name="l00045"></a>00045 <a name="l00046"></a>00046 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#a40887214b6c7d2f72a08c9dee536390">handleFillAttributes</a>(); <a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#dec0df1237ce2b9244dea09af88f6aac">handleLineAttributes</a>(); <a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#e557c7a2a35316ca53491400187f09a4">handleColormap</a>(); <a name="l00049"></a>00049 <a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#2f111f828f2869071e284d403f5c7c5b">handleLine</a>(); <a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#bc3c11d303f0bf5acfd9bd401c5b5355">handlePolyline</a>(); <a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#49cc5b1e69df0ac7325bbb68b92d97a3">handleRectangle</a>(); <a name="l00053"></a>00053 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#b0c5b65d08fa63096a2b23ffafeee260">handlePolygon</a>(); <a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#2d562fb19a200e4adadf8908fe708418">handleEllipse</a>(); <a name="l00055"></a>00055 <a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#5e43fbcd1685861f44eaa40ea79522ad">handleCurvedPolyline</a>(); <a name="l00057"></a>00057 <a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#ffdd671b7975ed3a4d58ac370d825d54">decodeRLE</a>(std::vector<unsigned char>& buffer, <span class="keywordtype">unsigned</span> width, <span class="keywordtype">unsigned</span> height, <span class="keywordtype">unsigned</span> depth); <a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#6284dc4ff0002cb166deacfd4d2b66ab">fillPixels</a>(<a class="code" href="classlibwpg_1_1WPGBitmap.html">libwpg::WPGBitmap</a>& bitmap, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* buffer, <span class="keywordtype">unsigned</span> width, <span class="keywordtype">unsigned</span> height, <span class="keywordtype">unsigned</span> depth); <a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#cf166b2f003fc9bd42aeec1e30d852d7">handleBitmapTypeOne</a>(); <a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#bdabe2e6f56589664faeb4ac49cc5b17">handleBitmapTypeTwo</a>(); <a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#36b8f7f797e72ed881188645ce66a360">handlePostscriptTypeOne</a>(); <a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#8cfd3a2c6c7f937c1701234719123737">handlePostscriptTypeTwo</a>(); <a name="l00064"></a>00064 <a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="classWPG1Parser.html#423456c647b9970f4fdad8957b0e266e">resetPalette</a>(); <a name="l00066"></a>00066 <a name="l00067"></a>00067 <span class="comment">// parsing context</span> <a name="l00068"></a><a class="code" href="classWPG1Parser.html#f1f23d2ffbb9611fce1e88d2b3bb7309">00068</a> <span class="keywordtype">int</span> <a class="code" href="classWPG1Parser.html#f1f23d2ffbb9611fce1e88d2b3bb7309">m_recordLength</a>; <a name="l00069"></a><a class="code" href="classWPG1Parser.html#c6c360d71fc2265504024de434ed29de">00069</a> <span class="keywordtype">long</span> <a class="code" href="classWPG1Parser.html#c6c360d71fc2265504024de434ed29de">m_recordEnd</a>; <a name="l00070"></a><a class="code" href="classWPG1Parser.html#70c85b2a0e3509dab47f0683741b7169">00070</a> <span class="keywordtype">bool</span> <a class="code" href="classWPG1Parser.html#70c85b2a0e3509dab47f0683741b7169">m_success</a>; <a name="l00071"></a><a class="code" href="classWPG1Parser.html#9d30c073f3d3838b6036d51541f42716">00071</a> <span class="keywordtype">bool</span> <a class="code" href="classWPG1Parser.html#9d30c073f3d3838b6036d51541f42716">m_exit</a>; <a name="l00072"></a><a class="code" href="classWPG1Parser.html#f40c28c4bbe3b1770735908b6d36d32e">00072</a> <span class="keywordtype">bool</span> <a class="code" href="classWPG1Parser.html#f40c28c4bbe3b1770735908b6d36d32e">m_graphicsStarted</a>; <a name="l00073"></a><a class="code" href="classWPG1Parser.html#4b0d47089d17465958f5d76df8f05467">00073</a> <span class="keywordtype">int</span> <a class="code" href="classWPG1Parser.html#4b0d47089d17465958f5d76df8f05467">m_width</a>; <a name="l00074"></a><a class="code" href="classWPG1Parser.html#ffe162c0947147d4e082e1cfa3998e81">00074</a> <span class="keywordtype">int</span> <a class="code" href="classWPG1Parser.html#ffe162c0947147d4e082e1cfa3998e81">m_height</a>; <a name="l00075"></a><a class="code" href="classWPG1Parser.html#88145bd3e2652616d950bbe9a543c8aa">00075</a> <a class="code" href="classlibwpg_1_1WPGPen.html">libwpg::WPGPen</a> <a class="code" href="classWPG1Parser.html#88145bd3e2652616d950bbe9a543c8aa">m_pen</a>; <a name="l00076"></a><a class="code" href="classWPG1Parser.html#56b016bb837c4ded6867ee45893536db">00076</a> <a class="code" href="classlibwpg_1_1WPGBrush.html">libwpg::WPGBrush</a> <a class="code" href="classWPG1Parser.html#56b016bb837c4ded6867ee45893536db">m_brush</a>; <a name="l00077"></a>00077 }; <a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="preprocessor">#endif // __WPG1PARSER_H__</span> </pre></div></div> <hr size="1"><address style="align: right;"><small> Generated for libwpg by <a href="http://www.doxygen.org/index.html"> doxygen</a> 1.5.9</small></address> </body> </html>