Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > e11d2e4eb3aac8571de993a0387d8314 > files > 48

libmspub-doc-0.0.6-1.fc18.noarch.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>MSPUBParser2k.h Source File documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('MSPUBParser2k_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">MSPUBParser2k.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="MSPUBParser2k_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/* libmspub</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Version: MPL 1.1 / GPLv2+ / LGPLv2+</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * The contents of this file are subject to the Mozilla Public License Version</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * 1.1 (the &quot;License&quot;); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the License or as specified alternatively below. You may obtain a copy of</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * the License at http://www.mozilla.org/MPL/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * Software distributed under the License is distributed on an &quot;AS IS&quot; basis,</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * for the specific language governing rights and limitations under the</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * License.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * Major Contributor(s):</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Copyright (C) 2012 Brennan Vincent &lt;brennanv@email.arizona.edu&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * All Rights Reserved.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * For minor contributions see the git repository.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * Alternatively, the contents of this file may be used under the terms of</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * either the GNU General Public License Version 2 or later (the &quot;GPLv2+&quot;), or</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * the GNU Lesser General Public License Version 2 or later (the &quot;LGPLv2+&quot;),</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * instead of those above.</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifndef __MSPUBPARSER2K_H__</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __MSPUBPARSER2K_H__</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="MSPUBParser_8h.html">MSPUBParser.h</a>&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ShapeType_8h.html">ShapeType.h</a>&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">namespace </span>libmspub</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="classlibmspub_1_1MSPUBParser2k.html">   41</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibmspub_1_1MSPUBParser2k.html">MSPUBParser2k</a> : <span class="keyword">public</span> <a class="code" href="classlibmspub_1_1MSPUBParser.html">MSPUBParser</a></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  <span class="keyword">static</span> <a class="code" href="namespacelibmspub.html#a1cc1f44b41d18a90e54808ee7c318ad3">ShapeType</a> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#aada6c99675be7e1ed95815a18b0d275a">getShapeType</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> shapeSpecifier);</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a03d3505056e8fcd654e1a60a80433f9e">   44</a></span>&#160;  std::vector&lt;unsigned&gt; <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a03d3505056e8fcd654e1a60a80433f9e">m_imageDataChunkIndices</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a22c540bd4d1bc78312136609d0ffef19">   45</a></span>&#160;  std::vector&lt;unsigned&gt; <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a22c540bd4d1bc78312136609d0ffef19">m_quillColorEntries</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a72f36a6dcbd4dcd84730c1f6911cb268">   46</a></span>&#160;  std::map&lt;unsigned, std::vector&lt;unsigned&gt; &gt; <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a72f36a6dcbd4dcd84730c1f6911cb268">m_chunkChildIndicesById</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="comment">// helper functions</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a6b70031f045ecddf94cec7566d844821">parse2kShapeChunk</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1ContentChunkReference.html">ContentChunkReference</a> &amp;chunk, WPXInputStream *input,</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                         boost::optional&lt;unsigned&gt; pageSeqNum = boost::optional&lt;unsigned&gt;(),</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                         <span class="keywordtype">bool</span> topLevelCall = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a38ee73128d7d977944a739c97111be2a">parseShapeLine</a>(WPXInputStream *input, <span class="keywordtype">bool</span> isRectangle, <span class="keywordtype">unsigned</span> offset, <span class="keywordtype">unsigned</span> seqNum);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a0e8d3b6707549bfc49242dc97b3d3eda">parseShapeType</a>(WPXInputStream *input,</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                      <span class="keywordtype">unsigned</span> seqNum, <span class="keywordtype">unsigned</span> chunkOffset,</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                      <span class="keywordtype">bool</span> &amp;isGroup, <span class="keywordtype">bool</span> &amp;isLine, <span class="keywordtype">bool</span> &amp;isImage, <span class="keywordtype">bool</span> &amp;isRectangle,</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                      <span class="keywordtype">unsigned</span> &amp;flagsOffset);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#ac4416dcaed011c15f78f6231f6ff6ee8">parseShapeRotation</a>(WPXInputStream *input, <span class="keywordtype">bool</span> isGroup, <span class="keywordtype">bool</span> isLine, <span class="keywordtype">unsigned</span> seqNum,</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                          <span class="keywordtype">unsigned</span> chunkOffset);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#aeb9263befb0d76a0d1e52db451ca5884">parseShapeFlips</a>(WPXInputStream *input, <span class="keywordtype">unsigned</span> flagsOffset, <span class="keywordtype">unsigned</span> seqNum,</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                       <span class="keywordtype">unsigned</span> chunkOffset);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a0f850056e6e3af7bc8d68aed3c66d2df">parseShapeCoordinates</a>(WPXInputStream *input, <span class="keywordtype">unsigned</span> seqNum, <span class="keywordtype">unsigned</span> chunkOffset);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#aed72000ba4e4e029d3f0dbc341318107">parseGroup</a>(WPXInputStream *input, <span class="keywordtype">unsigned</span> seqNum, <span class="keywordtype">unsigned</span> page);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#aac7e9db701cbfc721af137d81d7c85c2">assignShapeImgIndex</a>(<span class="keywordtype">unsigned</span> seqNum);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#af130d41c8ce91aee11a43bcd2d396f31">parseShapeFill</a>(WPXInputStream *input, <span class="keywordtype">unsigned</span> seqNum, <span class="keywordtype">unsigned</span> chunkOffset);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a3e5d471a4c467877bed816ae628673ce">parseContents</a>(WPXInputStream *input);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a87ff4233ad09467a5f597b0c6f4734c4">parseDocument</a>(WPXInputStream *input);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a8501681631a3416a1d9c72df2842a77d">getColorIndexByQuillEntry</a>(<span class="keywordtype">unsigned</span> entry);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a09d76fb2363c69625cefdc3dd1e3a0e7">translateCoordinateIfNecessary</a>(<span class="keywordtype">int</span> coordinate) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#aba55ad28044f1f4c1bec8ecfef76610d">getFirstLineOffset</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a8b5bd3e469844a13c72881327fcf44dd">getSecondLineOffset</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#acbd42006c12da0c143694b892391bfa9">getShapeFillTypeOffset</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a4878f44c7ba3f0c8a6a87a19ecece198">getShapeFillColorOffset</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a4775e462c8a60e983200feaff7cfbf70">getTextMarker</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a737da3512df79de2ff435b7bae5ff39b">getTextIdOffset</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  <span class="keyword">static</span> <a class="code" href="structlibmspub_1_1Color.html">Color</a> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a004a52b8875e8ee8a7253ae1a6218382">getColorBy2kIndex</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> index);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <span class="keyword">static</span> <a class="code" href="structlibmspub_1_1Color.html">Color</a> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a62efc254aa5cadb8c16d6c4522d57bf3">getColorBy2kHex</a>(<span class="keywordtype">unsigned</span> hex);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a94bb10049c7b317f49d57655e5743a58">translate2kColorReference</a>(<span class="keywordtype">unsigned</span> ref2k);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="keyword">static</span> <a class="code" href="namespacelibmspub.html#a36b9b747c1cc782eca5577a37c55f295">PageType</a> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a889a5c4fa100e4f35f1ca7d1e81d685e">getPageTypeBySeqNum</a>(<span class="keywordtype">unsigned</span> seqNum);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a1dbbb488b7ab657815281d1a11b3cdb0">parseContentsTextIfNecessary</a>(WPXInputStream *input);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#a9b3a7c26055514448a25b161cfa3e6d5">MSPUBParser2k</a>(WPXInputStream *input, <a class="code" href="classlibmspub_1_1MSPUBCollector.html">MSPUBCollector</a> *collector);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#ace128699c9a87acc283340ebaeb0a32e">parse</a>();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classlibmspub_1_1MSPUBParser2k.html#aece36a6040fc33bf524f1d36ec8d64bc">~MSPUBParser2k</a>();</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;};</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;} <span class="comment">// namespace libmspub</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#endif //  __MSPUBPARSER2K_H__</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">/* vim:set shiftwidth=2 softtabstop=2 expandtab: */</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<hr size="1"><address style="align: right;"><small>
Generated for libmspub by <a href="http://www.doxygen.org/index.html">
doxygen</a> 1.8.3.1</small></address>
</body>
</html>