rrtf 0.1.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.byebug_history +6 -3
- data/CHANGELOG.md +24 -0
- data/README.md +194 -84
- data/documentation/RRTF.html +5 -5
- data/documentation/RRTF/AnonymousStyle.html +792 -0
- data/documentation/RRTF/BorderFormatting.html +821 -0
- data/documentation/RRTF/BorderStyle.html +493 -0
- data/documentation/RRTF/CharacterFormatting.html +293 -162
- data/documentation/RRTF/CharacterStyle.html +53 -109
- data/documentation/RRTF/Colour.html +61 -1
- data/documentation/RRTF/ColourTable.html +52 -52
- data/documentation/RRTF/CommandNode.html +367 -971
- data/documentation/RRTF/ContainerNode.html +44 -44
- data/documentation/RRTF/Converters.html +1 -1
- data/documentation/RRTF/Converters/HTML.html +1 -1
- data/documentation/RRTF/Converters/HTML/Helpers.html +1 -1
- data/documentation/RRTF/Converters/HTML/Node.html +1 -1
- data/documentation/RRTF/Converters/HTML/NodeSet.html +1 -1
- data/documentation/RRTF/Document.html +267 -255
- data/documentation/RRTF/DocumentFormatting.html +833 -0
- data/documentation/RRTF/DocumentProperties.html +444 -0
- data/documentation/RRTF/Font.html +1 -1
- data/documentation/RRTF/FontTable.html +1 -1
- data/documentation/RRTF/FooterNode.html +16 -16
- data/documentation/RRTF/GeometryNode.html +774 -0
- data/documentation/RRTF/GeometryProperties.html +1014 -0
- data/documentation/RRTF/HeaderNode.html +16 -16
- data/documentation/RRTF/ImageNode.html +705 -492
- data/documentation/RRTF/Information.html +1 -1
- data/documentation/RRTF/LinkNode.html +10 -10
- data/documentation/RRTF/ListLevel.html +1 -1
- data/documentation/RRTF/ListLevelNode.html +37 -37
- data/documentation/RRTF/ListMarker.html +1 -1
- data/documentation/RRTF/ListNode.html +19 -19
- data/documentation/RRTF/ListTable.html +1 -1
- data/documentation/RRTF/ListTemplate.html +1 -1
- data/documentation/RRTF/ListTextNode.html +14 -14
- data/documentation/RRTF/Node.html +26 -26
- data/documentation/RRTF/Page.html +129 -0
- data/documentation/RRTF/Page/Margin.html +1158 -0
- data/documentation/RRTF/Page/Size.html +946 -0
- data/documentation/RRTF/PageFormatting.html +954 -0
- data/documentation/RRTF/ParagraphFormatting.html +338 -56
- data/documentation/RRTF/ParagraphNode.html +10 -10
- data/documentation/RRTF/ParagraphStyle.html +72 -111
- data/documentation/RRTF/PositionFormatting.html +780 -0
- data/documentation/RRTF/PositionStyle.html +424 -0
- data/documentation/RRTF/Properties.html +243 -0
- data/documentation/RRTF/RTFError.html +21 -10
- data/documentation/RRTF/ShadingFormatting.html +712 -0
- data/documentation/RRTF/ShadingStyle.html +424 -0
- data/documentation/RRTF/Style.html +284 -697
- data/documentation/RRTF/Stylesheet.html +36 -3
- data/documentation/RRTF/TableCellNode.html +131 -131
- data/documentation/RRTF/TableNode.html +82 -82
- data/documentation/RRTF/TableRowNode.html +53 -53
- data/documentation/RRTF/TextNode.html +46 -46
- data/documentation/RRTF/Utilities.html +837 -17
- data/documentation/_index.html +139 -6
- data/documentation/class_list.html +1 -1
- data/documentation/file.README.html +218 -87
- data/documentation/index.html +218 -87
- data/documentation/method_list.html +631 -391
- data/documentation/top-level-namespace.html +1 -1
- data/examples/01.rtf +947 -20
- data/examples/01_everything.rb +176 -0
- data/examples/02.rtf +13 -0
- data/examples/02_basic_paragraph.rb +10 -0
- data/examples/03.rtf +20 -0
- data/examples/03_paragraph_inline_style.rb +14 -0
- data/examples/04.rtf +21 -0
- data/examples/04_paragraph_with_character_style.rb +18 -0
- data/examples/05.rtf +21 -0
- data/examples/05_hyperlinks.rb +21 -0
- data/examples/06.rtf +21 -0
- data/examples/06_basic_list.rb +21 -0
- data/examples/07.rtf +28 -0
- data/examples/07_nested_list.rb +27 -0
- data/examples/08.rtf +807 -0
- data/examples/08_images.rb +17 -0
- data/examples/09.rtf +84 -0
- data/examples/09_shapes.rb +56 -0
- data/examples/10.rtf +34 -0
- data/examples/10_stylesheet.rb +18 -0
- data/examples/resources/images/redshirt.png +0 -0
- data/examples/resources/images/redshirts.jpg +0 -0
- data/examples/resources/json/redshirt_styles.json +72 -8
- data/examples/~$01.rtf +0 -0
- data/lib/rrtf.rb +4 -16
- data/lib/rrtf/colour.rb +8 -0
- data/lib/rrtf/formatting.rb +988 -0
- data/lib/rrtf/node.rb +17 -1851
- data/lib/rrtf/node/command_node.rb +242 -0
- data/lib/rrtf/node/container_node.rb +75 -0
- data/lib/rrtf/node/document.rb +339 -0
- data/lib/rrtf/node/footer_node.rb +47 -0
- data/lib/rrtf/node/geometry_node.rb +65 -0
- data/lib/rrtf/node/header_node.rb +47 -0
- data/lib/rrtf/node/image_node.rb +175 -0
- data/lib/rrtf/node/link_node.rb +10 -0
- data/lib/rrtf/node/list_level_node.rb +44 -0
- data/lib/rrtf/node/list_node.rb +30 -0
- data/lib/rrtf/node/list_text_node.rb +22 -0
- data/lib/rrtf/node/node.rb +53 -0
- data/lib/rrtf/node/paragraph_node.rb +11 -0
- data/lib/rrtf/node/table_cell_node.rb +233 -0
- data/lib/rrtf/node/table_node.rb +136 -0
- data/lib/rrtf/node/table_row_node.rb +92 -0
- data/lib/rrtf/node/text_node.rb +76 -0
- data/lib/rrtf/page.rb +7 -0
- data/lib/rrtf/page/margin.rb +98 -0
- data/lib/rrtf/page/size.rb +98 -0
- data/lib/rrtf/properties.rb +3 -0
- data/lib/rrtf/properties/document_properties.rb +34 -0
- data/lib/rrtf/properties/geometry_properties.rb +380 -0
- data/lib/rrtf/properties/properties.rb +13 -0
- data/lib/rrtf/style.rb +4 -5
- data/lib/rrtf/style/anonymous_style.rb +73 -0
- data/lib/rrtf/style/border_style.rb +27 -0
- data/lib/rrtf/style/character_style.rb +1 -7
- data/lib/rrtf/style/paragraph_style.rb +0 -6
- data/lib/rrtf/style/position_style.rb +26 -0
- data/lib/rrtf/style/shading_style.rb +26 -0
- data/lib/rrtf/style/style.rb +60 -101
- data/lib/rrtf/utilities.rb +138 -0
- data/lib/rrtf/version.rb +1 -1
- data/rrtf.gemspec +1 -0
- metadata +85 -10
- data/examples/01_mac_libreoffice5_2_3_3.png +0 -0
- data/examples/01_mac_pages6_2.png +0 -0
- data/examples/01_mac_textedit1_12.png +0 -0
- data/examples/01_mac_word15_36.png +0 -0
- data/examples/01_styles_and_paragraphs.rb +0 -32
- data/lib/rrtf/paper.rb +0 -53
- data/lib/rrtf/style/document_style.rb +0 -116
- data/lib/rrtf/style/formatting.rb +0 -320
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
|
|
102
102
|
<dl>
|
|
103
103
|
<dt>Defined in:</dt>
|
|
104
|
-
<dd>lib/rrtf/node.rb</dd>
|
|
104
|
+
<dd>lib/rrtf/node/container_node.rb</dd>
|
|
105
105
|
</dl>
|
|
106
106
|
|
|
107
107
|
</div>
|
|
@@ -422,14 +422,14 @@ maintained by a ContainerNode object.</p>
|
|
|
422
422
|
<pre class="lines">
|
|
423
423
|
|
|
424
424
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
425
|
+
15
|
|
426
|
+
16
|
|
427
|
+
17
|
|
428
|
+
18
|
|
429
|
+
19</pre>
|
|
430
430
|
</td>
|
|
431
431
|
<td>
|
|
432
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
432
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 15</span>
|
|
433
433
|
|
|
434
434
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
|
|
435
435
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
|
|
@@ -474,12 +474,12 @@ maintained by a ContainerNode object.</p>
|
|
|
474
474
|
<pre class="lines">
|
|
475
475
|
|
|
476
476
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
477
|
+
8
|
|
478
|
+
9
|
|
479
|
+
10</pre>
|
|
480
480
|
</td>
|
|
481
481
|
<td>
|
|
482
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
482
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 8</span>
|
|
483
483
|
|
|
484
484
|
<span class='kw'>def</span> <span class='id identifier rubyid_children'>children</span>
|
|
485
485
|
<span class='ivar'>@children</span>
|
|
@@ -531,12 +531,12 @@ invalid index will cause a nil value to be returned.</p>
|
|
|
531
531
|
<pre class="lines">
|
|
532
532
|
|
|
533
533
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
534
|
+
66
|
|
535
|
+
67
|
|
536
|
+
68</pre>
|
|
537
537
|
</td>
|
|
538
538
|
<td>
|
|
539
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
539
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 66</span>
|
|
540
540
|
|
|
541
541
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
|
|
542
542
|
<span class='ivar'>@children</span><span class='lbracket'>[</span><span class='id identifier rubyid_index'>index</span><span class='rbracket'>]</span>
|
|
@@ -573,12 +573,12 @@ object.</p>
|
|
|
573
573
|
<pre class="lines">
|
|
574
574
|
|
|
575
575
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
576
|
+
48
|
|
577
|
+
49
|
|
578
|
+
50</pre>
|
|
579
579
|
</td>
|
|
580
580
|
<td>
|
|
581
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
581
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 48</span>
|
|
582
582
|
|
|
583
583
|
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
|
|
584
584
|
<span class='ivar'>@children</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_child'>child</span><span class='op'>|</span> <span class='kw'>yield</span> <span class='id identifier rubyid_child'>child</span><span class='rbrace'>}</span>
|
|
@@ -615,12 +615,12 @@ container contains no children this method returns nil.</p>
|
|
|
615
615
|
<pre class="lines">
|
|
616
616
|
|
|
617
617
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
618
|
+
36
|
|
619
|
+
37
|
|
620
|
+
38</pre>
|
|
621
621
|
</td>
|
|
622
622
|
<td>
|
|
623
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
623
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 36</span>
|
|
624
624
|
|
|
625
625
|
<span class='kw'>def</span> <span class='id identifier rubyid_first'>first</span>
|
|
626
626
|
<span class='ivar'>@children</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
|
@@ -657,12 +657,12 @@ container contains no children this method returns nil.</p>
|
|
|
657
657
|
<pre class="lines">
|
|
658
658
|
|
|
659
659
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
660
|
+
42
|
|
661
|
+
43
|
|
662
|
+
44</pre>
|
|
663
663
|
</td>
|
|
664
664
|
<td>
|
|
665
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
665
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 42</span>
|
|
666
666
|
|
|
667
667
|
<span class='kw'>def</span> <span class='id identifier rubyid_last'>last</span>
|
|
668
668
|
<span class='ivar'>@children</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
|
|
@@ -699,12 +699,12 @@ object contains.</p>
|
|
|
699
699
|
<pre class="lines">
|
|
700
700
|
|
|
701
701
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
702
|
+
54
|
|
703
|
+
55
|
|
704
|
+
56</pre>
|
|
705
705
|
</td>
|
|
706
706
|
<td>
|
|
707
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
707
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 54</span>
|
|
708
708
|
|
|
709
709
|
<span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
|
|
710
710
|
<span class='ivar'>@children</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
|
|
@@ -747,16 +747,16 @@ maintained by a ContainerNode object. Nil objects are ignored.</p>
|
|
|
747
747
|
<pre class="lines">
|
|
748
748
|
|
|
749
749
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
750
|
+
26
|
|
751
|
+
27
|
|
752
|
+
28
|
|
753
|
+
29
|
|
754
|
+
30
|
|
755
|
+
31
|
|
756
|
+
32</pre>
|
|
757
757
|
</td>
|
|
758
758
|
<td>
|
|
759
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
759
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 26</span>
|
|
760
760
|
|
|
761
761
|
<span class='kw'>def</span> <span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
|
|
762
762
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
@@ -796,12 +796,12 @@ maintained by a ContainerNode object. Nil objects are ignored.</p>
|
|
|
796
796
|
<pre class="lines">
|
|
797
797
|
|
|
798
798
|
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
799
|
+
71
|
|
800
|
+
72
|
|
801
|
+
73</pre>
|
|
802
802
|
</td>
|
|
803
803
|
<td>
|
|
804
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
804
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 71</span>
|
|
805
805
|
|
|
806
806
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span>
|
|
807
807
|
<span class='const'><span class='object_link'><a href="RTFError.html" title="RRTF::RTFError (class)">RTFError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fire'><span class='object_link'><a href="RTFError.html#fire-class_method" title="RRTF::RTFError.fire (method)">fire</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>.to_rtf method not yet implemented.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
@@ -816,7 +816,7 @@ maintained by a ContainerNode object. Nil objects are ignored.</p>
|
|
|
816
816
|
</div>
|
|
817
817
|
|
|
818
818
|
<div id="footer">
|
|
819
|
-
Generated on Mon Jul
|
|
819
|
+
Generated on Mon Jul 31 21:49:00 2017 by
|
|
820
820
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
821
821
|
0.9.9 (ruby-2.3.3).
|
|
822
822
|
</div>
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
</div>
|
|
108
108
|
|
|
109
109
|
<div id="footer">
|
|
110
|
-
Generated on Mon Jul
|
|
110
|
+
Generated on Mon Jul 31 21:48:57 2017 by
|
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
112
112
|
0.9.9 (ruby-2.3.3).
|
|
113
113
|
</div>
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
</div>
|
|
328
328
|
|
|
329
329
|
<div id="footer">
|
|
330
|
-
Generated on Mon Jul
|
|
330
|
+
Generated on Mon Jul 31 21:48:59 2017 by
|
|
331
331
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
332
332
|
0.9.9 (ruby-2.3.3).
|
|
333
333
|
</div>
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
</div>
|
|
263
263
|
|
|
264
264
|
<div id="footer">
|
|
265
|
-
Generated on Mon Jul
|
|
265
|
+
Generated on Mon Jul 31 21:48:57 2017 by
|
|
266
266
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
267
267
|
0.9.9 (ruby-2.3.3).
|
|
268
268
|
</div>
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
</div>
|
|
355
355
|
|
|
356
356
|
<div id="footer">
|
|
357
|
-
Generated on Mon Jul
|
|
357
|
+
Generated on Mon Jul 31 21:48:59 2017 by
|
|
358
358
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
359
359
|
0.9.9 (ruby-2.3.3).
|
|
360
360
|
</div>
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
</div>
|
|
256
256
|
|
|
257
257
|
<div id="footer">
|
|
258
|
-
Generated on Mon Jul
|
|
258
|
+
Generated on Mon Jul 31 21:48:59 2017 by
|
|
259
259
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
260
260
|
0.9.9 (ruby-2.3.3).
|
|
261
261
|
</div>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
<dl>
|
|
102
102
|
<dt>Defined in:</dt>
|
|
103
|
-
<dd>lib/rrtf/node.rb</dd>
|
|
103
|
+
<dd>lib/rrtf/node/document.rb</dd>
|
|
104
104
|
</dl>
|
|
105
105
|
|
|
106
106
|
</div>
|
|
@@ -128,6 +128,18 @@ document font, colour and information tables.</p>
|
|
|
128
128
|
|
|
129
129
|
<div class='inline'>
|
|
130
130
|
<p>Peter Wood</p>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
</li>
|
|
134
|
+
|
|
135
|
+
<li>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<div class='inline'>
|
|
142
|
+
<p>Wesley Hileman</p>
|
|
131
143
|
</div>
|
|
132
144
|
|
|
133
145
|
</li>
|
|
@@ -437,7 +449,7 @@ document font, colour and information tables.</p>
|
|
|
437
449
|
<li class="public ">
|
|
438
450
|
<span class="summary_signature">
|
|
439
451
|
|
|
440
|
-
<a href="#
|
|
452
|
+
<a href="#properties-instance_method" title="#properties (instance method)">#<strong>properties</strong> ⇒ Object </a>
|
|
441
453
|
|
|
442
454
|
|
|
443
455
|
|
|
@@ -899,7 +911,7 @@ class to disallow setting a parent on a Document object.</p>
|
|
|
899
911
|
|
|
900
912
|
|
|
901
913
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
|
|
902
|
-
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (method)">#<<</a></span>, <span class='object_link'><a href="CommandNode.html#apply-instance_method" title="RRTF::CommandNode#apply (method)">#apply</a></span>, <span class='object_link'><a href="CommandNode.html#
|
|
914
|
+
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (method)">#<<</a></span>, <span class='object_link'><a href="CommandNode.html#apply-instance_method" title="RRTF::CommandNode#apply (method)">#apply</a></span>, <span class='object_link'><a href="CommandNode.html#footnote-instance_method" title="RRTF::CommandNode#footnote (method)">#footnote</a></span>, <span class='object_link'><a href="CommandNode.html#geometry-instance_method" title="RRTF::CommandNode#geometry (method)">#geometry</a></span>, <span class='object_link'><a href="CommandNode.html#image-instance_method" title="RRTF::CommandNode#image (method)">#image</a></span>, <span class='object_link'><a href="CommandNode.html#line_break-instance_method" title="RRTF::CommandNode#line_break (method)">#line_break</a></span>, <span class='object_link'><a href="CommandNode.html#link-instance_method" title="RRTF::CommandNode#link (method)">#link</a></span>, <span class='object_link'><a href="CommandNode.html#list-instance_method" title="RRTF::CommandNode#list (method)">#list</a></span>, <span class='object_link'><a href="CommandNode.html#paragraph-instance_method" title="RRTF::CommandNode#paragraph (method)">#paragraph</a></span>, <span class='object_link'><a href="CommandNode.html#table-instance_method" title="RRTF::CommandNode#table (method)">#table</a></span></p>
|
|
903
915
|
|
|
904
916
|
|
|
905
917
|
|
|
@@ -1051,17 +1063,17 @@ noqfpromote control word before stylesheet definition).</p>
|
|
|
1051
1063
|
</li>
|
|
1052
1064
|
|
|
1053
1065
|
<li>
|
|
1054
|
-
<span class="name">"
|
|
1055
|
-
<span class="type">(<tt><span class='object_link'><a href="
|
|
1066
|
+
<span class="name">"document_properties"</span>
|
|
1067
|
+
<span class="type">(<tt><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></tt>)</span>
|
|
1056
1068
|
<span class="default">
|
|
1057
1069
|
|
|
1058
1070
|
— default:
|
|
1059
|
-
<tt>
|
|
1071
|
+
<tt>DocumentProperties.new</tt>
|
|
1060
1072
|
|
|
1061
1073
|
</span>
|
|
1062
1074
|
|
|
1063
1075
|
— <div class='inline'>
|
|
1064
|
-
<p>a
|
|
1076
|
+
<p>a DocumentProperties object OR options hash encapsulating the properties to
|
|
1065
1077
|
be applied to the document.</p>
|
|
1066
1078
|
</div>
|
|
1067
1079
|
|
|
@@ -1091,7 +1103,7 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1091
1103
|
<p class="tag_title">See Also:</p>
|
|
1092
1104
|
<ul class="see">
|
|
1093
1105
|
|
|
1094
|
-
<li><span class='object_link'><a href="
|
|
1106
|
+
<li><span class='object_link'><a href="DocumentProperties.html#initialize-instance_method" title="RRTF::DocumentProperties#initialize (method)">DocumentProperties#initialize for available document properties.</a></span></li>
|
|
1095
1107
|
|
|
1096
1108
|
<li><span class='object_link'><a href="Stylesheet.html#add_style-instance_method" title="RRTF::Stylesheet#add_style (method)">Stylesheet#initialize for available stylesheet options.</a></span></li>
|
|
1097
1109
|
|
|
@@ -1103,93 +1115,93 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1103
1115
|
<pre class="lines">
|
|
1104
1116
|
|
|
1105
1117
|
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1118
|
+
86
|
|
1119
|
+
87
|
|
1120
|
+
88
|
|
1121
|
+
89
|
|
1122
|
+
90
|
|
1123
|
+
91
|
|
1124
|
+
92
|
|
1125
|
+
93
|
|
1126
|
+
94
|
|
1127
|
+
95
|
|
1128
|
+
96
|
|
1129
|
+
97
|
|
1130
|
+
98
|
|
1131
|
+
99
|
|
1132
|
+
100
|
|
1133
|
+
101
|
|
1134
|
+
102
|
|
1135
|
+
103
|
|
1136
|
+
104
|
|
1137
|
+
105
|
|
1138
|
+
106
|
|
1139
|
+
107
|
|
1140
|
+
108
|
|
1141
|
+
109
|
|
1142
|
+
110
|
|
1143
|
+
111
|
|
1144
|
+
112
|
|
1145
|
+
113
|
|
1146
|
+
114
|
|
1147
|
+
115
|
|
1148
|
+
116
|
|
1149
|
+
117
|
|
1150
|
+
118
|
|
1151
|
+
119
|
|
1152
|
+
120
|
|
1153
|
+
121
|
|
1154
|
+
122
|
|
1155
|
+
123
|
|
1156
|
+
124
|
|
1157
|
+
125
|
|
1158
|
+
126
|
|
1159
|
+
127
|
|
1160
|
+
128
|
|
1161
|
+
129
|
|
1162
|
+
130
|
|
1163
|
+
131
|
|
1164
|
+
132
|
|
1165
|
+
133
|
|
1166
|
+
134
|
|
1167
|
+
135
|
|
1168
|
+
136
|
|
1169
|
+
137
|
|
1170
|
+
138
|
|
1171
|
+
139
|
|
1172
|
+
140
|
|
1173
|
+
141
|
|
1174
|
+
142
|
|
1175
|
+
143
|
|
1176
|
+
144
|
|
1177
|
+
145
|
|
1178
|
+
146
|
|
1179
|
+
147
|
|
1180
|
+
148
|
|
1181
|
+
149
|
|
1182
|
+
150
|
|
1183
|
+
151
|
|
1184
|
+
152
|
|
1185
|
+
153
|
|
1186
|
+
154
|
|
1187
|
+
155
|
|
1188
|
+
156
|
|
1189
|
+
157
|
|
1190
|
+
158
|
|
1191
|
+
159
|
|
1192
|
+
160
|
|
1193
|
+
161
|
|
1194
|
+
162
|
|
1195
|
+
163</pre>
|
|
1184
1196
|
</td>
|
|
1185
1197
|
<td>
|
|
1186
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1198
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 86</span>
|
|
1187
1199
|
|
|
1188
1200
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
1189
1201
|
<span class='comment'># load default options
|
|
1190
1202
|
</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1191
1203
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default_font</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>SWISS:Helvetica</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
1192
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>
|
|
1204
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>document_properties</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DocumentProperties.html#initialize-instance_method" title="RRTF::DocumentProperties#initialize (method)">new</a></span></span><span class='comma'>,</span>
|
|
1193
1205
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>character_set</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ANSI</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
1194
1206
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>language</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ENGLISH_US</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
1195
1207
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>suppress_system_styles</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='kw'>false</span><span class='comma'>,</span>
|
|
@@ -1208,12 +1220,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1208
1220
|
<span class='const'><span class='object_link'><a href="RTFError.html" title="RRTF::RTFError (class)">RTFError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fire'><span class='object_link'><a href="RTFError.html#fire-class_method" title="RRTF::RTFError.fire (method)">fire</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unreconized font format </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_font'>font</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
1209
1221
|
<span class='kw'>end</span> <span class='comment'># case
|
|
1210
1222
|
</span>
|
|
1211
|
-
<span class='comment'># parse document
|
|
1212
|
-
</span> <span class='id identifier
|
|
1213
|
-
<span class='kw'>case</span> <span class='id identifier
|
|
1214
|
-
<span class='kw'>when</span> <span class='const'><span class='object_link'><a href="
|
|
1223
|
+
<span class='comment'># parse document properties
|
|
1224
|
+
</span> <span class='id identifier rubyid_properties'>properties</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>document_properties</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
1225
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_properties'>properties</span>
|
|
1226
|
+
<span class='kw'>when</span> <span class='const'><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></span>
|
|
1215
1227
|
<span class='kw'>when</span> <span class='const'>Hash</span>
|
|
1216
|
-
<span class='id identifier
|
|
1228
|
+
<span class='id identifier rubyid_properties'>properties</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DocumentProperties.html#initialize-instance_method" title="RRTF::DocumentProperties#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_properties'>properties</span><span class='rparen'>)</span>
|
|
1217
1229
|
<span class='kw'>else</span>
|
|
1218
1230
|
<span class='const'><span class='object_link'><a href="RTFError.html" title="RRTF::RTFError (class)">RTFError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fire'><span class='object_link'><a href="RTFError.html#fire-class_method" title="RRTF::RTFError.fire (method)">fire</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unreconized document style format </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_font'>font</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
1219
1231
|
<span class='kw'>end</span> <span class='comment'># case
|
|
@@ -1239,7 +1251,7 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1239
1251
|
<span class='ivar'>@information</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Information.html" title="RRTF::Information (class)">Information</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Information.html#initialize-instance_method" title="RRTF::Information#initialize (method)">new</a></span></span>
|
|
1240
1252
|
<span class='ivar'>@character_set</span> <span class='op'>=</span> <span class='id identifier rubyid_cs_val'>cs_val</span>
|
|
1241
1253
|
<span class='ivar'>@language</span> <span class='op'>=</span> <span class='id identifier rubyid_ls_val'>ls_val</span>
|
|
1242
|
-
<span class='ivar'>@
|
|
1254
|
+
<span class='ivar'>@properties</span> <span class='op'>=</span> <span class='id identifier rubyid_properties'>properties</span>
|
|
1243
1255
|
<span class='ivar'>@headers</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span>
|
|
1244
1256
|
<span class='ivar'>@footers</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span>
|
|
1245
1257
|
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
@@ -1301,12 +1313,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1301
1313
|
<pre class="lines">
|
|
1302
1314
|
|
|
1303
1315
|
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1316
|
+
67
|
|
1317
|
+
68
|
|
1318
|
+
69</pre>
|
|
1307
1319
|
</td>
|
|
1308
1320
|
<td>
|
|
1309
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1321
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1310
1322
|
|
|
1311
1323
|
<span class='kw'>def</span> <span class='id identifier rubyid_character_set'>character_set</span>
|
|
1312
1324
|
<span class='ivar'>@character_set</span>
|
|
@@ -1344,12 +1356,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1344
1356
|
<pre class="lines">
|
|
1345
1357
|
|
|
1346
1358
|
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1359
|
+
67
|
|
1360
|
+
68
|
|
1361
|
+
69</pre>
|
|
1350
1362
|
</td>
|
|
1351
1363
|
<td>
|
|
1352
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1364
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1353
1365
|
|
|
1354
1366
|
<span class='kw'>def</span> <span class='id identifier rubyid_colours'>colours</span>
|
|
1355
1367
|
<span class='ivar'>@colours</span>
|
|
@@ -1387,12 +1399,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1387
1399
|
<pre class="lines">
|
|
1388
1400
|
|
|
1389
1401
|
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1402
|
+
67
|
|
1403
|
+
68
|
|
1404
|
+
69</pre>
|
|
1393
1405
|
</td>
|
|
1394
1406
|
<td>
|
|
1395
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1407
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1396
1408
|
|
|
1397
1409
|
<span class='kw'>def</span> <span class='id identifier rubyid_fonts'>fonts</span>
|
|
1398
1410
|
<span class='ivar'>@fonts</span>
|
|
@@ -1430,12 +1442,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1430
1442
|
<pre class="lines">
|
|
1431
1443
|
|
|
1432
1444
|
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1445
|
+
67
|
|
1446
|
+
68
|
|
1447
|
+
69</pre>
|
|
1436
1448
|
</td>
|
|
1437
1449
|
<td>
|
|
1438
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1450
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1439
1451
|
|
|
1440
1452
|
<span class='kw'>def</span> <span class='id identifier rubyid_information'>information</span>
|
|
1441
1453
|
<span class='ivar'>@information</span>
|
|
@@ -1473,12 +1485,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1473
1485
|
<pre class="lines">
|
|
1474
1486
|
|
|
1475
1487
|
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1488
|
+
67
|
|
1489
|
+
68
|
|
1490
|
+
69</pre>
|
|
1479
1491
|
</td>
|
|
1480
1492
|
<td>
|
|
1481
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1493
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1482
1494
|
|
|
1483
1495
|
<span class='kw'>def</span> <span class='id identifier rubyid_language'>language</span>
|
|
1484
1496
|
<span class='ivar'>@language</span>
|
|
@@ -1516,12 +1528,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1516
1528
|
<pre class="lines">
|
|
1517
1529
|
|
|
1518
1530
|
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1531
|
+
67
|
|
1532
|
+
68
|
|
1533
|
+
69</pre>
|
|
1522
1534
|
</td>
|
|
1523
1535
|
<td>
|
|
1524
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1536
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1525
1537
|
|
|
1526
1538
|
<span class='kw'>def</span> <span class='id identifier rubyid_lists'>lists</span>
|
|
1527
1539
|
<span class='ivar'>@lists</span>
|
|
@@ -1534,9 +1546,9 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1534
1546
|
|
|
1535
1547
|
<span id=""></span>
|
|
1536
1548
|
<div class="method_details ">
|
|
1537
|
-
<h3 class="signature " id="
|
|
1549
|
+
<h3 class="signature " id="properties-instance_method">
|
|
1538
1550
|
|
|
1539
|
-
#<strong>
|
|
1551
|
+
#<strong>properties</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
1540
1552
|
|
|
1541
1553
|
|
|
1542
1554
|
|
|
@@ -1559,15 +1571,15 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1559
1571
|
<pre class="lines">
|
|
1560
1572
|
|
|
1561
1573
|
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1574
|
+
67
|
|
1575
|
+
68
|
|
1576
|
+
69</pre>
|
|
1565
1577
|
</td>
|
|
1566
1578
|
<td>
|
|
1567
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1579
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1568
1580
|
|
|
1569
|
-
<span class='kw'>def</span> <span class='id identifier
|
|
1570
|
-
<span class='ivar'>@
|
|
1581
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_properties'>properties</span>
|
|
1582
|
+
<span class='ivar'>@properties</span>
|
|
1571
1583
|
<span class='kw'>end</span></pre>
|
|
1572
1584
|
</td>
|
|
1573
1585
|
</tr>
|
|
@@ -1602,12 +1614,12 @@ with which to use as or construct the stylesheet for the document.</p>
|
|
|
1602
1614
|
<pre class="lines">
|
|
1603
1615
|
|
|
1604
1616
|
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1617
|
+
67
|
|
1618
|
+
68
|
|
1619
|
+
69</pre>
|
|
1608
1620
|
</td>
|
|
1609
1621
|
<td>
|
|
1610
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1622
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
|
|
1611
1623
|
|
|
1612
1624
|
<span class='kw'>def</span> <span class='id identifier rubyid_stylesheet'>stylesheet</span>
|
|
1613
1625
|
<span class='ivar'>@stylesheet</span>
|
|
@@ -1651,12 +1663,12 @@ typical Document object page.</p>
|
|
|
1651
1663
|
<pre class="lines">
|
|
1652
1664
|
|
|
1653
1665
|
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1666
|
+
298
|
|
1667
|
+
299
|
|
1668
|
+
300</pre>
|
|
1657
1669
|
</td>
|
|
1658
1670
|
<td>
|
|
1659
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1671
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 298</span>
|
|
1660
1672
|
|
|
1661
1673
|
<span class='kw'>def</span> <span class='id identifier rubyid_body_height'>body_height</span>
|
|
1662
1674
|
<span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_body_height'>body_height</span>
|
|
@@ -1693,12 +1705,12 @@ typical Document object page.</p>
|
|
|
1693
1705
|
<pre class="lines">
|
|
1694
1706
|
|
|
1695
1707
|
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1708
|
+
292
|
|
1709
|
+
293
|
|
1710
|
+
294</pre>
|
|
1699
1711
|
</td>
|
|
1700
1712
|
<td>
|
|
1701
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1713
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 292</span>
|
|
1702
1714
|
|
|
1703
1715
|
<span class='kw'>def</span> <span class='id identifier rubyid_body_width'>body_width</span>
|
|
1704
1716
|
<span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_body_width'>body_width</span>
|
|
@@ -1734,12 +1746,12 @@ typical Document object page.</p>
|
|
|
1734
1746
|
<pre class="lines">
|
|
1735
1747
|
|
|
1736
1748
|
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1749
|
+
173
|
|
1750
|
+
174
|
|
1751
|
+
175</pre>
|
|
1740
1752
|
</td>
|
|
1741
1753
|
<td>
|
|
1742
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1754
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 173</span>
|
|
1743
1755
|
|
|
1744
1756
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_font'>default_font</span>
|
|
1745
1757
|
<span class='ivar'>@fonts</span><span class='lbracket'>[</span><span class='ivar'>@default_font</span><span class='rbracket'>]</span>
|
|
@@ -1781,13 +1793,13 @@ typical Document object page.</p>
|
|
|
1781
1793
|
<pre class="lines">
|
|
1782
1794
|
|
|
1783
1795
|
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1796
|
+
261
|
|
1797
|
+
262
|
|
1798
|
+
263
|
|
1799
|
+
264</pre>
|
|
1788
1800
|
</td>
|
|
1789
1801
|
<td>
|
|
1790
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1802
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 261</span>
|
|
1791
1803
|
|
|
1792
1804
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_font='>default_font=</span><span class='lparen'>(</span><span class='id identifier rubyid_font'>font</span><span class='rparen'>)</span>
|
|
1793
1805
|
<span class='ivar'>@fonts</span> <span class='op'><<</span> <span class='id identifier rubyid_font'>font</span>
|
|
@@ -1831,20 +1843,20 @@ FooterNode::UNIVERSAL.</p>
|
|
|
1831
1843
|
<pre class="lines">
|
|
1832
1844
|
|
|
1833
1845
|
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1846
|
+
239
|
|
1847
|
+
240
|
|
1848
|
+
241
|
|
1849
|
+
242
|
|
1850
|
+
243
|
|
1851
|
+
244
|
|
1852
|
+
245
|
|
1853
|
+
246
|
|
1854
|
+
247
|
|
1855
|
+
248
|
|
1856
|
+
249</pre>
|
|
1845
1857
|
</td>
|
|
1846
1858
|
<td>
|
|
1847
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1859
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 239</span>
|
|
1848
1860
|
|
|
1849
1861
|
<span class='kw'>def</span> <span class='id identifier rubyid_footer'>footer</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='const'>FooterNode</span><span class='op'>::</span><span class='const'>UNIVERSAL</span><span class='rparen'>)</span>
|
|
1850
1862
|
<span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
@@ -1898,20 +1910,20 @@ overwritten.</p>
|
|
|
1898
1910
|
<pre class="lines">
|
|
1899
1911
|
|
|
1900
1912
|
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1913
|
+
205
|
|
1914
|
+
206
|
|
1915
|
+
207
|
|
1916
|
+
208
|
|
1917
|
+
209
|
|
1918
|
+
210
|
|
1919
|
+
211
|
|
1920
|
+
212
|
|
1921
|
+
213
|
|
1922
|
+
214
|
|
1923
|
+
215</pre>
|
|
1912
1924
|
</td>
|
|
1913
1925
|
<td>
|
|
1914
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1926
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 205</span>
|
|
1915
1927
|
|
|
1916
1928
|
<span class='kw'>def</span> <span class='id identifier rubyid_footer='>footer=</span><span class='lparen'>(</span><span class='id identifier rubyid_footer'>footer</span><span class='rparen'>)</span>
|
|
1917
1929
|
<span class='kw'>if</span> <span class='id identifier rubyid_footer'>footer</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='const'><span class='object_link'><a href="FooterNode.html" title="RRTF::FooterNode (class)">FooterNode</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FooterNode.html#UNIVERSAL-constant" title="RRTF::FooterNode::UNIVERSAL (constant)">UNIVERSAL</a></span></span>
|
|
@@ -1956,13 +1968,13 @@ that is unique within the document.</p>
|
|
|
1956
1968
|
<pre class="lines">
|
|
1957
1969
|
|
|
1958
1970
|
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1971
|
+
167
|
|
1972
|
+
168
|
|
1973
|
+
169
|
|
1974
|
+
170</pre>
|
|
1963
1975
|
</td>
|
|
1964
1976
|
<td>
|
|
1965
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1977
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 167</span>
|
|
1966
1978
|
|
|
1967
1979
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_id'>get_id</span>
|
|
1968
1980
|
<span class='ivar'>@id</span> <span class='op'>+=</span> <span class='int'>1</span>
|
|
@@ -2006,20 +2018,20 @@ HeaderNode::UNIVERSAL.</p>
|
|
|
2006
2018
|
<pre class="lines">
|
|
2007
2019
|
|
|
2008
2020
|
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2021
|
+
222
|
|
2022
|
+
223
|
|
2023
|
+
224
|
|
2024
|
+
225
|
|
2025
|
+
226
|
|
2026
|
+
227
|
|
2027
|
+
228
|
|
2028
|
+
229
|
|
2029
|
+
230
|
|
2030
|
+
231
|
|
2031
|
+
232</pre>
|
|
2020
2032
|
</td>
|
|
2021
2033
|
<td>
|
|
2022
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
2034
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 222</span>
|
|
2023
2035
|
|
|
2024
2036
|
<span class='kw'>def</span> <span class='id identifier rubyid_header'>header</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='const'>HeaderNode</span><span class='op'>::</span><span class='const'>UNIVERSAL</span><span class='rparen'>)</span>
|
|
2025
2037
|
<span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
@@ -2073,20 +2085,20 @@ overwritten.</p>
|
|
|
2073
2085
|
<pre class="lines">
|
|
2074
2086
|
|
|
2075
2087
|
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2088
|
+
185
|
|
2089
|
+
186
|
|
2090
|
+
187
|
|
2091
|
+
188
|
|
2092
|
+
189
|
|
2093
|
+
190
|
|
2094
|
+
191
|
|
2095
|
+
192
|
|
2096
|
+
193
|
|
2097
|
+
194
|
|
2098
|
+
195</pre>
|
|
2087
2099
|
</td>
|
|
2088
2100
|
<td>
|
|
2089
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
2101
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 185</span>
|
|
2090
2102
|
|
|
2091
2103
|
<span class='kw'>def</span> <span class='id identifier rubyid_header='>header=</span><span class='lparen'>(</span><span class='id identifier rubyid_header'>header</span><span class='rparen'>)</span>
|
|
2092
2104
|
<span class='kw'>if</span> <span class='id identifier rubyid_header'>header</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='const'><span class='object_link'><a href="HeaderNode.html" title="RRTF::HeaderNode (class)">HeaderNode</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="HeaderNode.html#UNIVERSAL-constant" title="RRTF::HeaderNode::UNIVERSAL (constant)">UNIVERSAL</a></span></span>
|
|
@@ -2131,12 +2143,12 @@ styles</p>
|
|
|
2131
2143
|
<pre class="lines">
|
|
2132
2144
|
|
|
2133
2145
|
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2146
|
+
253
|
|
2147
|
+
254
|
|
2148
|
+
255</pre>
|
|
2137
2149
|
</td>
|
|
2138
2150
|
<td>
|
|
2139
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
2151
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 253</span>
|
|
2140
2152
|
|
|
2141
2153
|
<span class='kw'>def</span> <span class='id identifier rubyid_load_stylesheet'>load_stylesheet</span><span class='lparen'>(</span><span class='id identifier rubyid_hashmap_array'>hashmap_array</span><span class='rparen'>)</span>
|
|
2142
2154
|
<span class='ivar'>@stylesheet</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Stylesheet.html" title="RRTF::Stylesheet (class)">Stylesheet</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Stylesheet.html#initialize-instance_method" title="RRTF::Stylesheet#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_hashmap_array'>hashmap_array</span><span class='rparen'>)</span>
|
|
@@ -2172,13 +2184,13 @@ styles</p>
|
|
|
2172
2184
|
<pre class="lines">
|
|
2173
2185
|
|
|
2174
2186
|
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2187
|
+
285
|
|
2188
|
+
286
|
|
2189
|
+
287
|
|
2190
|
+
288</pre>
|
|
2179
2191
|
</td>
|
|
2180
2192
|
<td>
|
|
2181
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
2193
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 285</span>
|
|
2182
2194
|
|
|
2183
2195
|
<span class='kw'>def</span> <span class='id identifier rubyid_page_break'>page_break</span>
|
|
2184
2196
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="CommandNode.html#initialize-instance_method" title="RRTF::CommandNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\page</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
@@ -2216,12 +2228,12 @@ with a Document object.</p>
|
|
|
2216
2228
|
<pre class="lines">
|
|
2217
2229
|
|
|
2218
2230
|
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2231
|
+
268
|
|
2232
|
+
269
|
|
2233
|
+
270</pre>
|
|
2222
2234
|
</td>
|
|
2223
2235
|
<td>
|
|
2224
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
2236
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 268</span>
|
|
2225
2237
|
|
|
2226
2238
|
<span class='kw'>def</span> <span class='id identifier rubyid_paper'>paper</span>
|
|
2227
2239
|
<span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_paper'>paper</span>
|
|
@@ -2270,12 +2282,12 @@ class to disallow setting a parent on a Document object.</p>
|
|
|
2270
2282
|
<pre class="lines">
|
|
2271
2283
|
|
|
2272
2284
|
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2285
|
+
280
|
|
2286
|
+
281
|
|
2287
|
+
282</pre>
|
|
2276
2288
|
</td>
|
|
2277
2289
|
<td>
|
|
2278
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
2290
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 280</span>
|
|
2279
2291
|
|
|
2280
2292
|
<span class='kw'>def</span> <span class='id identifier rubyid_parent='>parent=</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
|
|
2281
2293
|
<span class='const'><span class='object_link'><a href="RTFError.html" title="RRTF::RTFError (class)">RTFError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fire'><span class='object_link'><a href="RTFError.html#fire-class_method" title="RRTF::RTFError.fire (method)">fire</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Document objects may not have a parent.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
@@ -2311,44 +2323,44 @@ class to disallow setting a parent on a Document object.</p>
|
|
|
2311
2323
|
<pre class="lines">
|
|
2312
2324
|
|
|
2313
2325
|
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2326
|
+
303
|
|
2327
|
+
304
|
|
2328
|
+
305
|
|
2329
|
+
306
|
|
2330
|
+
307
|
|
2331
|
+
308
|
|
2332
|
+
309
|
|
2333
|
+
310
|
|
2334
|
+
311
|
|
2335
|
+
312
|
|
2336
|
+
313
|
|
2337
|
+
314
|
|
2338
|
+
315
|
|
2339
|
+
316
|
|
2340
|
+
317
|
|
2341
|
+
318
|
|
2342
|
+
319
|
|
2343
|
+
320
|
|
2344
|
+
321
|
|
2345
|
+
322
|
|
2346
|
+
323
|
|
2347
|
+
324
|
|
2348
|
+
325
|
|
2349
|
+
326
|
|
2350
|
+
327
|
|
2351
|
+
328
|
|
2352
|
+
329
|
|
2353
|
+
330
|
|
2354
|
+
331
|
|
2355
|
+
332
|
|
2356
|
+
333
|
|
2357
|
+
334
|
|
2358
|
+
335
|
|
2359
|
+
336
|
|
2360
|
+
337</pre>
|
|
2349
2361
|
</td>
|
|
2350
2362
|
<td>
|
|
2351
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
2363
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 303</span>
|
|
2352
2364
|
|
|
2353
2365
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span>
|
|
2354
2366
|
<span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='const'>StringIO</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
@@ -2379,7 +2391,7 @@ class to disallow setting a parent on a Document object.</p>
|
|
|
2379
2391
|
<span class='id identifier rubyid_text'>text</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='ivar'>@footers</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
2380
2392
|
<span class='kw'>end</span>
|
|
2381
2393
|
<span class='kw'>end</span>
|
|
2382
|
-
<span class='id identifier rubyid_text'>text</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='ivar'>@
|
|
2394
|
+
<span class='id identifier rubyid_text'>text</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='ivar'>@properties</span><span class='period'>.</span><span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@properties</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
2383
2395
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_entry'>entry</span><span class='op'>|</span> <span class='id identifier rubyid_text'>text</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_entry'>entry</span><span class='period'>.</span><span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rbrace'>}</span>
|
|
2384
2396
|
<span class='id identifier rubyid_text'>text</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n}</span><span class='tstring_end'>"</span></span>
|
|
2385
2397
|
|
|
@@ -2395,7 +2407,7 @@ class to disallow setting a parent on a Document object.</p>
|
|
|
2395
2407
|
</div>
|
|
2396
2408
|
|
|
2397
2409
|
<div id="footer">
|
|
2398
|
-
Generated on Mon Jul
|
|
2410
|
+
Generated on Mon Jul 31 21:48:59 2017 by
|
|
2399
2411
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2400
2412
|
0.9.9 (ruby-2.3.3).
|
|
2401
2413
|
</div>
|