axlsx 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/Gemfile +3 -7
  3. data/Gemfile.lock +17 -8
  4. data/README.md +88 -59
  5. data/axlsx.gemspec +9 -3
  6. data/doc/Axlsx.html +482 -248
  7. data/doc/Axlsx/App.html +237 -159
  8. data/doc/Axlsx/Axis.html +75 -51
  9. data/doc/Axlsx/Bar3DChart.html +75 -53
  10. data/doc/Axlsx/BarSeries.html +45 -31
  11. data/doc/Axlsx/Border.html +70 -50
  12. data/doc/Axlsx/BorderPr.html +80 -62
  13. data/doc/Axlsx/CatAxis.html +62 -43
  14. data/doc/Axlsx/CatAxisData.html +23 -16
  15. data/doc/Axlsx/Cell.html +2022 -393
  16. data/doc/Axlsx/CellAlignment.html +103 -75
  17. data/doc/Axlsx/CellProtection.html +44 -30
  18. data/doc/Axlsx/CellStyle.html +66 -46
  19. data/doc/Axlsx/Chart.html +159 -108
  20. data/doc/Axlsx/Color.html +73 -52
  21. data/doc/Axlsx/ContentType.html +20 -14
  22. data/doc/Axlsx/Core.html +29 -20
  23. data/doc/Axlsx/DataTypeValidator.html +27 -19
  24. data/doc/Axlsx/Default.html +39 -27
  25. data/doc/Axlsx/Drawing.html +104 -70
  26. data/doc/Axlsx/Fill.html +33 -23
  27. data/doc/Axlsx/Font.html +132 -98
  28. data/doc/Axlsx/GradientFill.html +70 -48
  29. data/doc/Axlsx/GradientStop.html +31 -21
  30. data/doc/Axlsx/GraphicFrame.html +40 -27
  31. data/doc/Axlsx/Line3DChart.html +62 -43
  32. data/doc/Axlsx/LineSeries.html +37 -25
  33. data/doc/Axlsx/Marker.html +63 -43
  34. data/doc/Axlsx/NumFmt.html +79 -65
  35. data/doc/Axlsx/OneCellAnchor.html +78 -54
  36. data/doc/Axlsx/Override.html +39 -27
  37. data/doc/Axlsx/Package.html +103 -163
  38. data/doc/Axlsx/Parser.html +549 -0
  39. data/doc/Axlsx/PatternFill.html +66 -51
  40. data/doc/Axlsx/Pic.html +230 -123
  41. data/doc/Axlsx/PictureLocking.html +1159 -0
  42. data/doc/Axlsx/Pie3DChart.html +23 -16
  43. data/doc/Axlsx/PieSeries.html +44 -30
  44. data/doc/Axlsx/RegexValidator.html +14 -10
  45. data/doc/Axlsx/Relationship.html +40 -27
  46. data/doc/Axlsx/Relationships.html +20 -14
  47. data/doc/Axlsx/RestrictionValidator.html +25 -17
  48. data/doc/Axlsx/Row.html +73 -53
  49. data/doc/Axlsx/Scaling.html +46 -31
  50. data/doc/Axlsx/SerAxis.html +49 -33
  51. data/doc/Axlsx/Series.html +51 -35
  52. data/doc/Axlsx/SeriesTitle.html +14 -10
  53. data/doc/Axlsx/Styles.html +210 -156
  54. data/doc/Axlsx/TableStyle.html +47 -32
  55. data/doc/Axlsx/TableStyleElement.html +75 -61
  56. data/doc/Axlsx/TableStyles.html +42 -28
  57. data/doc/Axlsx/Title.html +36 -25
  58. data/doc/Axlsx/TwoCellAnchor.html +83 -58
  59. data/doc/Axlsx/ValAxis.html +35 -24
  60. data/doc/Axlsx/ValAxisData.html +13 -9
  61. data/doc/Axlsx/View3D.html +64 -43
  62. data/doc/Axlsx/Workbook.html +305 -147
  63. data/doc/Axlsx/Worksheet.html +567 -271
  64. data/doc/Axlsx/Xf.html +114 -77
  65. data/doc/_index.html +15 -1
  66. data/doc/class_list.html +1 -1
  67. data/doc/css/style.css +1 -1
  68. data/doc/file.LICENSE.html +25 -21
  69. data/doc/file.README.html +89 -66
  70. data/doc/index.html +89 -66
  71. data/doc/js/app.js +4 -4
  72. data/doc/method_list.html +717 -413
  73. data/doc/top-level-namespace.html +1 -1
  74. data/examples/example.rb +52 -25
  75. data/examples/follow_20111202.xlsx +0 -0
  76. data/lib/axlsx.rb +14 -1
  77. data/lib/axlsx/drawing/chart.rb +20 -4
  78. data/lib/axlsx/drawing/drawing.rb +1 -1
  79. data/lib/axlsx/drawing/pic.rb +5 -2
  80. data/lib/axlsx/drawing/picture_locking.rb +72 -0
  81. data/lib/axlsx/package.rb +9 -7
  82. data/lib/axlsx/stylesheet/color.rb +19 -9
  83. data/lib/axlsx/stylesheet/styles.rb +2 -0
  84. data/lib/axlsx/util/constants.rb +6 -0
  85. data/lib/axlsx/util/parser.rb +43 -0
  86. data/lib/axlsx/version.rb +1 -1
  87. data/lib/axlsx/workbook/workbook.rb +21 -1
  88. data/lib/axlsx/workbook/worksheet/cell.rb +159 -7
  89. data/lib/axlsx/workbook/worksheet/row.rb +4 -2
  90. data/lib/axlsx/workbook/worksheet/worksheet.rb +38 -4
  91. data/test/drawing/tc_picture_locking.rb +73 -0
  92. data/test/rels/tc_relationships.rb +0 -1
  93. data/test/stylesheet/tc_styles.rb +0 -12
  94. data/test/tc_package.rb +5 -3
  95. data/test/workbook/tc_workbook.rb +7 -0
  96. data/test/workbook/worksheet/tc_cell.rb +102 -1
  97. data/test/workbook/worksheet/tc_worksheet.rb +17 -0
  98. metadata +79 -19
  99. data/doc/Axlsx/Ar.html +0 -196
  100. data/doc/Axlsx/Ar/ClassMethods.html +0 -188
  101. data/doc/Axlsx/Ar/InstanceMethods.html +0 -108
  102. data/doc/Axlsx/Ar/SingletonMethods.html +0 -312
@@ -94,8 +94,9 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
-
98
- <p>The Worksheet class represents a worksheet in the workbook.</p>
97
+ <p>
98
+ The Worksheet class represents a worksheet in the workbook.
99
+ </p>
99
100
 
100
101
 
101
102
  </div>
@@ -127,8 +128,9 @@
127
128
 
128
129
 
129
130
 
130
- <span class="summary_desc"><div class='inline'>
131
- <p>An array of content based calculated column widths.</p>
131
+ <span class="summary_desc"><div class='inline'><p>
132
+ An array of content based calculated column widths.
133
+ </p>
132
134
  </div></span>
133
135
 
134
136
  </li>
@@ -153,8 +155,9 @@
153
155
 
154
156
 
155
157
 
156
- <span class="summary_desc"><div class='inline'>
157
- <p>The name of the worksheet.</p>
158
+ <span class="summary_desc"><div class='inline'><p>
159
+ The name of the worksheet.
160
+ </p>
158
161
  </div></span>
159
162
 
160
163
  </li>
@@ -179,8 +182,9 @@
179
182
 
180
183
 
181
184
 
182
- <span class="summary_desc"><div class='inline'>
183
- <p>The rows in this worksheet.</p>
185
+ <span class="summary_desc"><div class='inline'><p>
186
+ The rows in this worksheet.
187
+ </p>
184
188
  </div></span>
185
189
 
186
190
  </li>
@@ -205,8 +209,9 @@
205
209
 
206
210
 
207
211
 
208
- <span class="summary_desc"><div class='inline'>
209
- <p>The workbook that owns this worksheet.</p>
212
+ <span class="summary_desc"><div class='inline'><p>
213
+ The workbook that owns this worksheet.
214
+ </p>
210
215
  </div></span>
211
216
 
212
217
  </li>
@@ -228,6 +233,30 @@
228
233
  <li class="public ">
229
234
  <span class="summary_signature">
230
235
 
236
+ <a href="#%5B%5D-instance_method" title="#[] (instance method)">- (Cell, Array) <strong>[]</strong>(cell_def) </a>
237
+
238
+
239
+
240
+ </span>
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+ <span class="summary_desc"><div class='inline'><p>
250
+ Returns the cell or cells defined using excel style A1:B3 references.
251
+ </p>
252
+ </div></span>
253
+
254
+ </li>
255
+
256
+
257
+ <li class="public ">
258
+ <span class="summary_signature">
259
+
231
260
  <a href="#add_chart-instance_method" title="#add_chart (instance method)">- (Object) <strong>add_chart</strong>(chart_type, options = {}) {|chart| ... }</a>
232
261
 
233
262
 
@@ -241,8 +270,9 @@
241
270
 
242
271
 
243
272
 
244
- <span class="summary_desc"><div class='inline'>
245
- <p>Adds a chart to this worksheets drawing.</p>
273
+ <span class="summary_desc"><div class='inline'><p>
274
+ Adds a chart to this worksheets drawing.
275
+ </p>
246
276
  </div></span>
247
277
 
248
278
  </li>
@@ -264,8 +294,9 @@
264
294
 
265
295
 
266
296
 
267
- <span class="summary_desc"><div class='inline'>
268
- <p>Adds a media item to the worksheets drawing.</p>
297
+ <span class="summary_desc"><div class='inline'><p>
298
+ Adds a media item to the worksheets drawing.
299
+ </p>
269
300
  </div></span>
270
301
 
271
302
  </li>
@@ -287,8 +318,9 @@
287
318
 
288
319
 
289
320
 
290
- <span class="summary_desc"><div class='inline'>
291
- <p>Adds a row to the worksheet and updates auto fit data.</p>
321
+ <span class="summary_desc"><div class='inline'><p>
322
+ Adds a row to the worksheet and updates auto fit data.
323
+ </p>
292
324
  </div></span>
293
325
 
294
326
  </li>
@@ -310,8 +342,9 @@
310
342
 
311
343
 
312
344
 
313
- <span class="summary_desc"><div class='inline'>
314
- <p>Determines the proper width for a column based on content.</p>
345
+ <span class="summary_desc"><div class='inline'><p>
346
+ Determines the proper width for a column based on content.
347
+ </p>
315
348
  </div></span>
316
349
 
317
350
  </li>
@@ -333,8 +366,9 @@
333
366
 
334
367
 
335
368
 
336
- <span class="summary_desc"><div class='inline'>
337
- <p>Set the style for cells in a specific column.</p>
369
+ <span class="summary_desc"><div class='inline'><p>
370
+ Set the style for cells in a specific column.
371
+ </p>
338
372
  </div></span>
339
373
 
340
374
  </li>
@@ -356,8 +390,9 @@
356
390
 
357
391
 
358
392
 
359
- <span class="summary_desc"><div class='inline'>
360
- <p>returns the sheet data as columnw.</p>
393
+ <span class="summary_desc"><div class='inline'><p>
394
+ returns the sheet data as columnw.
395
+ </p>
361
396
  </div></span>
362
397
 
363
398
  </li>
@@ -379,8 +414,9 @@
379
414
 
380
415
 
381
416
 
382
- <span class="summary_desc"><div class='inline'>
383
- <p>The drawing associated with this worksheet.</p>
417
+ <span class="summary_desc"><div class='inline'><p>
418
+ The drawing associated with this worksheet.
419
+ </p>
384
420
  </div></span>
385
421
 
386
422
  </li>
@@ -402,8 +438,9 @@
402
438
 
403
439
 
404
440
 
405
- <span class="summary_desc"><div class='inline'>
406
- <p>The index of this worksheet in the owning Workbooks worksheets list.</p>
441
+ <span class="summary_desc"><div class='inline'><p>
442
+ The index of this worksheet in the owning Workbook&#8217;s worksheets list.
443
+ </p>
407
444
  </div></span>
408
445
 
409
446
  </li>
@@ -427,8 +464,33 @@
427
464
 
428
465
 
429
466
 
430
- <span class="summary_desc"><div class='inline'>
431
- <p>Creates a new worksheet.</p>
467
+ <span class="summary_desc"><div class='inline'><p>
468
+ Creates a new worksheet.
469
+ </p>
470
+ </div></span>
471
+
472
+ </li>
473
+
474
+
475
+ <li class="public ">
476
+ <span class="summary_signature">
477
+
478
+ <a href="#name_to_cell-instance_method" title="#name_to_cell (instance method)">- (Cell) <strong>name_to_cell</strong>(name) </a>
479
+
480
+
481
+
482
+ </span>
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+ <span class="summary_desc"><div class='inline'><p>
492
+ returns the column and row index for a named based cell.
493
+ </p>
432
494
  </div></span>
433
495
 
434
496
  </li>
@@ -450,8 +512,9 @@
450
512
 
451
513
 
452
514
 
453
- <span class="summary_desc"><div class='inline'>
454
- <p>The part name of this worksheet.</p>
515
+ <span class="summary_desc"><div class='inline'><p>
516
+ The part name of this worksheet.
517
+ </p>
455
518
  </div></span>
456
519
 
457
520
  </li>
@@ -473,8 +536,9 @@
473
536
 
474
537
 
475
538
 
476
- <span class="summary_desc"><div class='inline'>
477
- <p>The worksheet relationships.</p>
539
+ <span class="summary_desc"><div class='inline'><p>
540
+ The worksheet relationships.
541
+ </p>
478
542
  </div></span>
479
543
 
480
544
  </li>
@@ -496,8 +560,9 @@
496
560
 
497
561
 
498
562
 
499
- <span class="summary_desc"><div class='inline'>
500
- <p>The relationship part name of this worksheet.</p>
563
+ <span class="summary_desc"><div class='inline'><p>
564
+ The relationship part name of this worksheet.
565
+ </p>
501
566
  </div></span>
502
567
 
503
568
  </li>
@@ -519,8 +584,9 @@
519
584
 
520
585
 
521
586
 
522
- <span class="summary_desc"><div class='inline'>
523
- <p>The relationship Id of thiw worksheet.</p>
587
+ <span class="summary_desc"><div class='inline'><p>
588
+ The relationship Id of thiw worksheet.
589
+ </p>
524
590
  </div></span>
525
591
 
526
592
  </li>
@@ -542,8 +608,9 @@
542
608
 
543
609
 
544
610
 
545
- <span class="summary_desc"><div class='inline'>
546
- <p>Set the style for cells in a specific row.</p>
611
+ <span class="summary_desc"><div class='inline'><p>
612
+ Set the style for cells in a specific row.
613
+ </p>
547
614
  </div></span>
548
615
 
549
616
  </li>
@@ -565,8 +632,9 @@
565
632
 
566
633
 
567
634
 
568
- <span class="summary_desc"><div class='inline'>
569
- <p>Serializes the worksheet document.</p>
635
+ <span class="summary_desc"><div class='inline'><p>
636
+ Serializes the worksheet document.
637
+ </p>
570
638
  </div></span>
571
639
 
572
640
  </li>
@@ -588,8 +656,9 @@
588
656
 
589
657
 
590
658
 
591
- <span class="summary_desc"><div class='inline'>
592
- <p>Updates auto fit data.</p>
659
+ <span class="summary_desc"><div class='inline'><p>
660
+ Updates auto fit data.
661
+ </p>
593
662
  </div></span>
594
663
 
595
664
  </li>
@@ -613,13 +682,15 @@
613
682
 
614
683
  <div class="note notetag">
615
684
  <strong>Note:</strong>
616
- <div class='inline'>
617
- <p>the recommended way to manage worksheets is Workbook#add_worksheet</p>
685
+ <div class='inline'><p>
686
+ the recommended way to manage worksheets is Workbook#add_worksheet
687
+ </p>
618
688
  </div>
619
689
  </div>
620
690
 
621
-
622
- <p>Creates a new worksheet.</p>
691
+ <p>
692
+ Creates a new worksheet.
693
+ </p>
623
694
 
624
695
 
625
696
  </div>
@@ -640,8 +711,9 @@
640
711
 
641
712
 
642
713
  &mdash;
643
- <div class='inline'>
644
- <p>a customizable set of options</p>
714
+ <div class='inline'><p>
715
+ a customizable set of options
716
+ </p>
645
717
  </div>
646
718
 
647
719
  </li>
@@ -662,8 +734,9 @@
662
734
  <span class="default">
663
735
 
664
736
  </span>
665
- &mdash; <div class='inline'>
666
- <p>The name of this sheet.</p>
737
+ &mdash; <div class='inline'><p>
738
+ The name of this sheet.
739
+ </p>
667
740
  </div>
668
741
  </li>
669
742
 
@@ -734,14 +807,16 @@
734
807
 
735
808
  <div class="note notetag">
736
809
  <strong>Note:</strong>
737
- <div class='inline'>
738
- <p>a single auto fit data item is a hash with :longest =&gt; [String] and
739
- :sz=&gt; [Integer] members.</p>
810
+ <div class='inline'><p>
811
+ a single auto fit data item is a hash with :longest =&gt; [String] and
812
+ :sz=&gt; [Integer] members.
813
+ </p>
740
814
  </div>
741
815
  </div>
742
816
 
743
-
744
- <p>An array of content based calculated column widths.</p>
817
+ <p>
818
+ An array of content based calculated column widths.
819
+ </p>
745
820
 
746
821
 
747
822
  </div>
@@ -759,8 +834,9 @@
759
834
 
760
835
 
761
836
  &mdash;
762
- <div class='inline'>
763
- <p>of Hash</p>
837
+ <div class='inline'><p>
838
+ of Hash
839
+ </p>
764
840
  </div>
765
841
 
766
842
  </li>
@@ -801,8 +877,9 @@
801
877
 
802
878
  </p><div class="docstring">
803
879
  <div class="discussion">
804
-
805
- <p>The name of the worksheet</p>
880
+ <p>
881
+ The name of the worksheet
882
+ </p>
806
883
 
807
884
 
808
885
  </div>
@@ -860,13 +937,15 @@
860
937
 
861
938
  <div class="note notetag">
862
939
  <strong>Note:</strong>
863
- <div class='inline'>
864
- <p>The recommended way to manage rows is Worksheet#add_row</p>
940
+ <div class='inline'><p>
941
+ The recommended way to manage rows is Worksheet#add_row
942
+ </p>
865
943
  </div>
866
944
  </div>
867
945
 
868
-
869
- <p>The rows in this worksheet</p>
946
+ <p>
947
+ The rows in this worksheet
948
+ </p>
870
949
 
871
950
 
872
951
  </div>
@@ -928,8 +1007,9 @@
928
1007
 
929
1008
  </p><div class="docstring">
930
1009
  <div class="discussion">
931
-
932
- <p>The workbook that owns this worksheet</p>
1010
+ <p>
1011
+ The workbook that owns this worksheet
1012
+ </p>
933
1013
 
934
1014
 
935
1015
  </div>
@@ -980,7 +1060,110 @@
980
1060
 
981
1061
 
982
1062
  <div class="method_details first">
983
- <p class="signature first" id="add_chart-instance_method">
1063
+ <p class="signature first" id="[]-instance_method">
1064
+
1065
+ - (<tt><span class='object_link'><a href="Cell.html" title="Axlsx::Cell (class)">Cell</a></span></tt>, <tt>Array</tt>) <strong>[]</strong>(cell_def)
1066
+
1067
+
1068
+
1069
+ </p><div class="docstring">
1070
+ <div class="discussion">
1071
+ <p>
1072
+ Returns the cell or cells defined using excel style A1:B3 references.
1073
+ </p>
1074
+
1075
+
1076
+ </div>
1077
+ </div>
1078
+ <div class="tags">
1079
+ <h3>Parameters:</h3>
1080
+ <ul class="param">
1081
+
1082
+ <li>
1083
+
1084
+ <span class='name'>cell_def</span>
1085
+
1086
+
1087
+ <span class='type'>(<tt>String</tt>)</span>
1088
+
1089
+
1090
+
1091
+ &mdash;
1092
+ <div class='inline'><p>
1093
+ the string defining the cell or range of cells
1094
+ </p>
1095
+ </div>
1096
+
1097
+ </li>
1098
+
1099
+ </ul>
1100
+
1101
+ <h3>Returns:</h3>
1102
+ <ul class="return">
1103
+
1104
+ <li>
1105
+
1106
+
1107
+ <span class='type'>(<tt><span class='object_link'><a href="Cell.html" title="Axlsx::Cell (class)">Cell</a></span></tt>, <tt>Array</tt>)</span>
1108
+
1109
+
1110
+
1111
+ </li>
1112
+
1113
+ </ul>
1114
+
1115
+ </div><table class="source_code">
1116
+ <tr>
1117
+ <td>
1118
+ <pre class="lines">
1119
+
1120
+
1121
+ 48
1122
+ 49
1123
+ 50
1124
+ 51
1125
+ 52
1126
+ 53
1127
+ 54
1128
+ 55
1129
+ 56
1130
+ 57
1131
+ 58
1132
+ 59
1133
+ 60
1134
+ 61
1135
+ 62
1136
+ 63
1137
+ 64</pre>
1138
+ </td>
1139
+ <td>
1140
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 48</span>
1141
+
1142
+ <span class='def def kw'>def</span> <span class='aref op'>[]</span><span class='lparen token'>(</span><span class='cell_def identifier id'>cell_def</span><span class='rparen token'>)</span>
1143
+ <span class='parts identifier id'>parts</span> <span class='assign token'>=</span> <span class='cell_def identifier id'>cell_def</span><span class='dot token'>.</span><span class='split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>':'</span><span class='rparen token'>)</span>
1144
+ <span class='first identifier id'>first</span> <span class='assign token'>=</span> <span class='name_to_cell identifier id'>name_to_cell</span> <span class='parts identifier id'>parts</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
1145
+
1146
+ <span class='if if kw'>if</span> <span class='parts identifier id'>parts</span><span class='dot token'>.</span><span class='size identifier id'>size</span> <span class='eq op'>==</span> <span class='integer val'>1</span>
1147
+ <span class='first identifier id'>first</span>
1148
+ <span class='else else kw'>else</span>
1149
+ <span class='cells identifier id'>cells</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1150
+ <span class='last identifier id'>last</span> <span class='assign token'>=</span> <span class='name_to_cell identifier id'>name_to_cell</span><span class='lparen token'>(</span><span class='parts identifier id'>parts</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
1151
+ <span class='rows identifier id'>rows</span><span class='lbrack token'>[</span><span class='lparen token'>(</span><span class='first identifier id'>first</span><span class='dot token'>.</span><span class='row identifier id'>row</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='dot2 op'>..</span><span class='last identifier id'>last</span><span class='dot token'>.</span><span class='row identifier id'>row</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='rparen token'>)</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='r identifier id'>r</span><span class='bitor op'>|</span>
1152
+ <span class='r identifier id'>r</span><span class='dot token'>.</span><span class='cells identifier id'>cells</span><span class='lbrack token'>[</span><span class='lparen token'>(</span><span class='first identifier id'>first</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='dot2 op'>..</span><span class='last identifier id'>last</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='rparen token'>)</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='c identifier id'>c</span><span class='bitor op'>|</span>
1153
+ <span class='cells identifier id'>cells</span> <span class='lshft op'>&lt;&lt;</span> <span class='c identifier id'>c</span>
1154
+ <span class='end end kw'>end</span>
1155
+ <span class='end end kw'>end</span>
1156
+ <span class='cells identifier id'>cells</span>
1157
+ <span class='end end kw'>end</span>
1158
+ <span class='end end kw'>end</span>
1159
+ </pre>
1160
+ </td>
1161
+ </tr>
1162
+ </table>
1163
+ </div>
1164
+
1165
+ <div class="method_details ">
1166
+ <p class="signature " id="add_chart-instance_method">
984
1167
 
985
1168
  - (<tt>Object</tt>) <strong>add_chart</strong>(chart_type, options = {}) {|chart| ... }
986
1169
 
@@ -991,16 +1174,18 @@
991
1174
 
992
1175
  <div class="note notetag">
993
1176
  <strong>Note:</strong>
994
- <div class='inline'>
995
- <p>each chart type also specifies additional options</p>
1177
+ <div class='inline'><p>
1178
+ each chart type also specifies additional options
1179
+ </p>
996
1180
  </div>
997
1181
  </div>
998
1182
 
999
-
1000
- <p>Adds a chart to this worksheets drawing. This is the recommended way to
1183
+ <p>
1184
+ Adds a chart to this worksheets drawing. This is the recommended way to
1001
1185
  create charts for your worksheet. This method wraps the complexity of
1002
1186
  dealing with ooxml drawing, anchors, markers graphic frames chart objects
1003
- and all the other dirty details.</p>
1187
+ and all the other dirty details.
1188
+ </p>
1004
1189
 
1005
1190
 
1006
1191
  </div>
@@ -1032,8 +1217,9 @@ and all the other dirty details.</p>
1032
1217
 
1033
1218
 
1034
1219
  &mdash;
1035
- <div class='inline'>
1036
- <p>a customizable set of options</p>
1220
+ <div class='inline'><p>
1221
+ a customizable set of options
1222
+ </p>
1037
1223
  </div>
1038
1224
 
1039
1225
  </li>
@@ -1131,14 +1317,14 @@ and all the other dirty details.</p>
1131
1317
  <pre class="lines">
1132
1318
 
1133
1319
 
1134
- 148
1135
- 149
1136
- 150
1137
- 151
1138
- 152</pre>
1320
+ 183
1321
+ 184
1322
+ 185
1323
+ 186
1324
+ 187</pre>
1139
1325
  </td>
1140
1326
  <td>
1141
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 148</span>
1327
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 183</span>
1142
1328
 
1143
1329
  <span class='def def kw'>def</span> <span class='add_chart identifier id'>add_chart</span><span class='lparen token'>(</span><span class='chart_type identifier id'>chart_type</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>
1144
1330
  <span class='chart identifier id'>chart</span> <span class='assign token'>=</span> <span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='add_chart identifier id'>add_chart</span><span class='lparen token'>(</span><span class='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
@@ -1160,8 +1346,9 @@ and all the other dirty details.</p>
1160
1346
 
1161
1347
  </p><div class="docstring">
1162
1348
  <div class="discussion">
1163
-
1164
- <p>Adds a media item to the worksheets drawing</p>
1349
+ <p>
1350
+ Adds a media item to the worksheets drawing
1351
+ </p>
1165
1352
 
1166
1353
 
1167
1354
  </div>
@@ -1193,8 +1380,9 @@ and all the other dirty details.</p>
1193
1380
 
1194
1381
 
1195
1382
  &mdash;
1196
- <div class='inline'>
1197
- <p>a customizable set of options</p>
1383
+ <div class='inline'><p>
1384
+ a customizable set of options
1385
+ </p>
1198
1386
  </div>
1199
1387
 
1200
1388
  </li>
@@ -1213,8 +1401,9 @@ and all the other dirty details.</p>
1213
1401
  <span class="default">
1214
1402
 
1215
1403
  </span>
1216
- &mdash; <div class='inline'>
1217
- <p>unknown</p>
1404
+ &mdash; <div class='inline'><p>
1405
+ unknown
1406
+ </p>
1218
1407
  </div>
1219
1408
  </li>
1220
1409
 
@@ -1241,14 +1430,14 @@ and all the other dirty details.</p>
1241
1430
  <pre class="lines">
1242
1431
 
1243
1432
 
1244
- 157
1245
- 158
1246
- 159
1247
- 160
1248
- 161</pre>
1433
+ 192
1434
+ 193
1435
+ 194
1436
+ 195
1437
+ 196</pre>
1249
1438
  </td>
1250
1439
  <td>
1251
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 157</span>
1440
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 192</span>
1252
1441
 
1253
1442
  <span class='def def kw'>def</span> <span class='add_image identifier id'>add_image</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>
1254
1443
  <span class='image identifier id'>image</span> <span class='assign token'>=</span> <span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='add_image identifier id'>add_image</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='rparen token'>)</span>
@@ -1270,8 +1459,9 @@ and all the other dirty details.</p>
1270
1459
 
1271
1460
  </p><div class="docstring">
1272
1461
  <div class="discussion">
1273
-
1274
- <p>Adds a row to the worksheet and updates auto fit data</p>
1462
+ <p>
1463
+ Adds a row to the worksheet and updates auto fit data
1464
+ </p>
1275
1465
 
1276
1466
 
1277
1467
  </div>
@@ -1292,8 +1482,9 @@ and all the other dirty details.</p>
1292
1482
 
1293
1483
 
1294
1484
  &mdash;
1295
- <div class='inline'>
1296
- <p>a customizable set of options</p>
1485
+ <div class='inline'><p>
1486
+ a customizable set of options
1487
+ </p>
1297
1488
  </div>
1298
1489
 
1299
1490
  </li>
@@ -1371,15 +1562,15 @@ and all the other dirty details.</p>
1371
1562
  <pre class="lines">
1372
1563
 
1373
1564
 
1374
- 86
1375
- 87
1376
- 88
1377
- 89
1378
- 90
1379
- 91</pre>
1565
+ 121
1566
+ 122
1567
+ 123
1568
+ 124
1569
+ 125
1570
+ 126</pre>
1380
1571
  </td>
1381
1572
  <td>
1382
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 86</span>
1573
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 121</span>
1383
1574
 
1384
1575
  <span class='def def kw'>def</span> <span class='add_row identifier id'>add_row</span><span class='lparen token'>(</span><span class='values identifier id'>values</span><span class='assign token'>=</span><span class='lbrack token'>[</span><span class='rbrack token'>]</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>
1385
1576
  <span class='Row constant id'>Row</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='values identifier id'>values</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
@@ -1405,18 +1596,20 @@ and all the other dirty details.</p>
1405
1596
 
1406
1597
  <div class="note notetag">
1407
1598
  <strong>Note:</strong>
1408
- <div class='inline'>
1409
- <p>From ECMA docs</p>
1410
-
1411
- <pre class="code"><span class='Column constant id'>Column</span> <span class='width identifier id'>width</span> <span class='measured identifier id'>measured</span> <span class='as identifier id'>as</span> <span class='the identifier id'>the</span> <span class='number identifier id'>number</span> <span class='of identifier id'>of</span> <span class='characters identifier id'>characters</span> <span class='of identifier id'>of</span> <span class='the identifier id'>the</span> <span class='maximum identifier id'>maximum</span> <span class='digit identifier id'>digit</span> <span class='width identifier id'>width</span> <span class='of identifier id'>of</span> <span class='the identifier id'>the</span> <span class='numbers identifier id'>numbers</span> <span class='integer val'>0</span> <span class='dot2 op'>..</span> <span class='integer val'>9</span> <span class='as identifier id'>as</span>
1412
- <span class='rendered identifier id'>rendered</span> <span class='in in kw'>in</span> <span class='the identifier id'>the</span> <span class='normal identifier id'>normal</span> <span class='style identifier id'>style</span><span class='string val'>'s font. There are 4 pixels of margin padding (two on each side), plus 1 pixel padding for the gridlines.
1413
- width = Truncate([!{Number of Characters} * !{Maximum Digit Width} + !{5 pixel padding}]/{Maximum Digit Width}*256)/256
1599
+ <div class='inline'><p>
1600
+ From ECMA docs
1601
+ </p>
1602
+ <pre class="code">
1603
+ <span class='Column constant id'>Column</span> <span class='width identifier id'>width</span> <span class='measured identifier id'>measured</span> <span class='as identifier id'>as</span> <span class='the identifier id'>the</span> <span class='number identifier id'>number</span> <span class='of identifier id'>of</span> <span class='characters identifier id'>characters</span> <span class='of identifier id'>of</span> <span class='the identifier id'>the</span> <span class='maximum identifier id'>maximum</span> <span class='digit identifier id'>digit</span> <span class='width identifier id'>width</span> <span class='of identifier id'>of</span> <span class='the identifier id'>the</span> <span class='numbers identifier id'>numbers</span> <span class='integer val'>0</span> <span class='dot2 op'>..</span> <span class='integer val'>9</span> <span class='as identifier id'>as</span>
1604
+ <span class='rendered identifier id'>rendered</span> <span class='in in kw'>in</span> <span class='the identifier id'>the</span> <span class='normal identifier id'>normal</span> <span class='style identifier id'>style</span><span class='string val'>'s font. There are 4 pixels of margin padding (two on each side), plus 1 pixel padding for the gridlines.
1605
+ width = Truncate([!{Number of Characters} * !{Maximum Digit Width} + !{5 pixel padding}]/{Maximum Digit Width}*256)/256
1414
1606
  </span></pre>
1415
1607
  </div>
1416
1608
  </div>
1417
1609
 
1418
-
1419
- <p>Determines the proper width for a column based on content.</p>
1610
+ <p>
1611
+ Determines the proper width for a column based on content.
1612
+ </p>
1420
1613
 
1421
1614
 
1422
1615
  </div>
@@ -1435,8 +1628,9 @@ width = Truncate([!{Number of Characters} * !{Maximum Digit Width} + !{5 pixel p
1435
1628
 
1436
1629
 
1437
1630
  &mdash;
1438
- <div class='inline'>
1439
- <p>hash of auto_fit_data</p>
1631
+ <div class='inline'><p>
1632
+ hash of auto_fit_data
1633
+ </p>
1440
1634
  </div>
1441
1635
 
1442
1636
  </li>
@@ -1463,20 +1657,20 @@ width = Truncate([!{Number of Characters} * !{Maximum Digit Width} + !{5 pixel p
1463
1657
  <pre class="lines">
1464
1658
 
1465
1659
 
1466
- 232
1467
- 233
1468
- 234
1469
- 235
1470
- 236
1471
- 237
1472
- 238
1473
- 239
1474
- 240
1475
- 241
1476
- 242</pre>
1660
+ 266
1661
+ 267
1662
+ 268
1663
+ 269
1664
+ 270
1665
+ 271
1666
+ 272
1667
+ 273
1668
+ 274
1669
+ 275
1670
+ 276</pre>
1477
1671
  </td>
1478
1672
  <td>
1479
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 232</span>
1673
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 266</span>
1480
1674
 
1481
1675
  <span class='def def kw'>def</span> <span class='auto_width identifier id'>auto_width</span><span class='lparen token'>(</span><span class='col identifier id'>col</span><span class='rparen token'>)</span>
1482
1676
  <span class='mdw identifier id'>mdw</span> <span class='assign token'>=</span> <span class='float val'>6.0</span> <span class='comment val'># maximum digit with is always 6.0 with RMagick's default font</span>
@@ -1507,14 +1701,16 @@ width = Truncate([!{Number of Characters} * !{Maximum Digit Width} + !{5 pixel p
1507
1701
 
1508
1702
  <div class="note notetag">
1509
1703
  <strong>Note:</strong>
1510
- <div class='inline'>
1511
- <p>You can also specify the style for specific columns in the call to add_row
1512
- by using an array for the :styles option</p>
1704
+ <div class='inline'><p>
1705
+ You can also specify the style for specific columns in the call to add_row
1706
+ by using an array for the :styles option
1707
+ </p>
1513
1708
  </div>
1514
1709
  </div>
1515
1710
 
1516
-
1517
- <p>Set the style for cells in a specific column</p>
1711
+ <p>
1712
+ Set the style for cells in a specific column
1713
+ </p>
1518
1714
 
1519
1715
 
1520
1716
  </div>
@@ -1533,8 +1729,9 @@ by using an array for the :styles option</p>
1533
1729
 
1534
1730
 
1535
1731
  &mdash;
1536
- <div class='inline'>
1537
- <p>the index of the column</p>
1732
+ <div class='inline'><p>
1733
+ the index of the column
1734
+ </p>
1538
1735
  </div>
1539
1736
 
1540
1737
  </li>
@@ -1549,8 +1746,9 @@ by using an array for the :styles option</p>
1549
1746
 
1550
1747
 
1551
1748
  &mdash;
1552
- <div class='inline'>
1553
- <p>cellXfs index</p>
1749
+ <div class='inline'><p>
1750
+ cellXfs index
1751
+ </p>
1554
1752
  </div>
1555
1753
 
1556
1754
  </li>
@@ -1567,8 +1765,9 @@ by using an array for the :styles option</p>
1567
1765
 
1568
1766
 
1569
1767
  &mdash;
1570
- <div class='inline'>
1571
- <p>a customizable set of options</p>
1768
+ <div class='inline'><p>
1769
+ a customizable set of options
1770
+ </p>
1572
1771
  </div>
1573
1772
 
1574
1773
  </li>
@@ -1591,8 +1790,9 @@ by using an array for the :styles option</p>
1591
1790
  <span class="default">
1592
1791
 
1593
1792
  </span>
1594
- &mdash; <div class='inline'>
1595
- <p>only cells after this column will be updated.</p>
1793
+ &mdash; <div class='inline'><p>
1794
+ only cells after this column will be updated.
1795
+ </p>
1596
1796
  </div>
1597
1797
  </li>
1598
1798
 
@@ -1615,20 +1815,20 @@ by using an array for the :styles option</p>
1615
1815
  <pre class="lines">
1616
1816
 
1617
1817
 
1618
- 123
1619
- 124
1620
- 125
1621
- 126
1622
- 127
1623
- 128
1624
- 129
1625
- 130
1626
- 131
1627
- 132
1628
- 133</pre>
1818
+ 158
1819
+ 159
1820
+ 160
1821
+ 161
1822
+ 162
1823
+ 163
1824
+ 164
1825
+ 165
1826
+ 166
1827
+ 167
1828
+ 168</pre>
1629
1829
  </td>
1630
1830
  <td>
1631
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 123</span>
1831
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 158</span>
1632
1832
 
1633
1833
  <span class='def def kw'>def</span> <span class='col_style identifier id'>col_style</span><span class='lparen token'>(</span><span class='index identifier id'>index</span><span class='comma token'>,</span> <span class='style identifier id'>style</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>
1634
1834
  <span class='offset identifier id'>offset</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:row_offset</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='integer val'>0</span>
@@ -1656,8 +1856,9 @@ by using an array for the :styles option</p>
1656
1856
 
1657
1857
  </p><div class="docstring">
1658
1858
  <div class="discussion">
1659
-
1660
- <p>returns the sheet data as columnw</p>
1859
+ <p>
1860
+ returns the sheet data as columnw
1861
+ </p>
1661
1862
 
1662
1863
 
1663
1864
  </div>
@@ -1671,12 +1872,12 @@ by using an array for the :styles option</p>
1671
1872
  <pre class="lines">
1672
1873
 
1673
1874
 
1674
- 111
1675
- 112
1676
- 113</pre>
1875
+ 146
1876
+ 147
1877
+ 148</pre>
1677
1878
  </td>
1678
1879
  <td>
1679
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 111</span>
1880
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 146</span>
1680
1881
 
1681
1882
  <span class='def def kw'>def</span> <span class='cols identifier id'>cols</span>
1682
1883
  <span class='@rows ivar id'>@rows</span><span class='dot token'>.</span><span class='transpose identifier id'>transpose</span>
@@ -1699,13 +1900,15 @@ by using an array for the :styles option</p>
1699
1900
 
1700
1901
  <div class="note notetag">
1701
1902
  <strong>Note:</strong>
1702
- <div class='inline'>
1703
- <p>the recommended way to work with drawings and charts is Worksheet#add_chart</p>
1903
+ <div class='inline'><p>
1904
+ the recommended way to work with drawings and charts is Worksheet#add_chart
1905
+ </p>
1704
1906
  </div>
1705
1907
  </div>
1706
1908
 
1707
-
1708
- <p>The drawing associated with this worksheet.</p>
1909
+ <p>
1910
+ The drawing associated with this worksheet.
1911
+ </p>
1709
1912
 
1710
1913
 
1711
1914
  </div>
@@ -1739,12 +1942,12 @@ by using an array for the :styles option</p>
1739
1942
  <pre class="lines">
1740
1943
 
1741
1944
 
1742
- 77
1743
- 78
1744
- 79</pre>
1945
+ 112
1946
+ 113
1947
+ 114</pre>
1745
1948
  </td>
1746
1949
  <td>
1747
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 77</span>
1950
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 112</span>
1748
1951
 
1749
1952
  <span class='def def kw'>def</span> <span class='drawing identifier id'>drawing</span>
1750
1953
  <span class='@drawing ivar id'>@drawing</span> <span class='orop op'>||</span> <span class='@drawing ivar id'>@drawing</span> <span class='assign token'>=</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Drawing constant id'>Drawing</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
@@ -1764,8 +1967,9 @@ by using an array for the :styles option</p>
1764
1967
 
1765
1968
  </p><div class="docstring">
1766
1969
  <div class="discussion">
1767
-
1768
- <p>The index of this worksheet in the owning Workbooks worksheets list.</p>
1970
+ <p>
1971
+ The index of this worksheet in the owning Workbook&#8217;s worksheets list.
1972
+ </p>
1769
1973
 
1770
1974
 
1771
1975
  </div>
@@ -1792,15 +1996,95 @@ by using an array for the :styles option</p>
1792
1996
  <pre class="lines">
1793
1997
 
1794
1998
 
1999
+ 104
2000
+ 105
2001
+ 106</pre>
2002
+ </td>
2003
+ <td>
2004
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 104</span>
2005
+
2006
+ <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
2007
+ <span class='@workbook ivar id'>@workbook</span><span class='dot token'>.</span><span class='worksheets identifier id'>worksheets</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
2008
+ <span class='end end kw'>end</span>
2009
+ </pre>
2010
+ </td>
2011
+ </tr>
2012
+ </table>
2013
+ </div>
2014
+
2015
+ <div class="method_details ">
2016
+ <p class="signature " id="name_to_cell-instance_method">
2017
+
2018
+ - (<tt><span class='object_link'><a href="Cell.html" title="Axlsx::Cell (class)">Cell</a></span></tt>) <strong>name_to_cell</strong>(name)
2019
+
2020
+
2021
+
2022
+ </p><div class="docstring">
2023
+ <div class="discussion">
2024
+ <p>
2025
+ returns the column and row index for a named based cell
2026
+ </p>
2027
+
2028
+
2029
+ </div>
2030
+ </div>
2031
+ <div class="tags">
2032
+ <h3>Parameters:</h3>
2033
+ <ul class="param">
2034
+
2035
+ <li>
2036
+
2037
+ <span class='name'>name</span>
2038
+
2039
+
2040
+ <span class='type'>(<tt>String</tt>)</span>
2041
+
2042
+
2043
+
2044
+ &mdash;
2045
+ <div class='inline'><p>
2046
+ The cell or cell range to return. &quot;A1&quot; will return the first cell
2047
+ of the first row.
2048
+ </p>
2049
+ </div>
2050
+
2051
+ </li>
2052
+
2053
+ </ul>
2054
+
2055
+ <h3>Returns:</h3>
2056
+ <ul class="return">
2057
+
2058
+ <li>
2059
+
2060
+
2061
+ <span class='type'>(<tt><span class='object_link'><a href="Cell.html" title="Axlsx::Cell (class)">Cell</a></span></tt>)</span>
2062
+
2063
+
2064
+
2065
+ </li>
2066
+
2067
+ </ul>
2068
+
2069
+ </div><table class="source_code">
2070
+ <tr>
2071
+ <td>
2072
+ <pre class="lines">
2073
+
2074
+
1795
2075
  69
1796
2076
  70
1797
- 71</pre>
2077
+ 71
2078
+ 72
2079
+ 73</pre>
1798
2080
  </td>
1799
2081
  <td>
1800
2082
  <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 69</span>
1801
2083
 
1802
- <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
1803
- <span class='@workbook ivar id'>@workbook</span><span class='dot token'>.</span><span class='worksheets identifier id'>worksheets</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
2084
+ <span class='def def kw'>def</span> <span class='name_to_cell identifier id'>name_to_cell</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
2085
+ <span class='col_index identifier id'>col_index</span><span class='comma token'>,</span> <span class='row_index identifier id'>row_index</span> <span class='assign token'>=</span> <span class='mult op'>*</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='name_to_indices identifier id'>name_to_indices</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
2086
+ <span class='r identifier id'>r</span> <span class='assign token'>=</span> <span class='rows identifier id'>rows</span><span class='lbrack token'>[</span><span class='row_index identifier id'>row_index</span><span class='rbrack token'>]</span>
2087
+ <span class='r identifier id'>r</span><span class='dot token'>.</span><span class='cells identifier id'>cells</span><span class='lbrack token'>[</span><span class='col_index identifier id'>col_index</span><span class='rbrack token'>]</span> <span class='if if_mod kw'>if</span> <span class='r identifier id'>r</span>
1804
2088
  <span class='end end kw'>end</span>
1805
2089
  </pre>
1806
2090
  </td>
@@ -1817,8 +2101,9 @@ by using an array for the :styles option</p>
1817
2101
 
1818
2102
  </p><div class="docstring">
1819
2103
  <div class="discussion">
1820
-
1821
- <p>The part name of this worksheet</p>
2104
+ <p>
2105
+ The part name of this worksheet
2106
+ </p>
1822
2107
 
1823
2108
 
1824
2109
  </div>
@@ -1845,12 +2130,12 @@ by using an array for the :styles option</p>
1845
2130
  <pre class="lines">
1846
2131
 
1847
2132
 
1848
- 51
1849
- 52
1850
- 53</pre>
2133
+ 86
2134
+ 87
2135
+ 88</pre>
1851
2136
  </td>
1852
2137
  <td>
1853
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 51</span>
2138
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 86</span>
1854
2139
 
1855
2140
  <span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
1856
2141
  <span class='dstring node'>&quot;#{WORKSHEET_PN % (index+1)}&quot;</span>
@@ -1870,8 +2155,9 @@ by using an array for the :styles option</p>
1870
2155
 
1871
2156
  </p><div class="docstring">
1872
2157
  <div class="discussion">
1873
-
1874
- <p>The worksheet relationships. This is managed automatically by the worksheet</p>
2158
+ <p>
2159
+ The worksheet relationships. This is managed automatically by the worksheet
2160
+ </p>
1875
2161
 
1876
2162
 
1877
2163
  </div>
@@ -1898,14 +2184,14 @@ by using an array for the :styles option</p>
1898
2184
  <pre class="lines">
1899
2185
 
1900
2186
 
1901
- 189
1902
- 190
1903
- 191
1904
- 192
1905
- 193</pre>
2187
+ 224
2188
+ 225
2189
+ 226
2190
+ 227
2191
+ 228</pre>
1906
2192
  </td>
1907
2193
  <td>
1908
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 189</span>
2194
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 224</span>
1909
2195
 
1910
2196
  <span class='def def kw'>def</span> <span class='relationships identifier id'>relationships</span>
1911
2197
  <span class='r identifier id'>r</span> <span class='assign token'>=</span> <span class='Relationships constant id'>Relationships</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
@@ -1927,8 +2213,9 @@ by using an array for the :styles option</p>
1927
2213
 
1928
2214
  </p><div class="docstring">
1929
2215
  <div class="discussion">
1930
-
1931
- <p>The relationship part name of this worksheet</p>
2216
+ <p>
2217
+ The relationship part name of this worksheet
2218
+ </p>
1932
2219
 
1933
2220
 
1934
2221
  </div>
@@ -1955,12 +2242,12 @@ by using an array for the :styles option</p>
1955
2242
  <pre class="lines">
1956
2243
 
1957
2244
 
1958
- 57
1959
- 58
1960
- 59</pre>
2245
+ 92
2246
+ 93
2247
+ 94</pre>
1961
2248
  </td>
1962
2249
  <td>
1963
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 57</span>
2250
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 92</span>
1964
2251
 
1965
2252
  <span class='def def kw'>def</span> <span class='rels_pn identifier id'>rels_pn</span>
1966
2253
  <span class='dstring node'>&quot;#{WORKSHEET_RELS_PN % (index+1)}&quot;</span>
@@ -1980,8 +2267,9 @@ by using an array for the :styles option</p>
1980
2267
 
1981
2268
  </p><div class="docstring">
1982
2269
  <div class="discussion">
1983
-
1984
- <p>The relationship Id of thiw worksheet</p>
2270
+ <p>
2271
+ The relationship Id of thiw worksheet
2272
+ </p>
1985
2273
 
1986
2274
 
1987
2275
  </div>
@@ -2008,12 +2296,12 @@ by using an array for the :styles option</p>
2008
2296
  <pre class="lines">
2009
2297
 
2010
2298
 
2011
- 63
2012
- 64
2013
- 65</pre>
2299
+ 98
2300
+ 99
2301
+ 100</pre>
2014
2302
  </td>
2015
2303
  <td>
2016
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 63</span>
2304
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 98</span>
2017
2305
 
2018
2306
  <span class='def def kw'>def</span> <span class='rId identifier id'>rId</span>
2019
2307
  <span class='dstring node'>&quot;rId#{index+1}&quot;</span>
@@ -2036,13 +2324,15 @@ by using an array for the :styles option</p>
2036
2324
 
2037
2325
  <div class="note notetag">
2038
2326
  <strong>Note:</strong>
2039
- <div class='inline'>
2040
- <p>You can also specify the style in the add_row call</p>
2327
+ <div class='inline'><p>
2328
+ You can also specify the style in the add_row call
2329
+ </p>
2041
2330
  </div>
2042
2331
  </div>
2043
2332
 
2044
-
2045
- <p>Set the style for cells in a specific row</p>
2333
+ <p>
2334
+ Set the style for cells in a specific row
2335
+ </p>
2046
2336
 
2047
2337
 
2048
2338
  </div>
@@ -2061,8 +2351,9 @@ by using an array for the :styles option</p>
2061
2351
 
2062
2352
 
2063
2353
  &mdash;
2064
- <div class='inline'>
2065
- <p>or range of indexes in the table</p>
2354
+ <div class='inline'><p>
2355
+ or range of indexes in the table
2356
+ </p>
2066
2357
  </div>
2067
2358
 
2068
2359
  </li>
@@ -2077,8 +2368,9 @@ by using an array for the :styles option</p>
2077
2368
 
2078
2369
 
2079
2370
  &mdash;
2080
- <div class='inline'>
2081
- <p>cellXfs index</p>
2371
+ <div class='inline'><p>
2372
+ cellXfs index
2373
+ </p>
2082
2374
  </div>
2083
2375
 
2084
2376
  </li>
@@ -2095,8 +2387,9 @@ by using an array for the :styles option</p>
2095
2387
 
2096
2388
 
2097
2389
  &mdash;
2098
- <div class='inline'>
2099
- <p>a customizable set of options</p>
2390
+ <div class='inline'><p>
2391
+ a customizable set of options
2392
+ </p>
2100
2393
  </div>
2101
2394
 
2102
2395
  </li>
@@ -2119,8 +2412,9 @@ by using an array for the :styles option</p>
2119
2412
  <span class="default">
2120
2413
 
2121
2414
  </span>
2122
- &mdash; <div class='inline'>
2123
- <p>only cells after this column will be updated.</p>
2415
+ &mdash; <div class='inline'><p>
2416
+ only cells after this column will be updated.
2417
+ </p>
2124
2418
  </div>
2125
2419
  </li>
2126
2420
 
@@ -2143,18 +2437,18 @@ by using an array for the :styles option</p>
2143
2437
  <pre class="lines">
2144
2438
 
2145
2439
 
2146
- 100
2147
- 101
2148
- 102
2149
- 103
2150
- 104
2151
- 105
2152
- 106
2153
- 107
2154
- 108</pre>
2440
+ 135
2441
+ 136
2442
+ 137
2443
+ 138
2444
+ 139
2445
+ 140
2446
+ 141
2447
+ 142
2448
+ 143</pre>
2155
2449
  </td>
2156
2450
  <td>
2157
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 100</span>
2451
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 135</span>
2158
2452
 
2159
2453
  <span class='def def kw'>def</span> <span class='row_style identifier id'>row_style</span><span class='lparen token'>(</span><span class='index identifier id'>index</span><span class='comma token'>,</span> <span class='style identifier id'>style</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>
2160
2454
  <span class='offset identifier id'>offset</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:col_offset</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='integer val'>0</span>
@@ -2180,8 +2474,9 @@ by using an array for the :styles option</p>
2180
2474
 
2181
2475
  </p><div class="docstring">
2182
2476
  <div class="discussion">
2183
-
2184
- <p>Serializes the worksheet document</p>
2477
+ <p>
2478
+ Serializes the worksheet document
2479
+ </p>
2185
2480
 
2186
2481
 
2187
2482
  </div>
@@ -2208,30 +2503,30 @@ by using an array for the :styles option</p>
2208
2503
  <pre class="lines">
2209
2504
 
2210
2505
 
2211
- 165
2212
- 166
2213
- 167
2214
- 168
2215
- 169
2216
- 170
2217
- 171
2218
- 172
2219
- 173
2220
- 174
2221
- 175
2222
- 176
2223
- 177
2224
- 178
2225
- 179
2226
- 180
2227
- 181
2228
- 182
2229
- 183
2230
- 184
2231
- 185</pre>
2506
+ 200
2507
+ 201
2508
+ 202
2509
+ 203
2510
+ 204
2511
+ 205
2512
+ 206
2513
+ 207
2514
+ 208
2515
+ 209
2516
+ 210
2517
+ 211
2518
+ 212
2519
+ 213
2520
+ 214
2521
+ 215
2522
+ 216
2523
+ 217
2524
+ 218
2525
+ 219
2526
+ 220</pre>
2232
2527
  </td>
2233
2528
  <td>
2234
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 165</span>
2529
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 200</span>
2235
2530
 
2236
2531
  <span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span>
2237
2532
  <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>
@@ -2269,10 +2564,11 @@ by using an array for the :styles option</p>
2269
2564
 
2270
2565
  </p><div class="docstring">
2271
2566
  <div class="discussion">
2272
-
2273
- <p>Updates auto fit data. Autofit data attempts to determine the cell in a
2567
+ <p>
2568
+ Updates auto fit data. Autofit data attempts to determine the cell in a
2274
2569
  column that has the greatest width by comparing the length of the text
2275
- multiplied by the size of the font.</p>
2570
+ multiplied by the size of the font.
2571
+ </p>
2276
2572
 
2277
2573
 
2278
2574
  </div>
@@ -2291,8 +2587,9 @@ multiplied by the size of the font.</p>
2291
2587
 
2292
2588
 
2293
2589
  &mdash;
2294
- <div class='inline'>
2295
- <p>an array of cells</p>
2590
+ <div class='inline'><p>
2591
+ an array of cells
2592
+ </p>
2296
2593
  </div>
2297
2594
 
2298
2595
  </li>
@@ -2310,8 +2607,9 @@ multiplied by the size of the font.</p>
2310
2607
 
2311
2608
 
2312
2609
  &mdash;
2313
- <div class='inline'>
2314
- <p>of Cell objects</p>
2610
+ <div class='inline'><p>
2611
+ of Cell objects
2612
+ </p>
2315
2613
  </div>
2316
2614
 
2317
2615
  </li>
@@ -2324,40 +2622,38 @@ multiplied by the size of the font.</p>
2324
2622
  <pre class="lines">
2325
2623
 
2326
2624
 
2327
- 204
2328
- 205
2329
- 206
2330
- 207
2331
- 208
2332
- 209
2333
- 210
2334
- 211
2335
- 212
2336
- 213
2337
- 214
2338
- 215
2339
- 216
2340
- 217
2341
- 218
2342
- 219
2343
- 220
2344
- 221
2345
- 222</pre>
2625
+ 239
2626
+ 240
2627
+ 241
2628
+ 242
2629
+ 243
2630
+ 244
2631
+ 245
2632
+ 246
2633
+ 247
2634
+ 248
2635
+ 249
2636
+ 250
2637
+ 251
2638
+ 252
2639
+ 253
2640
+ 254
2641
+ 255
2642
+ 256</pre>
2346
2643
  </td>
2347
2644
  <td>
2348
- <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 204</span>
2645
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 239</span>
2349
2646
 
2350
2647
  <span class='def def kw'>def</span> <span class='update_auto_fit_data identifier id'>update_auto_fit_data</span><span class='lparen token'>(</span><span class='cells identifier id'>cells</span><span class='rparen token'>)</span>
2351
2648
  <span class='styles identifier id'>styles</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='styles identifier id'>styles</span>
2352
2649
  <span class='cellXfs identifier id'>cellXfs</span><span class='comma token'>,</span> <span class='fonts identifier id'>fonts</span> <span class='assign token'>=</span> <span class='styles identifier id'>styles</span><span class='dot token'>.</span><span class='cellXfs identifier id'>cellXfs</span><span class='comma token'>,</span> <span class='styles identifier id'>styles</span><span class='dot token'>.</span><span class='fonts identifier id'>fonts</span>
2353
2650
  <span class='sz identifier id'>sz</span> <span class='assign token'>=</span> <span class='fonts identifier id'>fonts</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='sz identifier id'>sz</span>
2354
-
2355
2651
  <span class='cells identifier id'>cells</span><span class='dot token'>.</span><span class='each_with_index identifier id'>each_with_index</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='item identifier id'>item</span><span class='comma token'>,</span> <span class='index identifier id'>index</span><span class='bitor op'>|</span>
2652
+ <span class='next next kw'>next</span> <span class='if if_mod kw'>if</span> <span class='item identifier id'>item</span><span class='dot token'>.</span><span class='value identifier id'>value</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='String constant id'>String</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='item identifier id'>item</span><span class='dot token'>.</span><span class='value identifier id'>value</span><span class='dot token'>.</span><span class='start_with? fid id'>start_with?</span><span class='lparen token'>(</span><span class='string val'>'='</span><span class='rparen token'>)</span>
2356
2653
  <span class='col identifier id'>col</span> <span class='assign token'>=</span> <span class='@auto_fit_data ivar id'>@auto_fit_data</span><span class='lbrack token'>[</span><span class='index identifier id'>index</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='lbrace token'>{</span><span class='symbol val'>:longest=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;&quot;</span><span class='comma token'>,</span> <span class='symbol val'>:sz=</span><span class='gt op'>&gt;</span><span class='sz identifier id'>sz</span><span class='rbrace token'>}</span>
2357
2654
  <span class='cell_xf identifier id'>cell_xf</span> <span class='assign token'>=</span> <span class='cellXfs identifier id'>cellXfs</span><span class='lbrack token'>[</span><span class='item identifier id'>item</span><span class='dot token'>.</span><span class='style identifier id'>style</span><span class='rbrack token'>]</span>
2358
2655
  <span class='font identifier id'>font</span> <span class='assign token'>=</span> <span class='fonts identifier id'>fonts</span><span class='lbrack token'>[</span><span class='cell_xf identifier id'>cell_xf</span><span class='dot token'>.</span><span class='fontId identifier id'>fontId</span> <span class='orop op'>||</span> <span class='integer val'>0</span><span class='rbrack token'>]</span>
2359
- <span class='sz identifier id'>sz</span> <span class='assign token'>=</span> <span class='font identifier id'>font</span><span class='dot token'>.</span><span class='sz identifier id'>sz</span> <span class='orop op'>||</span> <span class='sz identifier id'>sz</span>
2360
-
2656
+ <span class='sz identifier id'>sz</span> <span class='assign token'>=</span> <span class='item identifier id'>item</span><span class='dot token'>.</span><span class='sz identifier id'>sz</span> <span class='orop op'>||</span> <span class='font identifier id'>font</span><span class='dot token'>.</span><span class='sz identifier id'>sz</span> <span class='orop op'>||</span> <span class='fonts identifier id'>fonts</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='sz identifier id'>sz</span>
2361
2657
  <span class='if if kw'>if</span> <span class='lparen token'>(</span><span class='col identifier id'>col</span><span class='lbrack token'>[</span><span class='symbol val'>:longest</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='scan identifier id'>scan</span><span class='lparen token'>(</span><span class='regexp val'>/./</span><span class='mu identifier id'>mu</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='size identifier id'>size</span> <span class='mult op'>*</span> <span class='col identifier id'>col</span><span class='lbrack token'>[</span><span class='symbol val'>:sz</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='lt op'>&lt;</span> <span class='lparen token'>(</span><span class='item identifier id'>item</span><span class='dot token'>.</span><span class='value identifier id'>value</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='scan identifier id'>scan</span><span class='lparen token'>(</span><span class='regexp val'>/./</span><span class='mu identifier id'>mu</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='size identifier id'>size</span> <span class='mult op'>*</span> <span class='sz identifier id'>sz</span><span class='rparen token'>)</span>
2362
2658
  <span class='col identifier id'>col</span><span class='lbrack token'>[</span><span class='symbol val'>:sz</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='sz identifier id'>sz</span>
2363
2659
  <span class='col identifier id'>col</span><span class='lbrack token'>[</span><span class='symbol val'>:longest</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='item identifier id'>item</span><span class='dot token'>.</span><span class='value identifier id'>value</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
@@ -2377,7 +2673,7 @@ multiplied by the size of the font.</p>
2377
2673
  </div>
2378
2674
 
2379
2675
  <div id="footer">
2380
- Generated on Wed Nov 30 08:53:38 2011 by
2676
+ Generated on Mon Dec 5 14:21:17 2011 by
2381
2677
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2382
2678
  0.7.3 (ruby-1.8.7).
2383
2679
  </div>