Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > d7f8b2641daf10b1ee69d4678c5134b2 > files > 180

libwps-docs-0.1.2-1mdv2008.1.i586.rpm

<!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>libwps: libwps_internal.h Source File documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
  </ul>
</div>
<h1>libwps_internal.h</h1><a href="libwps__internal_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* libwps</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2002 William Lachance (william.lachance@sympatico.ca)</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)</span>
<a name="l00004"></a>00004 <span class="comment"> *  </span>
<a name="l00005"></a>00005 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
<a name="l00007"></a>00007 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment"> * Library General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
<a name="l00016"></a>00016 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * For further information visit http://libwps.sourceforge.net</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef LIBWPS_INTERNAL_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define LIBWPS_INTERNAL_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#ifdef DEBUG</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#include &lt;bitset&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#endif</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="WPSStream_8h.html">WPSStream.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;libwpd/WPXString.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;libwpd/libwpd_types.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">/* Various functions/defines that need not/should not be exported externally */</span>
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="libwps__internal_8h.html#0d5a4d51d016bf62838e4de328e47d38">00034</a> <span class="preprocessor">#define DELETEP(m) if (m) { delete m; m = NULL; }</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span> 
<a name="l00036"></a>00036 <span class="preprocessor">#ifdef DEBUG</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define WPS_DEBUG_MSG(M) printf M</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00039"></a><a class="code" href="libwps__internal_8h.html#8e5ce2532bc0bb32de4834a90754d99c">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_DEBUG_MSG(M)</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a><a class="code" href="libwps__internal_8h.html#ab015e9b2ec940d7272bbde098b342bf">00042</a> <span class="preprocessor">#define WPS_LE_GET_GUINT16(p)                             \</span>
<a name="l00043"></a>00043 <span class="preprocessor">        (uint16_t)((((uint8_t const *)(p))[0] &lt;&lt; 0)  |    \</span>
<a name="l00044"></a>00044 <span class="preprocessor">                  (((uint8_t const *)(p))[1] &lt;&lt; 8))</span>
<a name="l00045"></a><a class="code" href="libwps__internal_8h.html#ba1a8bf66975ef7c1c87be057b06ba93">00045</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_LE_GET_GUINT32(p) \</span>
<a name="l00046"></a>00046 <span class="preprocessor">        (uint32_t)((((uint8_t const *)(p))[0] &lt;&lt; 0)  |    \</span>
<a name="l00047"></a>00047 <span class="preprocessor">                  (((uint8_t const *)(p))[1] &lt;&lt; 8)  |    \</span>
<a name="l00048"></a>00048 <span class="preprocessor">                  (((uint8_t const *)(p))[2] &lt;&lt; 16) |    \</span>
<a name="l00049"></a>00049 <span class="preprocessor">                  (((uint8_t const *)(p))[3] &lt;&lt; 24))</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="comment">// add more of these as needed for byteswapping</span>
<a name="l00052"></a>00052 <span class="comment">// (the 8-bit functions are just there to make things consistent)</span>
<a name="l00053"></a>00053 uint8_t <a class="code" href="libwps__internal_8cpp.html#301ef3356c1c63978b76fa22e6ef0f43">readU8</a>(<a class="code" href="classWPSInputStream.html">WPSInputStream</a> *input); 
<a name="l00054"></a>00054 uint16_t <a class="code" href="libwps__internal_8cpp.html#1140b77227af71775c793ae98d454995">readU16</a>(<a class="code" href="classWPSInputStream.html">WPSInputStream</a> *input, <span class="keywordtype">bool</span> bigendian=<span class="keyword">false</span>);
<a name="l00055"></a>00055 uint32_t <a class="code" href="libwps__internal_8cpp.html#568fe8f94a9e1c576f20d41b2a61ea8b">readU32</a>(<a class="code" href="classWPSInputStream.html">WPSInputStream</a> *input, <span class="keywordtype">bool</span> bigendian=<span class="keyword">false</span>);
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="comment">// Various helper structures for the parser..</span>
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 uint16_t <a class="code" href="libwps__internal_8h.html#31d5ad3b79e653e8fb531d1062bb2a2d">fixedPointToWPUs</a>(<span class="keyword">const</span> uint32_t fixedPointNumber);
<a name="l00060"></a>00060 
<a name="l00061"></a><a class="code" href="libwps__internal_8h.html#bce3907f86fbd80ae8fe8e96a06f3caf">00061</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#bce3907f86fbd80ae8fe8e96a06f3caf">WPSNumberingType</a> { <a class="code" href="libwps__internal_8h.html#bce3907f86fbd80ae8fe8e96a06f3caf6befa014a7781bf89ab35f8127ecd412">ARABIC</a>, <a class="code" href="libwps__internal_8h.html#bce3907f86fbd80ae8fe8e96a06f3caff8ee0dcc4d45543df8763035c19ef2fc">LOWERCASE</a>, <a class="code" href="libwps__internal_8h.html#bce3907f86fbd80ae8fe8e96a06f3caf19d6b87b851ddfd4fdc4f182e2ae0617">UPPERCASE</a>, <a class="code" href="libwps__internal_8h.html#bce3907f86fbd80ae8fe8e96a06f3cafb9f1ec2cd26ff13d7df1d5f0ea86c665">LOWERCASE_ROMAN</a>, <a class="code" href="libwps__internal_8h.html#bce3907f86fbd80ae8fe8e96a06f3caf38e73d612ce4614b447b7806ecba2f12">UPPERCASE_ROMAN</a> };
<a name="l00062"></a><a class="code" href="libwps__internal_8h.html#ba9b7c178d7ec16173e2574e82a934d2">00062</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#ba9b7c178d7ec16173e2574e82a934d2">WPSNoteType</a> { <a class="code" href="libwps__internal_8h.html#ba9b7c178d7ec16173e2574e82a934d208f70ecca40a025669e47b817ba6cdeb">FOOTNOTE</a>, <a class="code" href="libwps__internal_8h.html#ba9b7c178d7ec16173e2574e82a934d2fcbf2de55e105cb09b91a5a17dde721a">ENDNOTE</a> };
<a name="l00063"></a><a class="code" href="libwps__internal_8h.html#9508abe11d3e0d20cd4148703bc43c91">00063</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#9508abe11d3e0d20cd4148703bc43c91">WPSHeaderFooterType</a> { <a class="code" href="libwps__internal_8h.html#9508abe11d3e0d20cd4148703bc43c912e57918a09d25b07a664e505d50a97f6">HEADER</a>, <a class="code" href="libwps__internal_8h.html#9508abe11d3e0d20cd4148703bc43c91607a87c78d8942cf7459ba3377c1bd00">FOOTER</a> };
<a name="l00064"></a><a class="code" href="libwps__internal_8h.html#ad57bf45d9d4e05e5cebb2e5280cc8d2">00064</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#ad57bf45d9d4e05e5cebb2e5280cc8d2">WPSHeaderFooterInternalType</a> { <a class="code" href="libwps__internal_8h.html#ad57bf45d9d4e05e5cebb2e5280cc8d281de136f020cab2fa13e4b13d18afe66">HEADER_A</a>, <a class="code" href="libwps__internal_8h.html#ad57bf45d9d4e05e5cebb2e5280cc8d2499d5636d1746a3a33061dcda8f9fd3a">HEADER_B</a>, <a class="code" href="libwps__internal_8h.html#ad57bf45d9d4e05e5cebb2e5280cc8d273249da30d56f9bd29a76c1f3fb33a46">FOOTER_A</a>, <a class="code" href="libwps__internal_8h.html#ad57bf45d9d4e05e5cebb2e5280cc8d21371df05c41d6a3f224ac6c806ac7b0c">FOOTER_B</a>, <a class="code" href="libwps__internal_8h.html#ad57bf45d9d4e05e5cebb2e5280cc8d29209f5fbea2d3d4929a28252205e97a6">DUMMY</a> };
<a name="l00065"></a><a class="code" href="libwps__internal_8h.html#8c2cc76c772c4b66df0be8831ea6f073">00065</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#8c2cc76c772c4b66df0be8831ea6f073">WPSHeaderFooterOccurence</a> { <a class="code" href="libwps__internal_8h.html#8c2cc76c772c4b66df0be8831ea6f073a29cedab858353a26006af9db7cd1ed8">ODD</a>, <a class="code" href="libwps__internal_8h.html#8c2cc76c772c4b66df0be8831ea6f0738487756fbc720579906f0ae1738f0fcc">EVEN</a>, <a class="code" href="libwps__internal_8h.html#8c2cc76c772c4b66df0be8831ea6f073b1d5eac4b1dca480c8056eaea7663b7a">ALL</a>, <a class="code" href="libwps__internal_8h.html#8c2cc76c772c4b66df0be8831ea6f0733a267f9424d4d555780a8d26209c8118">NEVER</a> };
<a name="l00066"></a><a class="code" href="libwps__internal_8h.html#ea36e796486347834d2f56c4d8b29fca">00066</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#ea36e796486347834d2f56c4d8b29fca">WPSFormOrientation</a> { <a class="code" href="libwps__internal_8h.html#ea36e796486347834d2f56c4d8b29fcaf824fcbdaf7ede37030e39a2156f51e1">PORTRAIT</a>, <a class="code" href="libwps__internal_8h.html#ea36e796486347834d2f56c4d8b29fcaad82a3dd15e2be2845cecf9a97017a4a">LANDSCAPE</a> };
<a name="l00067"></a><a class="code" href="libwps__internal_8h.html#e1ccf769e01be50ca98059010eef4999">00067</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#e1ccf769e01be50ca98059010eef4999">WPSTabAlignment</a> { <a class="code" href="libwps__internal_8h.html#e1ccf769e01be50ca98059010eef4999db45120aafd37a973140edee24708065">LEFT</a>, <a class="code" href="libwps__internal_8h.html#e1ccf769e01be50ca98059010eef4999ec8379af7490bb9eaaf579cf17876f38">RIGHT</a>, <a class="code" href="libwps__internal_8h.html#e1ccf769e01be50ca98059010eef49992159ffbd3a68037511ab5ab4dd35ace7">CENTER</a>, <a class="code" href="libwps__internal_8h.html#e1ccf769e01be50ca98059010eef4999f08a543d5a1549321682e12569d0fbd6">DECIMAL</a>, <a class="code" href="libwps__internal_8h.html#e1ccf769e01be50ca98059010eef49999faad079af5016dadbb1741c852e5295">BAR</a> };
<a name="l00068"></a><a class="code" href="libwps__internal_8h.html#d7aec1a79d81363ea64622aa45400d72">00068</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#d7aec1a79d81363ea64622aa45400d72">WPSVerticalAlignment</a> { <a class="code" href="libwps__internal_8h.html#d7aec1a79d81363ea64622aa45400d720ad44897a70fba309c24a5b6007de3e3">TOP</a>, <a class="code" href="libwps__internal_8h.html#d7aec1a79d81363ea64622aa45400d721a2710fb8b50ea593b207d1e79fea574">MIDDLE</a>, <a class="code" href="libwps__internal_8h.html#d7aec1a79d81363ea64622aa45400d728c371f4e766fb2c49c219bbc88989461">BOTTOM</a>, <a class="code" href="libwps__internal_8h.html#d7aec1a79d81363ea64622aa45400d72d08f8ac0aa8dfb59589824359772459e">FULL</a> };
<a name="l00069"></a>00069 
<a name="l00070"></a><a class="code" href="libwps__internal_8h.html#7ab7180d068d011ec812bc7e52d5d69e">00070</a> <span class="keyword">enum</span> <a class="code" href="libwps__internal_8h.html#7ab7180d068d011ec812bc7e52d5d69e">WPSTextColumnType</a> { <a class="code" href="libwps__internal_8h.html#7ab7180d068d011ec812bc7e52d5d69e24ae01d1d8902a3a95d9dcfe9f1cf2c5">NEWSPAPER</a>, <a class="code" href="libwps__internal_8h.html#7ab7180d068d011ec812bc7e52d5d69e1f0fcb47161748e97d53928eec6047bb">NEWSPAPER_VERTICAL_BALANCE</a>, <a class="code" href="libwps__internal_8h.html#7ab7180d068d011ec812bc7e52d5d69e90606f8ca5d91452541a74f1caef1d11">PARALLEL</a>, <a class="code" href="libwps__internal_8h.html#7ab7180d068d011ec812bc7e52d5d69e5158356794ac48fc3cb73d86510cd30e">PARALLEL_PROTECT</a> };
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="comment">// ATTRIBUTE bits</span>
<a name="l00073"></a><a class="code" href="libwps__internal_8h.html#b3e7aaca0c86df9ade062ddda80c6d31">00073</a> <span class="preprocessor">#define WPS_EXTRA_LARGE_BIT 1</span>
<a name="l00074"></a><a class="code" href="libwps__internal_8h.html#d38d92e503e188ba35914c1a6934a315">00074</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_VERY_LARGE_BIT 2</span>
<a name="l00075"></a><a class="code" href="libwps__internal_8h.html#8dcac9e692df988cba93ca92f43efb2e">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_LARGE_BIT 4</span>
<a name="l00076"></a><a class="code" href="libwps__internal_8h.html#7ec327c5133a8c673f3e274122e725c0">00076</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_SMALL_PRINT_BIT 8</span>
<a name="l00077"></a><a class="code" href="libwps__internal_8h.html#baeb7113ae49a61a189150824218d58a">00077</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_FINE_PRINT_BIT 16</span>
<a name="l00078"></a><a class="code" href="libwps__internal_8h.html#7b3c1f6ff3dbf1903c4b9bd16d27c56c">00078</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_SUPERSCRIPT_BIT 32</span>
<a name="l00079"></a><a class="code" href="libwps__internal_8h.html#8f4b5b5971d395e220a1b4ba2a5ab625">00079</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_SUBSCRIPT_BIT 64</span>
<a name="l00080"></a><a class="code" href="libwps__internal_8h.html#ad97ccfbe81721b49387f509361434f3">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_OUTLINE_BIT 128</span>
<a name="l00081"></a><a class="code" href="libwps__internal_8h.html#3272aded9d5171f195eaeb8206ff7b28">00081</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_ITALICS_BIT 256</span>
<a name="l00082"></a><a class="code" href="libwps__internal_8h.html#6b05ae743804996b8c598c5f10da0d2b">00082</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_SHADOW_BIT 512</span>
<a name="l00083"></a><a class="code" href="libwps__internal_8h.html#8fdaf22b4ab8c247c5712553cc3d31df">00083</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_REDLINE_BIT 1024</span>
<a name="l00084"></a><a class="code" href="libwps__internal_8h.html#18e11008e2d2619f4b8e87bc06b2cee1">00084</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_DOUBLE_UNDERLINE_BIT 2048</span>
<a name="l00085"></a><a class="code" href="libwps__internal_8h.html#397d7f83cad9d80faddc4c2447e90dd1">00085</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_BOLD_BIT 4096</span>
<a name="l00086"></a><a class="code" href="libwps__internal_8h.html#047b8ec63b82edafc7340b202fd6a546">00086</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_STRIKEOUT_BIT 8192</span>
<a name="l00087"></a><a class="code" href="libwps__internal_8h.html#d193ea0c688c2abd3b70073e72af1c64">00087</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_UNDERLINE_BIT 16384</span>
<a name="l00088"></a><a class="code" href="libwps__internal_8h.html#9047c4301db8e56888e6e173d4da46c2">00088</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_SMALL_CAPS_BIT 32768</span>
<a name="l00089"></a><a class="code" href="libwps__internal_8h.html#3f1fff85cf2cea3da7f35239a2e0c848">00089</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_BLINK_BIT 65536</span>
<a name="l00090"></a><a class="code" href="libwps__internal_8h.html#77123b15d052817e30a4b0bd9b6daa5e">00090</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_REVERSEVIDEO_BIT 131072</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span>
<a name="l00092"></a>00092 <span class="comment">// JUSTIFICATION bits</span>
<a name="l00093"></a><a class="code" href="libwps__internal_8h.html#28c32112045bcdc04ffdb6beb5a5a742">00093</a> <span class="preprocessor">#define WPS_PARAGRAPH_JUSTIFICATION_LEFT 0x00</span>
<a name="l00094"></a><a class="code" href="libwps__internal_8h.html#c6f4036d00fc9ae36ec18fb098775c59">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_PARAGRAPH_JUSTIFICATION_FULL 0x01</span>
<a name="l00095"></a><a class="code" href="libwps__internal_8h.html#abaf20547c5813583984b0ac6f48ae39">00095</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_PARAGRAPH_JUSTIFICATION_CENTER 0x02</span>
<a name="l00096"></a><a class="code" href="libwps__internal_8h.html#46759bc54fc86e8ec874f02fb88ec963">00096</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_PARAGRAPH_JUSTIFICATION_RIGHT 0x03</span>
<a name="l00097"></a><a class="code" href="libwps__internal_8h.html#b87103d64d064aa120b516f70c151274">00097</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_PARAGRAPH_JUSTIFICATION_FULL_ALL_LINES 0x04</span>
<a name="l00098"></a><a class="code" href="libwps__internal_8h.html#24aa54f7eb9e924a62d09cdf8c3cc37a">00098</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_PARAGRAPH_JUSTIFICATION_DECIMAL_ALIGNED 0x05</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span>
<a name="l00100"></a>00100 <span class="comment">// BREAK bits</span>
<a name="l00101"></a><a class="code" href="libwps__internal_8h.html#5d58f154144ce0948353eda3990a701d">00101</a> <span class="preprocessor">#define WPS_PAGE_BREAK 0x00</span>
<a name="l00102"></a><a class="code" href="libwps__internal_8h.html#2aad4240dec879a7120e28cb281c4825">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_SOFT_PAGE_BREAK 0x01</span>
<a name="l00103"></a><a class="code" href="libwps__internal_8h.html#ec53ed17e038ad69d982cda786c48a7c">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_COLUMN_BREAK 0x02</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a>00105 <span class="comment">// Generic bits</span>
<a name="l00106"></a><a class="code" href="libwps__internal_8h.html#da6d3d1a1146b9ad31237897252edd92">00106</a> <span class="preprocessor">#define WPS_LEFT 0x00</span>
<a name="l00107"></a><a class="code" href="libwps__internal_8h.html#c01a471bf8aa72a246b33a82ee59ae81">00107</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_RIGHT 0x01</span>
<a name="l00108"></a><a class="code" href="libwps__internal_8h.html#61541f6eb67e4c419b00d96dbd677fdc">00108</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_CENTER 0x02</span>
<a name="l00109"></a><a class="code" href="libwps__internal_8h.html#26e1c156b0586e01ab58ab9747be7699">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_TOP 0x03</span>
<a name="l00110"></a><a class="code" href="libwps__internal_8h.html#121785d3fe1782793a0f6e4c29cf94fa">00110</a> <span class="preprocessor"></span><span class="preprocessor">#define WPS_BOTTOM 0x04</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>
<a name="l00112"></a><a class="code" href="libwps__internal_8h.html#0b635af0ddd4e27c39771f40e7bff19b">00112</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__RGBSColor.html">_RGBSColor</a> <a class="code" href="struct__RGBSColor.html">RGBSColor</a>;
<a name="l00113"></a><a class="code" href="struct__RGBSColor.html">00113</a> <span class="keyword">struct </span><a class="code" href="struct__RGBSColor.html">_RGBSColor</a>
<a name="l00114"></a>00114 {
<a name="l00115"></a>00115         <a class="code" href="struct__RGBSColor.html#04fa2649d16afba0be11349d8eb67b97">_RGBSColor</a>(uint8_t r, uint8_t g, uint8_t b, uint8_t s);
<a name="l00116"></a>00116         <a class="code" href="struct__RGBSColor.html#04fa2649d16afba0be11349d8eb67b97">_RGBSColor</a>(uint16_t red, uint16_t green, uint16_t blue); <span class="comment">// Construct</span>
<a name="l00117"></a>00117         <span class="comment">// RBBSColor from double precision RGB color used by WP3.x for Mac</span>
<a name="l00118"></a>00118         <a class="code" href="struct__RGBSColor.html#04fa2649d16afba0be11349d8eb67b97">_RGBSColor</a>(); <span class="comment">// initializes all values to 0</span>
<a name="l00119"></a><a class="code" href="struct__RGBSColor.html#84fbc486400f41f7fd1c3d1c787537f2">00119</a>         uint8_t <a class="code" href="struct__RGBSColor.html#84fbc486400f41f7fd1c3d1c787537f2">m_r</a>;
<a name="l00120"></a><a class="code" href="struct__RGBSColor.html#0e996403a081a57e34f35217a04155f1">00120</a>         uint8_t <a class="code" href="struct__RGBSColor.html#0e996403a081a57e34f35217a04155f1">m_g</a>;
<a name="l00121"></a><a class="code" href="struct__RGBSColor.html#6183afc071331b6cf4d967ce733b4990">00121</a>         uint8_t <a class="code" href="struct__RGBSColor.html#6183afc071331b6cf4d967ce733b4990">m_b</a>;
<a name="l00122"></a><a class="code" href="struct__RGBSColor.html#1860b1345745c9e1988be2973a53b1a2">00122</a>         uint8_t <a class="code" href="struct__RGBSColor.html#1860b1345745c9e1988be2973a53b1a2">m_s</a>;
<a name="l00123"></a>00123 };
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 <span class="comment">// Various exceptions</span>
<a name="l00126"></a>00126 
<a name="l00127"></a><a class="code" href="classVersionException.html">00127</a> <span class="keyword">class </span><a class="code" href="classVersionException.html">VersionException</a>
<a name="l00128"></a>00128 {
<a name="l00129"></a>00129         <span class="comment">// needless to say, we could flesh this class out a bit</span>
<a name="l00130"></a>00130 };
<a name="l00131"></a>00131 
<a name="l00132"></a><a class="code" href="classFileException.html">00132</a> <span class="keyword">class </span><a class="code" href="classFileException.html">FileException</a>
<a name="l00133"></a>00133 {
<a name="l00134"></a>00134         <span class="comment">// needless to say, we could flesh this class out a bit</span>
<a name="l00135"></a>00135 };
<a name="l00136"></a>00136 
<a name="l00137"></a><a class="code" href="classParseException.html">00137</a> <span class="keyword">class </span><a class="code" href="classParseException.html">ParseException</a>
<a name="l00138"></a>00138 {
<a name="l00139"></a>00139         <span class="comment">// needless to say, we could flesh this class out a bit</span>
<a name="l00140"></a>00140 };
<a name="l00141"></a>00141 
<a name="l00142"></a><a class="code" href="classGenericException.html">00142</a> <span class="keyword">class </span><a class="code" href="classGenericException.html">GenericException</a>
<a name="l00143"></a>00143 {
<a name="l00144"></a>00144         <span class="comment">// needless to say, we could flesh this class out a bit</span>
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 <span class="comment">// Various functions</span>
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <span class="preprocessor">#ifdef DEBUG</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span>std::string to_bits(std::string s);
<a name="l00151"></a>00151 <span class="preprocessor">#endif</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span>
<a name="l00153"></a>00153 <span class="preprocessor">#endif </span><span class="comment">/* LIBWPS_INTERNAL_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>
Generated on Sat Jan 5 21:59:17 2008 for libwps by <a href="http://www.doxygen.org/index.html">
doxygen</a> 1.5.4</small></address>
</body>
</html>