<!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>GreatWksParser.hxx Source File documentation</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); </script> <div id="main-nav"></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('GreatWksParser_8hxx_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">GreatWksParser.hxx</div> </div> </div><!--header--> <div class="contents"> <a href="GreatWksParser_8hxx.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++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> </div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">/* libmwaw</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* Version: MPL 2.0 / LGPLv2+</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">*</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* The contents of this file are subject to the Mozilla Public License Version</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">* 2.0 (the "License"); you may not use this file except in compliance with</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">* the License or as specified alternatively below. You may obtain a copy of</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* the License at http://www.mozilla.org/MPL/</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">*</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* Software distributed under the License is distributed on an "AS IS" basis,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">* for the specific language governing rights and limitations under the</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">* License.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">*</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">* Major Contributor(s):</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">* Copyright (C) 2002 William Lachance (wrlach@gmail.com)</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">* Copyright (C) 2006, 2007 Andrew Ziem</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">*</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">*</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">* All Rights Reserved.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">*</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">* For minor contributions see the git repository.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">*</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">* Alternatively, the contents of this file may be used under the terms of</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">* in which case the provisions of the LGPLv2+ are applicable</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">* instead of those above.</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">*/</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#ifndef GREAT_WKS_PARSER</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor"># define GREAT_WKS_PARSER</span></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="preprocessor">#include <string></span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <vector></span></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="preprocessor">#include <librevenge/librevenge.h></span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "<a class="code" href="MWAWDebug_8hxx.html">MWAWDebug.hxx</a>"</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "<a class="code" href="MWAWParser_8hxx.html">MWAWParser.hxx</a>"</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="keyword">namespace </span><a class="code" href="namespaceGreatWksParserInternal.html">GreatWksParserInternal</a></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="keyword">struct </span>State;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">class </span>SubDocument;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> }</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">class </span><a class="code" href="classGreatWksDocument.html">GreatWksDocument</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classGreatWksParser.html"> 56</a></span> <span class="keyword">class </span><a class="code" href="classGreatWksParser.html">GreatWksParser</a> final : <span class="keyword">public</span> <a class="code" href="classMWAWTextParser.html">MWAWTextParser</a></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> {</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classGreatWksParser.html#ad92bb982b1fdd676e1d9833f8fa7000f"> 58</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classGreatWksParserInternal_1_1SubDocument.html">GreatWksParserInternal::SubDocument</a>;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classGreatWksParser.html">GreatWksParser</a>(<a class="code" href="libmwaw__internal_8hxx.html#afd5c882cd7630d8ce247eebe1ae59d24">MWAWInputStreamPtr</a> <span class="keyword">const</span> &input, <a class="code" href="libmwaw__internal_8hxx.html#a5da873b93ee8c277c6fff288fceba1a8">MWAWRSRCParserPtr</a> <span class="keyword">const</span> &rsrcParser, <a class="code" href="classMWAWHeader.html">MWAWHeader</a> *header);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  ~<a class="code" href="classGreatWksParser.html">GreatWksParser</a>() final;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">bool</span> checkHeader(<a class="code" href="classMWAWHeader.html">MWAWHeader</a> *header, <span class="keywordtype">bool</span> strict=false) final;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// the main parse function</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">void</span> <a class="code" href="classGreatWksParserInternal_1_1SubDocument.html#a02eace54b63a00cd2975c36f77f47b14">parse</a>(<a class="code" href="namespacelibrevenge.html">librevenge</a>::RVNGTextInterface *documentInterface) final;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> protected:</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">void</span> init();</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">void</span> createDocument(<a class="code" href="namespacelibrevenge.html">librevenge</a>::RVNGTextInterface *documentInterface);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">void</span> newPage(<span class="keywordtype">int</span> number);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// interface with the text parser</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classMWAWSection.html">MWAWSection</a> getMainSection() const;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">bool</span> sendHF(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> protected:</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">bool</span> createZones();</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">//</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// low level</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">//</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">bool</span> readDocInfo();</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">//</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// data</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="comment">//</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classGreatWksParser.html#a81617e9e8f2f8a1780f3bd83f24ef945"> 104</a></span>  std::shared_ptr<<a class="code" href="namespaceGreatWksParserInternal.html">GreatWksParserInternal</a>::State> m_state;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classGreatWksParser.html#a8693a1151f2a12fae2b7a2765973dbe1"> 107</a></span>  std::shared_ptr<<a class="code" href="classGreatWksDocument.html">GreatWksDocument</a>> m_document;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> };</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:</span></div><div class="ttc" id="classMWAWHeader_html"><div class="ttname"><a href="classMWAWHeader.html">MWAWHeader</a></div><div class="ttdoc">a function used by MWAWDocument to store the version of document </div><div class="ttdef"><b>Definition:</b> MWAWHeader.hxx:56</div></div> <div class="ttc" id="classGreatWksParserInternal_1_1SubDocument_html_a02eace54b63a00cd2975c36f77f47b14"><div class="ttname"><a href="classGreatWksParserInternal_1_1SubDocument.html#a02eace54b63a00cd2975c36f77f47b14">GreatWksParserInternal::SubDocument::parse</a></div><div class="ttdeci">void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final</div><div class="ttdoc">the parser function </div><div class="ttdef"><b>Definition:</b> GreatWksParser.cxx:145</div></div> <div class="ttc" id="MWAWParser_8hxx_html"><div class="ttname"><a href="MWAWParser_8hxx.html">MWAWParser.hxx</a></div></div> <div class="ttc" id="namespacelibrevenge_html"><div class="ttname"><a href="namespacelibrevenge.html">librevenge</a></div><div class="ttdef"><b>Definition:</b> MWAWDocument.hxx:56</div></div> <div class="ttc" id="classGreatWksDocument_html"><div class="ttname"><a href="classGreatWksDocument.html">GreatWksDocument</a></div><div class="ttdoc">the main class to read/store generic data of a GreatWorks document </div><div class="ttdef"><b>Definition:</b> GreatWksDocument.hxx:60</div></div> <div class="ttc" id="classGreatWksParserInternal_1_1SubDocument_html"><div class="ttname"><a href="classGreatWksParserInternal_1_1SubDocument.html">GreatWksParserInternal::SubDocument</a></div><div class="ttdoc">Internal: the subdocument of a GreatWksParser. </div><div class="ttdef"><b>Definition:</b> GreatWksParser.cxx:124</div></div> <div class="ttc" id="namespaceGreatWksParserInternal_html"><div class="ttname"><a href="namespaceGreatWksParserInternal.html">GreatWksParserInternal</a></div><div class="ttdoc">Internal: the structures of a GreatWksParser. </div><div class="ttdef"><b>Definition:</b> GreatWksParser.cxx:58</div></div> <div class="ttc" id="libmwaw__internal_8hxx_html_a5da873b93ee8c277c6fff288fceba1a8"><div class="ttname"><a href="libmwaw__internal_8hxx.html#a5da873b93ee8c277c6fff288fceba1a8">MWAWRSRCParserPtr</a></div><div class="ttdeci">std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr</div><div class="ttdoc">a smart pointer of MWAWRSRCParser </div><div class="ttdef"><b>Definition:</b> libmwaw_internal.hxx:557</div></div> <div class="ttc" id="classMWAWTextParser_html"><div class="ttname"><a href="classMWAWTextParser.html">MWAWTextParser</a></div><div class="ttdoc">virtual class which defines the ancestor of all text zone parser </div><div class="ttdef"><b>Definition:</b> MWAWParser.hxx:298</div></div> <div class="ttc" id="classGreatWksParser_html"><div class="ttname"><a href="classGreatWksParser.html">GreatWksParser</a></div><div class="ttdoc">the main class to read a GreatWorks text file </div><div class="ttdef"><b>Definition:</b> GreatWksParser.hxx:56</div></div> <div class="ttc" id="classMWAWSection_html"><div class="ttname"><a href="classMWAWSection.html">MWAWSection</a></div><div class="ttdoc">a class which stores section properties </div><div class="ttdef"><b>Definition:</b> MWAWSection.hxx:45</div></div> <div class="ttc" id="MWAWDebug_8hxx_html"><div class="ttname"><a href="MWAWDebug_8hxx.html">MWAWDebug.hxx</a></div></div> <div class="ttc" id="libmwaw__internal_8hxx_html_afd5c882cd7630d8ce247eebe1ae59d24"><div class="ttname"><a href="libmwaw__internal_8hxx.html#afd5c882cd7630d8ce247eebe1ae59d24">MWAWInputStreamPtr</a></div><div class="ttdeci">std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr</div><div class="ttdoc">a smart pointer of MWAWInputStream </div><div class="ttdef"><b>Definition:</b> libmwaw_internal.hxx:547</div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <hr size="1"><address style="align: right;"><small> Generated on Mon Feb 11 2019 22:20:42 for libmwaw by <a href="http://www.doxygen.org/index.html"> doxygen</a> 1.8.13</small></address> </body> </html>