axlsx 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/.yardopts +4 -0
  2. data/README.md +7 -4
  3. data/examples/example.rb +6 -4
  4. data/examples/example.rb~ +112 -0
  5. data/lib/schema/dc.xsd~ +118 -0
  6. data/lib/schema/dcterms.xsd~ +331 -0
  7. data/lib/schema/opc-coreProperties.xsd~ +50 -0
  8. metadata +43 -193
  9. data/Gemfile +0 -3
  10. data/Gemfile.lock +0 -29
  11. data/axlsx.gemspec +0 -42
  12. data/doc/Axlsx.html +0 -2718
  13. data/doc/Axlsx/App.html +0 -2640
  14. data/doc/Axlsx/Axis.html +0 -1075
  15. data/doc/Axlsx/Bar3DChart.html +0 -1182
  16. data/doc/Axlsx/BarSeries.html +0 -711
  17. data/doc/Axlsx/Border.html +0 -779
  18. data/doc/Axlsx/BorderPr.html +0 -709
  19. data/doc/Axlsx/CatAxis.html +0 -769
  20. data/doc/Axlsx/CatAxisData.html +0 -397
  21. data/doc/Axlsx/Cell.html +0 -3187
  22. data/doc/Axlsx/CellAlignment.html +0 -1247
  23. data/doc/Axlsx/CellProtection.html +0 -565
  24. data/doc/Axlsx/CellStyle.html +0 -949
  25. data/doc/Axlsx/Chart.html +0 -1692
  26. data/doc/Axlsx/Color.html +0 -670
  27. data/doc/Axlsx/ContentType.html +0 -335
  28. data/doc/Axlsx/Core.html +0 -465
  29. data/doc/Axlsx/DataTypeValidator.html +0 -324
  30. data/doc/Axlsx/Default.html +0 -565
  31. data/doc/Axlsx/Drawing.html +0 -1264
  32. data/doc/Axlsx/Fill.html +0 -460
  33. data/doc/Axlsx/Font.html +0 -1554
  34. data/doc/Axlsx/GradientFill.html +0 -1026
  35. data/doc/Axlsx/GradientStop.html +0 -526
  36. data/doc/Axlsx/GraphicFrame.html +0 -642
  37. data/doc/Axlsx/Line3DChart.html +0 -1004
  38. data/doc/Axlsx/LineSeries.html +0 -605
  39. data/doc/Axlsx/Marker.html +0 -857
  40. data/doc/Axlsx/NumFmt.html +0 -562
  41. data/doc/Axlsx/OneCellAnchor.html +0 -982
  42. data/doc/Axlsx/Override.html +0 -552
  43. data/doc/Axlsx/Package.html +0 -825
  44. data/doc/Axlsx/Parser.html +0 -549
  45. data/doc/Axlsx/PatternFill.html +0 -681
  46. data/doc/Axlsx/Pic.html +0 -1701
  47. data/doc/Axlsx/PictureLocking.html +0 -1159
  48. data/doc/Axlsx/Pie3DChart.html +0 -489
  49. data/doc/Axlsx/PieSeries.html +0 -710
  50. data/doc/Axlsx/RegexValidator.html +0 -268
  51. data/doc/Axlsx/Relationship.html +0 -554
  52. data/doc/Axlsx/Relationships.html +0 -338
  53. data/doc/Axlsx/RestrictionValidator.html +0 -300
  54. data/doc/Axlsx/Row.html +0 -916
  55. data/doc/Axlsx/Scaling.html +0 -742
  56. data/doc/Axlsx/SerAxis.html +0 -641
  57. data/doc/Axlsx/Series.html +0 -813
  58. data/doc/Axlsx/SeriesTitle.html +0 -290
  59. data/doc/Axlsx/Styles.html +0 -1754
  60. data/doc/Axlsx/TableStyle.html +0 -705
  61. data/doc/Axlsx/TableStyleElement.html +0 -677
  62. data/doc/Axlsx/TableStyles.html +0 -594
  63. data/doc/Axlsx/Title.html +0 -543
  64. data/doc/Axlsx/TwoCellAnchor.html +0 -973
  65. data/doc/Axlsx/ValAxis.html +0 -538
  66. data/doc/Axlsx/ValAxisData.html +0 -321
  67. data/doc/Axlsx/View3D.html +0 -973
  68. data/doc/Axlsx/Workbook.html +0 -1630
  69. data/doc/Axlsx/Worksheet.html +0 -2682
  70. data/doc/Axlsx/Xf.html +0 -1780
  71. data/doc/_index.html +0 -649
  72. data/doc/class_list.html +0 -47
  73. data/doc/css/common.css +0 -1
  74. data/doc/css/full_list.css +0 -55
  75. data/doc/css/style.css +0 -322
  76. data/doc/file.LICENSE.html +0 -91
  77. data/doc/file.README.html +0 -338
  78. data/doc/file_list.html +0 -52
  79. data/doc/frames.html +0 -13
  80. data/doc/index.html +0 -338
  81. data/doc/js/app.js +0 -205
  82. data/doc/js/full_list.js +0 -167
  83. data/doc/js/jquery.js +0 -16
  84. data/doc/method_list.html +0 -3502
  85. data/doc/top-level-namespace.html +0 -103
  86. data/lib/axlsx.rb +0 -54
  87. data/lib/axlsx/content_type/content_type.rb +0 -23
  88. data/lib/axlsx/content_type/default.rb +0 -37
  89. data/lib/axlsx/content_type/override.rb +0 -37
  90. data/lib/axlsx/doc_props/app.rb +0 -178
  91. data/lib/axlsx/doc_props/core.rb +0 -34
  92. data/lib/axlsx/drawing/axis.rb +0 -90
  93. data/lib/axlsx/drawing/bar_3D_chart.rb +0 -128
  94. data/lib/axlsx/drawing/bar_series.rb +0 -64
  95. data/lib/axlsx/drawing/cat_axis.rb +0 -63
  96. data/lib/axlsx/drawing/cat_axis_data.rb +0 -35
  97. data/lib/axlsx/drawing/chart.rb +0 -179
  98. data/lib/axlsx/drawing/drawing.rb +0 -137
  99. data/lib/axlsx/drawing/graphic_frame.rb +0 -52
  100. data/lib/axlsx/drawing/line_3D_chart.rb +0 -106
  101. data/lib/axlsx/drawing/line_series.rb +0 -46
  102. data/lib/axlsx/drawing/marker.rb +0 -61
  103. data/lib/axlsx/drawing/one_cell_anchor.rb +0 -89
  104. data/lib/axlsx/drawing/pic.rb +0 -153
  105. data/lib/axlsx/drawing/picture_locking.rb +0 -72
  106. data/lib/axlsx/drawing/pie_3D_chart.rb +0 -41
  107. data/lib/axlsx/drawing/pie_series.rb +0 -56
  108. data/lib/axlsx/drawing/scaling.rb +0 -59
  109. data/lib/axlsx/drawing/ser_axis.rb +0 -45
  110. data/lib/axlsx/drawing/series.rb +0 -71
  111. data/lib/axlsx/drawing/series_title.rb +0 -22
  112. data/lib/axlsx/drawing/title.rb +0 -61
  113. data/lib/axlsx/drawing/two_cell_anchor.rb +0 -76
  114. data/lib/axlsx/drawing/val_axis.rb +0 -34
  115. data/lib/axlsx/drawing/val_axis_data.rb +0 -28
  116. data/lib/axlsx/drawing/view_3D.rb +0 -85
  117. data/lib/axlsx/package.rb +0 -214
  118. data/lib/axlsx/rels/relationship.rb +0 -44
  119. data/lib/axlsx/rels/relationships.rb +0 -25
  120. data/lib/axlsx/stylesheet/border.rb +0 -57
  121. data/lib/axlsx/stylesheet/border_pr.rb +0 -68
  122. data/lib/axlsx/stylesheet/cell_alignment.rb +0 -105
  123. data/lib/axlsx/stylesheet/cell_protection.rb +0 -36
  124. data/lib/axlsx/stylesheet/cell_style.rb +0 -65
  125. data/lib/axlsx/stylesheet/color.rb +0 -69
  126. data/lib/axlsx/stylesheet/fill.rb +0 -32
  127. data/lib/axlsx/stylesheet/font.rb +0 -139
  128. data/lib/axlsx/stylesheet/gradient_fill.rb +0 -76
  129. data/lib/axlsx/stylesheet/gradient_stop.rb +0 -33
  130. data/lib/axlsx/stylesheet/num_fmt.rb +0 -63
  131. data/lib/axlsx/stylesheet/pattern_fill.rb +0 -66
  132. data/lib/axlsx/stylesheet/styles.rb +0 -298
  133. data/lib/axlsx/stylesheet/table_style.rb +0 -47
  134. data/lib/axlsx/stylesheet/table_style_element.rb +0 -71
  135. data/lib/axlsx/stylesheet/table_styles.rb +0 -39
  136. data/lib/axlsx/stylesheet/xf.rb +0 -138
  137. data/lib/axlsx/util/constants.rb +0 -216
  138. data/lib/axlsx/util/parser.rb +0 -43
  139. data/lib/axlsx/util/simple_typed_list.rb +0 -160
  140. data/lib/axlsx/util/validators.rb +0 -132
  141. data/lib/axlsx/version.rb +0 -4
  142. data/lib/axlsx/workbook/workbook.rb +0 -160
  143. data/lib/axlsx/workbook/worksheet/cell.rb +0 -340
  144. data/lib/axlsx/workbook/worksheet/row.rb +0 -107
  145. data/lib/axlsx/workbook/worksheet/worksheet.rb +0 -278
@@ -1,290 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Axlsx::SeriesTitle
8
-
9
- &mdash; AXLSX
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../_index.html">Index (S)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
38
- &raquo;
39
- <span class="title">SeriesTitle</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: Axlsx::SeriesTitle
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName"><span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next"><span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></li>
75
-
76
- <li class="next">Axlsx::SeriesTitle</li>
77
-
78
- </ul>
79
- <a href="#" class="inheritanceTree">show all</a>
80
-
81
- </dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
- <dt class="r2 last">Defined in:</dt>
92
- <dd class="r2 last">lib/axlsx/drawing/series_title.rb</dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
- <h2>Overview</h2><div class="docstring">
98
- <div class="discussion">
99
- <p>
100
- A series title is a Title with a slightly different serialization than
101
- chart titles.
102
- </p>
103
-
104
-
105
- </div>
106
- </div>
107
- <div class="tags">
108
-
109
-
110
- </div>
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- <h2>Instance Attribute Summary</h2>
122
-
123
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></h3>
124
- <p class="inherited"><span class='object_link'><a href="Title.html#cell-instance_method" title="Axlsx::Title#cell (method)">cell</a></span>, <span class='object_link'><a href="Title.html#text-instance_method" title="Axlsx::Title#text (method)">text</a></span></p>
125
-
126
-
127
-
128
- <h2>
129
- Instance Method Summary
130
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
131
- </h2>
132
-
133
- <ul class="summary">
134
-
135
- <li class="public ">
136
- <span class="summary_signature">
137
-
138
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
139
-
140
-
141
-
142
- </span>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
- <span class="summary_desc"><div class='inline'><p>
152
- Serializes the series title.
153
- </p>
154
- </div></span>
155
-
156
- </li>
157
-
158
-
159
- </ul>
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></h3>
171
- <p class="inherited"><span class='object_link'><a href="Title.html#initialize-instance_method" title="Axlsx::Title#initialize (method)">#initialize</a></span></p>
172
- <div id="constructor_details" class="method_details_list">
173
- <h2>Constructor Details</h2>
174
-
175
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Title.html#initialize-instance_method" title="Axlsx::Title#initialize (method)">Axlsx::Title</a></span></p>
176
-
177
- </div>
178
-
179
-
180
- <div id="instance_method_details" class="method_details_list">
181
- <h2>Instance Method Details</h2>
182
-
183
-
184
- <div class="method_details first">
185
- <p class="signature first" id="to_xml-instance_method">
186
-
187
- - (<tt>String</tt>) <strong>to_xml</strong>(xml)
188
-
189
-
190
-
191
- </p><div class="docstring">
192
- <div class="discussion">
193
- <p>
194
- Serializes the series title
195
- </p>
196
-
197
-
198
- </div>
199
- </div>
200
- <div class="tags">
201
- <h3>Parameters:</h3>
202
- <ul class="param">
203
-
204
- <li>
205
-
206
- <span class='name'>xml</span>
207
-
208
-
209
- <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
210
-
211
-
212
-
213
- &mdash;
214
- <div class='inline'><p>
215
- The document builder instance this objects xml will be added to.
216
- </p>
217
- </div>
218
-
219
- </li>
220
-
221
- </ul>
222
-
223
- <h3>Returns:</h3>
224
- <ul class="return">
225
-
226
- <li>
227
-
228
-
229
- <span class='type'>(<tt>String</tt>)</span>
230
-
231
-
232
-
233
- </li>
234
-
235
- </ul>
236
-
237
- </div><table class="source_code">
238
- <tr>
239
- <td>
240
- <pre class="lines">
241
-
242
-
243
- 8
244
- 9
245
- 10
246
- 11
247
- 12
248
- 13
249
- 14
250
- 15
251
- 16
252
- 17
253
- 18
254
- 19
255
- 20</pre>
256
- </td>
257
- <td>
258
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series_title.rb', line 8</span>
259
-
260
- <span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
261
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:tx'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
262
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:strRef'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
263
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:f'</span><span class='comma token'>,</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='cell_range identifier id'>cell_range</span><span class='lparen token'>(</span><span class='lbrack token'>[</span><span class='@cell ivar id'>@cell</span><span class='rbrack token'>]</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
264
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:strCache'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
265
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:ptCount'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>&gt;</span><span class='integer val'>1</span><span class='rparen token'>)</span>
266
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:pt'</span><span class='comma token'>,</span> <span class='symbol val'>:idx=</span><span class='gt op'>&gt;</span><span class='integer val'>0</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
267
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:v'</span><span class='comma token'>,</span> <span class='@text ivar id'>@text</span><span class='rparen token'>)</span>
268
- <span class='rbrace token'>}</span>
269
- <span class='rbrace token'>}</span>
270
- <span class='rbrace token'>}</span>
271
- <span class='rbrace token'>}</span>
272
- <span class='end end kw'>end</span>
273
- </pre>
274
- </td>
275
- </tr>
276
- </table>
277
- </div>
278
-
279
- </div>
280
-
281
- </div>
282
-
283
- <div id="footer">
284
- Generated on Mon Dec 5 14:21:20 2011 by
285
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
286
- 0.7.3 (ruby-1.8.7).
287
- </div>
288
-
289
- </body>
290
- </html>
@@ -1,1754 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Axlsx::Styles
8
-
9
- &mdash; AXLSX
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../_index.html">Index (S)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
38
- &raquo;
39
- <span class="title">Styles</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: Axlsx::Styles
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName">Object</span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next">Axlsx::Styles</li>
75
-
76
- </ul>
77
- <a href="#" class="inheritanceTree">show all</a>
78
-
79
- </dd>
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- <dt class="r2 last">Defined in:</dt>
90
- <dd class="r2 last">lib/axlsx/stylesheet/styles.rb</dd>
91
-
92
- </dl>
93
- <div class="clear"></div>
94
-
95
- <h2>Overview</h2><div class="docstring">
96
- <div class="discussion">
97
-
98
- <div class="note notetag">
99
- <strong>Note:</strong>
100
- <div class='inline'><p>
101
- The recommended way to manage styles is with add_style
102
- </p>
103
- </div>
104
- </div>
105
-
106
- <p>
107
- The Styles class manages worksheet styles In addition to creating the
108
- require style objects for a valid xlsx package, this class provides the key
109
- mechanism for adding styles to your workbook, and safely applying them to
110
- the cells of your worksheet. All portions of the stylesheet are implemented
111
- here exception colors, which specify legacy and modified pallete colors,
112
- and exLst, whic is used as a future feature data storage area.
113
- </p>
114
-
115
-
116
- </div>
117
- </div>
118
- <div class="tags">
119
-
120
-
121
- <h3>See Also:</h3>
122
- <ul class="see">
123
-
124
- <li>Open XML Part 1 18.8.11 for gory details on how this stuff gets put together</li>
125
-
126
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
127
-
128
- </ul>
129
-
130
- </div>
131
-
132
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
133
- <ul class="summary">
134
-
135
- <li class="public ">
136
- <span class="summary_signature">
137
-
138
- <a href="#borders-instance_method" title="#borders (instance method)">- (SimpleTypedList) <strong>borders</strong> </a>
139
-
140
-
141
-
142
- </span>
143
-
144
-
145
- <span class="note title readonly">readonly</span>
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
- <span class="summary_desc"><div class='inline'><p>
155
- The collection of borders used in this workbook Axlsx predefines
156
- THIN_BORDER which can be used to put a border around all of your cells.
157
- </p>
158
- </div></span>
159
-
160
- </li>
161
-
162
-
163
- <li class="public ">
164
- <span class="summary_signature">
165
-
166
- <a href="#cellStyles-instance_method" title="#cellStyles (instance method)">- (SimpleTypedList) <strong>cellStyles</strong> </a>
167
-
168
-
169
-
170
- </span>
171
-
172
-
173
- <span class="note title readonly">readonly</span>
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
- <span class="summary_desc"><div class='inline'><p>
183
- The collection of named styles, referencing cellStyleXfs items in the
184
- workbook.
185
- </p>
186
- </div></span>
187
-
188
- </li>
189
-
190
-
191
- <li class="public ">
192
- <span class="summary_signature">
193
-
194
- <a href="#cellStyleXfs-instance_method" title="#cellStyleXfs (instance method)">- (SimpleTypedList) <strong>cellStyleXfs</strong> </a>
195
-
196
-
197
-
198
- </span>
199
-
200
-
201
- <span class="note title readonly">readonly</span>
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
- <span class="summary_desc"><div class='inline'><p>
211
- The collection of master formatting records for named cell styles, which
212
- means records defined in cellStyles, in the workbook.
213
- </p>
214
- </div></span>
215
-
216
- </li>
217
-
218
-
219
- <li class="public ">
220
- <span class="summary_signature">
221
-
222
- <a href="#cellXfs-instance_method" title="#cellXfs (instance method)">- (SimpleTypedList) <strong>cellXfs</strong> </a>
223
-
224
-
225
-
226
- </span>
227
-
228
-
229
- <span class="note title readonly">readonly</span>
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
- <span class="summary_desc"><div class='inline'><p>
239
- The collection of master formatting records.
240
- </p>
241
- </div></span>
242
-
243
- </li>
244
-
245
-
246
- <li class="public ">
247
- <span class="summary_signature">
248
-
249
- <a href="#dxfs-instance_method" title="#dxfs (instance method)">- (SimpleTypedList) <strong>dxfs</strong> </a>
250
-
251
-
252
-
253
- </span>
254
-
255
-
256
- <span class="note title readonly">readonly</span>
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
- <span class="summary_desc"><div class='inline'><p>
266
- The collection of non-cell formatting records used in the worksheet.
267
- </p>
268
- </div></span>
269
-
270
- </li>
271
-
272
-
273
- <li class="public ">
274
- <span class="summary_signature">
275
-
276
- <a href="#fills-instance_method" title="#fills (instance method)">- (SimpleTypedList) <strong>fills</strong> </a>
277
-
278
-
279
-
280
- </span>
281
-
282
-
283
- <span class="note title readonly">readonly</span>
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- <span class="summary_desc"><div class='inline'><p>
293
- The collection of fills used in this workbook.
294
- </p>
295
- </div></span>
296
-
297
- </li>
298
-
299
-
300
- <li class="public ">
301
- <span class="summary_signature">
302
-
303
- <a href="#fonts-instance_method" title="#fonts (instance method)">- (SimpleTypedList) <strong>fonts</strong> </a>
304
-
305
-
306
-
307
- </span>
308
-
309
-
310
- <span class="note title readonly">readonly</span>
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
- <span class="summary_desc"><div class='inline'><p>
320
- The collection of fonts used in this workbook.
321
- </p>
322
- </div></span>
323
-
324
- </li>
325
-
326
-
327
- <li class="public ">
328
- <span class="summary_signature">
329
-
330
- <a href="#numFmts-instance_method" title="#numFmts (instance method)">- (SimpleTypedList) <strong>numFmts</strong> </a>
331
-
332
-
333
-
334
- </span>
335
-
336
-
337
- <span class="note title readonly">readonly</span>
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
- <span class="summary_desc"><div class='inline'><p>
347
- numFmts for your styles.
348
- </p>
349
- </div></span>
350
-
351
- </li>
352
-
353
-
354
- <li class="public ">
355
- <span class="summary_signature">
356
-
357
- <a href="#tableStyles-instance_method" title="#tableStyles (instance method)">- (SimpleTypedList) <strong>tableStyles</strong> </a>
358
-
359
-
360
-
361
- </span>
362
-
363
-
364
- <span class="note title readonly">readonly</span>
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
- <span class="summary_desc"><div class='inline'><p>
374
- The collection of table styles that will be available to the user in the
375
- excel UI.
376
- </p>
377
- </div></span>
378
-
379
- </li>
380
-
381
-
382
- </ul>
383
-
384
-
385
-
386
-
387
-
388
- <h2>
389
- Instance Method Summary
390
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
391
- </h2>
392
-
393
- <ul class="summary">
394
-
395
- <li class="public ">
396
- <span class="summary_signature">
397
-
398
- <a href="#add_style-instance_method" title="#add_style (instance method)">- (Integer) <strong>add_style</strong>(options = {}) </a>
399
-
400
-
401
-
402
- </span>
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
- <span class="summary_desc"><div class='inline'><p>
412
- Drastically simplifies style creation and management.
413
- </p>
414
- </div></span>
415
-
416
- </li>
417
-
418
-
419
- <li class="public ">
420
- <span class="summary_signature">
421
-
422
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Styles) <strong>initialize</strong> </a>
423
-
424
-
425
-
426
- </span>
427
-
428
- <span class="note title constructor">constructor</span>
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
- <span class="summary_desc"><div class='inline'><p>
438
- Creates a new Styles object and prepopulates it with the requires objects
439
- to generate a valid package style part.
440
- </p>
441
- </div></span>
442
-
443
- </li>
444
-
445
-
446
- <li class="public ">
447
- <span class="summary_signature">
448
-
449
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong> </a>
450
-
451
-
452
-
453
- </span>
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
- <span class="summary_desc"><div class='inline'><p>
463
- Serializes the styles document.
464
- </p>
465
- </div></span>
466
-
467
- </li>
468
-
469
-
470
- </ul>
471
-
472
-
473
- <div id="constructor_details" class="method_details_list">
474
- <h2>Constructor Details</h2>
475
-
476
- <div class="method_details first">
477
- <p class="signature first" id="initialize-instance_method">
478
-
479
- - (<tt><span class='object_link'><a href="" title="Axlsx::Styles (class)">Styles</a></span></tt>) <strong>initialize</strong>
480
-
481
-
482
-
483
- </p><div class="docstring">
484
- <div class="discussion">
485
- <p>
486
- Creates a new Styles object and prepopulates it with the requires objects
487
- to generate a valid package style part.
488
- </p>
489
-
490
-
491
- </div>
492
- </div>
493
- <div class="tags">
494
-
495
-
496
- </div><table class="source_code">
497
- <tr>
498
- <td>
499
- <pre class="lines">
500
-
501
-
502
- 118
503
- 119
504
- 120</pre>
505
- </td>
506
- <td>
507
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 118</span>
508
-
509
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
510
- <span class='load_default_styles identifier id'>load_default_styles</span>
511
- <span class='end end kw'>end</span>
512
- </pre>
513
- </td>
514
- </tr>
515
- </table>
516
- </div>
517
-
518
- </div>
519
-
520
- <div id="instance_attr_details" class="attr_details">
521
- <h2>Instance Attribute Details</h2>
522
-
523
-
524
- <span id=""></span>
525
- <span id="borders-instance_method"></span>
526
- <div class="method_details first">
527
- <p class="signature first" id="borders-instance_method">
528
-
529
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>borders</strong> <span class="extras">(readonly)</span>
530
-
531
-
532
-
533
- </p><div class="docstring">
534
- <div class="discussion">
535
-
536
- <div class="note notetag">
537
- <strong>Note:</strong>
538
- <div class='inline'><p>
539
- The recommended way to manage styles is with add_style
540
- </p>
541
- </div>
542
- </div>
543
-
544
- <p>
545
- The collection of borders used in this workbook Axlsx predefines
546
- THIN_BORDER which can be used to put a border around all of your cells.
547
- </p>
548
-
549
-
550
- </div>
551
- </div>
552
- <div class="tags">
553
-
554
- <h3>Returns:</h3>
555
- <ul class="return">
556
-
557
- <li>
558
-
559
-
560
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
561
-
562
-
563
-
564
- </li>
565
-
566
- </ul>
567
-
568
- <h3>See Also:</h3>
569
- <ul class="see">
570
-
571
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
572
-
573
- </ul>
574
-
575
- </div><table class="source_code">
576
- <tr>
577
- <td>
578
- <pre class="lines">
579
-
580
-
581
- 85
582
- 86
583
- 87</pre>
584
- </td>
585
- <td>
586
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 85</span>
587
-
588
- <span class='def def kw'>def</span> <span class='borders identifier id'>borders</span>
589
- <span class='@borders ivar id'>@borders</span>
590
- <span class='end end kw'>end</span>
591
- </pre>
592
- </td>
593
- </tr>
594
- </table>
595
- </div>
596
-
597
-
598
- <span id=""></span>
599
- <span id="cellStyles-instance_method"></span>
600
- <div class="method_details ">
601
- <p class="signature " id="cellStyles-instance_method">
602
-
603
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>cellStyles</strong> <span class="extras">(readonly)</span>
604
-
605
-
606
-
607
- </p><div class="docstring">
608
- <div class="discussion">
609
-
610
- <div class="note notetag">
611
- <strong>Note:</strong>
612
- <div class='inline'><p>
613
- The recommended way to manage styles is with add_style
614
- </p>
615
- </div>
616
- </div>
617
-
618
- <p>
619
- The collection of named styles, referencing cellStyleXfs items in the
620
- workbook.
621
- </p>
622
-
623
-
624
- </div>
625
- </div>
626
- <div class="tags">
627
-
628
- <h3>Returns:</h3>
629
- <ul class="return">
630
-
631
- <li>
632
-
633
-
634
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
635
-
636
-
637
-
638
- </li>
639
-
640
- </ul>
641
-
642
- <h3>See Also:</h3>
643
- <ul class="see">
644
-
645
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
646
-
647
- </ul>
648
-
649
- </div><table class="source_code">
650
- <tr>
651
- <td>
652
- <pre class="lines">
653
-
654
-
655
- 97
656
- 98
657
- 99</pre>
658
- </td>
659
- <td>
660
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 97</span>
661
-
662
- <span class='def def kw'>def</span> <span class='cellStyles identifier id'>cellStyles</span>
663
- <span class='@cellStyles ivar id'>@cellStyles</span>
664
- <span class='end end kw'>end</span>
665
- </pre>
666
- </td>
667
- </tr>
668
- </table>
669
- </div>
670
-
671
-
672
- <span id=""></span>
673
- <span id="cellStyleXfs-instance_method"></span>
674
- <div class="method_details ">
675
- <p class="signature " id="cellStyleXfs-instance_method">
676
-
677
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>cellStyleXfs</strong> <span class="extras">(readonly)</span>
678
-
679
-
680
-
681
- </p><div class="docstring">
682
- <div class="discussion">
683
-
684
- <div class="note notetag">
685
- <strong>Note:</strong>
686
- <div class='inline'><p>
687
- The recommended way to manage styles is with add_style
688
- </p>
689
- </div>
690
- </div>
691
-
692
- <p>
693
- The collection of master formatting records for named cell styles, which
694
- means records defined in cellStyles, in the workbook
695
- </p>
696
-
697
-
698
- </div>
699
- </div>
700
- <div class="tags">
701
-
702
- <h3>Returns:</h3>
703
- <ul class="return">
704
-
705
- <li>
706
-
707
-
708
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
709
-
710
-
711
-
712
- </li>
713
-
714
- </ul>
715
-
716
- <h3>See Also:</h3>
717
- <ul class="see">
718
-
719
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
720
-
721
- </ul>
722
-
723
- </div><table class="source_code">
724
- <tr>
725
- <td>
726
- <pre class="lines">
727
-
728
-
729
- 91
730
- 92
731
- 93</pre>
732
- </td>
733
- <td>
734
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 91</span>
735
-
736
- <span class='def def kw'>def</span> <span class='cellStyleXfs identifier id'>cellStyleXfs</span>
737
- <span class='@cellStyleXfs ivar id'>@cellStyleXfs</span>
738
- <span class='end end kw'>end</span>
739
- </pre>
740
- </td>
741
- </tr>
742
- </table>
743
- </div>
744
-
745
-
746
- <span id=""></span>
747
- <span id="cellXfs-instance_method"></span>
748
- <div class="method_details ">
749
- <p class="signature " id="cellXfs-instance_method">
750
-
751
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>cellXfs</strong> <span class="extras">(readonly)</span>
752
-
753
-
754
-
755
- </p><div class="docstring">
756
- <div class="discussion">
757
-
758
- <div class="note notetag">
759
- <strong>Note:</strong>
760
- <div class='inline'><p>
761
- The recommended way to manage styles is with add_style
762
- </p>
763
- </div>
764
- </div>
765
-
766
- <p>
767
- The collection of master formatting records. This is the list that you will
768
- actually use in styling a workbook.
769
- </p>
770
-
771
-
772
- </div>
773
- </div>
774
- <div class="tags">
775
-
776
- <h3>Returns:</h3>
777
- <ul class="return">
778
-
779
- <li>
780
-
781
-
782
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
783
-
784
-
785
-
786
- </li>
787
-
788
- </ul>
789
-
790
- <h3>See Also:</h3>
791
- <ul class="see">
792
-
793
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
794
-
795
- </ul>
796
-
797
- </div><table class="source_code">
798
- <tr>
799
- <td>
800
- <pre class="lines">
801
-
802
-
803
- 103
804
- 104
805
- 105</pre>
806
- </td>
807
- <td>
808
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 103</span>
809
-
810
- <span class='def def kw'>def</span> <span class='cellXfs identifier id'>cellXfs</span>
811
- <span class='@cellXfs ivar id'>@cellXfs</span>
812
- <span class='end end kw'>end</span>
813
- </pre>
814
- </td>
815
- </tr>
816
- </table>
817
- </div>
818
-
819
-
820
- <span id=""></span>
821
- <span id="dxfs-instance_method"></span>
822
- <div class="method_details ">
823
- <p class="signature " id="dxfs-instance_method">
824
-
825
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>dxfs</strong> <span class="extras">(readonly)</span>
826
-
827
-
828
-
829
- </p><div class="docstring">
830
- <div class="discussion">
831
-
832
- <div class="note notetag">
833
- <strong>Note:</strong>
834
- <div class='inline'><p>
835
- The recommended way to manage styles is with add_style
836
- </p>
837
- </div>
838
- </div>
839
-
840
- <p>
841
- The collection of non-cell formatting records used in the worksheet.
842
- </p>
843
-
844
-
845
- </div>
846
- </div>
847
- <div class="tags">
848
-
849
- <h3>Returns:</h3>
850
- <ul class="return">
851
-
852
- <li>
853
-
854
-
855
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
856
-
857
-
858
-
859
- </li>
860
-
861
- </ul>
862
-
863
- <h3>See Also:</h3>
864
- <ul class="see">
865
-
866
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
867
-
868
- </ul>
869
-
870
- </div><table class="source_code">
871
- <tr>
872
- <td>
873
- <pre class="lines">
874
-
875
-
876
- 109
877
- 110
878
- 111</pre>
879
- </td>
880
- <td>
881
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 109</span>
882
-
883
- <span class='def def kw'>def</span> <span class='dxfs identifier id'>dxfs</span>
884
- <span class='@dxfs ivar id'>@dxfs</span>
885
- <span class='end end kw'>end</span>
886
- </pre>
887
- </td>
888
- </tr>
889
- </table>
890
- </div>
891
-
892
-
893
- <span id=""></span>
894
- <span id="fills-instance_method"></span>
895
- <div class="method_details ">
896
- <p class="signature " id="fills-instance_method">
897
-
898
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>fills</strong> <span class="extras">(readonly)</span>
899
-
900
-
901
-
902
- </p><div class="docstring">
903
- <div class="discussion">
904
-
905
- <div class="note notetag">
906
- <strong>Note:</strong>
907
- <div class='inline'><p>
908
- The recommended way to manage styles is with add_style
909
- </p>
910
- </div>
911
- </div>
912
-
913
- <p>
914
- The collection of fills used in this workbook
915
- </p>
916
-
917
-
918
- </div>
919
- </div>
920
- <div class="tags">
921
-
922
- <h3>Returns:</h3>
923
- <ul class="return">
924
-
925
- <li>
926
-
927
-
928
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
929
-
930
-
931
-
932
- </li>
933
-
934
- </ul>
935
-
936
- <h3>See Also:</h3>
937
- <ul class="see">
938
-
939
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
940
-
941
- </ul>
942
-
943
- </div><table class="source_code">
944
- <tr>
945
- <td>
946
- <pre class="lines">
947
-
948
-
949
- 78
950
- 79
951
- 80</pre>
952
- </td>
953
- <td>
954
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 78</span>
955
-
956
- <span class='def def kw'>def</span> <span class='fills identifier id'>fills</span>
957
- <span class='@fills ivar id'>@fills</span>
958
- <span class='end end kw'>end</span>
959
- </pre>
960
- </td>
961
- </tr>
962
- </table>
963
- </div>
964
-
965
-
966
- <span id=""></span>
967
- <span id="fonts-instance_method"></span>
968
- <div class="method_details ">
969
- <p class="signature " id="fonts-instance_method">
970
-
971
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>fonts</strong> <span class="extras">(readonly)</span>
972
-
973
-
974
-
975
- </p><div class="docstring">
976
- <div class="discussion">
977
-
978
- <div class="note notetag">
979
- <strong>Note:</strong>
980
- <div class='inline'><p>
981
- The recommended way to manage styles is with add_style
982
- </p>
983
- </div>
984
- </div>
985
-
986
- <p>
987
- The collection of fonts used in this workbook
988
- </p>
989
-
990
-
991
- </div>
992
- </div>
993
- <div class="tags">
994
-
995
- <h3>Returns:</h3>
996
- <ul class="return">
997
-
998
- <li>
999
-
1000
-
1001
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
1002
-
1003
-
1004
-
1005
- </li>
1006
-
1007
- </ul>
1008
-
1009
- <h3>See Also:</h3>
1010
- <ul class="see">
1011
-
1012
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
1013
-
1014
- </ul>
1015
-
1016
- </div><table class="source_code">
1017
- <tr>
1018
- <td>
1019
- <pre class="lines">
1020
-
1021
-
1022
- 72
1023
- 73
1024
- 74</pre>
1025
- </td>
1026
- <td>
1027
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 72</span>
1028
-
1029
- <span class='def def kw'>def</span> <span class='fonts identifier id'>fonts</span>
1030
- <span class='@fonts ivar id'>@fonts</span>
1031
- <span class='end end kw'>end</span>
1032
- </pre>
1033
- </td>
1034
- </tr>
1035
- </table>
1036
- </div>
1037
-
1038
-
1039
- <span id=""></span>
1040
- <span id="numFmts-instance_method"></span>
1041
- <div class="method_details ">
1042
- <p class="signature " id="numFmts-instance_method">
1043
-
1044
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>numFmts</strong> <span class="extras">(readonly)</span>
1045
-
1046
-
1047
-
1048
- </p><div class="docstring">
1049
- <div class="discussion">
1050
-
1051
- <div class="note notetag">
1052
- <strong>Note:</strong>
1053
- <div class='inline'><p>
1054
- The recommended way to manage styles is with add_style
1055
- </p>
1056
- </div>
1057
- </div>
1058
-
1059
- <p>
1060
- numFmts for your styles.
1061
- </p>
1062
- <pre class="code">
1063
- <span class='The constant id'>The</span> <span class='default identifier id'>default</span> <span class='styles identifier id'>styles</span><span class='comma token'>,</span> <span class='which identifier id'>which</span> <span class='change identifier id'>change</span> <span class='based identifier id'>based</span> <span class='on identifier id'>on</span> <span class='the identifier id'>the</span> <span class='system identifier id'>system</span> <span class='local identifier id'>local</span><span class='comma token'>,</span> <span class='are identifier id'>are</span> <span class='as identifier id'>as</span> <span class='follows identifier id'>follows</span><span class='dot token'>.</span>
1064
- <span class='id identifier id'>id</span> <span class='formatCode identifier id'>formatCode</span>
1065
- <span class='integer val'>0</span> <span class='General constant id'>General</span>
1066
- <span class='integer val'>1</span> <span class='integer val'>0</span>
1067
- <span class='integer val'>2</span> <span class='integer val'>0</span><span class='integer val'>.00</span>
1068
- <span class='integer val'>3</span> <span class='comment val'>#,##0</span>
1069
- <span class='integer val'>4</span> <span class='comment val'>#,##0.00</span>
1070
- <span class='integer val'>9</span> <span class='integer val'>0</span><span class='mod op'>%</span>
1071
- <span class='integer val'>10</span> <span class='integer val'>0</span><span class='integer val'>.00</span><span class='mod op'>%</span>
1072
- <span class='integer val'>11</span> <span class='integer val'>0</span><span class='float val'>.00E+00</span>
1073
- <span class='integer val'>12</span> <span class='comment val'># ?/?</span>
1074
- <span class='integer val'>13</span> <span class='comment val'># ??/??</span>
1075
- <span class='integer val'>14</span> <span class='mm identifier id'>mm</span><span class='minus op'>-</span><span class='dd identifier id'>dd</span><span class='minus op'>-</span><span class='yy identifier id'>yy</span>
1076
- <span class='integer val'>15</span> <span class='d identifier id'>d</span><span class='minus op'>-</span><span class='mmm identifier id'>mmm</span><span class='minus op'>-</span><span class='yy identifier id'>yy</span>
1077
- <span class='integer val'>16</span> <span class='d identifier id'>d</span><span class='minus op'>-</span><span class='mmm identifier id'>mmm</span>
1078
- <span class='integer val'>17</span> <span class='mmm identifier id'>mmm</span><span class='minus op'>-</span><span class='yy identifier id'>yy</span>
1079
- <span class='integer val'>18</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span> <span class='AM constant id'>AM</span><span class='div op'>/</span><span class='PM constant id'>PM</span>
1080
- <span class='integer val'>19</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span><span class='symbol val'>:ss</span> <span class='AM constant id'>AM</span><span class='div op'>/</span><span class='PM constant id'>PM</span>
1081
- <span class='integer val'>20</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span>
1082
- <span class='integer val'>21</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span><span class='symbol val'>:ss</span>
1083
- <span class='integer val'>22</span> <span class='m identifier id'>m</span><span class='div op'>/</span><span class='d identifier id'>d</span><span class='div op'>/</span><span class='yy identifier id'>yy</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span>
1084
- <span class='integer val'>37</span> <span class='comment val'>#,##0 ;(#,##0)</span>
1085
- <span class='integer val'>38</span> <span class='comment val'>#,##0 ;[Red](#,##0)</span>
1086
- <span class='integer val'>39</span> <span class='comment val'>#,##0.00;(#,##0.00)</span>
1087
- <span class='integer val'>40</span> <span class='comment val'>#,##0.00;[Red](#,##0.00)</span>
1088
- <span class='integer val'>45</span> <span class='mm identifier id'>mm</span><span class='symbol val'>:ss</span>
1089
- <span class='integer val'>46</span> <span class='lbrack token'>[</span><span class='h identifier id'>h</span><span class='rbrack token'>]</span><span class='symbol val'>:mm</span><span class='symbol val'>:ss</span>
1090
- <span class='integer val'>47</span> <span class='mmss identifier id'>mmss</span><span class='integer val'>.0</span>
1091
- <span class='integer val'>48</span> <span class='comment val'>##0.0E+0</span>
1092
- <span class='integer val'>49</span> @
1093
- <span class='Axlsx constant id'>Axlsx</span> <span class='also identifier id'>also</span> <span class='defines identifier id'>defines</span> <span class='the identifier id'>the</span> <span class='following identifier id'>following</span> <span class='constants identifier id'>constants</span> <span class='which identifier id'>which</span> <span class='you identifier id'>you</span> <span class='can identifier id'>can</span> <span class='use identifier id'>use</span> <span class='in in kw'>in</span> <span class='add_style identifier id'>add_style</span><span class='dot token'>.</span>
1094
- <span class='NUM_FMT_PERCENT constant id'>NUM_FMT_PERCENT</span> <span class='formats identifier id'>formats</span> <span class='to identifier id'>to</span> <span class='string val'>&quot;0%&quot;</span>
1095
- <span class='NUM_FMT_YYYYMMDD constant id'>NUM_FMT_YYYYMMDD</span> <span class='formats identifier id'>formats</span> <span class='to identifier id'>to</span> <span class='string val'>&quot;yyyy/mm/dd&quot;</span>
1096
- <span class='NUM_FMT_YYYYMMDDHHMMSS constant id'>NUM_FMT_YYYYMMDDHHMMSS</span> <span class='formats identifier id'>formats</span> <span class='to identifier id'>to</span> <span class='string val'>&quot;yyyy/mm/dd hh:mm:ss&quot;</span>
1097
- </pre>
1098
-
1099
-
1100
- </div>
1101
- </div>
1102
- <div class="tags">
1103
-
1104
- <h3>Returns:</h3>
1105
- <ul class="return">
1106
-
1107
- <li>
1108
-
1109
-
1110
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
1111
-
1112
-
1113
-
1114
- </li>
1115
-
1116
- </ul>
1117
-
1118
- <h3>See Also:</h3>
1119
- <ul class="see">
1120
-
1121
- <li>Open XML Part 1 - 18.8.31 for more information on creating number formats</li>
1122
-
1123
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
1124
-
1125
- </ul>
1126
-
1127
- </div><table class="source_code">
1128
- <tr>
1129
- <td>
1130
- <pre class="lines">
1131
-
1132
-
1133
- 66
1134
- 67
1135
- 68</pre>
1136
- </td>
1137
- <td>
1138
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 66</span>
1139
-
1140
- <span class='def def kw'>def</span> <span class='numFmts identifier id'>numFmts</span>
1141
- <span class='@numFmts ivar id'>@numFmts</span>
1142
- <span class='end end kw'>end</span>
1143
- </pre>
1144
- </td>
1145
- </tr>
1146
- </table>
1147
- </div>
1148
-
1149
-
1150
- <span id=""></span>
1151
- <span id="tableStyles-instance_method"></span>
1152
- <div class="method_details ">
1153
- <p class="signature " id="tableStyles-instance_method">
1154
-
1155
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>tableStyles</strong> <span class="extras">(readonly)</span>
1156
-
1157
-
1158
-
1159
- </p><div class="docstring">
1160
- <div class="discussion">
1161
-
1162
- <div class="note notetag">
1163
- <strong>Note:</strong>
1164
- <div class='inline'><p>
1165
- The recommended way to manage styles is with add_style
1166
- </p>
1167
- </div>
1168
- </div>
1169
-
1170
- <p>
1171
- The collection of table styles that will be available to the user in the
1172
- excel UI
1173
- </p>
1174
-
1175
-
1176
- </div>
1177
- </div>
1178
- <div class="tags">
1179
-
1180
- <h3>Returns:</h3>
1181
- <ul class="return">
1182
-
1183
- <li>
1184
-
1185
-
1186
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
1187
-
1188
-
1189
-
1190
- </li>
1191
-
1192
- </ul>
1193
-
1194
- <h3>See Also:</h3>
1195
- <ul class="see">
1196
-
1197
- <li><span class='object_link'><a href="#add_style-instance_method" title="Axlsx::Styles#add_style (method)">#add_style</a></span></li>
1198
-
1199
- </ul>
1200
-
1201
- </div><table class="source_code">
1202
- <tr>
1203
- <td>
1204
- <pre class="lines">
1205
-
1206
-
1207
- 115
1208
- 116
1209
- 117</pre>
1210
- </td>
1211
- <td>
1212
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 115</span>
1213
-
1214
- <span class='def def kw'>def</span> <span class='tableStyles identifier id'>tableStyles</span>
1215
- <span class='@tableStyles ivar id'>@tableStyles</span>
1216
- <span class='end end kw'>end</span>
1217
- </pre>
1218
- </td>
1219
- </tr>
1220
- </table>
1221
- </div>
1222
-
1223
- </div>
1224
-
1225
-
1226
- <div id="instance_method_details" class="method_details_list">
1227
- <h2>Instance Method Details</h2>
1228
-
1229
-
1230
- <div class="method_details first">
1231
- <p class="signature first" id="add_style-instance_method">
1232
-
1233
- - (<tt>Integer</tt>) <strong>add_style</strong>(options = {})
1234
-
1235
-
1236
-
1237
- </p><div class="docstring">
1238
- <div class="discussion">
1239
- <p>
1240
- Drastically simplifies style creation and management.
1241
- </p>
1242
-
1243
-
1244
- </div>
1245
- </div>
1246
- <div class="tags">
1247
-
1248
- <div class="examples">
1249
- <h3>Examples:</h3>
1250
-
1251
- <h4><div class='inline'><p>
1252
- You Got Style
1253
- </p>
1254
- </div></h4>
1255
- <pre class="example code"><span class='require identifier id'>require</span> <span class='string val'>&quot;rubygems&quot;</span> <span class='comment val'># if that is your preferred way to manage gems!</span>
1256
- <span class='require identifier id'>require</span> <span class='string val'>&quot;axlsx&quot;</span>
1257
-
1258
- <span class='p identifier id'>p</span> <span class='assign token'>=</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Package constant id'>Package</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
1259
- <span class='ws identifier id'>ws</span> <span class='assign token'>=</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='add_worksheet identifier id'>add_worksheet</span>
1260
-
1261
- <span class='comment val'># black text on a white background at 14pt with thin borders!</span>
1262
- <span class='title identifier id'>title</span> <span class='assign token'>=</span> <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='style identifier id'>style</span><span class='dot token'>.</span><span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='symbol val'>:bg_color</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;FFFF0000&quot;</span><span class='comma token'>,</span> <span class='symbol val'>:fg_color=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;#FF000000&quot;</span><span class='comma token'>,</span> <span class='symbol val'>:sz=</span><span class='gt op'>&gt;</span><span class='integer val'>14</span><span class='comma token'>,</span> <span class='symbol val'>:border=</span><span class='gt op'>&gt;</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='STYLE_THIN_BORDER constant id'>STYLE_THIN_BORDER</span>
1263
-
1264
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Least Popular Pets&quot;</span><span class='rbrack token'>]</span>
1265
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Dry Skinned Reptiles&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Bald Cats&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Violent Parrots&quot;</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='title identifier id'>title</span>
1266
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Votes&quot;</span><span class='comma token'>,</span> <span class='integer val'>6</span><span class='comma token'>,</span> <span class='integer val'>4</span><span class='comma token'>,</span> <span class='integer val'>1</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='STYLE_THIN_BORDER constant id'>STYLE_THIN_BORDER</span>
1267
- <span class='f identifier id'>f</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='string val'>'example_you_got_style.xlsx'</span><span class='comma token'>,</span> <span class='string val'>'w'</span><span class='rparen token'>)</span>
1268
- <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='serialize identifier id'>serialize</span><span class='lparen token'>(</span><span class='f identifier id'>f</span><span class='rparen token'>)</span>
1269
- </pre>
1270
-
1271
- <h4><div class='inline'><p>
1272
- Styling specifically
1273
- </p>
1274
- </div></h4>
1275
- <pre class="example code"><span class='comment val'># an example of applying specific styles to specific cells</span>
1276
- <span class='require identifier id'>require</span> <span class='string val'>&quot;rubygems&quot;</span> <span class='comment val'># if that is your preferred way to manage gems!</span>
1277
- <span class='require identifier id'>require</span> <span class='string val'>&quot;axlsx&quot;</span>
1278
-
1279
- <span class='p identifier id'>p</span> <span class='assign token'>=</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Package constant id'>Package</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
1280
- <span class='ws identifier id'>ws</span> <span class='assign token'>=</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='add_worksheet identifier id'>add_worksheet</span>
1281
-
1282
- <span class='comment val'># define your styles</span>
1283
- <span class='title identifier id'>title</span> <span class='assign token'>=</span> <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='style identifier id'>style</span><span class='dot token'>.</span><span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='symbol val'>:bg_color</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;FFFF0000&quot;</span><span class='comma token'>,</span>
1284
- <span class='symbol val'>:fg_color=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;#FF000000&quot;</span><span class='comma token'>,</span>
1285
- <span class='symbol val'>:border=</span><span class='gt op'>&gt;</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='STYLE_THIN_BORDER constant id'>STYLE_THIN_BORDER</span><span class='comma token'>,</span>
1286
- <span class='symbol val'>:alignment=</span><span class='gt op'>&gt;</span><span class='lbrace token'>{</span><span class='symbol val'>:horizontal</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:center</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
1287
-
1288
- <span class='date_time identifier id'>date_time</span> <span class='assign token'>=</span> <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='style identifier id'>style</span><span class='dot token'>.</span><span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='symbol val'>:num_fmt</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='NUM_FMT_YYYYMMDDHHMMSS constant id'>NUM_FMT_YYYYMMDDHHMMSS</span><span class='comma token'>,</span>
1289
- <span class='symbol val'>:border=</span><span class='gt op'>&gt;</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='STYLE_THIN_BORDER constant id'>STYLE_THIN_BORDER</span><span class='rparen token'>)</span>
1290
-
1291
- <span class='percent identifier id'>percent</span> <span class='assign token'>=</span> <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='style identifier id'>style</span><span class='dot token'>.</span><span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='symbol val'>:num_fmt</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='NUM_FMT_PERCENT constant id'>NUM_FMT_PERCENT</span><span class='comma token'>,</span>
1292
- <span class='symbol val'>:border=</span><span class='gt op'>&gt;</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='STYLE_THIN_BORDER constant id'>STYLE_THIN_BORDER</span><span class='rparen token'>)</span>
1293
-
1294
- <span class='currency identifier id'>currency</span> <span class='assign token'>=</span> <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='style identifier id'>style</span><span class='dot token'>.</span><span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='symbol val'>:format_code=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;¥#,##0;[Red]¥-#,##0&quot;</span><span class='comma token'>,</span>
1295
- <span class='symbol val'>:border=</span><span class='gt op'>&gt;</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='STYLE_THIN_BORDER constant id'>STYLE_THIN_BORDER</span><span class='rparen token'>)</span>
1296
-
1297
- <span class='comment val'># build your rows</span>
1298
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Genreated At:&quot;</span><span class='comma token'>,</span> <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:styles=</span><span class='gt op'>&gt;</span><span class='lbrack token'>[</span><span class='nil nil kw'>nil</span><span class='comma token'>,</span> <span class='date_time identifier id'>date_time</span><span class='rbrack token'>]</span>
1299
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Previous Year Quarterly Profits (JPY)&quot;</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='title identifier id'>title</span>
1300
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Quarter&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Profit&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;% of Total&quot;</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='title identifier id'>title</span>
1301
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Q1&quot;</span><span class='comma token'>,</span> <span class='integer val'>4000</span><span class='comma token'>,</span> <span class='integer val'>40</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='lbrack token'>[</span><span class='title identifier id'>title</span><span class='comma token'>,</span> <span class='currency identifier id'>currency</span><span class='comma token'>,</span> <span class='percent identifier id'>percent</span><span class='rbrack token'>]</span>
1302
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Q2&quot;</span><span class='comma token'>,</span> <span class='integer val'>3000</span><span class='comma token'>,</span> <span class='integer val'>30</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='lbrack token'>[</span><span class='title identifier id'>title</span><span class='comma token'>,</span> <span class='currency identifier id'>currency</span><span class='comma token'>,</span> <span class='percent identifier id'>percent</span><span class='rbrack token'>]</span>
1303
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Q3&quot;</span><span class='comma token'>,</span> <span class='integer val'>1000</span><span class='comma token'>,</span> <span class='integer val'>10</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='lbrack token'>[</span><span class='title identifier id'>title</span><span class='comma token'>,</span> <span class='currency identifier id'>currency</span><span class='comma token'>,</span> <span class='percent identifier id'>percent</span><span class='rbrack token'>]</span>
1304
- <span class='ws identifier id'>ws</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='symbol val'>:values</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Q4&quot;</span><span class='comma token'>,</span> <span class='integer val'>2000</span><span class='comma token'>,</span> <span class='integer val'>20</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='lbrack token'>[</span><span class='title identifier id'>title</span><span class='comma token'>,</span> <span class='currency identifier id'>currency</span><span class='comma token'>,</span> <span class='percent identifier id'>percent</span><span class='rbrack token'>]</span>
1305
- <span class='f identifier id'>f</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='string val'>'example_you_got_style.xlsx'</span><span class='comma token'>,</span> <span class='string val'>'w'</span><span class='rparen token'>)</span>
1306
- <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='serialize identifier id'>serialize</span><span class='lparen token'>(</span><span class='f identifier id'>f</span><span class='rparen token'>)</span>
1307
- </pre>
1308
-
1309
- </div>
1310
- <h3>Parameters:</h3>
1311
- <ul class="param">
1312
-
1313
- <li>
1314
-
1315
- <span class='name'>options</span>
1316
-
1317
-
1318
- <span class='type'>(<tt>Hash</tt>)</span>
1319
-
1320
-
1321
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1322
-
1323
-
1324
- &mdash;
1325
- <div class='inline'><p>
1326
- a customizable set of options
1327
- </p>
1328
- </div>
1329
-
1330
- </li>
1331
-
1332
- </ul>
1333
-
1334
-
1335
-
1336
-
1337
- <h3>Options Hash (<tt>options</tt>):</h3>
1338
- <ul class="option">
1339
-
1340
- <li>
1341
- <span class="name">fg_color</span>
1342
- <span class="type">(<tt>String</tt>)</span>
1343
- <span class="default">
1344
-
1345
- </span>
1346
- &mdash; <div class='inline'><p>
1347
- The text color
1348
- </p>
1349
- </div>
1350
- </li>
1351
-
1352
- <li>
1353
- <span class="name">sz</span>
1354
- <span class="type">(<tt>Integer</tt>)</span>
1355
- <span class="default">
1356
-
1357
- </span>
1358
- &mdash; <div class='inline'><p>
1359
- The text size
1360
- </p>
1361
- </div>
1362
- </li>
1363
-
1364
- <li>
1365
- <span class="name">b</span>
1366
- <span class="type">(<tt>Boolean</tt>)</span>
1367
- <span class="default">
1368
-
1369
- </span>
1370
- &mdash; <div class='inline'><p>
1371
- Indicates if the text should be bold
1372
- </p>
1373
- </div>
1374
- </li>
1375
-
1376
- <li>
1377
- <span class="name">i</span>
1378
- <span class="type">(<tt>Boolean</tt>)</span>
1379
- <span class="default">
1380
-
1381
- </span>
1382
- &mdash; <div class='inline'><p>
1383
- Indicates if the text should be italicised
1384
- </p>
1385
- </div>
1386
- </li>
1387
-
1388
- <li>
1389
- <span class="name">strike</span>
1390
- <span class="type">(<tt>Boolean</tt>)</span>
1391
- <span class="default">
1392
-
1393
- </span>
1394
- &mdash; <div class='inline'><p>
1395
- Indicates if the text should be rendered with a strikethrough
1396
- </p>
1397
- </div>
1398
- </li>
1399
-
1400
- <li>
1401
- <span class="name">strike</span>
1402
- <span class="type">(<tt>Boolean</tt>)</span>
1403
- <span class="default">
1404
-
1405
- </span>
1406
- &mdash; <div class='inline'><p>
1407
- Indicates if the text should be rendered with a shadow
1408
- </p>
1409
- </div>
1410
- </li>
1411
-
1412
- <li>
1413
- <span class="name">charset</span>
1414
- <span class="type">(<tt>Integer</tt>)</span>
1415
- <span class="default">
1416
-
1417
- </span>
1418
- &mdash; <div class='inline'><p>
1419
- The character set to use.
1420
- </p>
1421
- </div>
1422
- </li>
1423
-
1424
- <li>
1425
- <span class="name">family</span>
1426
- <span class="type">(<tt>Integer</tt>)</span>
1427
- <span class="default">
1428
-
1429
- </span>
1430
- &mdash; <div class='inline'><p>
1431
- The font family to use.
1432
- </p>
1433
- </div>
1434
- </li>
1435
-
1436
- <li>
1437
- <span class="name">name</span>
1438
- <span class="type">(<tt>String</tt>)</span>
1439
- <span class="default">
1440
-
1441
- </span>
1442
- &mdash; <div class='inline'><p>
1443
- The name of the font to use
1444
- </p>
1445
- </div>
1446
- </li>
1447
-
1448
- <li>
1449
- <span class="name">num_fmt</span>
1450
- <span class="type">(<tt>Integer</tt>)</span>
1451
- <span class="default">
1452
-
1453
- </span>
1454
- &mdash; <div class='inline'><p>
1455
- The number format to apply
1456
- </p>
1457
- </div>
1458
- </li>
1459
-
1460
- <li>
1461
- <span class="name">format_code</span>
1462
- <span class="type">(<tt>String</tt>)</span>
1463
- <span class="default">
1464
-
1465
- </span>
1466
- &mdash; <div class='inline'><p>
1467
- The formatting to apply. If this is specified, num_fmt is ignored.
1468
- </p>
1469
- </div>
1470
- </li>
1471
-
1472
- <li>
1473
- <span class="name">border</span>
1474
- <span class="type">(<tt>Integer</tt>)</span>
1475
- <span class="default">
1476
-
1477
- </span>
1478
- &mdash; <div class='inline'><p>
1479
- The border style to use.
1480
- </p>
1481
- </div>
1482
- </li>
1483
-
1484
- <li>
1485
- <span class="name">bg_color</span>
1486
- <span class="type">(<tt>String</tt>)</span>
1487
- <span class="default">
1488
-
1489
- </span>
1490
- &mdash; <div class='inline'><p>
1491
- The background color to apply to the cell
1492
- </p>
1493
- </div>
1494
- </li>
1495
-
1496
- <li>
1497
- <span class="name">hidden</span>
1498
- <span class="type">(<tt>Boolean</tt>)</span>
1499
- <span class="default">
1500
-
1501
- </span>
1502
- &mdash; <div class='inline'><p>
1503
- Indicates if the cell should be hidden
1504
- </p>
1505
- </div>
1506
- </li>
1507
-
1508
- <li>
1509
- <span class="name">locked</span>
1510
- <span class="type">(<tt>Boolean</tt>)</span>
1511
- <span class="default">
1512
-
1513
- </span>
1514
- &mdash; <div class='inline'><p>
1515
- Indicates if the cell should be locked
1516
- </p>
1517
- </div>
1518
- </li>
1519
-
1520
- <li>
1521
- <span class="name">alignment</span>
1522
- <span class="type">(<tt>Hash</tt>)</span>
1523
- <span class="default">
1524
-
1525
- </span>
1526
- &mdash; <div class='inline'><p>
1527
- A hash defining any of the attributes used in CellAlignment
1528
- </p>
1529
- </div>
1530
- </li>
1531
-
1532
- </ul>
1533
-
1534
-
1535
- <h3>Returns:</h3>
1536
- <ul class="return">
1537
-
1538
- <li>
1539
-
1540
-
1541
- <span class='type'>(<tt>Integer</tt>)</span>
1542
-
1543
-
1544
-
1545
- </li>
1546
-
1547
- </ul>
1548
- <h3>Raises:</h3>
1549
- <ul class="raise">
1550
-
1551
- <li>
1552
-
1553
-
1554
- <span class='type'>(<tt>ArgumentError</tt>)</span>
1555
-
1556
-
1557
-
1558
- </li>
1559
-
1560
- </ul>
1561
-
1562
- <h3>See Also:</h3>
1563
- <ul class="see">
1564
-
1565
- <li><span class='object_link'><a href="CellAlignment.html" title="Axlsx::CellAlignment (class)">CellAlignment</a></span></li>
1566
-
1567
- </ul>
1568
-
1569
- </div><table class="source_code">
1570
- <tr>
1571
- <td>
1572
- <pre class="lines">
1573
-
1574
-
1575
- 191
1576
- 192
1577
- 193
1578
- 194
1579
- 195
1580
- 196
1581
- 197
1582
- 198
1583
- 199
1584
- 200
1585
- 201
1586
- 202
1587
- 203
1588
- 204
1589
- 205
1590
- 206
1591
- 207
1592
- 208
1593
- 209
1594
- 210
1595
- 211
1596
- 212
1597
- 213
1598
- 214
1599
- 215
1600
- 216
1601
- 217
1602
- 218
1603
- 219
1604
- 220
1605
- 221
1606
- 222
1607
- 223
1608
- 224
1609
- 225
1610
- 226
1611
- 227
1612
- 228
1613
- 229
1614
- 230
1615
- 231
1616
- 232
1617
- 233
1618
- 234
1619
- 235</pre>
1620
- </td>
1621
- <td>
1622
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 191</span>
1623
-
1624
- <span class='def def kw'>def</span> <span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
1625
-
1626
- <span class='numFmtId identifier id'>numFmtId</span> <span class='assign token'>=</span> <span class='if if kw'>if</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:format_code</span><span class='rbrack token'>]</span>
1627
- <span class='n identifier id'>n</span> <span class='assign token'>=</span> <span class='@numFmts ivar id'>@numFmts</span><span class='dot token'>.</span><span class='map identifier id'>map</span><span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='f identifier id'>f</span><span class='bitor op'>|</span> <span class='f identifier id'>f</span><span class='dot token'>.</span><span class='numFmtId identifier id'>numFmtId</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='max identifier id'>max</span> <span class='plus op'>+</span> <span class='integer val'>1</span>
1628
- <span class='numFmts identifier id'>numFmts</span> <span class='lshft op'>&lt;&lt;</span> <span class='NumFmt constant id'>NumFmt</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:numFmtId</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='n identifier id'>n</span><span class='comma token'>,</span> <span class='symbol val'>:formatCode=</span><span class='gt op'>&gt;</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:format_code</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
1629
- <span class='n identifier id'>n</span>
1630
- <span class='else else kw'>else</span>
1631
- <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:num_fmt</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='integer val'>0</span>
1632
- <span class='end end kw'>end</span>
1633
-
1634
- <span class='borderId identifier id'>borderId</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:border</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='integer val'>0</span>
1635
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>&quot;Invalid borderId&quot;</span> <span class='unless unless_mod kw'>unless</span> <span class='borderId identifier id'>borderId</span> <span class='lt op'>&lt;</span> <span class='borders identifier id'>borders</span><span class='dot token'>.</span><span class='size identifier id'>size</span>
1636
-
1637
- <span class='fill identifier id'>fill</span> <span class='assign token'>=</span> <span class='if if kw'>if</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:bg_color</span><span class='rbrack token'>]</span>
1638
- <span class='color identifier id'>color</span> <span class='assign token'>=</span> <span class='Color constant id'>Color</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:rgb=</span><span class='gt op'>&gt;</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:bg_color</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
1639
- <span class='pattern identifier id'>pattern</span> <span class='assign token'>=</span> <span class='PatternFill constant id'>PatternFill</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:patternType</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='symbol val'>:solid</span><span class='comma token'>,</span> <span class='symbol val'>:fgColor=</span><span class='gt op'>&gt;</span><span class='color identifier id'>color</span><span class='rparen token'>)</span>
1640
- <span class='fills identifier id'>fills</span> <span class='lshft op'>&lt;&lt;</span> <span class='Fill constant id'>Fill</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='pattern identifier id'>pattern</span><span class='rparen token'>)</span>
1641
- <span class='else else kw'>else</span>
1642
- <span class='integer val'>0</span>
1643
- <span class='end end kw'>end</span>
1644
-
1645
- <span class='fontId identifier id'>fontId</span> <span class='assign token'>=</span> <span class='if if kw'>if</span> <span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='dot token'>.</span><span class='values_at identifier id'>values_at</span><span class='lparen token'>(</span><span class='symbol val'>:fg_color</span><span class='comma token'>,</span> <span class='symbol val'>:sz</span><span class='comma token'>,</span> <span class='symbol val'>:b</span><span class='comma token'>,</span> <span class='symbol val'>:i</span><span class='comma token'>,</span> <span class='symbol val'>:strike</span><span class='comma token'>,</span> <span class='symbol val'>:outline</span><span class='comma token'>,</span> <span class='symbol val'>:shadow</span><span class='comma token'>,</span> <span class='symbol val'>:charset</span><span class='comma token'>,</span> <span class='symbol val'>:family</span><span class='comma token'>,</span> <span class='symbol val'>:font_name</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='length identifier id'>length</span><span class='rparen token'>)</span>
1646
- <span class='font identifier id'>font</span> <span class='assign token'>=</span> <span class='Font constant id'>Font</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
1647
- <span class='lbrack token'>[</span><span class='symbol val'>:b</span><span class='comma token'>,</span> <span class='symbol val'>:i</span><span class='comma token'>,</span> <span class='symbol val'>:strike</span><span class='comma token'>,</span> <span class='symbol val'>:outline</span><span class='comma token'>,</span> <span class='symbol val'>:shadow</span><span class='comma token'>,</span> <span class='symbol val'>:charset</span><span class='comma token'>,</span> <span class='symbol val'>:family</span><span class='comma token'>,</span> <span class='symbol val'>:sz</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='bitor op'>|</span> <span class='font identifier id'>font</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{k}=&quot;</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='k identifier id'>k</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='k identifier id'>k</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='rbrace token'>}</span>
1648
- <span class='font identifier id'>font</span><span class='dot token'>.</span><span class='color identifier id'>color</span> <span class='assign token'>=</span> <span class='Color constant id'>Color</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:rgb</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:fg_color</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:fg_color</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
1649
- <span class='font identifier id'>font</span><span class='dot token'>.</span><span class='name identifier id'>name</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:font_name</span><span class='rbrack token'>]</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:font_name</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
1650
- <span class='fonts identifier id'>fonts</span> <span class='lshft op'>&lt;&lt;</span> <span class='font identifier id'>font</span>
1651
- <span class='else else kw'>else</span>
1652
- <span class='integer val'>0</span>
1653
- <span class='end end kw'>end</span>
1654
-
1655
- <span class='applyProtection identifier id'>applyProtection</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:hidden</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:locked</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='integer val'>1</span> <span class='colon op'>:</span> <span class='integer val'>0</span>
1656
-
1657
- <span class='xf identifier id'>xf</span> <span class='assign token'>=</span> <span class='Xf constant id'>Xf</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:fillId</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='fill identifier id'>fill</span><span class='comma token'>,</span> <span class='symbol val'>:fontId=</span><span class='gt op'>&gt;</span><span class='fontId identifier id'>fontId</span><span class='comma token'>,</span> <span class='symbol val'>:applyFill=</span><span class='gt op'>&gt;</span><span class='integer val'>1</span><span class='comma token'>,</span> <span class='symbol val'>:applyFont=</span><span class='gt op'>&gt;</span><span class='integer val'>1</span><span class='comma token'>,</span> <span class='symbol val'>:numFmtId=</span><span class='gt op'>&gt;</span><span class='numFmtId identifier id'>numFmtId</span><span class='comma token'>,</span> <span class='symbol val'>:borderId=</span><span class='gt op'>&gt;</span><span class='borderId identifier id'>borderId</span><span class='comma token'>,</span> <span class='symbol val'>:applyProtection=</span><span class='gt op'>&gt;</span><span class='applyProtection identifier id'>applyProtection</span><span class='rparen token'>)</span>
1658
-
1659
- <span class='if if kw'>if</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:alignment</span><span class='rbrack token'>]</span>
1660
- <span class='xf identifier id'>xf</span><span class='dot token'>.</span><span class='alignment identifier id'>alignment</span> <span class='assign token'>=</span> <span class='CellAlignment constant id'>CellAlignment</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:alignment</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
1661
- <span class='end end kw'>end</span>
1662
-
1663
- <span class='if if kw'>if</span> <span class='applyProtection identifier id'>applyProtection</span>
1664
- <span class='xf identifier id'>xf</span><span class='dot token'>.</span><span class='protection identifier id'>protection</span> <span class='assign token'>=</span> <span class='CellProtection constant id'>CellProtection</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='rparen token'>)</span>
1665
- <span class='end end kw'>end</span>
1666
-
1667
- <span class='cellXfs identifier id'>cellXfs</span> <span class='lshft op'>&lt;&lt;</span> <span class='xf identifier id'>xf</span>
1668
- <span class='end end kw'>end</span>
1669
- </pre>
1670
- </td>
1671
- </tr>
1672
- </table>
1673
- </div>
1674
-
1675
- <div class="method_details ">
1676
- <p class="signature " id="to_xml-instance_method">
1677
-
1678
- - (<tt>String</tt>) <strong>to_xml</strong>
1679
-
1680
-
1681
-
1682
- </p><div class="docstring">
1683
- <div class="discussion">
1684
- <p>
1685
- Serializes the styles document
1686
- </p>
1687
-
1688
-
1689
- </div>
1690
- </div>
1691
- <div class="tags">
1692
-
1693
- <h3>Returns:</h3>
1694
- <ul class="return">
1695
-
1696
- <li>
1697
-
1698
-
1699
- <span class='type'>(<tt>String</tt>)</span>
1700
-
1701
-
1702
-
1703
- </li>
1704
-
1705
- </ul>
1706
-
1707
- </div><table class="source_code">
1708
- <tr>
1709
- <td>
1710
- <pre class="lines">
1711
-
1712
-
1713
- 239
1714
- 240
1715
- 241
1716
- 242
1717
- 243
1718
- 244
1719
- 245
1720
- 246
1721
- 247
1722
- 248</pre>
1723
- </td>
1724
- <td>
1725
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/styles.rb', line 239</span>
1726
-
1727
- <span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
1728
- <span class='builder identifier id'>builder</span> <span class='assign token'>=</span> <span class='Nokogiri constant id'>Nokogiri</span><span class='colon2 op'>::</span><span class='XML constant id'>XML</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:encoding</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='ENCODING constant id'>ENCODING</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
1729
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='styleSheet identifier id'>styleSheet</span><span class='lparen token'>(</span><span class='symbol val'>:xmlns</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='XML_NS constant id'>XML_NS</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1730
- <span class='lbrack token'>[</span><span class='symbol val'>:numFmts</span><span class='comma token'>,</span> <span class='symbol val'>:fonts</span><span class='comma token'>,</span> <span class='symbol val'>:fills</span><span class='comma token'>,</span> <span class='symbol val'>:borders</span><span class='comma token'>,</span> <span class='symbol val'>:cellStyleXfs</span><span class='comma token'>,</span> <span class='symbol val'>:cellXfs</span><span class='comma token'>,</span> <span class='symbol val'>:cellStyles</span><span class='comma token'>,</span> <span class='symbol val'>:dxfs</span><span class='comma token'>,</span> <span class='symbol val'>:tableStyles</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='key identifier id'>key</span><span class='bitor op'>|</span>
1731
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='lbrack token'>[</span><span class='key identifier id'>key</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
1732
- <span class='end end kw'>end</span>
1733
- <span class='rbrace token'>}</span>
1734
- <span class='end end kw'>end</span>
1735
- <span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
1736
- <span class='end end kw'>end</span>
1737
- </pre>
1738
- </td>
1739
- </tr>
1740
- </table>
1741
- </div>
1742
-
1743
- </div>
1744
-
1745
- </div>
1746
-
1747
- <div id="footer">
1748
- Generated on Mon Dec 5 14:21:15 2011 by
1749
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1750
- 0.7.3 (ruby-1.8.7).
1751
- </div>
1752
-
1753
- </body>
1754
- </html>