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
|
@@ -1187,8 +1187,8 @@ string format.</p>
|
|
|
1187
1187
|
</span>
|
|
1188
1188
|
|
|
1189
1189
|
— <div class='inline'>
|
|
1190
|
-
<p>colour to apply to the background
|
|
1191
|
-
|
|
1190
|
+
<p>colour to apply to the background; see <span class='object_link'><a href="Colour.html#from_string-class_method" title="RRTF::Colour.from_string (method)">Colour.from_string</a></span> for string
|
|
1191
|
+
format.</p>
|
|
1192
1192
|
</div>
|
|
1193
1193
|
|
|
1194
1194
|
</li>
|
|
@@ -1210,6 +1210,22 @@ format.</p>
|
|
|
1210
1210
|
|
|
1211
1211
|
</li>
|
|
1212
1212
|
|
|
1213
|
+
<li>
|
|
1214
|
+
<span class="name">"highlight_color"</span>
|
|
1215
|
+
<span class="type">(<tt>String</tt>, <tt><span class='object_link'><a href="Colour.html" title="RRTF::Colour (class)">Colour</a></span></tt>)</span>
|
|
1216
|
+
<span class="default">
|
|
1217
|
+
|
|
1218
|
+
— default:
|
|
1219
|
+
<tt>nil</tt>
|
|
1220
|
+
|
|
1221
|
+
</span>
|
|
1222
|
+
|
|
1223
|
+
— <div class='inline'>
|
|
1224
|
+
<p>colour with which to highlight text.</p>
|
|
1225
|
+
</div>
|
|
1226
|
+
|
|
1227
|
+
</li>
|
|
1228
|
+
|
|
1213
1229
|
<li>
|
|
1214
1230
|
<span class="name">"font"</span>
|
|
1215
1231
|
<span class="type">(<tt>String</tt>, <tt><span class='object_link'><a href="Font.html" title="RRTF::Font (class)">Font</a></span></tt>)</span>
|
|
@@ -1434,6 +1450,23 @@ page (i.e. without breaking).</p>
|
|
|
1434
1450
|
— <div class='inline'>
|
|
1435
1451
|
<p>the text flow direction in the paragraph ('LEFT_TO_RIGHT' or
|
|
1436
1452
|
'RIGHT_TO_LEFT').</p>
|
|
1453
|
+
</div>
|
|
1454
|
+
|
|
1455
|
+
</li>
|
|
1456
|
+
|
|
1457
|
+
<li>
|
|
1458
|
+
<span class="name">"border"</span>
|
|
1459
|
+
<span class="type">(<tt>Array<Hash, <span class='object_link'><a href="BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span>></tt>, <tt>Hash</tt>, <tt><span class='object_link'><a href="BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span></tt>)</span>
|
|
1460
|
+
<span class="default">
|
|
1461
|
+
|
|
1462
|
+
— default:
|
|
1463
|
+
<tt>nil</tt>
|
|
1464
|
+
|
|
1465
|
+
</span>
|
|
1466
|
+
|
|
1467
|
+
— <div class='inline'>
|
|
1468
|
+
<p>the border style(s) to be applied to the paragraph (see
|
|
1469
|
+
<span class='object_link'><a href="BorderFormatting.html#initialize_border_formatting-instance_method" title="RRTF::BorderFormatting#initialize_border_formatting (method)">BorderFormatting#initialize_border_formatting</a></span>).</p>
|
|
1437
1470
|
</div>
|
|
1438
1471
|
|
|
1439
1472
|
</li>
|
|
@@ -1758,7 +1791,7 @@ uglify is true).</p>
|
|
|
1758
1791
|
</div>
|
|
1759
1792
|
|
|
1760
1793
|
<div id="footer">
|
|
1761
|
-
Generated on Mon Jul
|
|
1794
|
+
Generated on Mon Jul 31 21:48:58 2017 by
|
|
1762
1795
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1763
1796
|
0.9.9 (ruby-2.3.3).
|
|
1764
1797
|
</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/table_cell_node.rb</dd>
|
|
104
104
|
</dl>
|
|
105
105
|
|
|
106
106
|
</div>
|
|
@@ -698,7 +698,7 @@ its use in table cells.</p>
|
|
|
698
698
|
|
|
699
699
|
|
|
700
700
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
|
|
701
|
-
<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#
|
|
701
|
+
<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></p>
|
|
702
702
|
|
|
703
703
|
|
|
704
704
|
|
|
@@ -783,25 +783,25 @@ Defaults to nil.</p>
|
|
|
783
783
|
<pre class="lines">
|
|
784
784
|
|
|
785
785
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
786
|
+
38
|
|
787
|
+
39
|
|
788
|
+
40
|
|
789
|
+
41
|
|
790
|
+
42
|
|
791
|
+
43
|
|
792
|
+
44
|
|
793
|
+
45
|
|
794
|
+
46
|
|
795
|
+
47
|
|
796
|
+
48
|
|
797
|
+
49
|
|
798
|
+
50
|
|
799
|
+
51
|
|
800
|
+
52
|
|
801
|
+
53</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/table_cell_node.rb', line 38</span>
|
|
805
805
|
|
|
806
806
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_row'>row</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='op'>=</span><span class='const'>DEFAULT_WIDTH</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_top'>top</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_right'>right</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span>
|
|
807
807
|
<span class='id identifier rubyid_bottom'>bottom</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_left'>left</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
|
@@ -857,12 +857,12 @@ Defaults to nil.</p>
|
|
|
857
857
|
<pre class="lines">
|
|
858
858
|
|
|
859
859
|
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
860
|
+
19
|
|
861
|
+
20
|
|
862
|
+
21</pre>
|
|
863
863
|
</td>
|
|
864
864
|
<td>
|
|
865
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
865
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 19</span>
|
|
866
866
|
|
|
867
867
|
<span class='kw'>def</span> <span class='id identifier rubyid_shading_colour'>shading_colour</span>
|
|
868
868
|
<span class='ivar'>@shading_colour</span>
|
|
@@ -900,12 +900,12 @@ Defaults to nil.</p>
|
|
|
900
900
|
<pre class="lines">
|
|
901
901
|
|
|
902
902
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
903
|
+
19
|
|
904
|
+
20
|
|
905
|
+
21</pre>
|
|
906
906
|
</td>
|
|
907
907
|
<td>
|
|
908
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
908
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 19</span>
|
|
909
909
|
|
|
910
910
|
<span class='kw'>def</span> <span class='id identifier rubyid_style'>style</span>
|
|
911
911
|
<span class='ivar'>@style</span>
|
|
@@ -943,12 +943,12 @@ Defaults to nil.</p>
|
|
|
943
943
|
<pre class="lines">
|
|
944
944
|
|
|
945
945
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
946
|
+
17
|
|
947
|
+
18
|
|
948
|
+
19</pre>
|
|
949
949
|
</td>
|
|
950
950
|
<td>
|
|
951
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
951
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 17</span>
|
|
952
952
|
|
|
953
953
|
<span class='kw'>def</span> <span class='id identifier rubyid_width'>width</span>
|
|
954
954
|
<span class='ivar'>@width</span>
|
|
@@ -999,17 +999,17 @@ border off.</p>
|
|
|
999
999
|
<pre class="lines">
|
|
1000
1000
|
|
|
1001
1001
|
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1002
|
+
78
|
|
1003
|
+
79
|
|
1004
|
+
80
|
|
1005
|
+
81
|
|
1006
|
+
82
|
|
1007
|
+
83
|
|
1008
|
+
84
|
|
1009
|
+
85</pre>
|
|
1010
1010
|
</td>
|
|
1011
1011
|
<td>
|
|
1012
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1012
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 78</span>
|
|
1013
1013
|
|
|
1014
1014
|
<span class='kw'>def</span> <span class='id identifier rubyid_border_width='>border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
|
|
1015
1015
|
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
|
|
@@ -1051,14 +1051,14 @@ values are inserted in top, right, bottom, left order.</p>
|
|
|
1051
1051
|
<pre class="lines">
|
|
1052
1052
|
|
|
1053
1053
|
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1054
|
+
156
|
|
1055
|
+
157
|
|
1056
|
+
158
|
|
1057
|
+
159
|
|
1058
|
+
160</pre>
|
|
1059
1059
|
</td>
|
|
1060
1060
|
<td>
|
|
1061
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1061
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 156</span>
|
|
1062
1062
|
|
|
1063
1063
|
<span class='kw'>def</span> <span class='id identifier rubyid_border_widths'>border_widths</span>
|
|
1064
1064
|
<span class='id identifier rubyid_widths'>widths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
|
@@ -1096,12 +1096,12 @@ values are inserted in top, right, bottom, left order.</p>
|
|
|
1096
1096
|
<pre class="lines">
|
|
1097
1097
|
|
|
1098
1098
|
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1099
|
+
173
|
|
1100
|
+
174
|
|
1101
|
+
175</pre>
|
|
1102
1102
|
</td>
|
|
1103
1103
|
<td>
|
|
1104
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1104
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 173</span>
|
|
1105
1105
|
|
|
1106
1106
|
<span class='kw'>def</span> <span class='id identifier rubyid_bottom_border_width'>bottom_border_width</span>
|
|
1107
1107
|
<span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#BOTTOM-constant" title="RRTF::TableCellNode::BOTTOM (constant)">BOTTOM</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#BOTTOM-constant" title="RRTF::TableCellNode::BOTTOM (constant)">BOTTOM</a></span></span><span class='rbracket'>]</span>
|
|
@@ -1144,17 +1144,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
|
|
|
1144
1144
|
<pre class="lines">
|
|
1145
1145
|
|
|
1146
1146
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1147
|
+
120
|
|
1148
|
+
121
|
|
1149
|
+
122
|
|
1150
|
+
123
|
|
1151
|
+
124
|
|
1152
|
+
125
|
|
1153
|
+
126
|
|
1154
|
+
127</pre>
|
|
1155
1155
|
</td>
|
|
1156
1156
|
<td>
|
|
1157
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1157
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 120</span>
|
|
1158
1158
|
|
|
1159
1159
|
<span class='kw'>def</span> <span class='id identifier rubyid_bottom_border_width='>bottom_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
|
|
1160
1160
|
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
|
|
@@ -1195,12 +1195,12 @@ Negative values are ignored and a value of 0 switches the border off.</p>
|
|
|
1195
1195
|
<pre class="lines">
|
|
1196
1196
|
|
|
1197
1197
|
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1198
|
+
178
|
|
1199
|
+
179
|
|
1200
|
+
180</pre>
|
|
1201
1201
|
</td>
|
|
1202
1202
|
<td>
|
|
1203
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1203
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 178</span>
|
|
1204
1204
|
|
|
1205
1205
|
<span class='kw'>def</span> <span class='id identifier rubyid_left_border_width'>left_border_width</span>
|
|
1206
1206
|
<span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#LEFT-constant" title="RRTF::TableCellNode::LEFT (constant)">LEFT</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#LEFT-constant" title="RRTF::TableCellNode::LEFT (constant)">LEFT</a></span></span><span class='rbracket'>]</span>
|
|
@@ -1243,17 +1243,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
|
|
|
1243
1243
|
<pre class="lines">
|
|
1244
1244
|
|
|
1245
1245
|
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1246
|
+
134
|
|
1247
|
+
135
|
|
1248
|
+
136
|
|
1249
|
+
137
|
|
1250
|
+
138
|
|
1251
|
+
139
|
|
1252
|
+
140
|
|
1253
|
+
141</pre>
|
|
1254
1254
|
</td>
|
|
1255
1255
|
<td>
|
|
1256
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1256
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 134</span>
|
|
1257
1257
|
|
|
1258
1258
|
<span class='kw'>def</span> <span class='id identifier rubyid_left_border_width='>left_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
|
|
1259
1259
|
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
|
|
@@ -1301,13 +1301,13 @@ class to forbid the creation of paragraphs.</p>
|
|
|
1301
1301
|
<pre class="lines">
|
|
1302
1302
|
|
|
1303
1303
|
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1304
|
+
187
|
|
1305
|
+
188
|
|
1306
|
+
189
|
|
1307
|
+
190</pre>
|
|
1308
1308
|
</td>
|
|
1309
1309
|
<td>
|
|
1310
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1310
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 187</span>
|
|
1311
1311
|
|
|
1312
1312
|
<span class='kw'>def</span> <span class='id identifier rubyid_paragraph'>paragraph</span><span class='lparen'>(</span><span class='id identifier rubyid_style'>style</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1313
1313
|
<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'>TableCellNode#paragraph() called. Table cells cannot </span><span class='tstring_end'>"</span></span>\
|
|
@@ -1351,12 +1351,12 @@ forbid the alteration of the cells parent.</p>
|
|
|
1351
1351
|
<pre class="lines">
|
|
1352
1352
|
|
|
1353
1353
|
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1354
|
+
197
|
|
1355
|
+
198
|
|
1356
|
+
199</pre>
|
|
1357
1357
|
</td>
|
|
1358
1358
|
<td>
|
|
1359
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1359
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 197</span>
|
|
1360
1360
|
|
|
1361
1361
|
<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>
|
|
1362
1362
|
<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'>Table cell nodes cannot have their parent changed.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
@@ -1392,12 +1392,12 @@ forbid the alteration of the cells parent.</p>
|
|
|
1392
1392
|
<pre class="lines">
|
|
1393
1393
|
|
|
1394
1394
|
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1395
|
+
168
|
|
1396
|
+
169
|
|
1397
|
+
170</pre>
|
|
1398
1398
|
</td>
|
|
1399
1399
|
<td>
|
|
1400
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1400
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 168</span>
|
|
1401
1401
|
|
|
1402
1402
|
<span class='kw'>def</span> <span class='id identifier rubyid_right_border_width'>right_border_width</span>
|
|
1403
1403
|
<span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#RIGHT-constant" title="RRTF::TableCellNode::RIGHT (constant)">RIGHT</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#RIGHT-constant" title="RRTF::TableCellNode::RIGHT (constant)">RIGHT</a></span></span><span class='rbracket'>]</span>
|
|
@@ -1440,17 +1440,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
|
|
|
1440
1440
|
<pre class="lines">
|
|
1441
1441
|
|
|
1442
1442
|
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1443
|
+
106
|
|
1444
|
+
107
|
|
1445
|
+
108
|
|
1446
|
+
109
|
|
1447
|
+
110
|
|
1448
|
+
111
|
|
1449
|
+
112
|
|
1450
|
+
113</pre>
|
|
1451
1451
|
</td>
|
|
1452
1452
|
<td>
|
|
1453
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1453
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 106</span>
|
|
1454
1454
|
|
|
1455
1455
|
<span class='kw'>def</span> <span class='id identifier rubyid_right_border_width='>right_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
|
|
1456
1456
|
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
|
|
@@ -1504,12 +1504,12 @@ its use in table cells.</p>
|
|
|
1504
1504
|
<pre class="lines">
|
|
1505
1505
|
|
|
1506
1506
|
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1507
|
+
209
|
|
1508
|
+
210
|
|
1509
|
+
211</pre>
|
|
1510
1510
|
</td>
|
|
1511
1511
|
<td>
|
|
1512
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1512
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 209</span>
|
|
1513
1513
|
|
|
1514
1514
|
<span class='kw'>def</span> <span class='id identifier rubyid_table'>table</span><span class='lparen'>(</span><span class='id identifier rubyid_rows'>rows</span><span class='comma'>,</span> <span class='id identifier rubyid_columns'>columns</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_widths'>widths</span><span class='rparen'>)</span>
|
|
1515
1515
|
<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'>TableCellNode#table() called. Nested tables not allowed.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
@@ -1545,27 +1545,27 @@ its use in table cells.</p>
|
|
|
1545
1545
|
<pre class="lines">
|
|
1546
1546
|
|
|
1547
1547
|
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1548
|
+
214
|
|
1549
|
+
215
|
|
1550
|
+
216
|
|
1551
|
+
217
|
|
1552
|
+
218
|
|
1553
|
+
219
|
|
1554
|
+
220
|
|
1555
|
+
221
|
|
1556
|
+
222
|
|
1557
|
+
223
|
|
1558
|
+
224
|
|
1559
|
+
225
|
|
1560
|
+
226
|
|
1561
|
+
227
|
|
1562
|
+
228
|
|
1563
|
+
229
|
|
1564
|
+
230
|
|
1565
|
+
231</pre>
|
|
1566
1566
|
</td>
|
|
1567
1567
|
<td>
|
|
1568
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1568
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 214</span>
|
|
1569
1569
|
|
|
1570
1570
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span>
|
|
1571
1571
|
<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>
|
|
@@ -1616,12 +1616,12 @@ its use in table cells.</p>
|
|
|
1616
1616
|
<pre class="lines">
|
|
1617
1617
|
|
|
1618
1618
|
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1619
|
+
163
|
|
1620
|
+
164
|
|
1621
|
+
165</pre>
|
|
1622
1622
|
</td>
|
|
1623
1623
|
<td>
|
|
1624
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1624
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 163</span>
|
|
1625
1625
|
|
|
1626
1626
|
<span class='kw'>def</span> <span class='id identifier rubyid_top_border_width'>top_border_width</span>
|
|
1627
1627
|
<span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#TOP-constant" title="RRTF::TableCellNode::TOP (constant)">TOP</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#TOP-constant" title="RRTF::TableCellNode::TOP (constant)">TOP</a></span></span><span class='rbracket'>]</span>
|
|
@@ -1664,17 +1664,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
|
|
|
1664
1664
|
<pre class="lines">
|
|
1665
1665
|
|
|
1666
1666
|
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1667
|
+
92
|
|
1668
|
+
93
|
|
1669
|
+
94
|
|
1670
|
+
95
|
|
1671
|
+
96
|
|
1672
|
+
97
|
|
1673
|
+
98
|
|
1674
|
+
99</pre>
|
|
1675
1675
|
</td>
|
|
1676
1676
|
<td>
|
|
1677
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
1677
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 92</span>
|
|
1678
1678
|
|
|
1679
1679
|
<span class='kw'>def</span> <span class='id identifier rubyid_top_border_width='>top_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
|
|
1680
1680
|
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
|
|
@@ -1694,7 +1694,7 @@ Negative values are ignored and a value of 0 switches the border off.</p>
|
|
|
1694
1694
|
</div>
|
|
1695
1695
|
|
|
1696
1696
|
<div id="footer">
|
|
1697
|
-
Generated on Mon Jul
|
|
1697
|
+
Generated on Mon Jul 31 21:49:01 2017 by
|
|
1698
1698
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1699
1699
|
0.9.9 (ruby-2.3.3).
|
|
1700
1700
|
</div>
|