rrtf 1.0.0 → 1.3.1

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.
Files changed (87) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +29 -0
  4. data/documentation/RRTF.html +5 -5
  5. data/documentation/RRTF/AnonymousStyle.html +2 -2
  6. data/documentation/RRTF/BorderFormatting.html +48 -48
  7. data/documentation/RRTF/BorderStyle.html +1 -1
  8. data/documentation/RRTF/CharacterFormatting.html +1 -1
  9. data/documentation/RRTF/CharacterStyle.html +1 -1
  10. data/documentation/RRTF/Colour.html +1 -1
  11. data/documentation/RRTF/ColourTable.html +1 -1
  12. data/documentation/RRTF/CommandNode.html +333 -93
  13. data/documentation/RRTF/ContainerNode.html +1 -1
  14. data/documentation/RRTF/Converters.html +1 -1
  15. data/documentation/RRTF/Converters/HTML.html +1 -1
  16. data/documentation/RRTF/Converters/HTML/Helpers.html +1 -1
  17. data/documentation/RRTF/Converters/HTML/Node.html +1 -1
  18. data/documentation/RRTF/Converters/HTML/NodeSet.html +1 -1
  19. data/documentation/RRTF/Document.html +2 -2
  20. data/documentation/RRTF/DocumentFormatting.html +48 -48
  21. data/documentation/RRTF/DocumentProperties.html +8 -3
  22. data/documentation/RRTF/Font.html +1 -1
  23. data/documentation/RRTF/FontTable.html +1 -1
  24. data/documentation/RRTF/FooterNode.html +2 -2
  25. data/documentation/RRTF/GeometryNode.html +2 -2
  26. data/documentation/RRTF/GeometryProperties.html +9 -9
  27. data/documentation/RRTF/HeaderNode.html +2 -2
  28. data/documentation/RRTF/ImageNode.html +64 -61
  29. data/documentation/RRTF/Information.html +1 -1
  30. data/documentation/RRTF/LinkNode.html +2 -2
  31. data/documentation/RRTF/ListLevel.html +1 -1
  32. data/documentation/RRTF/ListLevelNode.html +2 -2
  33. data/documentation/RRTF/ListMarker.html +1 -1
  34. data/documentation/RRTF/ListNode.html +2 -2
  35. data/documentation/RRTF/ListTable.html +1 -1
  36. data/documentation/RRTF/ListTemplate.html +1 -1
  37. data/documentation/RRTF/ListTextNode.html +2 -2
  38. data/documentation/RRTF/Node.html +1 -1
  39. data/documentation/RRTF/Page.html +1 -1
  40. data/documentation/RRTF/Page/Margin.html +1 -1
  41. data/documentation/RRTF/Page/Size.html +1 -1
  42. data/documentation/RRTF/PageFormatting.html +184 -195
  43. data/documentation/RRTF/ParagraphFormatting.html +75 -48
  44. data/documentation/RRTF/ParagraphNode.html +2 -2
  45. data/documentation/RRTF/ParagraphStyle.html +1 -1
  46. data/documentation/RRTF/PositionFormatting.html +48 -48
  47. data/documentation/RRTF/PositionStyle.html +1 -1
  48. data/documentation/RRTF/Properties.html +1 -1
  49. data/documentation/RRTF/RTFError.html +1 -1
  50. data/documentation/RRTF/SectionFormatting.html +750 -0
  51. data/documentation/RRTF/SectionNode.html +383 -0
  52. data/documentation/RRTF/SectionStyle.html +830 -0
  53. data/documentation/RRTF/ShadingFormatting.html +48 -48
  54. data/documentation/RRTF/ShadingStyle.html +1 -1
  55. data/documentation/RRTF/Style.html +2 -2
  56. data/documentation/RRTF/Stylesheet.html +1 -1
  57. data/documentation/RRTF/TabStyle.html +698 -0
  58. data/documentation/RRTF/TableCellNode.html +2 -2
  59. data/documentation/RRTF/TableNode.html +1 -1
  60. data/documentation/RRTF/TableRowNode.html +1 -1
  61. data/documentation/RRTF/TextNode.html +1 -1
  62. data/documentation/RRTF/Utilities.html +1 -1
  63. data/documentation/_index.html +33 -5
  64. data/documentation/class_list.html +1 -1
  65. data/documentation/file.README.html +32 -1
  66. data/documentation/index.html +32 -1
  67. data/documentation/method_list.html +499 -355
  68. data/documentation/top-level-namespace.html +1 -1
  69. data/examples/08.rtf +2 -2
  70. data/examples/09.rtf +9 -13
  71. data/examples/09_shapes.rb +2 -1
  72. data/examples/11.rtf +19 -0
  73. data/examples/11_sections.rb +11 -0
  74. data/examples/12.rtf +19 -0
  75. data/examples/12_tabs.rb +21 -0
  76. data/lib/rrtf/formatting.rb +155 -22
  77. data/lib/rrtf/node.rb +1 -0
  78. data/lib/rrtf/node/command_node.rb +38 -4
  79. data/lib/rrtf/node/image_node.rb +26 -32
  80. data/lib/rrtf/node/section_node.rb +21 -0
  81. data/lib/rrtf/properties/geometry_properties.rb +4 -4
  82. data/lib/rrtf/style.rb +2 -0
  83. data/lib/rrtf/style/section_style.rb +66 -0
  84. data/lib/rrtf/style/tab_style.rb +55 -0
  85. data/lib/rrtf/version.rb +1 -1
  86. data/rrtf.gemspec +4 -4
  87. metadata +30 -20
@@ -358,17 +358,17 @@ is included in another module or class.

358
358
  <pre class="lines">
359
359
 
360
360
 
361
- 709
362
- 710
363
- 711
364
- 712
365
- 713
366
- 714
367
- 715
368
- 716</pre>
361
+ 736
362
+ 737
363
+ 738
364
+ 739
365
+ 740
366
+ 741
367
+ 742
368
+ 743</pre>
369
369
  </td>
370
370
  <td>
371
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 709</span>
371
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 736</span>
372
372
 
373
373
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span>
374
374
  <span class='comment'># define accessors in base for position attributes
@@ -479,17 +479,17 @@ is included in another module or class.

479
479
  <pre class="lines">
480
480
 
481
481
 
482
- 722
483
- 723
484
- 724
485
- 725
486
- 726
487
- 727
488
- 728
489
- 729</pre>
482
+ 749
483
+ 750
484
+ 751
485
+ 752
486
+ 753
487
+ 754
488
+ 755
489
+ 756</pre>
490
490
  </td>
491
491
  <td>
492
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 722</span>
492
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 749</span>
493
493
 
494
494
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize_shading_formatting'>initialize_shading_formatting</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>
495
495
  <span class='comment'># load default attribute values
@@ -553,23 +553,23 @@ is included in another module or class.

553
553
  <pre class="lines">
554
554
 
555
555
 
556
- 733
557
- 734
558
- 735
559
- 736
560
- 737
561
- 738
562
- 739
563
- 740
564
- 741
565
- 742
566
- 743
567
- 744
568
- 745
569
- 746</pre>
556
+ 760
557
+ 761
558
+ 762
559
+ 763
560
+ 764
561
+ 765
562
+ 766
563
+ 767
564
+ 768
565
+ 769
566
+ 770
567
+ 771
568
+ 772
569
+ 773</pre>
570
570
  </td>
571
571
  <td>
572
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 733</span>
572
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 760</span>
573
573
 
574
574
  <span class='kw'>def</span> <span class='id identifier rubyid_set_shading_formatting_from_hashmap'>set_shading_formatting_from_hashmap</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
575
575
  <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
@@ -662,22 +662,22 @@ be found in the document's colour and font tables, respectively.

662
662
  <pre class="lines">
663
663
 
664
664
 
665
- 754
666
- 755
667
- 756
668
- 757
669
- 758
670
- 759
671
- 760
672
- 761
673
- 762
674
- 763
675
- 764
676
- 765
677
- 766</pre>
665
+ 781
666
+ 782
667
+ 783
668
+ 784
669
+ 785
670
+ 786
671
+ 787
672
+ 788
673
+ 789
674
+ 790
675
+ 791
676
+ 792
677
+ 793</pre>
678
678
  </td>
679
679
  <td>
680
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 754</span>
680
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 781</span>
681
681
 
682
682
  <span class='kw'>def</span> <span class='id identifier rubyid_shading_formatting_to_rtf'>shading_formatting_to_rtf</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
683
683
  <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>
@@ -702,7 +702,7 @@ be found in the document's colour and font tables, respectively.

702
702
  </div>
703
703
 
704
704
  <div id="footer">
705
- Generated on Mon Jul 31 21:48:57 2017 by
705
+ Generated on Wed Aug 2 23:05:15 2017 by
706
706
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
707
707
  0.9.9 (ruby-2.3.3).
708
708
  </div>
@@ -414,7 +414,7 @@ style object. Equivalent to
414
414
  </div>
415
415
 
416
416
  <div id="footer">
417
- Generated on Mon Jul 31 21:49:01 2017 by
417
+ Generated on Wed Aug 2 23:05:18 2017 by
418
418
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
419
419
  0.9.9 (ruby-2.3.3).
420
420
  </div>
@@ -164,7 +164,7 @@ character, table, & section styles).

164
164
 
165
165
  </div><div id="subclasses">
166
166
  <h2>Direct Known Subclasses</h2>
167
- <p class="children"><span class='object_link'><a href="CharacterStyle.html" title="RRTF::CharacterStyle (class)">CharacterStyle</a></span>, <span class='object_link'><a href="ParagraphStyle.html" title="RRTF::ParagraphStyle (class)">ParagraphStyle</a></span></p>
167
+ <p class="children"><span class='object_link'><a href="CharacterStyle.html" title="RRTF::CharacterStyle (class)">CharacterStyle</a></span>, <span class='object_link'><a href="ParagraphStyle.html" title="RRTF::ParagraphStyle (class)">ParagraphStyle</a></span>, <span class='object_link'><a href="SectionStyle.html" title="RRTF::SectionStyle (class)">SectionStyle</a></span></p>
168
168
  </div>
169
169
 
170
170
 
@@ -1344,7 +1344,7 @@ style is applied is updated.

1344
1344
  </div>
1345
1345
 
1346
1346
  <div id="footer">
1347
- Generated on Mon Jul 31 21:48:59 2017 by
1347
+ Generated on Wed Aug 2 23:05:16 2017 by
1348
1348
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1349
1349
  0.9.9 (ruby-2.3.3).
1350
1350
  </div>
@@ -1791,7 +1791,7 @@ uglify is true).

1791
1791
  </div>
1792
1792
 
1793
1793
  <div id="footer">
1794
- Generated on Mon Jul 31 21:48:58 2017 by
1794
+ Generated on Wed Aug 2 23:05:16 2017 by
1795
1795
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1796
1796
  0.9.9 (ruby-2.3.3).
1797
1797
  </div>
@@ -0,0 +1,698 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: RRTF::TabStyle
8
+
9
+ &mdash; Documentation by YARD 0.9.9
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "RRTF::TabStyle";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (T)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../RRTF.html" title="RRTF (module)">RRTF</a></span></span>
41
+ &raquo;
42
+ <span class="title">TabStyle</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: RRTF::TabStyle
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="AnonymousStyle.html" title="RRTF::AnonymousStyle (class)">AnonymousStyle</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="AnonymousStyle.html" title="RRTF::AnonymousStyle (class)">AnonymousStyle</a></span></li>
78
+
79
+ <li class="next">RRTF::TabStyle</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/rrtf/style/tab_style.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Represents a set of formatting that can be applied to paragraph and table
108
+ borders</p>
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+
116
+ </div>
117
+ <h2>Constant Summary</h2>
118
+ <dl class="constants">
119
+
120
+ <dt id="TYPE_DICTIONARY-constant" class="">TYPE_DICTIONARY =
121
+
122
+ </dt>
123
+ <dd><pre class="code"><span class='lbrace'>{</span>
124
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>FLUSH_RIGHT</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>rqr</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
125
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>CENTERED</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tqc</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
126
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>DECIMAL</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tqdec</span><span class='tstring_end'>&#39;</span></span>
127
+ <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
128
+
129
+ <dt id="LEADER_DICTIONARY-constant" class="">LEADER_DICTIONARY =
130
+
131
+ </dt>
132
+ <dd><pre class="code"><span class='lbrace'>{</span>
133
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>DOT</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tldot</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
134
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>MIDDLE_DOT</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tlmdot</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
135
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>HYPHEN</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tlhyph</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
136
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>UNDERLINE</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tlul</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
137
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>THICK_LINE</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tlth</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
138
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>EQUAL</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tleq</span><span class='tstring_end'>&#39;</span></span>
139
+ <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
140
+
141
+ </dl>
142
+
143
+
144
+
145
+
146
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
147
+ <ul class="summary">
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#leader-instance_method" title="#leader (instance method)">#<strong>leader</strong> &#x21d2; Object </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <span class="summary_desc"><div class='inline'>
170
+ <p>Returns the value of attribute leader.</p>
171
+ </div></span>
172
+
173
+ </li>
174
+
175
+
176
+ <li class="public ">
177
+ <span class="summary_signature">
178
+
179
+ <a href="#position-instance_method" title="#position (instance method)">#<strong>position</strong> &#x21d2; Object </a>
180
+
181
+
182
+
183
+ </span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+ <span class="summary_desc"><div class='inline'>
197
+ <p>Returns the value of attribute position.</p>
198
+ </div></span>
199
+
200
+ </li>
201
+
202
+
203
+ <li class="public ">
204
+ <span class="summary_signature">
205
+
206
+ <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> &#x21d2; Object </a>
207
+
208
+
209
+
210
+ </span>
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+ <span class="summary_desc"><div class='inline'>
224
+ <p>Returns the value of attribute type.</p>
225
+ </div></span>
226
+
227
+ </li>
228
+
229
+
230
+ </ul>
231
+
232
+
233
+
234
+
235
+
236
+ <h2>
237
+ Instance Method Summary
238
+ <small><a href="#" class="summary_toggle">collapse</a></small>
239
+ </h2>
240
+
241
+ <ul class="summary">
242
+
243
+ <li class="public ">
244
+ <span class="summary_signature">
245
+
246
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(options = {}) &#x21d2; TabStyle </a>
247
+
248
+
249
+
250
+ </span>
251
+
252
+
253
+ <span class="note title constructor">constructor</span>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+ <span class="summary_desc"><div class='inline'>
263
+ <p>This is the constructor for the BorderStyle class.</p>
264
+ </div></span>
265
+
266
+ </li>
267
+
268
+
269
+ <li class="public ">
270
+ <span class="summary_signature">
271
+
272
+ <a href="#prefix-instance_method" title="#prefix (instance method)">#<strong>prefix</strong>(document) &#x21d2; Object </a>
273
+
274
+
275
+
276
+ </span>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <span class="summary_desc"><div class='inline'>
287
+ <p>This method generates a string containing the prefix associated with the
288
+ style object.</p>
289
+ </div></span>
290
+
291
+ </li>
292
+
293
+
294
+ <li class="public ">
295
+ <span class="summary_signature">
296
+
297
+ <a href="#rtf_formatting-instance_method" title="#rtf_formatting (instance method)">#<strong>rtf_formatting</strong> &#x21d2; Object </a>
298
+
299
+
300
+
301
+ </span>
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+ <span class="summary_desc"><div class='inline'></div></span>
312
+
313
+ </li>
314
+
315
+
316
+ </ul>
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="AnonymousStyle.html" title="RRTF::AnonymousStyle (class)">AnonymousStyle</a></span></h3>
329
+ <p class="inherited"><span class='object_link'><a href="AnonymousStyle.html#push_colours-instance_method" title="RRTF::AnonymousStyle#push_colours (method)">#push_colours</a></span>, <span class='object_link'><a href="AnonymousStyle.html#push_fonts-instance_method" title="RRTF::AnonymousStyle#push_fonts (method)">#push_fonts</a></span>, <span class='object_link'><a href="AnonymousStyle.html#suffix-instance_method" title="RRTF::AnonymousStyle#suffix (method)">#suffix</a></span></p>
330
+ <div id="constructor_details" class="method_details_list">
331
+ <h2>Constructor Details</h2>
332
+
333
+ <div class="method_details first">
334
+ <h3 class="signature first" id="initialize-instance_method">
335
+
336
+ #<strong>initialize</strong>(options = {}) &#x21d2; <tt><span class='object_link'><a href="" title="RRTF::TabStyle (class)">TabStyle</a></span></tt>
337
+
338
+
339
+
340
+
341
+
342
+ </h3><div class="docstring">
343
+ <div class="discussion">
344
+
345
+ <p>This is the constructor for the BorderStyle class.</p>
346
+
347
+
348
+ </div>
349
+ </div>
350
+ <div class="tags">
351
+ <p class="tag_title">Parameters:</p>
352
+ <ul class="param">
353
+
354
+ <li>
355
+
356
+ <span class='name'>options</span>
357
+
358
+
359
+ <span class='type'>(<tt>Hash</tt>)</span>
360
+
361
+
362
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
363
+
364
+
365
+ &mdash;
366
+ <div class='inline'>
367
+ <p>the tab style options.</p>
368
+ </div>
369
+
370
+ </li>
371
+
372
+ </ul>
373
+
374
+
375
+
376
+
377
+ <p class="tag_title">Options Hash (<tt>options</tt>):</p>
378
+ <ul class="option">
379
+
380
+ <li>
381
+ <span class="name">"type"</span>
382
+ <span class="type">(<tt>String</tt>)</span>
383
+ <span class="default">
384
+
385
+ &mdash; default:
386
+ <tt>nil</tt>
387
+
388
+ </span>
389
+
390
+ &mdash; <div class='inline'>
391
+ <p>the tab type (“FLUSH_RIGHT”, “CENTERED”, or “DECIMAL”).</p>
392
+ </div>
393
+
394
+ </li>
395
+
396
+ <li>
397
+ <span class="name">"leader"</span>
398
+ <span class="type">(<tt>String</tt>)</span>
399
+ <span class="default">
400
+
401
+ &mdash; default:
402
+ <tt>nil</tt>
403
+
404
+ </span>
405
+
406
+ &mdash; <div class='inline'>
407
+ <p>the leader type (“DOT”, “MIDDLE_DOT”,“HYPHEN”, “UNDERLINE”, “THICK_LINE”,
408
+ or “EQUAL”).</p>
409
+ </div>
410
+
411
+ </li>
412
+
413
+ <li>
414
+ <span class="name">"position"</span>
415
+ <span class="type">(<tt>String</tt>, <tt>Integer</tt>)</span>
416
+ <span class="default">
417
+
418
+ &mdash; default:
419
+ <tt>720</tt>
420
+
421
+ </span>
422
+
423
+ &mdash; <div class='inline'>
424
+ <p>the position of the tab stop from the left margin in twips (can be a
425
+ string, see <span class='object_link'><a href="Utilities.html#value2twips-class_method" title="RRTF::Utilities.value2twips (method)">Utilities.value2twips</a></span>).</p>
426
+ </div>
427
+
428
+ </li>
429
+
430
+ </ul>
431
+
432
+
433
+
434
+ </div><table class="source_code">
435
+ <tr>
436
+ <td>
437
+ <pre class="lines">
438
+
439
+
440
+ 32
441
+ 33
442
+ 34
443
+ 35
444
+ 36
445
+ 37</pre>
446
+ </td>
447
+ <td>
448
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/tab_style.rb', line 32</span>
449
+
450
+ <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>
451
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
452
+ <span class='ivar'>@type</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#TYPE_DICTIONARY-constant" title="RRTF::TabStyle::TYPE_DICTIONARY (constant)">TYPE_DICTIONARY</a></span></span><span class='lbracket'>[</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'>&quot;</span><span class='tstring_content'>type</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rbracket'>]</span>
453
+ <span class='ivar'>@leader</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#LEADER_DICTIONARY-constant" title="RRTF::TabStyle::LEADER_DICTIONARY (constant)">LEADER_DICTIONARY</a></span></span><span class='lbracket'>[</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'>&quot;</span><span class='tstring_content'>leader</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rbracket'>]</span>
454
+ <span class='ivar'>@position</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Utilities.html" title="RRTF::Utilities (class)">Utilities</a></span></span><span class='period'>.</span><span class='id identifier rubyid_value2twips'><span class='object_link'><a href="Utilities.html#value2twips-class_method" title="RRTF::Utilities.value2twips (method)">value2twips</a></span></span><span class='lparen'>(</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'>&quot;</span><span class='tstring_content'>position</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='int'>720</span>
455
+ <span class='kw'>end</span></pre>
456
+ </td>
457
+ </tr>
458
+ </table>
459
+ </div>
460
+
461
+ </div>
462
+
463
+ <div id="instance_attr_details" class="attr_details">
464
+ <h2>Instance Attribute Details</h2>
465
+
466
+
467
+ <span id="leader=-instance_method"></span>
468
+ <div class="method_details first">
469
+ <h3 class="signature first" id="leader-instance_method">
470
+
471
+ #<strong>leader</strong> &#x21d2; <tt>Object</tt>
472
+
473
+
474
+
475
+
476
+
477
+ </h3><div class="docstring">
478
+ <div class="discussion">
479
+
480
+ <p>Returns the value of attribute leader</p>
481
+
482
+
483
+ </div>
484
+ </div>
485
+ <div class="tags">
486
+
487
+
488
+ </div><table class="source_code">
489
+ <tr>
490
+ <td>
491
+ <pre class="lines">
492
+
493
+
494
+ 23
495
+ 24
496
+ 25</pre>
497
+ </td>
498
+ <td>
499
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/tab_style.rb', line 23</span>
500
+
501
+ <span class='kw'>def</span> <span class='id identifier rubyid_leader'>leader</span>
502
+ <span class='ivar'>@leader</span>
503
+ <span class='kw'>end</span></pre>
504
+ </td>
505
+ </tr>
506
+ </table>
507
+ </div>
508
+
509
+
510
+ <span id="position=-instance_method"></span>
511
+ <div class="method_details ">
512
+ <h3 class="signature " id="position-instance_method">
513
+
514
+ #<strong>position</strong> &#x21d2; <tt>Object</tt>
515
+
516
+
517
+
518
+
519
+
520
+ </h3><div class="docstring">
521
+ <div class="discussion">
522
+
523
+ <p>Returns the value of attribute position</p>
524
+
525
+
526
+ </div>
527
+ </div>
528
+ <div class="tags">
529
+
530
+
531
+ </div><table class="source_code">
532
+ <tr>
533
+ <td>
534
+ <pre class="lines">
535
+
536
+
537
+ 23
538
+ 24
539
+ 25</pre>
540
+ </td>
541
+ <td>
542
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/tab_style.rb', line 23</span>
543
+
544
+ <span class='kw'>def</span> <span class='id identifier rubyid_position'>position</span>
545
+ <span class='ivar'>@position</span>
546
+ <span class='kw'>end</span></pre>
547
+ </td>
548
+ </tr>
549
+ </table>
550
+ </div>
551
+
552
+
553
+ <span id="type=-instance_method"></span>
554
+ <div class="method_details ">
555
+ <h3 class="signature " id="type-instance_method">
556
+
557
+ #<strong>type</strong> &#x21d2; <tt>Object</tt>
558
+
559
+
560
+
561
+
562
+
563
+ </h3><div class="docstring">
564
+ <div class="discussion">
565
+
566
+ <p>Returns the value of attribute type</p>
567
+
568
+
569
+ </div>
570
+ </div>
571
+ <div class="tags">
572
+
573
+
574
+ </div><table class="source_code">
575
+ <tr>
576
+ <td>
577
+ <pre class="lines">
578
+
579
+
580
+ 23
581
+ 24
582
+ 25</pre>
583
+ </td>
584
+ <td>
585
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/tab_style.rb', line 23</span>
586
+
587
+ <span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
588
+ <span class='ivar'>@type</span>
589
+ <span class='kw'>end</span></pre>
590
+ </td>
591
+ </tr>
592
+ </table>
593
+ </div>
594
+
595
+ </div>
596
+
597
+
598
+ <div id="instance_method_details" class="method_details_list">
599
+ <h2>Instance Method Details</h2>
600
+
601
+
602
+ <div class="method_details first">
603
+ <h3 class="signature first" id="prefix-instance_method">
604
+
605
+ #<strong>prefix</strong>(document) &#x21d2; <tt>Object</tt>
606
+
607
+
608
+
609
+
610
+
611
+ </h3><div class="docstring">
612
+ <div class="discussion">
613
+
614
+ <p>This method generates a string containing the prefix associated with the
615
+ style object. Equivalent to <span class='object_link'><a href="#rtf_formatting-instance_method" title="RRTF::TabStyle#rtf_formatting (method)">#rtf_formatting</a></span> for the TabStyle class.</p>
616
+
617
+
618
+ </div>
619
+ </div>
620
+ <div class="tags">
621
+
622
+
623
+ </div><table class="source_code">
624
+ <tr>
625
+ <td>
626
+ <pre class="lines">
627
+
628
+
629
+ 41
630
+ 42
631
+ 43</pre>
632
+ </td>
633
+ <td>
634
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/tab_style.rb', line 41</span>
635
+
636
+ <span class='kw'>def</span> <span class='id identifier rubyid_prefix'>prefix</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
637
+ <span class='id identifier rubyid_rtf_formatting'>rtf_formatting</span>
638
+ <span class='kw'>end</span></pre>
639
+ </td>
640
+ </tr>
641
+ </table>
642
+ </div>
643
+
644
+ <div class="method_details ">
645
+ <h3 class="signature " id="rtf_formatting-instance_method">
646
+
647
+ #<strong>rtf_formatting</strong> &#x21d2; <tt>Object</tt>
648
+
649
+
650
+
651
+
652
+
653
+ </h3><table class="source_code">
654
+ <tr>
655
+ <td>
656
+ <pre class="lines">
657
+
658
+
659
+ 45
660
+ 46
661
+ 47
662
+ 48
663
+ 49
664
+ 50
665
+ 51
666
+ 52
667
+ 53</pre>
668
+ </td>
669
+ <td>
670
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/tab_style.rb', line 45</span>
671
+
672
+ <span class='kw'>def</span> <span class='id identifier rubyid_rtf_formatting'>rtf_formatting</span>
673
+ <span class='id identifier rubyid_rtf'>rtf</span> <span class='op'>=</span> <span class='const'>StringIO</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
674
+
675
+ <span class='id identifier rubyid_rtf'>rtf</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\\</span><span class='embexpr_beg'>#{</span><span class='ivar'>@type</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='ivar'>@type</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
676
+ <span class='id identifier rubyid_rtf'>rtf</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\\</span><span class='embexpr_beg'>#{</span><span class='ivar'>@leader</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='ivar'>@leader</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
677
+ <span class='id identifier rubyid_rtf'>rtf</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\\tx</span><span class='embexpr_beg'>#{</span><span class='ivar'>@position</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
678
+
679
+ <span class='id identifier rubyid_rtf'>rtf</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span>
680
+ <span class='kw'>end</span></pre>
681
+ </td>
682
+ </tr>
683
+ </table>
684
+ </div>
685
+
686
+ </div>
687
+
688
+ </div>
689
+
690
+ <div id="footer">
691
+ Generated on Wed Aug 2 23:05:17 2017 by
692
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
693
+ 0.9.9 (ruby-2.3.3).
694
+ </div>
695
+
696
+ </div>
697
+ </body>
698
+ </html>