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,705 +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::TableStyle
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 (T)</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">TableStyle</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::TableStyle
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="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next"><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></li>
75
-
76
- <li class="next">Axlsx::TableStyle</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/stylesheet/table_style.rb</dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
- <h2>Overview</h2><div class="docstring">
98
- <div class="discussion">
99
-
100
- <div class="note notetag">
101
- <strong>Note:</strong>
102
- <div class='inline'><p>
103
- Table are not supported in this version and only the defaults required for
104
- a valid workbook are created.
105
- </p>
106
- </div>
107
- </div>
108
-
109
- <p>
110
- A single table style definition and is a collection for tableStyleElements
111
- </p>
112
-
113
-
114
- </div>
115
- </div>
116
- <div class="tags">
117
-
118
-
119
- </div>
120
-
121
-
122
-
123
-
124
-
125
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
126
- <ul class="summary">
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#name-instance_method" title="#name (instance method)">- (string) <strong>name</strong> </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <span class="summary_desc"><div class='inline'><p>
148
- The name of this table style.
149
- </p>
150
- </div></span>
151
-
152
- </li>
153
-
154
-
155
- <li class="public ">
156
- <span class="summary_signature">
157
-
158
- <a href="#pivot-instance_method" title="#pivot (instance method)">- (Boolean) <strong>pivot</strong> </a>
159
-
160
-
161
-
162
- </span>
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
- <span class="summary_desc"><div class='inline'><p>
175
- indicates if this style should be applied to pivot tables.
176
- </p>
177
- </div></span>
178
-
179
- </li>
180
-
181
-
182
- <li class="public ">
183
- <span class="summary_signature">
184
-
185
- <a href="#table-instance_method" title="#table (instance method)">- (Boolean) <strong>table</strong> </a>
186
-
187
-
188
-
189
- </span>
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
- <span class="summary_desc"><div class='inline'><p>
202
- indicates if this style should be applied to tables.
203
- </p>
204
- </div></span>
205
-
206
- </li>
207
-
208
-
209
- </ul>
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
219
- <p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#allowed_types-instance_method" title="Axlsx::SimpleTypedList#allowed_types (method)">allowed_types</a></span>, <span class='object_link'><a href="SimpleTypedList.html#locked_at-instance_method" title="Axlsx::SimpleTypedList#locked_at (method)">locked_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#serialize_as-instance_method" title="Axlsx::SimpleTypedList#serialize_as (method)">serialize_as</a></span></p>
220
-
221
-
222
-
223
- <h2>
224
- Instance Method Summary
225
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
226
- </h2>
227
-
228
- <ul class="summary">
229
-
230
- <li class="public ">
231
- <span class="summary_signature">
232
-
233
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (TableStyle) <strong>initialize</strong>(name, options = {}) </a>
234
-
235
-
236
-
237
- </span>
238
-
239
- <span class="note title constructor">constructor</span>
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
- <span class="summary_desc"><div class='inline'><p>
249
- creates a new TableStyle object.
250
- </p>
251
- </div></span>
252
-
253
- </li>
254
-
255
-
256
- <li class="public ">
257
- <span class="summary_signature">
258
-
259
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
260
-
261
-
262
-
263
- </span>
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
- <span class="summary_desc"><div class='inline'><p>
273
- Serializes the table style.
274
- </p>
275
- </div></span>
276
-
277
- </li>
278
-
279
-
280
- </ul>
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
- <div id="constructor_details" class="method_details_list">
289
- <h2>Constructor Details</h2>
290
-
291
- <div class="method_details first">
292
- <p class="signature first" id="initialize-instance_method">
293
-
294
- - (<tt><span class='object_link'><a href="" title="Axlsx::TableStyle (class)">TableStyle</a></span></tt>) <strong>initialize</strong>(name, options = {})
295
-
296
-
297
-
298
- </p><div class="docstring">
299
- <div class="discussion">
300
- <p>
301
- creates a new TableStyle object
302
- </p>
303
-
304
-
305
- </div>
306
- </div>
307
- <div class="tags">
308
- <h3>Parameters:</h3>
309
- <ul class="param">
310
-
311
- <li>
312
-
313
- <span class='name'>name</span>
314
-
315
-
316
- <span class='type'>(<tt>String</tt>)</span>
317
-
318
-
319
-
320
- </li>
321
-
322
- <li>
323
-
324
- <span class='name'>options</span>
325
-
326
-
327
- <span class='type'>(<tt>Hash</tt>)</span>
328
-
329
-
330
- <em class="default">(defaults to: <tt>{}</tt>)</em>
331
-
332
-
333
- &mdash;
334
- <div class='inline'><p>
335
- a customizable set of options
336
- </p>
337
- </div>
338
-
339
- </li>
340
-
341
- </ul>
342
-
343
-
344
-
345
-
346
-
347
-
348
- <h3>Options Hash (<tt>options</tt>):</h3>
349
- <ul class="option">
350
-
351
- <li>
352
- <span class="name">pivot</span>
353
- <span class="type">(<tt>Boolean</tt>)</span>
354
- <span class="default">
355
-
356
- </span>
357
-
358
- </li>
359
-
360
- <li>
361
- <span class="name">table</span>
362
- <span class="type">(<tt>Boolean</tt>)</span>
363
- <span class="default">
364
-
365
- </span>
366
-
367
- </li>
368
-
369
- </ul>
370
-
371
-
372
- <h3>Raises:</h3>
373
- <ul class="raise">
374
-
375
- <li>
376
-
377
-
378
- <span class='type'>(<tt>ArgumentError</tt>)</span>
379
-
380
-
381
-
382
- &mdash;
383
- <div class='inline'><p>
384
- if name option is not provided.
385
- </p>
386
- </div>
387
-
388
- </li>
389
-
390
- </ul>
391
-
392
- </div><table class="source_code">
393
- <tr>
394
- <td>
395
- <pre class="lines">
396
-
397
-
398
- 23
399
- 24
400
- 25
401
- 26
402
- 27
403
- 28
404
- 29</pre>
405
- </td>
406
- <td>
407
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 23</span>
408
-
409
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma 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>
410
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='name identifier id'>name</span> <span class='assign token'>=</span> <span class='name identifier id'>name</span>
411
- <span class='options identifier id'>options</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='o identifier id'>o</span><span class='bitor op'>|</span>
412
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{o[0]}=&quot;</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
413
- <span class='end end kw'>end</span>
414
- <span class='super super kw'>super</span> <span class='TableStyleElement constant id'>TableStyleElement</span>
415
- <span class='end end kw'>end</span>
416
- </pre>
417
- </td>
418
- </tr>
419
- </table>
420
- </div>
421
-
422
- </div>
423
- <div id="method_missing_details" class="method_details_list">
424
- <h2>Dynamic Method Handling</h2>
425
- <p class="notice super">
426
- This class handles dynamic methods through the <tt>method_missing</tt> method
427
-
428
- in the class <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">Axlsx::SimpleTypedList</a></span>
429
-
430
- </p>
431
-
432
- </div>
433
-
434
- <div id="instance_attr_details" class="attr_details">
435
- <h2>Instance Attribute Details</h2>
436
-
437
-
438
- <span id="name=-instance_method"></span>
439
- <span id="name-instance_method"></span>
440
- <div class="method_details first">
441
- <p class="signature first" id="name-instance_method">
442
-
443
- - (<tt>string</tt>) <strong>name</strong>
444
-
445
-
446
-
447
- </p><div class="docstring">
448
- <div class="discussion">
449
- <p>
450
- The name of this table style
451
- </p>
452
-
453
-
454
- </div>
455
- </div>
456
- <div class="tags">
457
-
458
- <h3>Returns:</h3>
459
- <ul class="return">
460
-
461
- <li>
462
-
463
-
464
- <span class='type'>(<tt>string</tt>)</span>
465
-
466
-
467
-
468
- </li>
469
-
470
- </ul>
471
-
472
- </div><table class="source_code">
473
- <tr>
474
- <td>
475
- <pre class="lines">
476
-
477
-
478
- 8
479
- 9
480
- 10</pre>
481
- </td>
482
- <td>
483
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 8</span>
484
-
485
- <span class='def def kw'>def</span> <span class='name identifier id'>name</span>
486
- <span class='@name ivar id'>@name</span>
487
- <span class='end end kw'>end</span>
488
- </pre>
489
- </td>
490
- </tr>
491
- </table>
492
- </div>
493
-
494
-
495
- <span id="pivot=-instance_method"></span>
496
- <span id="pivot-instance_method"></span>
497
- <div class="method_details ">
498
- <p class="signature " id="pivot-instance_method">
499
-
500
- - (<tt>Boolean</tt>) <strong>pivot</strong>
501
-
502
-
503
-
504
- </p><div class="docstring">
505
- <div class="discussion">
506
- <p>
507
- indicates if this style should be applied to pivot tables
508
- </p>
509
-
510
-
511
- </div>
512
- </div>
513
- <div class="tags">
514
-
515
- <h3>Returns:</h3>
516
- <ul class="return">
517
-
518
- <li>
519
-
520
-
521
- <span class='type'>(<tt>Boolean</tt>)</span>
522
-
523
-
524
-
525
- </li>
526
-
527
- </ul>
528
-
529
- </div><table class="source_code">
530
- <tr>
531
- <td>
532
- <pre class="lines">
533
-
534
-
535
- 12
536
- 13
537
- 14</pre>
538
- </td>
539
- <td>
540
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 12</span>
541
-
542
- <span class='def def kw'>def</span> <span class='pivot identifier id'>pivot</span>
543
- <span class='@pivot ivar id'>@pivot</span>
544
- <span class='end end kw'>end</span>
545
- </pre>
546
- </td>
547
- </tr>
548
- </table>
549
- </div>
550
-
551
-
552
- <span id="table=-instance_method"></span>
553
- <span id="table-instance_method"></span>
554
- <div class="method_details ">
555
- <p class="signature " id="table-instance_method">
556
-
557
- - (<tt>Boolean</tt>) <strong>table</strong>
558
-
559
-
560
-
561
- </p><div class="docstring">
562
- <div class="discussion">
563
- <p>
564
- indicates if this style should be applied to tables
565
- </p>
566
-
567
-
568
- </div>
569
- </div>
570
- <div class="tags">
571
-
572
- <h3>Returns:</h3>
573
- <ul class="return">
574
-
575
- <li>
576
-
577
-
578
- <span class='type'>(<tt>Boolean</tt>)</span>
579
-
580
-
581
-
582
- </li>
583
-
584
- </ul>
585
-
586
- </div><table class="source_code">
587
- <tr>
588
- <td>
589
- <pre class="lines">
590
-
591
-
592
- 16
593
- 17
594
- 18</pre>
595
- </td>
596
- <td>
597
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 16</span>
598
-
599
- <span class='def def kw'>def</span> <span class='table identifier id'>table</span>
600
- <span class='@table ivar id'>@table</span>
601
- <span class='end end kw'>end</span>
602
- </pre>
603
- </td>
604
- </tr>
605
- </table>
606
- </div>
607
-
608
- </div>
609
-
610
-
611
- <div id="instance_method_details" class="method_details_list">
612
- <h2>Instance Method Details</h2>
613
-
614
-
615
- <div class="method_details first">
616
- <p class="signature first" id="to_xml-instance_method">
617
-
618
- - (<tt>String</tt>) <strong>to_xml</strong>(xml)
619
-
620
-
621
-
622
- </p><div class="docstring">
623
- <div class="discussion">
624
- <p>
625
- Serializes the table style
626
- </p>
627
-
628
-
629
- </div>
630
- </div>
631
- <div class="tags">
632
- <h3>Parameters:</h3>
633
- <ul class="param">
634
-
635
- <li>
636
-
637
- <span class='name'>xml</span>
638
-
639
-
640
- <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
641
-
642
-
643
-
644
- &mdash;
645
- <div class='inline'><p>
646
- The document builder instance this objects xml will be added to.
647
- </p>
648
- </div>
649
-
650
- </li>
651
-
652
- </ul>
653
-
654
- <h3>Returns:</h3>
655
- <ul class="return">
656
-
657
- <li>
658
-
659
-
660
- <span class='type'>(<tt>String</tt>)</span>
661
-
662
-
663
-
664
- </li>
665
-
666
- </ul>
667
-
668
- </div><table class="source_code">
669
- <tr>
670
- <td>
671
- <pre class="lines">
672
-
673
-
674
- 41
675
- 42
676
- 43
677
- 44
678
- 45</pre>
679
- </td>
680
- <td>
681
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 41</span>
682
-
683
- <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>
684
- <span class='attr identifier id'>attr</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='dot token'>.</span><span class='select identifier id'>select</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='lbrack token'>[</span><span class='symbol val'>:name</span><span class='comma token'>,</span> <span class='symbol val'>:pivot</span><span class='comma token'>,</span> <span class='symbol val'>:table</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span> <span class='k identifier id'>k</span> <span class='rbrace token'>}</span>
685
- <span class='attr identifier id'>attr</span><span class='lbrack token'>[</span><span class='symbol val'>:count</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='size identifier id'>size</span>
686
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='tableStyle identifier id'>tableStyle</span><span class='lparen token'>(</span><span class='attr identifier id'>attr</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span> <span class='self self kw'>self</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='table_style_el identifier id'>table_style_el</span><span class='bitor op'>|</span> <span class='table_style_el identifier id'>table_style_el</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> <span class='rbrace token'>}</span> <span class='rbrace token'>}</span>
687
- <span class='end end kw'>end</span>
688
- </pre>
689
- </td>
690
- </tr>
691
- </table>
692
- </div>
693
-
694
- </div>
695
-
696
- </div>
697
-
698
- <div id="footer">
699
- Generated on Mon Dec 5 14:21:15 2011 by
700
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
701
- 0.7.3 (ruby-1.8.7).
702
- </div>
703
-
704
- </body>
705
- </html>