<!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>PAGCollector.h Source File documentation</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</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 List</span></a></li> <li><a href="globals.html"><span>File 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('PAGCollector_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">PAGCollector.h</div> </div> </div><!--header--> <div class="contents"> <a href="PAGCollector_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> <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> <span class="comment">/*</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * This file is part of the libetonyek project.</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This Source Code Form is subject to the terms of the Mozilla Public</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * License, v. 2.0. If a copy of the MPL was not distributed with this</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * file, You can obtain one at http://mozilla.org/MPL/2.0/.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> */</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#ifndef PAGCOLLECTOR_H_INCLUDED</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor"></span><span class="preprocessor">#define PAGCOLLECTOR_H_INCLUDED</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <librevenge/librevenge.h></span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span>libetonyek</div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> <div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classlibetonyek_1_1PAGCollector.html"> 18</a></span> <span class="keyword">class </span><a class="code" href="classlibetonyek_1_1PAGCollector.html">PAGCollector</a></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keyword">explicit</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#a361ee4dac81bf7bdbf2bad85e21952fa">PAGCollector</a>(librevenge::RVNGTextInterface *<a class="code" href="namespacelibetonyek_1_1PAGToken.html#a8e610e6b2c899cf5025c5fa5f7a486e5a175af73f04a41acc22005fddb3bcc092">document</a>);</div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="comment">// collector functions</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#a32905f3ad3d1aaf7a79e68897d281cee">collectText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="namespacelibetonyek_1_1KEY2Token.html#a4b826147d8631a64303180721a0cc6f0a91a13aad8288c9cbc2cd3bcfbbdeb4e8">text</a>);</div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#a31b0287818b4a920a41cd4034c6d30f2">collectLineBreak</a>();</div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#a55db0ee70f7ce862fb51fef480aa12ab">collectTab</a>();</div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">// helper functions</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#a0610ec1084e42fcca5eb4cb3bcd5dc3d">startDocument</a>();</div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#abe8e4964f36c83c7795b985e4feaa854">endDocument</a>();</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#a24c3117a2f85d8a82ca4f43b334f775d">startParagraph</a>();</div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#afc05f2bdbc3bc8769ec56a94273963da">endParagraph</a>();</div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#a2470fe31ba4b0b34cbd1c1ffd6f1672c">startSpan</a>();</div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#abc1cbedfb47321a939e002e6942f9e70">endSpan</a>();</div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">void</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#ae1de7bfc3f74a8a711fd99b8b35447ba">ensureSpan</a>();</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classlibetonyek_1_1PAGCollector.html#ad84f07323de07d1db138de663ddd653f"> 41</a></span>  librevenge::RVNGTextInterface *<a class="code" href="classlibetonyek_1_1PAGCollector.html#ad84f07323de07d1db138de663ddd653f">m_document</a>;</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> <div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classlibetonyek_1_1PAGCollector.html#ab927ff6aa2087172f01a6a3218f5ab0a"> 43</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classlibetonyek_1_1PAGCollector.html#ab927ff6aa2087172f01a6a3218f5ab0a">m_spanOpened</a>;</div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> };</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> } <span class="comment">// namespace libetonyek</span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#endif // PAGCOLLECTOR_H_INCLUDED</span></div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">/* vim:set shiftwidth=2 softtabstop=2 expandtab: */</span></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_ad84f07323de07d1db138de663ddd653f"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#ad84f07323de07d1db138de663ddd653f">libetonyek::PAGCollector::m_document</a></div><div class="ttdeci">librevenge::RVNGTextInterface * m_document</div><div class="ttdef"><b>Definition:</b> PAGCollector.h:41</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html">libetonyek::PAGCollector</a></div><div class="ttdef"><b>Definition:</b> PAGCollector.h:18</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_a361ee4dac81bf7bdbf2bad85e21952fa"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#a361ee4dac81bf7bdbf2bad85e21952fa">libetonyek::PAGCollector::PAGCollector</a></div><div class="ttdeci">PAGCollector(librevenge::RVNGTextInterface *document)</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:17</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_a32905f3ad3d1aaf7a79e68897d281cee"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#a32905f3ad3d1aaf7a79e68897d281cee">libetonyek::PAGCollector::collectText</a></div><div class="ttdeci">void collectText(const char *text)</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:23</div></div> <div class="ttc" id="namespacelibetonyek_1_1KEY2Token_html_a4b826147d8631a64303180721a0cc6f0a91a13aad8288c9cbc2cd3bcfbbdeb4e8"><div class="ttname"><a href="namespacelibetonyek_1_1KEY2Token.html#a4b826147d8631a64303180721a0cc6f0a91a13aad8288c9cbc2cd3bcfbbdeb4e8">libetonyek::KEY2Token::text</a></div><div class="ttdef"><b>Definition:</b> KEY2Token.h:854</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_a24c3117a2f85d8a82ca4f43b334f775d"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#a24c3117a2f85d8a82ca4f43b334f775d">libetonyek::PAGCollector::startParagraph</a></div><div class="ttdeci">void startParagraph()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:51</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_a55db0ee70f7ce862fb51fef480aa12ab"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#a55db0ee70f7ce862fb51fef480aa12ab">libetonyek::PAGCollector::collectTab</a></div><div class="ttdeci">void collectTab()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:35</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_a2470fe31ba4b0b34cbd1c1ffd6f1672c"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#a2470fe31ba4b0b34cbd1c1ffd6f1672c">libetonyek::PAGCollector::startSpan</a></div><div class="ttdeci">void startSpan()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:64</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_a0610ec1084e42fcca5eb4cb3bcd5dc3d"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#a0610ec1084e42fcca5eb4cb3bcd5dc3d">libetonyek::PAGCollector::startDocument</a></div><div class="ttdeci">void startDocument()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:41</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_ae1de7bfc3f74a8a711fd99b8b35447ba"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#ae1de7bfc3f74a8a711fd99b8b35447ba">libetonyek::PAGCollector::ensureSpan</a></div><div class="ttdeci">void ensureSpan()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:79</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_abe8e4964f36c83c7795b985e4feaa854"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#abe8e4964f36c83c7795b985e4feaa854">libetonyek::PAGCollector::endDocument</a></div><div class="ttdeci">void endDocument()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:46</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_ab927ff6aa2087172f01a6a3218f5ab0a"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#ab927ff6aa2087172f01a6a3218f5ab0a">libetonyek::PAGCollector::m_spanOpened</a></div><div class="ttdeci">bool m_spanOpened</div><div class="ttdef"><b>Definition:</b> PAGCollector.h:43</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_a31b0287818b4a920a41cd4034c6d30f2"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#a31b0287818b4a920a41cd4034c6d30f2">libetonyek::PAGCollector::collectLineBreak</a></div><div class="ttdeci">void collectLineBreak()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:29</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_abc1cbedfb47321a939e002e6942f9e70"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#abc1cbedfb47321a939e002e6942f9e70">libetonyek::PAGCollector::endSpan</a></div><div class="ttdeci">void endSpan()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:73</div></div> <div class="ttc" id="namespacelibetonyek_1_1PAGToken_html_a8e610e6b2c899cf5025c5fa5f7a486e5a175af73f04a41acc22005fddb3bcc092"><div class="ttname"><a href="namespacelibetonyek_1_1PAGToken.html#a8e610e6b2c899cf5025c5fa5f7a486e5a175af73f04a41acc22005fddb3bcc092">libetonyek::PAGToken::document</a></div><div class="ttdef"><b>Definition:</b> PAGToken.h:111</div></div> <div class="ttc" id="classlibetonyek_1_1PAGCollector_html_afc05f2bdbc3bc8769ec56a94273963da"><div class="ttname"><a href="classlibetonyek_1_1PAGCollector.html#afc05f2bdbc3bc8769ec56a94273963da">libetonyek::PAGCollector::endParagraph</a></div><div class="ttdeci">void endParagraph()</div><div class="ttdef"><b>Definition:</b> PAGCollector.cpp:56</div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <hr size="1"><address style="align: right;"><small> Generated for libetonyek by <a href="http://www.doxygen.org/index.html"> doxygen</a> 1.8.5</small></address> </body> </html>