axlsx 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/README.md +22 -21
  3. data/Rakefile +1 -1
  4. data/axlsx.gemspec +36 -0
  5. data/doc/Axlsx.html +373 -559
  6. data/doc/Axlsx/App.html +257 -360
  7. data/doc/Axlsx/Axis.html +113 -144
  8. data/doc/Axlsx/Bar3DChart.html +122 -152
  9. data/doc/Axlsx/BarSeries.html +67 -81
  10. data/doc/Axlsx/Border.html +96 -119
  11. data/doc/Axlsx/BorderPr.html +89 -114
  12. data/doc/Axlsx/CatAxis.html +79 -104
  13. data/doc/Axlsx/CatAxisData.html +40 -54
  14. data/doc/Axlsx/Cell.html +193 -679
  15. data/doc/Axlsx/CellAlignment.html +116 -157
  16. data/doc/Axlsx/CellProtection.html +50 -68
  17. data/doc/Axlsx/CellStyle.html +78 -106
  18. data/doc/Axlsx/Chart.html +361 -432
  19. data/doc/Axlsx/Color.html +56 -78
  20. data/doc/Axlsx/ContentType.html +28 -41
  21. data/doc/Axlsx/Core.html +43 -55
  22. data/doc/Axlsx/DataTypeValidator.html +34 -43
  23. data/doc/Axlsx/Default.html +55 -81
  24. data/doc/Axlsx/Drawing.html +322 -412
  25. data/doc/Axlsx/Fill.html +34 -47
  26. data/doc/Axlsx/Font.html +157 -207
  27. data/doc/Axlsx/GradientFill.html +90 -122
  28. data/doc/Axlsx/GradientStop.html +36 -50
  29. data/doc/Axlsx/GraphicFrame.html +106 -130
  30. data/doc/Axlsx/Line3DChart.html +108 -134
  31. data/doc/Axlsx/LineSeries.html +58 -67
  32. data/doc/Axlsx/Marker.html +84 -111
  33. data/doc/Axlsx/NumFmt.html +83 -102
  34. data/doc/Axlsx/OneCellAnchor.html +158 -196
  35. data/doc/Axlsx/Override.html +60 -92
  36. data/doc/Axlsx/Package.html +190 -759
  37. data/doc/Axlsx/PatternFill.html +78 -99
  38. data/doc/Axlsx/Pic.html +451 -405
  39. data/doc/Axlsx/Pie3DChart.html +33 -42
  40. data/doc/Axlsx/PieSeries.html +68 -80
  41. data/doc/Axlsx/RegexValidator.html +15 -20
  42. data/doc/Axlsx/Relationship.html +49 -66
  43. data/doc/Axlsx/Relationships.html +28 -41
  44. data/doc/Axlsx/RestrictionValidator.html +23 -32
  45. data/doc/Axlsx/Row.html +132 -161
  46. data/doc/Axlsx/Scaling.html +71 -90
  47. data/doc/Axlsx/SerAxis.html +61 -79
  48. data/doc/Axlsx/Series.html +125 -201
  49. data/doc/Axlsx/SeriesTitle.html +26 -31
  50. data/doc/Axlsx/Styles.html +286 -355
  51. data/doc/Axlsx/TableStyle.html +62 -87
  52. data/doc/Axlsx/TableStyleElement.html +84 -104
  53. data/doc/Axlsx/TableStyles.html +59 -82
  54. data/doc/Axlsx/Title.html +58 -155
  55. data/doc/Axlsx/TwoCellAnchor.html +165 -204
  56. data/doc/Axlsx/ValAxis.html +39 -53
  57. data/doc/Axlsx/ValAxisData.html +29 -39
  58. data/doc/Axlsx/View3D.html +93 -122
  59. data/doc/Axlsx/Workbook.html +359 -362
  60. data/doc/Axlsx/Worksheet.html +471 -816
  61. data/doc/Axlsx/Xf.html +341 -296
  62. data/doc/_index.html +7 -11
  63. data/doc/class_list.html +1 -1
  64. data/doc/file.LICENSE.html +86 -0
  65. data/doc/file.README.html +105 -107
  66. data/doc/file_list.html +3 -0
  67. data/doc/frames.html +1 -1
  68. data/doc/index.html +105 -107
  69. data/doc/method_list.html +426 -602
  70. data/doc/top-level-namespace.html +3 -3
  71. data/examples/example.rb +20 -1
  72. data/lib/axlsx.rb +20 -15
  73. data/lib/axlsx/content_type/default.rb +8 -3
  74. data/lib/axlsx/content_type/override.rb +11 -4
  75. data/lib/axlsx/doc_props/app.rb +53 -23
  76. data/lib/axlsx/drawing/axis.rb +16 -5
  77. data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
  78. data/lib/axlsx/drawing/bar_series.rb +7 -5
  79. data/lib/axlsx/drawing/cat_axis.rb +10 -3
  80. data/lib/axlsx/drawing/chart.rb +21 -15
  81. data/lib/axlsx/drawing/drawing.rb +16 -30
  82. data/lib/axlsx/drawing/graphic_frame.rb +2 -4
  83. data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
  84. data/lib/axlsx/drawing/line_series.rb +6 -5
  85. data/lib/axlsx/drawing/marker.rb +9 -5
  86. data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
  87. data/lib/axlsx/drawing/pic.rb +29 -37
  88. data/lib/axlsx/drawing/pie_series.rb +7 -5
  89. data/lib/axlsx/drawing/scaling.rb +11 -5
  90. data/lib/axlsx/drawing/ser_axis.rb +6 -2
  91. data/lib/axlsx/drawing/series.rb +11 -11
  92. data/lib/axlsx/drawing/series_title.rb +1 -1
  93. data/lib/axlsx/drawing/title.rb +5 -12
  94. data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
  95. data/lib/axlsx/drawing/val_axis.rb +2 -2
  96. data/lib/axlsx/drawing/view_3D.rb +16 -9
  97. data/lib/axlsx/package.rb +25 -27
  98. data/lib/axlsx/rels/relationship.rb +4 -2
  99. data/lib/axlsx/stylesheet/border.rb +9 -4
  100. data/lib/axlsx/stylesheet/border_pr.rb +7 -4
  101. data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
  102. data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
  103. data/lib/axlsx/stylesheet/cell_style.rb +12 -7
  104. data/lib/axlsx/stylesheet/color.rb +8 -6
  105. data/lib/axlsx/stylesheet/fill.rb +2 -1
  106. data/lib/axlsx/stylesheet/font.rb +24 -13
  107. data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
  108. data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
  109. data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
  110. data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
  111. data/lib/axlsx/stylesheet/styles.rb +12 -12
  112. data/lib/axlsx/stylesheet/table_style.rb +6 -3
  113. data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
  114. data/lib/axlsx/stylesheet/table_styles.rb +4 -4
  115. data/lib/axlsx/stylesheet/xf.rb +52 -31
  116. data/lib/axlsx/util/validators.rb +3 -3
  117. data/lib/axlsx/version.rb +1 -1
  118. data/lib/axlsx/workbook/workbook.rb +8 -9
  119. data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
  120. data/lib/axlsx/workbook/worksheet/row.rb +2 -4
  121. data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
  122. data/test/drawing/tc_one_cell_anchor.rb +1 -1
  123. metadata +135 -165
  124. data/doc/Axlsx/SimpleTypedList.html +0 -1686
  125. data/lib/schema/dc.xsd~ +0 -118
  126. data/lib/schema/dcterms.xsd~ +0 -331
  127. data/lib/schema/opc-coreProperties.xsd~ +0 -50
  128. data/test/drawing/tc_line_series.tc~ +0 -34
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::TableStyle
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; AXLSX
10
10
 
11
11
  </title>
12
12
 
@@ -99,16 +99,14 @@
99
99
 
100
100
  <div class="note notetag">
101
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>
102
+ <div class='inline'>
103
+ <p>Table are not supported in this version and only the defaults required for
104
+ a valid workbook are created.</p>
106
105
  </div>
107
106
  </div>
108
107
 
109
- <p>
110
- A single table style definition and is a collection for tableStyleElements
111
- </p>
108
+
109
+ <p>A single table style definition and is a collection for tableStyleElements</p>
112
110
 
113
111
 
114
112
  </div>
@@ -144,9 +142,8 @@ A single table style definition and is a collection for tableStyleElements
144
142
 
145
143
 
146
144
 
147
- <span class="summary_desc"><div class='inline'><p>
148
- The name of this table style.
149
- </p>
145
+ <span class="summary_desc"><div class='inline'>
146
+ <p>The name of this table style.</p>
150
147
  </div></span>
151
148
 
152
149
  </li>
@@ -171,9 +168,8 @@ The name of this table style.
171
168
 
172
169
 
173
170
 
174
- <span class="summary_desc"><div class='inline'><p>
175
- indicates if this style should be applied to pivot tables.
176
- </p>
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>indicates if this style should be applied to pivot tables.</p>
177
173
  </div></span>
178
174
 
179
175
  </li>
@@ -198,9 +194,8 @@ indicates if this style should be applied to pivot tables.
198
194
 
199
195
 
200
196
 
201
- <span class="summary_desc"><div class='inline'><p>
202
- indicates if this style should be applied to tables.
203
- </p>
197
+ <span class="summary_desc"><div class='inline'>
198
+ <p>indicates if this style should be applied to tables.</p>
204
199
  </div></span>
205
200
 
206
201
  </li>
@@ -245,9 +240,8 @@ indicates if this style should be applied to tables.
245
240
 
246
241
 
247
242
 
248
- <span class="summary_desc"><div class='inline'><p>
249
- creates a new TableStyle object.
250
- </p>
243
+ <span class="summary_desc"><div class='inline'>
244
+ <p>creates a new TableStyle object.</p>
251
245
  </div></span>
252
246
 
253
247
  </li>
@@ -269,9 +263,8 @@ creates a new TableStyle object.
269
263
 
270
264
 
271
265
 
272
- <span class="summary_desc"><div class='inline'><p>
273
- Serializes the table style.
274
- </p>
266
+ <span class="summary_desc"><div class='inline'>
267
+ <p>Serializes the table style.</p>
275
268
  </div></span>
276
269
 
277
270
  </li>
@@ -285,12 +278,7 @@ Serializes the table style.
285
278
 
286
279
 
287
280
 
288
-
289
-
290
-
291
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
292
- <p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#%3C%3C-instance_method" title="Axlsx::SimpleTypedList#&lt;&lt; (method)">#<<</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%3D%3D-instance_method" title="Axlsx::SimpleTypedList#== (method)">#==</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%5B%5D%3D-instance_method" title="Axlsx::SimpleTypedList#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete-instance_method" title="Axlsx::SimpleTypedList#delete (method)">#delete</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete_at-instance_method" title="Axlsx::SimpleTypedList#delete_at (method)">#delete_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#lock-instance_method" title="Axlsx::SimpleTypedList#lock (method)">#lock</a></span>, <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="SimpleTypedList.html#protected%3F-instance_method" title="Axlsx::SimpleTypedList#protected? (method)">#protected?</a></span>, <span class='object_link'><a href="SimpleTypedList.html#push-instance_method" title="Axlsx::SimpleTypedList#push (method)">#push</a></span>, <span class='object_link'><a href="SimpleTypedList.html#unlock-instance_method" title="Axlsx::SimpleTypedList#unlock (method)">#unlock</a></span></p>
293
- <div id="constructor_details" class="method_details_list">
281
+ <div id="constructor_details" class="method_details_list">
294
282
  <h2>Constructor Details</h2>
295
283
 
296
284
  <div class="method_details first">
@@ -302,9 +290,8 @@ Serializes the table style.
302
290
 
303
291
  </p><div class="docstring">
304
292
  <div class="discussion">
305
- <p>
306
- creates a new TableStyle object
307
- </p>
293
+
294
+ <p>creates a new TableStyle object</p>
308
295
 
309
296
 
310
297
  </div>
@@ -336,9 +323,8 @@ creates a new TableStyle object
336
323
 
337
324
 
338
325
  &mdash;
339
- <div class='inline'><p>
340
- a customizable set of options
341
- </p>
326
+ <div class='inline'>
327
+ <p>a customizable set of options</p>
342
328
  </div>
343
329
 
344
330
  </li>
@@ -385,9 +371,8 @@ a customizable set of options
385
371
 
386
372
 
387
373
  &mdash;
388
- <div class='inline'><p>
389
- if name option is not provided.
390
- </p>
374
+ <div class='inline'>
375
+ <p>if name option is not provided.</p>
391
376
  </div>
392
377
 
393
378
  </li>
@@ -411,14 +396,13 @@ if name option is not provided.
411
396
  <td>
412
397
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 23</span>
413
398
 
414
- <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>
415
- <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>
416
- <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>
417
- <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>
418
- <span class='end end kw'>end</span>
419
- <span class='super super kw'>super</span> <span class='TableStyleElement constant id'>TableStyleElement</span>
420
- <span class='end end kw'>end</span>
421
- </pre>
399
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
400
+ <span class='kw'>self</span><span class='period'>.</span><span class='id name'>name</span> <span class='op'>=</span> <span class='id name'>name</span>
401
+ <span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
402
+ <span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
403
+ <span class='kw'>end</span>
404
+ <span class='kw'>super</span> <span class='const'>TableStyleElement</span>
405
+ <span class='kw'>end</span></pre>
422
406
  </td>
423
407
  </tr>
424
408
  </table>
@@ -451,9 +435,8 @@ if name option is not provided.
451
435
 
452
436
  </p><div class="docstring">
453
437
  <div class="discussion">
454
- <p>
455
- The name of this table style
456
- </p>
438
+
439
+ <p>The name of this table style</p>
457
440
 
458
441
 
459
442
  </div>
@@ -487,10 +470,9 @@ The name of this table style
487
470
  <td>
488
471
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 8</span>
489
472
 
490
- <span class='def def kw'>def</span> <span class='name identifier id'>name</span>
491
- <span class='@name ivar id'>@name</span>
492
- <span class='end end kw'>end</span>
493
- </pre>
473
+ <span class='kw'>def</span> <span class='id name'>name</span>
474
+ <span class='ivar'>@name</span>
475
+ <span class='kw'>end</span></pre>
494
476
  </td>
495
477
  </tr>
496
478
  </table>
@@ -508,9 +490,8 @@ The name of this table style
508
490
 
509
491
  </p><div class="docstring">
510
492
  <div class="discussion">
511
- <p>
512
- indicates if this style should be applied to pivot tables
513
- </p>
493
+
494
+ <p>indicates if this style should be applied to pivot tables</p>
514
495
 
515
496
 
516
497
  </div>
@@ -544,10 +525,9 @@ indicates if this style should be applied to pivot tables
544
525
  <td>
545
526
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 12</span>
546
527
 
547
- <span class='def def kw'>def</span> <span class='pivot identifier id'>pivot</span>
548
- <span class='@pivot ivar id'>@pivot</span>
549
- <span class='end end kw'>end</span>
550
- </pre>
528
+ <span class='kw'>def</span> <span class='id pivot'>pivot</span>
529
+ <span class='ivar'>@pivot</span>
530
+ <span class='kw'>end</span></pre>
551
531
  </td>
552
532
  </tr>
553
533
  </table>
@@ -565,9 +545,8 @@ indicates if this style should be applied to pivot tables
565
545
 
566
546
  </p><div class="docstring">
567
547
  <div class="discussion">
568
- <p>
569
- indicates if this style should be applied to tables
570
- </p>
548
+
549
+ <p>indicates if this style should be applied to tables</p>
571
550
 
572
551
 
573
552
  </div>
@@ -601,10 +580,9 @@ indicates if this style should be applied to tables
601
580
  <td>
602
581
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 16</span>
603
582
 
604
- <span class='def def kw'>def</span> <span class='table identifier id'>table</span>
605
- <span class='@table ivar id'>@table</span>
606
- <span class='end end kw'>end</span>
607
- </pre>
583
+ <span class='kw'>def</span> <span class='id table'>table</span>
584
+ <span class='ivar'>@table</span>
585
+ <span class='kw'>end</span></pre>
608
586
  </td>
609
587
  </tr>
610
588
  </table>
@@ -626,9 +604,8 @@ indicates if this style should be applied to tables
626
604
 
627
605
  </p><div class="docstring">
628
606
  <div class="discussion">
629
- <p>
630
- Serializes the table style
631
- </p>
607
+
608
+ <p>Serializes the table style</p>
632
609
 
633
610
 
634
611
  </div>
@@ -647,9 +624,8 @@ Serializes the table style
647
624
 
648
625
 
649
626
  &mdash;
650
- <div class='inline'><p>
651
- The document builder instance this objects xml will be added to.
652
- </p>
627
+ <div class='inline'>
628
+ <p>The document builder instance this objects xml will be added to.</p>
653
629
  </div>
654
630
 
655
631
  </li>
@@ -676,21 +652,20 @@ The document builder instance this objects xml will be added to.
676
652
  <pre class="lines">
677
653
 
678
654
 
679
- 38
680
- 39
681
- 40
682
655
  41
683
- 42</pre>
656
+ 42
657
+ 43
658
+ 44
659
+ 45</pre>
684
660
  </td>
685
661
  <td>
686
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 38</span>
687
-
688
- <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>
689
- <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>
690
- <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>
691
- <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>
692
- <span class='end end kw'>end</span>
693
- </pre>
662
+ <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 41</span>
663
+
664
+ <span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
665
+ <span class='id attr'>attr</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='period'>.</span><span class='id select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span> <span class='id v'>v</span><span class='op'>|</span> <span class='lbracket'>[</span><span class='symbol'>:name</span><span class='comma'>,</span> <span class='symbol'>:pivot</span><span class='comma'>,</span> <span class='symbol'>:table</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id include?'>include?</span> <span class='id k'>k</span> <span class='rbrace'>}</span>
666
+ <span class='id attr'>attr</span><span class='lbracket'>[</span><span class='symbol'>:count</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id size'>size</span>
667
+ <span class='id xml'>xml</span><span class='period'>.</span><span class='id tableStyle'>tableStyle</span><span class='lparen'>(</span><span class='id attr'>attr</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='kw'>self</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id table_style_el'>table_style_el</span><span class='op'>|</span> <span class='id table_style_el'>table_style_el</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
668
+ <span class='kw'>end</span></pre>
694
669
  </td>
695
670
  </tr>
696
671
  </table>
@@ -701,9 +676,9 @@ The document builder instance this objects xml will be added to.
701
676
  </div>
702
677
 
703
678
  <div id="footer">
704
- Generated on Wed Nov 23 21:47:46 2011 by
679
+ Generated on Sat Nov 26 13:16:39 2011 by
705
680
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
706
- 0.7.3 (ruby-1.8.7).
681
+ 0.7.3 (ruby-1.9.3).
707
682
  </div>
708
683
 
709
684
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::TableStyleElement
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; AXLSX
10
10
 
11
11
  </title>
12
12
 
@@ -97,16 +97,14 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'><p>
101
- tables and table styles are not supported in this version. This class
102
- exists in preparation for that support.
103
- </p>
100
+ <div class='inline'>
101
+ <p>tables and table styles are not supported in this version. This class
102
+ exists in preparation for that support.</p>
104
103
  </div>
105
104
  </div>
106
105
 
107
- <p>
108
- an element of style that belongs to a table style.
109
- </p>
106
+
107
+ <p>an element of style that belongs to a table style.</p>
110
108
 
111
109
 
112
110
  </div>
@@ -138,9 +136,8 @@ an element of style that belongs to a table style.
138
136
 
139
137
 
140
138
 
141
- <span class="summary_desc"><div class='inline'><p>
142
- The dxfId this style element points to.
143
- </p>
139
+ <span class="summary_desc"><div class='inline'>
140
+ <p>The dxfId this style element points to.</p>
144
141
  </div></span>
145
142
 
146
143
  </li>
@@ -165,10 +162,9 @@ The dxfId this style element points to.
165
162
 
166
163
 
167
164
 
168
- <span class="summary_desc"><div class='inline'><p>
169
- Number of rows or columns used in striping when the type is firstRowStripe,
170
- secondRowStripe, firstColumnStripe, or secondColumnStripe.
171
- </p>
165
+ <span class="summary_desc"><div class='inline'>
166
+ <p>Number of rows or columns used in striping when the type is firstRowStripe,
167
+ secondRowStripe, firstColumnStripe, or secondColumnStripe.</p>
172
168
  </div></span>
173
169
 
174
170
  </li>
@@ -193,9 +189,8 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.
193
189
 
194
190
 
195
191
 
196
- <span class="summary_desc"><div class='inline'><p>
197
- The type of style element.
198
- </p>
192
+ <span class="summary_desc"><div class='inline'>
193
+ <p>The type of style element.</p>
199
194
  </div></span>
200
195
 
201
196
  </li>
@@ -232,9 +227,8 @@ The type of style element.
232
227
 
233
228
 
234
229
 
235
- <span class="summary_desc"><div class='inline'><p>
236
- creates a new TableStyleElement object.
237
- </p>
230
+ <span class="summary_desc"><div class='inline'>
231
+ <p>creates a new TableStyleElement object.</p>
238
232
  </div></span>
239
233
 
240
234
  </li>
@@ -256,9 +250,8 @@ creates a new TableStyleElement object.
256
250
 
257
251
 
258
252
 
259
- <span class="summary_desc"><div class='inline'><p>
260
- Serializes the table style element.
261
- </p>
253
+ <span class="summary_desc"><div class='inline'>
254
+ <p>Serializes the table style element.</p>
262
255
  </div></span>
263
256
 
264
257
  </li>
@@ -279,9 +272,8 @@ Serializes the table style element.
279
272
 
280
273
  </p><div class="docstring">
281
274
  <div class="discussion">
282
- <p>
283
- creates a new TableStyleElement object
284
- </p>
275
+
276
+ <p>creates a new TableStyleElement object</p>
285
277
 
286
278
 
287
279
  </div>
@@ -302,9 +294,8 @@ creates a new TableStyleElement object
302
294
 
303
295
 
304
296
  &mdash;
305
- <div class='inline'><p>
306
- a customizable set of options
307
- </p>
297
+ <div class='inline'>
298
+ <p>a customizable set of options</p>
308
299
  </div>
309
300
 
310
301
  </li>
@@ -363,12 +354,11 @@ a customizable set of options
363
354
  <td>
364
355
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 49</span>
365
356
 
366
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</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>
367
- <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>
368
- <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>
369
- <span class='end end kw'>end</span>
370
- <span class='end end kw'>end</span>
371
- </pre>
357
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
358
+ <span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
359
+ <span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
360
+ <span class='kw'>end</span>
361
+ <span class='kw'>end</span></pre>
372
362
  </td>
373
363
  </tr>
374
364
  </table>
@@ -391,9 +381,8 @@ a customizable set of options
391
381
 
392
382
  </p><div class="docstring">
393
383
  <div class="discussion">
394
- <p>
395
- The dxfId this style element points to
396
- </p>
384
+
385
+ <p>The dxfId this style element points to</p>
397
386
 
398
387
 
399
388
  </div>
@@ -427,10 +416,9 @@ The dxfId this style element points to
427
416
  <td>
428
417
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 43</span>
429
418
 
430
- <span class='def def kw'>def</span> <span class='dxfId identifier id'>dxfId</span>
431
- <span class='@dxfId ivar id'>@dxfId</span>
432
- <span class='end end kw'>end</span>
433
- </pre>
419
+ <span class='kw'>def</span> <span class='id dxfId'>dxfId</span>
420
+ <span class='ivar'>@dxfId</span>
421
+ <span class='kw'>end</span></pre>
434
422
  </td>
435
423
  </tr>
436
424
  </table>
@@ -448,10 +436,9 @@ The dxfId this style element points to
448
436
 
449
437
  </p><div class="docstring">
450
438
  <div class="discussion">
451
- <p>
452
- Number of rows or columns used in striping when the type is firstRowStripe,
453
- secondRowStripe, firstColumnStripe, or secondColumnStripe.
454
- </p>
439
+
440
+ <p>Number of rows or columns used in striping when the type is firstRowStripe,
441
+ secondRowStripe, firstColumnStripe, or secondColumnStripe.</p>
455
442
 
456
443
 
457
444
  </div>
@@ -485,10 +472,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.
485
472
  <td>
486
473
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 39</span>
487
474
 
488
- <span class='def def kw'>def</span> <span class='size identifier id'>size</span>
489
- <span class='@size ivar id'>@size</span>
490
- <span class='end end kw'>end</span>
491
- </pre>
475
+ <span class='kw'>def</span> <span class='id size'>size</span>
476
+ <span class='ivar'>@size</span>
477
+ <span class='kw'>end</span></pre>
492
478
  </td>
493
479
  </tr>
494
480
  </table>
@@ -506,39 +492,37 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.
506
492
 
507
493
  </p><div class="docstring">
508
494
  <div class="discussion">
509
- <p>
510
- The type of style element. The following type are allowed
511
- </p>
512
- <pre class="code">
513
- <span class='symbol val'>:wholeTable</span>
514
- <span class='symbol val'>:headerRow</span>
515
- <span class='symbol val'>:totalRow</span>
516
- <span class='symbol val'>:firstColumn</span>
517
- <span class='symbol val'>:lastColumn</span>
518
- <span class='symbol val'>:firstRowStripe</span>
519
- <span class='symbol val'>:secondRowStripe</span>
520
- <span class='symbol val'>:firstColumnStripe</span>
521
- <span class='symbol val'>:secondColumnStripe</span>
522
- <span class='symbol val'>:firstHeaderCell</span>
523
- <span class='symbol val'>:lastHeaderCell</span>
524
- <span class='symbol val'>:firstTotalCell</span>
525
- <span class='symbol val'>:lastTotalCell</span>
526
- <span class='symbol val'>:firstSubtotalColumn</span>
527
- <span class='symbol val'>:secondSubtotalColumn</span>
528
- <span class='symbol val'>:thirdSubtotalColumn</span>
529
- <span class='symbol val'>:firstSubtotalRow</span>
530
- <span class='symbol val'>:secondSubtotalRow</span>
531
- <span class='symbol val'>:thirdSubtotalRow</span>
532
- <span class='symbol val'>:blankRow</span>
533
- <span class='symbol val'>:firstColumnSubheading</span>
534
- <span class='symbol val'>:secondColumnSubheading</span>
535
- <span class='symbol val'>:thirdColumnSubheading</span>
536
- <span class='symbol val'>:firstRowSubheading</span>
537
- <span class='symbol val'>:secondRowSubheading</span>
538
- <span class='symbol val'>:thirdRowSubheading</span>
539
- <span class='symbol val'>:pageFieldLabels</span>
540
- <span class='symbol val'>:pageFieldValues</span>
541
- </pre>
495
+
496
+ <p>The type of style element. The following type are allowed</p>
497
+
498
+ <pre class="code"><span class='symbol'>:wholeTable</span>
499
+ <span class='symbol'>:headerRow</span>
500
+ <span class='symbol'>:totalRow</span>
501
+ <span class='symbol'>:firstColumn</span>
502
+ <span class='symbol'>:lastColumn</span>
503
+ <span class='symbol'>:firstRowStripe</span>
504
+ <span class='symbol'>:secondRowStripe</span>
505
+ <span class='symbol'>:firstColumnStripe</span>
506
+ <span class='symbol'>:secondColumnStripe</span>
507
+ <span class='symbol'>:firstHeaderCell</span>
508
+ <span class='symbol'>:lastHeaderCell</span>
509
+ <span class='symbol'>:firstTotalCell</span>
510
+ <span class='symbol'>:lastTotalCell</span>
511
+ <span class='symbol'>:firstSubtotalColumn</span>
512
+ <span class='symbol'>:secondSubtotalColumn</span>
513
+ <span class='symbol'>:thirdSubtotalColumn</span>
514
+ <span class='symbol'>:firstSubtotalRow</span>
515
+ <span class='symbol'>:secondSubtotalRow</span>
516
+ <span class='symbol'>:thirdSubtotalRow</span>
517
+ <span class='symbol'>:blankRow</span>
518
+ <span class='symbol'>:firstColumnSubheading</span>
519
+ <span class='symbol'>:secondColumnSubheading</span>
520
+ <span class='symbol'>:thirdColumnSubheading</span>
521
+ <span class='symbol'>:firstRowSubheading</span>
522
+ <span class='symbol'>:secondRowSubheading</span>
523
+ <span class='symbol'>:thirdRowSubheading</span>
524
+ <span class='symbol'>:pageFieldLabels</span>
525
+ <span class='symbol'>:pageFieldValues</span></pre>
542
526
 
543
527
 
544
528
  </div>
@@ -572,10 +556,9 @@ The type of style element. The following type are allowed
572
556
  <td>
573
557
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 35</span>
574
558
 
575
- <span class='def def kw'>def</span> <span class='type identifier id'>type</span>
576
- <span class='@type ivar id'>@type</span>
577
- <span class='end end kw'>end</span>
578
- </pre>
559
+ <span class='kw'>def</span> <span class='id type'>type</span>
560
+ <span class='ivar'>@type</span>
561
+ <span class='kw'>end</span></pre>
579
562
  </td>
580
563
  </tr>
581
564
  </table>
@@ -597,9 +580,8 @@ The type of style element. The following type are allowed
597
580
 
598
581
  </p><div class="docstring">
599
582
  <div class="discussion">
600
- <p>
601
- Serializes the table style element
602
- </p>
583
+
584
+ <p>Serializes the table style element</p>
603
585
 
604
586
 
605
587
  </div>
@@ -618,9 +600,8 @@ Serializes the table style element
618
600
 
619
601
 
620
602
  &mdash;
621
- <div class='inline'><p>
622
- The document builder instance this objects xml will be added to.
623
- </p>
603
+ <div class='inline'>
604
+ <p>The document builder instance this objects xml will be added to.</p>
624
605
  </div>
625
606
 
626
607
  </li>
@@ -647,17 +628,16 @@ The document builder instance this objects xml will be added to.
647
628
  <pre class="lines">
648
629
 
649
630
 
650
- 62
651
- 63
652
- 64</pre>
631
+ 67
632
+ 68
633
+ 69</pre>
653
634
  </td>
654
635
  <td>
655
- <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 62</span>
636
+ <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 67</span>
656
637
 
657
- <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>
658
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='tableStyleElement identifier id'>tableStyleElement</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span>
659
- <span class='end end kw'>end</span>
660
- </pre>
638
+ <span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
639
+ <span class='id xml'>xml</span><span class='period'>.</span><span class='id tableStyleElement'>tableStyleElement</span> <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span>
640
+ <span class='kw'>end</span></pre>
661
641
  </td>
662
642
  </tr>
663
643
  </table>
@@ -668,9 +648,9 @@ The document builder instance this objects xml will be added to.
668
648
  </div>
669
649
 
670
650
  <div id="footer">
671
- Generated on Wed Nov 23 21:47:48 2011 by
651
+ Generated on Sat Nov 26 13:16:40 2011 by
672
652
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
673
- 0.7.3 (ruby-1.8.7).
653
+ 0.7.3 (ruby-1.9.3).
674
654
  </div>
675
655
 
676
656
  </body>