<!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>Shapes.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 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 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('Shapes_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">Shapes.h</div> </div> </div><!--header--> <div class="contents"> <a href="Shapes_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">/* libmspub</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Version: MPL 1.1 / GPLv2+ / LGPLv2+</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"> * 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> <span class="comment"> * 1.1 (the "License"); you may not use this file except in compliance with</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <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> <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> <span class="comment"> *</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Software distributed under the License is distributed on an "AS IS" basis,</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <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> <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> <span class="comment"> * License.</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * Major Contributor(s):</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Copyright (C) 2012 Brennan Vincent <brennanv@email.arizona.edu></span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * All Rights Reserved.</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * For minor contributions see the git repository.</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> *</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <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> <span class="comment"> * either the GNU General Public License Version 2 or later (the "GPLv2+"), or</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <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> <span class="comment"> * instead of those above.</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="preprocessor">#ifndef __SHAPES_H__</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor"></span><span class="preprocessor">#define __SHAPES_H__</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <vector></span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <map></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">#include "<a class="code" href="Coordinate_8h.html">Coordinate.h</a>"</span></div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="MSPUBConstants_8h.html">MSPUBConstants.h</a>"</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="ShapeType_8h.html">ShapeType.h</a>"</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="VectorTransformation2D_8h.html">VectorTransformation2D.h</a>"</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">namespace </span>libmspub</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> {</div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">class </span>MSPUBCollector;</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">struct </span>CustomShape;</div> <div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Shape.html"> 43</a></span> <span class="keyword">struct </span><a class="code" href="structlibmspub_1_1Shape.html">Shape</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"><a class="code" href="structlibmspub_1_1Shape.html#a3b15f4320b016eccc98e1ec26d2a8b69"> 45</a></span>  <a class="code" href="structlibmspub_1_1Shape.html#a3b15f4320b016eccc98e1ec26d2a8b69">Shape</a>(<a class="code" href="classlibmspub_1_1MSPUBCollector.html">MSPUBCollector</a> *o) : <a class="code" href="structlibmspub_1_1Shape.html#a7cee3239e17d3133e6fed521ad0ca942">props</a>(), <a class="code" href="structlibmspub_1_1Shape.html#af2ba2b3d66b52a3f39749a6e44240ad9">graphicsProps</a>(), <a class="code" href="structlibmspub_1_1Shape.html#ae693d9303bb2d222e72f8f569b44e558">owner</a>(o) { }</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1Shape.html#afd7e2febebf935318738041ab24a0375">output</a>(libwpg::WPGPaintInterface *painter, <a class="code" href="structlibmspub_1_1Coordinate.html">Coordinate</a> coord);</div> <div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Shape.html#ae58460acbf38bbea21fc75e98ee2e561"> 47</a></span>  <span class="keyword">virtual</span> <a class="code" href="structlibmspub_1_1Shape.html#ae58460acbf38bbea21fc75e98ee2e561">~Shape</a>()</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  }</div> <div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Shape.html#a7cee3239e17d3133e6fed521ad0ca942"> 50</a></span>  WPXPropertyList <a class="code" href="structlibmspub_1_1Shape.html#a7cee3239e17d3133e6fed521ad0ca942">props</a>;</div> <div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Shape.html#af2ba2b3d66b52a3f39749a6e44240ad9"> 51</a></span>  WPXPropertyList <a class="code" href="structlibmspub_1_1Shape.html#af2ba2b3d66b52a3f39749a6e44240ad9">graphicsProps</a>;</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1Shape.html#a438a3af18eef061e033dfc1fe33cac62">setCoordProps</a>(<a class="code" href="structlibmspub_1_1Coordinate.html">Coordinate</a> coord);</div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1Shape.html#ac2f735c2fec1b4c03e19ffd71a493512">write</a>(libwpg::WPGPaintInterface *painter) = 0;</div> <div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Shape.html#ae693d9303bb2d222e72f8f569b44e558"> 55</a></span>  <a class="code" href="classlibmspub_1_1MSPUBCollector.html">MSPUBCollector</a> *<a class="code" href="structlibmspub_1_1Shape.html#ae693d9303bb2d222e72f8f569b44e558">owner</a>;</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">virtual</span> WPXPropertyListVector <a class="code" href="structlibmspub_1_1Shape.html#a1ae77fd79fa2a677cce36f3f784ff66e">updateGraphicsProps</a>();</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="structlibmspub_1_1Shape.html#a18b7b063caa5a2bdebcdd3562afe13fa">Shape</a>();</div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="structlibmspub_1_1Shape.html#a18b7b063caa5a2bdebcdd3562afe13fa">Shape</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1Shape.html">Shape</a> &);</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="structlibmspub_1_1Shape.html">Shape</a> &<a class="code" href="structlibmspub_1_1Shape.html#aa7550c3e6fdf9b5f8c2be94bf430574e">operator=</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1Shape.html">Shape</a> &);</div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> };</div> <div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="structlibmspub_1_1FillableShape.html"> 64</a></span> <span class="keyword">struct </span><a class="code" href="structlibmspub_1_1FillableShape.html">FillableShape</a> : <span class="keyword">public</span> <a class="code" href="structlibmspub_1_1Shape.html">Shape</a></div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> {</div> <div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="structlibmspub_1_1FillableShape.html#ae873f1d510df4b24658fd91e7489b136"> 66</a></span>  <a class="code" href="structlibmspub_1_1FillableShape.html#ae873f1d510df4b24658fd91e7489b136">FillableShape</a>(<a class="code" href="classlibmspub_1_1MSPUBCollector.html">MSPUBCollector</a> *o) : <a class="code" href="structlibmspub_1_1Shape.html">Shape</a>(o), <a class="code" href="structlibmspub_1_1FillableShape.html#a0e38519e6d5c073a8ce8b4e3c033739c">m_fill</a>(NULL) { }</div> <div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="structlibmspub_1_1FillableShape.html#a0e38519e6d5c073a8ce8b4e3c033739c"> 67</a></span>  <a class="code" href="classlibmspub_1_1Fill.html">Fill</a> *<a class="code" href="structlibmspub_1_1FillableShape.html#a0e38519e6d5c073a8ce8b4e3c033739c">m_fill</a>;</div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1FillableShape.html#a639a5d99e0598797f5082b82eb1b8e5e">setFill</a>(<a class="code" href="classlibmspub_1_1Fill.html">Fill</a> *fill);</div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">virtual</span> WPXPropertyListVector <a class="code" href="structlibmspub_1_1FillableShape.html#ac75ffe0cc2bb268cabdcece78b75c9c7">updateGraphicsProps</a>();</div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="structlibmspub_1_1FillableShape.html#ae873f1d510df4b24658fd91e7489b136">FillableShape</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1FillableShape.html">FillableShape</a> &);</div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="structlibmspub_1_1FillableShape.html">FillableShape</a> &<a class="code" href="structlibmspub_1_1FillableShape.html#a05145f1676fdb730e9c94a520adcdd45">operator=</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1FillableShape.html">FillableShape</a> &);</div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> };</div> <div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html"> 75</a></span> <span class="keyword">struct </span><a class="code" href="structlibmspub_1_1GeometricShape.html">GeometricShape</a> : <span class="keyword">public</span> <a class="code" href="structlibmspub_1_1FillableShape.html">FillableShape</a></div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span> {</div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a883ff1acb482d1af515df7c0faad62c9">addLine</a>(<a class="code" href="classlibmspub_1_1ColorReference.html">ColorReference</a> color, <span class="keywordtype">unsigned</span> widthInEmu, <span class="keywordtype">bool</span> lineExists);</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#aea78bf98c04c8c7033129d3b41e2642e">fillDefaultAdjustValues</a>();</div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a515afaef7a5b75d4a7fd2bb61e6330a3">setAdjustValue</a>(<span class="keywordtype">unsigned</span> index, <span class="keywordtype">int</span> adjustValue);</div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a235e92e6ae2e5430eabaf2e7a67b3298">setText</a>(std::vector<TextParagraph> str);</div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">double</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a5529799627b5456a963ebf235b38807d">getCalculationValue</a>(<span class="keywordtype">unsigned</span> index, <span class="keywordtype">bool</span> recursiveEntry = <span class="keyword">false</span>) <span class="keyword">const</span>;</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">double</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a8cd80e3dc8b0a31d4fbf024421493271">getSpecialValue</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1CustomShape.html">CustomShape</a> &shape, <span class="keywordtype">int</span> arg) <span class="keyword">const</span>;</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a339949ab07c3786f3079177d8d37b4f1">writeText</a>(libwpg::WPGPaintInterface *painter);</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a457b187e28ee8a7f059ecece7b7a777f">setTransformation</a>(<a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> transform);</div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> <div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#ae282450f4f6b543aa102513a33c0e357"> 86</a></span>  std::vector<TextParagraph> <a class="code" href="structlibmspub_1_1GeometricShape.html#ae282450f4f6b543aa102513a33c0e357">m_str</a>;</div> <div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a71a74bd071664f612e9aa447dbdfdaa7"> 87</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a71a74bd071664f612e9aa447dbdfdaa7">m_hasText</a>;</div> <div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a6d0e5f0b9a3c13a227dfd2dfb5180ae7"> 88</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a6d0e5f0b9a3c13a227dfd2dfb5180ae7">m_pageSeqNum</a>;</div> <div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a7d2f420c05e70052b92ded440adbe1e0"> 89</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a7d2f420c05e70052b92ded440adbe1e0">m_imgIndex</a>;</div> <div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a8b9b996f90a2d0f7eca485d5e02bcff9"> 90</a></span>  <a class="code" href="namespacelibmspub.html#a1cc1f44b41d18a90e54808ee7c318ad3">ShapeType</a> <a class="code" href="structlibmspub_1_1GeometricShape.html#a8b9b996f90a2d0f7eca485d5e02bcff9">m_type</a>;</div> <div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a8c08a7b3c9b4c2349d659a6ade542be6"> 91</a></span>  <span class="keywordtype">double</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a66a2c0d39d1375215938c2597c96e702">m_x</a>, <a class="code" href="structlibmspub_1_1GeometricShape.html#a8c08a7b3c9b4c2349d659a6ade542be6">m_y</a>, <a class="code" href="structlibmspub_1_1GeometricShape.html#a22619933210ba4a23847c3911a700460">m_width</a>, <a class="code" href="structlibmspub_1_1GeometricShape.html#a1ebdcfff0d5ea3198358aeed23baf555">m_height</a>;</div> <div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a061d3f1185cb4e1c32fe3bfd8516b8bb"> 92</a></span>  <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> <a class="code" href="structlibmspub_1_1GeometricShape.html#a061d3f1185cb4e1c32fe3bfd8516b8bb">m_transform</a>;</div> <div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a9a3082ebc6eef2c70fccd47fa7a78391"> 93</a></span>  std::vector<int> <a class="code" href="structlibmspub_1_1GeometricShape.html#a9a3082ebc6eef2c70fccd47fa7a78391">m_adjustValues</a>;</div> <div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#ac7ff7865d990d74931dbcd3317bb30c1"> 94</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a6ad93062daeb1f8c7cf8955866c34e63">m_left</a>, <a class="code" href="structlibmspub_1_1GeometricShape.html#ac7ff7865d990d74931dbcd3317bb30c1">m_top</a>, <a class="code" href="structlibmspub_1_1GeometricShape.html#a6fb7e19612256fafb3dfeae5dbe1322d">m_right</a>, <a class="code" href="structlibmspub_1_1GeometricShape.html#ad3c3f50b57f7aa897e7ce75bff1a036c">m_bottom</a>; <span class="comment">//emu</span></div> <div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#ad735e0996e96192770f7c36e83901f52"> 95</a></span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a3922cc726d846a678a1e95a6fe233301">GeometricShape</a>(<a class="code" href="classlibmspub_1_1MSPUBCollector.html">MSPUBCollector</a> *o)</div> <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  : <a class="code" href="structlibmspub_1_1FillableShape.html">FillableShape</a>(o), <a class="code" href="structlibmspub_1_1GeometricShape.html#ae282450f4f6b543aa102513a33c0e357">m_str</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#a71a74bd071664f612e9aa447dbdfdaa7">m_hasText</a>(false), <a class="code" href="structlibmspub_1_1GeometricShape.html#a6d0e5f0b9a3c13a227dfd2dfb5180ae7">m_pageSeqNum</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a7d2f420c05e70052b92ded440adbe1e0">m_imgIndex</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a8b9b996f90a2d0f7eca485d5e02bcff9">m_type</a>(<a class="code" href="namespacelibmspub.html#a1cc1f44b41d18a90e54808ee7c318ad3a78d22add37ea061bc7b1b5bb18e2a6c2">RECTANGLE</a>),</div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a66a2c0d39d1375215938c2597c96e702">m_x</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a8c08a7b3c9b4c2349d659a6ade542be6">m_y</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a22619933210ba4a23847c3911a700460">m_width</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a1ebdcfff0d5ea3198358aeed23baf555">m_height</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a061d3f1185cb4e1c32fe3bfd8516b8bb">m_transform</a>(<a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a>()),</div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a9a3082ebc6eef2c70fccd47fa7a78391">m_adjustValues</a>(),</div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a6ad93062daeb1f8c7cf8955866c34e63">m_left</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>), <a class="code" href="structlibmspub_1_1GeometricShape.html#ac7ff7865d990d74931dbcd3317bb30c1">m_top</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>), <a class="code" href="structlibmspub_1_1GeometricShape.html#a6fb7e19612256fafb3dfeae5dbe1322d">m_right</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>), <a class="code" href="structlibmspub_1_1GeometricShape.html#ad3c3f50b57f7aa897e7ce75bff1a036c">m_bottom</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>),</div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a5f99fe4715ae2c475eb2cb2bcc083a11">m_valuesSeen</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#a9499388d1d8fc82a711178edda6cfde6">m_filledDefaultAdjustValues</a>(false), <a class="code" href="structlibmspub_1_1GeometricShape.html#a92a4a02eddf24e74fa393c55180b62e7">m_textCoord</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#ad6d876e24d8656f24f08cc8a02f5a767">m_closeEverything</a>(false),</div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a7cfaaee9593fcf563ca00310435314f5">m_lines</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#a7bfc333e846dede177984963164dc2a1">m_drawStroke</a>(false),</div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a9e76407f9113d913cdfcb4a6bd70f824">m_borderPosition</a>(<a class="code" href="namespacelibmspub.html#ae5860e2256d93dc7769d75c290352a9ea446477d9b68e82b5a462574548f55127">HALF_INSIDE_SHAPE</a>),</div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a59253dbeed2ca97beba67fbee3dafd02">m_coordinatesRotated90</a>(false), <a class="code" href="structlibmspub_1_1GeometricShape.html#a3e6b4f2ca7a2c695c28814395d462afd">m_foldedTransform</a>(<a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a>()) { }</div> <div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a0159be39000abcf60a41ab8c9a17e3c6"> 104</a></span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a3922cc726d846a678a1e95a6fe233301">GeometricShape</a>(<span class="keywordtype">unsigned</span> pageSeqNum, <a class="code" href="classlibmspub_1_1MSPUBCollector.html">MSPUBCollector</a> *o)</div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  : <a class="code" href="structlibmspub_1_1FillableShape.html">FillableShape</a>(o), <a class="code" href="structlibmspub_1_1GeometricShape.html#ae282450f4f6b543aa102513a33c0e357">m_str</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#a71a74bd071664f612e9aa447dbdfdaa7">m_hasText</a>(false), <a class="code" href="structlibmspub_1_1GeometricShape.html#a6d0e5f0b9a3c13a227dfd2dfb5180ae7">m_pageSeqNum</a>(pageSeqNum), <a class="code" href="structlibmspub_1_1GeometricShape.html#a7d2f420c05e70052b92ded440adbe1e0">m_imgIndex</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a8b9b996f90a2d0f7eca485d5e02bcff9">m_type</a>(<a class="code" href="namespacelibmspub.html#a1cc1f44b41d18a90e54808ee7c318ad3a78d22add37ea061bc7b1b5bb18e2a6c2">RECTANGLE</a>),</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a66a2c0d39d1375215938c2597c96e702">m_x</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a8c08a7b3c9b4c2349d659a6ade542be6">m_y</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a22619933210ba4a23847c3911a700460">m_width</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a1ebdcfff0d5ea3198358aeed23baf555">m_height</a>(0), <a class="code" href="structlibmspub_1_1GeometricShape.html#a061d3f1185cb4e1c32fe3bfd8516b8bb">m_transform</a>(<a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a>()), <a class="code" href="structlibmspub_1_1GeometricShape.html#a9a3082ebc6eef2c70fccd47fa7a78391">m_adjustValues</a>(),</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a6ad93062daeb1f8c7cf8955866c34e63">m_left</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>), <a class="code" href="structlibmspub_1_1GeometricShape.html#ac7ff7865d990d74931dbcd3317bb30c1">m_top</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>), <a class="code" href="structlibmspub_1_1GeometricShape.html#a6fb7e19612256fafb3dfeae5dbe1322d">m_right</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>), <a class="code" href="structlibmspub_1_1GeometricShape.html#ad3c3f50b57f7aa897e7ce75bff1a036c">m_bottom</a>(<a class="code" href="MSPUBConstants_8h.html#a566cf4649f4c06f548990c1140a87eb4">DEFAULT_MARGIN</a>),</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a5f99fe4715ae2c475eb2cb2bcc083a11">m_valuesSeen</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#a9499388d1d8fc82a711178edda6cfde6">m_filledDefaultAdjustValues</a>(false), <a class="code" href="structlibmspub_1_1GeometricShape.html#a92a4a02eddf24e74fa393c55180b62e7">m_textCoord</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#ad6d876e24d8656f24f08cc8a02f5a767">m_closeEverything</a>(false),</div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a7cfaaee9593fcf563ca00310435314f5">m_lines</a>(), <a class="code" href="structlibmspub_1_1GeometricShape.html#a7bfc333e846dede177984963164dc2a1">m_drawStroke</a>(false),</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a9e76407f9113d913cdfcb4a6bd70f824">m_borderPosition</a>(<a class="code" href="namespacelibmspub.html#ae5860e2256d93dc7769d75c290352a9ea446477d9b68e82b5a462574548f55127">HALF_INSIDE_SHAPE</a>),</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a59253dbeed2ca97beba67fbee3dafd02">m_coordinatesRotated90</a>(false), <a class="code" href="structlibmspub_1_1GeometricShape.html#a3e6b4f2ca7a2c695c28814395d462afd">m_foldedTransform</a>(<a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a>()) { }</div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  std::vector<Color> <a class="code" href="structlibmspub_1_1GeometricShape.html#addc2b6a1a08b1937016ee4bc16b5b4ca">getPaletteColors</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#ad25e144f4da141b945949860c945c829">output</a>(libwpg::WPGPaintInterface *painter, <a class="code" href="structlibmspub_1_1Coordinate.html">Coordinate</a> coord);</div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a700fa15d04ffb7139b0a828a73828c5a">hasFill</a>();</div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a1a8dcbb59ae689b3e1e5898fb055b7ea">setCoordProps</a>(<a class="code" href="structlibmspub_1_1Coordinate.html">Coordinate</a> coord);</div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a033c98e2c3372c24652792e1d5f420a2">write</a>(libwpg::WPGPaintInterface *painter);</div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  WPXPropertyListVector <a class="code" href="structlibmspub_1_1GeometricShape.html#a249957d04bd37f74c169f140c5b6113b">updateGraphicsProps</a>();</div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a3922cc726d846a678a1e95a6fe233301">GeometricShape</a>();</div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html#a3922cc726d846a678a1e95a6fe233301">GeometricShape</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1GeometricShape.html">GeometricShape</a> &);</div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="structlibmspub_1_1GeometricShape.html">GeometricShape</a> &<a class="code" href="structlibmspub_1_1GeometricShape.html#ad4692b7bc88c4c0e7323c3ac5edd6fb1">operator=</a>(<span class="keyword">const</span> <a class="code" href="structlibmspub_1_1GeometricShape.html">GeometricShape</a> &);</div> <div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a5f99fe4715ae2c475eb2cb2bcc083a11"> 123</a></span>  <span class="keyword">mutable</span> std::vector<bool> <a class="code" href="structlibmspub_1_1GeometricShape.html#a5f99fe4715ae2c475eb2cb2bcc083a11">m_valuesSeen</a>;</div> <div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a9499388d1d8fc82a711178edda6cfde6"> 124</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a9499388d1d8fc82a711178edda6cfde6">m_filledDefaultAdjustValues</a>;</div> <div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a92a4a02eddf24e74fa393c55180b62e7"> 125</a></span>  <a class="code" href="structlibmspub_1_1Coordinate.html">Coordinate</a> <a class="code" href="structlibmspub_1_1GeometricShape.html#a92a4a02eddf24e74fa393c55180b62e7">m_textCoord</a>;</div> <div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#ad6d876e24d8656f24f08cc8a02f5a767"> 126</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#ad6d876e24d8656f24f08cc8a02f5a767">m_closeEverything</a>;</div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a7cfaaee9593fcf563ca00310435314f5"> 128</a></span>  std::vector<Line> <a class="code" href="structlibmspub_1_1GeometricShape.html#a7cfaaee9593fcf563ca00310435314f5">m_lines</a>;</div> <div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a7bfc333e846dede177984963164dc2a1"> 129</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a7bfc333e846dede177984963164dc2a1">m_drawStroke</a>;</div> <div class="line"><a name="l00130"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a9e76407f9113d913cdfcb4a6bd70f824"> 130</a></span>  <a class="code" href="namespacelibmspub.html#ae5860e2256d93dc7769d75c290352a9e">BorderPosition</a> <a class="code" href="structlibmspub_1_1GeometricShape.html#a9e76407f9113d913cdfcb4a6bd70f824">m_borderPosition</a>;</div> <div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a59253dbeed2ca97beba67fbee3dafd02"> 131</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structlibmspub_1_1GeometricShape.html#a59253dbeed2ca97beba67fbee3dafd02">m_coordinatesRotated90</a>;</div> <div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="structlibmspub_1_1GeometricShape.html#a3e6b4f2ca7a2c695c28814395d462afd"> 132</a></span>  <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> <a class="code" href="structlibmspub_1_1GeometricShape.html#a3e6b4f2ca7a2c695c28814395d462afd">m_foldedTransform</a>;</div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> };</div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> } <span class="comment">// namespace libmspub</span></div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="preprocessor">#endif // __SHAPES_H__</span></div> <div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor"></span><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>