axlsx 1.0.10a → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -2
- data/Gemfile.lock +9 -13
- data/README.md +15 -57
- data/axlsx.gemspec +4 -0
- data/doc/Axlsx.html +247 -361
- data/doc/Axlsx/App.html +159 -237
- data/doc/Axlsx/Ar.html +11 -15
- data/doc/Axlsx/Ar/ClassMethods.html +12 -16
- data/doc/Axlsx/Ar/InstanceMethods.html +5 -6
- data/doc/Axlsx/Ar/SingletonMethods.html +58 -50
- data/doc/Axlsx/Axis.html +51 -75
- data/doc/Axlsx/Bar3DChart.html +53 -75
- data/doc/Axlsx/BarSeries.html +31 -45
- data/doc/Axlsx/Border.html +50 -70
- data/doc/Axlsx/BorderPr.html +62 -80
- data/doc/Axlsx/CatAxis.html +43 -62
- data/doc/Axlsx/CatAxisData.html +16 -23
- data/doc/Axlsx/Cell.html +142 -215
- data/doc/Axlsx/CellAlignment.html +75 -103
- data/doc/Axlsx/CellProtection.html +30 -44
- data/doc/Axlsx/CellStyle.html +46 -66
- data/doc/Axlsx/Chart.html +96 -139
- data/doc/Axlsx/Color.html +34 -50
- data/doc/Axlsx/ContentType.html +14 -20
- data/doc/Axlsx/Core.html +20 -29
- data/doc/Axlsx/DataTypeValidator.html +19 -27
- data/doc/Axlsx/Default.html +27 -39
- data/doc/Axlsx/Drawing.html +70 -104
- data/doc/Axlsx/Fill.html +23 -33
- data/doc/Axlsx/Font.html +98 -132
- data/doc/Axlsx/GradientFill.html +48 -70
- data/doc/Axlsx/GradientStop.html +21 -31
- data/doc/Axlsx/GraphicFrame.html +27 -40
- data/doc/Axlsx/Line3DChart.html +43 -62
- data/doc/Axlsx/LineSeries.html +25 -37
- data/doc/Axlsx/Marker.html +43 -63
- data/doc/Axlsx/NumFmt.html +65 -79
- data/doc/Axlsx/OneCellAnchor.html +54 -78
- data/doc/Axlsx/Override.html +27 -39
- data/doc/Axlsx/Package.html +70 -96
- data/doc/Axlsx/PatternFill.html +51 -66
- data/doc/Axlsx/Pic.html +76 -110
- data/doc/Axlsx/Pie3DChart.html +16 -23
- data/doc/Axlsx/PieSeries.html +30 -44
- data/doc/Axlsx/RegexValidator.html +10 -14
- data/doc/Axlsx/Relationship.html +27 -40
- data/doc/Axlsx/Relationships.html +14 -20
- data/doc/Axlsx/RestrictionValidator.html +17 -25
- data/doc/Axlsx/Row.html +53 -73
- data/doc/Axlsx/Scaling.html +31 -46
- data/doc/Axlsx/SerAxis.html +33 -49
- data/doc/Axlsx/Series.html +35 -51
- data/doc/Axlsx/SeriesTitle.html +10 -14
- data/doc/Axlsx/Styles.html +156 -210
- data/doc/Axlsx/TableStyle.html +32 -47
- data/doc/Axlsx/TableStyleElement.html +61 -75
- data/doc/Axlsx/TableStyles.html +28 -42
- data/doc/Axlsx/Title.html +25 -36
- data/doc/Axlsx/TwoCellAnchor.html +58 -83
- data/doc/Axlsx/ValAxis.html +24 -35
- data/doc/Axlsx/ValAxisData.html +9 -13
- data/doc/Axlsx/View3D.html +43 -64
- data/doc/Axlsx/Workbook.html +98 -135
- data/doc/Axlsx/Worksheet.html +143 -210
- data/doc/Axlsx/Xf.html +77 -114
- data/doc/_index.html +7 -43
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +1 -1
- data/doc/file.LICENSE.html +21 -25
- data/doc/file.README.html +17 -57
- data/doc/index.html +17 -57
- data/doc/js/app.js +4 -4
- data/doc/method_list.html +446 -470
- data/doc/top-level-namespace.html +1 -1
- data/examples/example.rb +1 -1
- data/lib/axlsx.rb +3 -6
- data/lib/axlsx/stylesheet/styles.rb +1 -1
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/worksheet/cell.rb +8 -13
- data/test/rels/tc_relationships.rb +2 -6
- data/test/workbook/worksheet/tc_worksheet.rb +1 -1
- metadata +57 -17
- data/lib/axlsx/ar.rb +0 -72
data/doc/Axlsx/Worksheet.html
CHANGED
@@ -94,9 +94,8 @@
|
|
94
94
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
96
96
|
<div class="discussion">
|
97
|
-
|
98
|
-
The Worksheet class represents a worksheet in the workbook
|
99
|
-
</p>
|
97
|
+
|
98
|
+
<p>The Worksheet class represents a worksheet in the workbook.</p>
|
100
99
|
|
101
100
|
|
102
101
|
</div>
|
@@ -128,9 +127,8 @@ The Worksheet class represents a worksheet in the workbook.
|
|
128
127
|
|
129
128
|
|
130
129
|
|
131
|
-
<span class="summary_desc"><div class='inline'
|
132
|
-
An array of content based calculated column widths
|
133
|
-
</p>
|
130
|
+
<span class="summary_desc"><div class='inline'>
|
131
|
+
<p>An array of content based calculated column widths.</p>
|
134
132
|
</div></span>
|
135
133
|
|
136
134
|
</li>
|
@@ -155,9 +153,8 @@ An array of content based calculated column widths.
|
|
155
153
|
|
156
154
|
|
157
155
|
|
158
|
-
<span class="summary_desc"><div class='inline'
|
159
|
-
The name of the worksheet
|
160
|
-
</p>
|
156
|
+
<span class="summary_desc"><div class='inline'>
|
157
|
+
<p>The name of the worksheet.</p>
|
161
158
|
</div></span>
|
162
159
|
|
163
160
|
</li>
|
@@ -182,9 +179,8 @@ The name of the worksheet.
|
|
182
179
|
|
183
180
|
|
184
181
|
|
185
|
-
<span class="summary_desc"><div class='inline'
|
186
|
-
The rows in this worksheet
|
187
|
-
</p>
|
182
|
+
<span class="summary_desc"><div class='inline'>
|
183
|
+
<p>The rows in this worksheet.</p>
|
188
184
|
</div></span>
|
189
185
|
|
190
186
|
</li>
|
@@ -209,9 +205,8 @@ The rows in this worksheet.
|
|
209
205
|
|
210
206
|
|
211
207
|
|
212
|
-
<span class="summary_desc"><div class='inline'
|
213
|
-
The workbook that owns this worksheet
|
214
|
-
</p>
|
208
|
+
<span class="summary_desc"><div class='inline'>
|
209
|
+
<p>The workbook that owns this worksheet.</p>
|
215
210
|
</div></span>
|
216
211
|
|
217
212
|
</li>
|
@@ -246,9 +241,8 @@ The workbook that owns this worksheet.
|
|
246
241
|
|
247
242
|
|
248
243
|
|
249
|
-
<span class="summary_desc"><div class='inline'
|
250
|
-
Adds a chart to this worksheets drawing
|
251
|
-
</p>
|
244
|
+
<span class="summary_desc"><div class='inline'>
|
245
|
+
<p>Adds a chart to this worksheets drawing.</p>
|
252
246
|
</div></span>
|
253
247
|
|
254
248
|
</li>
|
@@ -270,9 +264,8 @@ Adds a chart to this worksheets drawing.
|
|
270
264
|
|
271
265
|
|
272
266
|
|
273
|
-
<span class="summary_desc"><div class='inline'
|
274
|
-
Adds a media item to the worksheets drawing
|
275
|
-
</p>
|
267
|
+
<span class="summary_desc"><div class='inline'>
|
268
|
+
<p>Adds a media item to the worksheets drawing.</p>
|
276
269
|
</div></span>
|
277
270
|
|
278
271
|
</li>
|
@@ -294,9 +287,8 @@ Adds a media item to the worksheets drawing.
|
|
294
287
|
|
295
288
|
|
296
289
|
|
297
|
-
<span class="summary_desc"><div class='inline'
|
298
|
-
Adds a row to the worksheet and updates auto fit data
|
299
|
-
</p>
|
290
|
+
<span class="summary_desc"><div class='inline'>
|
291
|
+
<p>Adds a row to the worksheet and updates auto fit data.</p>
|
300
292
|
</div></span>
|
301
293
|
|
302
294
|
</li>
|
@@ -318,9 +310,8 @@ Adds a row to the worksheet and updates auto fit data.
|
|
318
310
|
|
319
311
|
|
320
312
|
|
321
|
-
<span class="summary_desc"><div class='inline'
|
322
|
-
Determines the proper width for a column based on content
|
323
|
-
</p>
|
313
|
+
<span class="summary_desc"><div class='inline'>
|
314
|
+
<p>Determines the proper width for a column based on content.</p>
|
324
315
|
</div></span>
|
325
316
|
|
326
317
|
</li>
|
@@ -342,9 +333,8 @@ Determines the proper width for a column based on content.
|
|
342
333
|
|
343
334
|
|
344
335
|
|
345
|
-
<span class="summary_desc"><div class='inline'
|
346
|
-
Set the style for cells in a specific column
|
347
|
-
</p>
|
336
|
+
<span class="summary_desc"><div class='inline'>
|
337
|
+
<p>Set the style for cells in a specific column.</p>
|
348
338
|
</div></span>
|
349
339
|
|
350
340
|
</li>
|
@@ -366,9 +356,8 @@ Set the style for cells in a specific column.
|
|
366
356
|
|
367
357
|
|
368
358
|
|
369
|
-
<span class="summary_desc"><div class='inline'
|
370
|
-
returns the sheet data as columnw
|
371
|
-
</p>
|
359
|
+
<span class="summary_desc"><div class='inline'>
|
360
|
+
<p>returns the sheet data as columnw.</p>
|
372
361
|
</div></span>
|
373
362
|
|
374
363
|
</li>
|
@@ -390,9 +379,8 @@ returns the sheet data as columnw.
|
|
390
379
|
|
391
380
|
|
392
381
|
|
393
|
-
<span class="summary_desc"><div class='inline'
|
394
|
-
The drawing associated with this worksheet
|
395
|
-
</p>
|
382
|
+
<span class="summary_desc"><div class='inline'>
|
383
|
+
<p>The drawing associated with this worksheet.</p>
|
396
384
|
</div></span>
|
397
385
|
|
398
386
|
</li>
|
@@ -414,9 +402,8 @@ The drawing associated with this worksheet.
|
|
414
402
|
|
415
403
|
|
416
404
|
|
417
|
-
<span class="summary_desc"><div class='inline'
|
418
|
-
The index of this worksheet in the owning Workbook
|
419
|
-
</p>
|
405
|
+
<span class="summary_desc"><div class='inline'>
|
406
|
+
<p>The index of this worksheet in the owning Workbook’s worksheets list.</p>
|
420
407
|
</div></span>
|
421
408
|
|
422
409
|
</li>
|
@@ -440,9 +427,8 @@ The index of this worksheet in the owning Workbook’s worksheets list.
|
|
440
427
|
|
441
428
|
|
442
429
|
|
443
|
-
<span class="summary_desc"><div class='inline'
|
444
|
-
Creates a new worksheet
|
445
|
-
</p>
|
430
|
+
<span class="summary_desc"><div class='inline'>
|
431
|
+
<p>Creates a new worksheet.</p>
|
446
432
|
</div></span>
|
447
433
|
|
448
434
|
</li>
|
@@ -464,9 +450,8 @@ Creates a new worksheet.
|
|
464
450
|
|
465
451
|
|
466
452
|
|
467
|
-
<span class="summary_desc"><div class='inline'
|
468
|
-
The part name of this worksheet
|
469
|
-
</p>
|
453
|
+
<span class="summary_desc"><div class='inline'>
|
454
|
+
<p>The part name of this worksheet.</p>
|
470
455
|
</div></span>
|
471
456
|
|
472
457
|
</li>
|
@@ -488,9 +473,8 @@ The part name of this worksheet.
|
|
488
473
|
|
489
474
|
|
490
475
|
|
491
|
-
<span class="summary_desc"><div class='inline'
|
492
|
-
The worksheet relationships
|
493
|
-
</p>
|
476
|
+
<span class="summary_desc"><div class='inline'>
|
477
|
+
<p>The worksheet relationships.</p>
|
494
478
|
</div></span>
|
495
479
|
|
496
480
|
</li>
|
@@ -512,9 +496,8 @@ The worksheet relationships.
|
|
512
496
|
|
513
497
|
|
514
498
|
|
515
|
-
<span class="summary_desc"><div class='inline'
|
516
|
-
The relationship part name of this worksheet
|
517
|
-
</p>
|
499
|
+
<span class="summary_desc"><div class='inline'>
|
500
|
+
<p>The relationship part name of this worksheet.</p>
|
518
501
|
</div></span>
|
519
502
|
|
520
503
|
</li>
|
@@ -536,9 +519,8 @@ The relationship part name of this worksheet.
|
|
536
519
|
|
537
520
|
|
538
521
|
|
539
|
-
<span class="summary_desc"><div class='inline'
|
540
|
-
The relationship Id of thiw worksheet
|
541
|
-
</p>
|
522
|
+
<span class="summary_desc"><div class='inline'>
|
523
|
+
<p>The relationship Id of thiw worksheet.</p>
|
542
524
|
</div></span>
|
543
525
|
|
544
526
|
</li>
|
@@ -560,9 +542,8 @@ The relationship Id of thiw worksheet.
|
|
560
542
|
|
561
543
|
|
562
544
|
|
563
|
-
<span class="summary_desc"><div class='inline'
|
564
|
-
Set the style for cells in a specific row
|
565
|
-
</p>
|
545
|
+
<span class="summary_desc"><div class='inline'>
|
546
|
+
<p>Set the style for cells in a specific row.</p>
|
566
547
|
</div></span>
|
567
548
|
|
568
549
|
</li>
|
@@ -584,9 +565,8 @@ Set the style for cells in a specific row.
|
|
584
565
|
|
585
566
|
|
586
567
|
|
587
|
-
<span class="summary_desc"><div class='inline'
|
588
|
-
Serializes the worksheet document
|
589
|
-
</p>
|
568
|
+
<span class="summary_desc"><div class='inline'>
|
569
|
+
<p>Serializes the worksheet document.</p>
|
590
570
|
</div></span>
|
591
571
|
|
592
572
|
</li>
|
@@ -608,9 +588,8 @@ Serializes the worksheet document.
|
|
608
588
|
|
609
589
|
|
610
590
|
|
611
|
-
<span class="summary_desc"><div class='inline'
|
612
|
-
Updates auto fit data
|
613
|
-
</p>
|
591
|
+
<span class="summary_desc"><div class='inline'>
|
592
|
+
<p>Updates auto fit data.</p>
|
614
593
|
</div></span>
|
615
594
|
|
616
595
|
</li>
|
@@ -634,15 +613,13 @@ Updates auto fit data.
|
|
634
613
|
|
635
614
|
<div class="note notetag">
|
636
615
|
<strong>Note:</strong>
|
637
|
-
<div class='inline'
|
638
|
-
the recommended way to manage worksheets is Workbook#add_worksheet
|
639
|
-
</p>
|
616
|
+
<div class='inline'>
|
617
|
+
<p>the recommended way to manage worksheets is Workbook#add_worksheet</p>
|
640
618
|
</div>
|
641
619
|
</div>
|
642
620
|
|
643
|
-
|
644
|
-
Creates a new worksheet
|
645
|
-
</p>
|
621
|
+
|
622
|
+
<p>Creates a new worksheet.</p>
|
646
623
|
|
647
624
|
|
648
625
|
</div>
|
@@ -663,9 +640,8 @@ Creates a new worksheet.
|
|
663
640
|
|
664
641
|
|
665
642
|
—
|
666
|
-
<div class='inline'
|
667
|
-
a customizable set of options
|
668
|
-
</p>
|
643
|
+
<div class='inline'>
|
644
|
+
<p>a customizable set of options</p>
|
669
645
|
</div>
|
670
646
|
|
671
647
|
</li>
|
@@ -686,9 +662,8 @@ a customizable set of options
|
|
686
662
|
<span class="default">
|
687
663
|
|
688
664
|
</span>
|
689
|
-
— <div class='inline'
|
690
|
-
The name of this sheet
|
691
|
-
</p>
|
665
|
+
— <div class='inline'>
|
666
|
+
<p>The name of this sheet.</p>
|
692
667
|
</div>
|
693
668
|
</li>
|
694
669
|
|
@@ -759,16 +734,14 @@ The name of this sheet.
|
|
759
734
|
|
760
735
|
<div class="note notetag">
|
761
736
|
<strong>Note:</strong>
|
762
|
-
<div class='inline'
|
763
|
-
a single auto fit data item is a hash with :longest => [String] and
|
764
|
-
:sz=> [Integer] members
|
765
|
-
</p>
|
737
|
+
<div class='inline'>
|
738
|
+
<p>a single auto fit data item is a hash with :longest => [String] and
|
739
|
+
:sz=> [Integer] members.</p>
|
766
740
|
</div>
|
767
741
|
</div>
|
768
742
|
|
769
|
-
|
770
|
-
An array of content based calculated column widths
|
771
|
-
</p>
|
743
|
+
|
744
|
+
<p>An array of content based calculated column widths.</p>
|
772
745
|
|
773
746
|
|
774
747
|
</div>
|
@@ -786,9 +759,8 @@ An array of content based calculated column widths.
|
|
786
759
|
|
787
760
|
|
788
761
|
—
|
789
|
-
<div class='inline'
|
790
|
-
of Hash
|
791
|
-
</p>
|
762
|
+
<div class='inline'>
|
763
|
+
<p>of Hash</p>
|
792
764
|
</div>
|
793
765
|
|
794
766
|
</li>
|
@@ -829,9 +801,8 @@ of Hash
|
|
829
801
|
|
830
802
|
</p><div class="docstring">
|
831
803
|
<div class="discussion">
|
832
|
-
|
833
|
-
The name of the worksheet
|
834
|
-
</p>
|
804
|
+
|
805
|
+
<p>The name of the worksheet</p>
|
835
806
|
|
836
807
|
|
837
808
|
</div>
|
@@ -889,15 +860,13 @@ The name of the worksheet
|
|
889
860
|
|
890
861
|
<div class="note notetag">
|
891
862
|
<strong>Note:</strong>
|
892
|
-
<div class='inline'
|
893
|
-
The recommended way to manage rows is Worksheet#add_row
|
894
|
-
</p>
|
863
|
+
<div class='inline'>
|
864
|
+
<p>The recommended way to manage rows is Worksheet#add_row</p>
|
895
865
|
</div>
|
896
866
|
</div>
|
897
867
|
|
898
|
-
|
899
|
-
The rows in this worksheet
|
900
|
-
</p>
|
868
|
+
|
869
|
+
<p>The rows in this worksheet</p>
|
901
870
|
|
902
871
|
|
903
872
|
</div>
|
@@ -959,9 +928,8 @@ The rows in this worksheet
|
|
959
928
|
|
960
929
|
</p><div class="docstring">
|
961
930
|
<div class="discussion">
|
962
|
-
|
963
|
-
The workbook that owns this worksheet
|
964
|
-
</p>
|
931
|
+
|
932
|
+
<p>The workbook that owns this worksheet</p>
|
965
933
|
|
966
934
|
|
967
935
|
</div>
|
@@ -1023,18 +991,16 @@ The workbook that owns this worksheet
|
|
1023
991
|
|
1024
992
|
<div class="note notetag">
|
1025
993
|
<strong>Note:</strong>
|
1026
|
-
<div class='inline'
|
1027
|
-
each chart type also specifies additional options
|
1028
|
-
</p>
|
994
|
+
<div class='inline'>
|
995
|
+
<p>each chart type also specifies additional options</p>
|
1029
996
|
</div>
|
1030
997
|
</div>
|
1031
998
|
|
1032
|
-
|
1033
|
-
Adds a chart to this worksheets drawing. This is the recommended way to
|
999
|
+
|
1000
|
+
<p>Adds a chart to this worksheets drawing. This is the recommended way to
|
1034
1001
|
create charts for your worksheet. This method wraps the complexity of
|
1035
1002
|
dealing with ooxml drawing, anchors, markers graphic frames chart objects
|
1036
|
-
and all the other dirty details
|
1037
|
-
</p>
|
1003
|
+
and all the other dirty details.</p>
|
1038
1004
|
|
1039
1005
|
|
1040
1006
|
</div>
|
@@ -1066,9 +1032,8 @@ and all the other dirty details.
|
|
1066
1032
|
|
1067
1033
|
|
1068
1034
|
—
|
1069
|
-
<div class='inline'
|
1070
|
-
a customizable set of options
|
1071
|
-
</p>
|
1035
|
+
<div class='inline'>
|
1036
|
+
<p>a customizable set of options</p>
|
1072
1037
|
</div>
|
1073
1038
|
|
1074
1039
|
</li>
|
@@ -1195,9 +1160,8 @@ a customizable set of options
|
|
1195
1160
|
|
1196
1161
|
</p><div class="docstring">
|
1197
1162
|
<div class="discussion">
|
1198
|
-
|
1199
|
-
Adds a media item to the worksheets drawing
|
1200
|
-
</p>
|
1163
|
+
|
1164
|
+
<p>Adds a media item to the worksheets drawing</p>
|
1201
1165
|
|
1202
1166
|
|
1203
1167
|
</div>
|
@@ -1229,9 +1193,8 @@ Adds a media item to the worksheets drawing
|
|
1229
1193
|
|
1230
1194
|
|
1231
1195
|
—
|
1232
|
-
<div class='inline'
|
1233
|
-
a customizable set of options
|
1234
|
-
</p>
|
1196
|
+
<div class='inline'>
|
1197
|
+
<p>a customizable set of options</p>
|
1235
1198
|
</div>
|
1236
1199
|
|
1237
1200
|
</li>
|
@@ -1250,9 +1213,8 @@ a customizable set of options
|
|
1250
1213
|
<span class="default">
|
1251
1214
|
|
1252
1215
|
</span>
|
1253
|
-
— <div class='inline'
|
1254
|
-
unknown
|
1255
|
-
</p>
|
1216
|
+
— <div class='inline'>
|
1217
|
+
<p>unknown</p>
|
1256
1218
|
</div>
|
1257
1219
|
</li>
|
1258
1220
|
|
@@ -1308,9 +1270,8 @@ unknown
|
|
1308
1270
|
|
1309
1271
|
</p><div class="docstring">
|
1310
1272
|
<div class="discussion">
|
1311
|
-
|
1312
|
-
Adds a row to the worksheet and updates auto fit data
|
1313
|
-
</p>
|
1273
|
+
|
1274
|
+
<p>Adds a row to the worksheet and updates auto fit data</p>
|
1314
1275
|
|
1315
1276
|
|
1316
1277
|
</div>
|
@@ -1331,9 +1292,8 @@ Adds a row to the worksheet and updates auto fit data
|
|
1331
1292
|
|
1332
1293
|
|
1333
1294
|
—
|
1334
|
-
<div class='inline'
|
1335
|
-
a customizable set of options
|
1336
|
-
</p>
|
1295
|
+
<div class='inline'>
|
1296
|
+
<p>a customizable set of options</p>
|
1337
1297
|
</div>
|
1338
1298
|
|
1339
1299
|
</li>
|
@@ -1445,20 +1405,18 @@ a customizable set of options
|
|
1445
1405
|
|
1446
1406
|
<div class="note notetag">
|
1447
1407
|
<strong>Note:</strong>
|
1448
|
-
<div class='inline'
|
1449
|
-
From ECMA docs
|
1450
|
-
|
1451
|
-
<pre class="code">
|
1452
|
-
|
1453
|
-
|
1454
|
-
width = Truncate([!{Number of Characters} * !{Maximum Digit Width} + !{5 pixel padding}]/{Maximum Digit Width}*256)/256
|
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
|
1455
1414
|
</span></pre>
|
1456
1415
|
</div>
|
1457
1416
|
</div>
|
1458
1417
|
|
1459
|
-
|
1460
|
-
Determines the proper width for a column based on content
|
1461
|
-
</p>
|
1418
|
+
|
1419
|
+
<p>Determines the proper width for a column based on content.</p>
|
1462
1420
|
|
1463
1421
|
|
1464
1422
|
</div>
|
@@ -1477,9 +1435,8 @@ Determines the proper width for a column based on content.
|
|
1477
1435
|
|
1478
1436
|
|
1479
1437
|
—
|
1480
|
-
<div class='inline'
|
1481
|
-
hash of auto_fit_data
|
1482
|
-
</p>
|
1438
|
+
<div class='inline'>
|
1439
|
+
<p>hash of auto_fit_data</p>
|
1483
1440
|
</div>
|
1484
1441
|
|
1485
1442
|
</li>
|
@@ -1550,16 +1507,14 @@ hash of auto_fit_data
|
|
1550
1507
|
|
1551
1508
|
<div class="note notetag">
|
1552
1509
|
<strong>Note:</strong>
|
1553
|
-
<div class='inline'
|
1554
|
-
You can also specify the style for specific columns in the call to add_row
|
1555
|
-
by using an array for the :styles option
|
1556
|
-
</p>
|
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>
|
1557
1513
|
</div>
|
1558
1514
|
</div>
|
1559
1515
|
|
1560
|
-
|
1561
|
-
Set the style for cells in a specific column
|
1562
|
-
</p>
|
1516
|
+
|
1517
|
+
<p>Set the style for cells in a specific column</p>
|
1563
1518
|
|
1564
1519
|
|
1565
1520
|
</div>
|
@@ -1578,9 +1533,8 @@ Set the style for cells in a specific column
|
|
1578
1533
|
|
1579
1534
|
|
1580
1535
|
—
|
1581
|
-
<div class='inline'
|
1582
|
-
the index of the column
|
1583
|
-
</p>
|
1536
|
+
<div class='inline'>
|
1537
|
+
<p>the index of the column</p>
|
1584
1538
|
</div>
|
1585
1539
|
|
1586
1540
|
</li>
|
@@ -1595,9 +1549,8 @@ the index of the column
|
|
1595
1549
|
|
1596
1550
|
|
1597
1551
|
—
|
1598
|
-
<div class='inline'
|
1599
|
-
cellXfs index
|
1600
|
-
</p>
|
1552
|
+
<div class='inline'>
|
1553
|
+
<p>cellXfs index</p>
|
1601
1554
|
</div>
|
1602
1555
|
|
1603
1556
|
</li>
|
@@ -1614,9 +1567,8 @@ cellXfs index
|
|
1614
1567
|
|
1615
1568
|
|
1616
1569
|
—
|
1617
|
-
<div class='inline'
|
1618
|
-
a customizable set of options
|
1619
|
-
</p>
|
1570
|
+
<div class='inline'>
|
1571
|
+
<p>a customizable set of options</p>
|
1620
1572
|
</div>
|
1621
1573
|
|
1622
1574
|
</li>
|
@@ -1639,9 +1591,8 @@ a customizable set of options
|
|
1639
1591
|
<span class="default">
|
1640
1592
|
|
1641
1593
|
</span>
|
1642
|
-
— <div class='inline'
|
1643
|
-
only cells after this column will be updated
|
1644
|
-
</p>
|
1594
|
+
— <div class='inline'>
|
1595
|
+
<p>only cells after this column will be updated.</p>
|
1645
1596
|
</div>
|
1646
1597
|
</li>
|
1647
1598
|
|
@@ -1705,9 +1656,8 @@ only cells after this column will be updated.
|
|
1705
1656
|
|
1706
1657
|
</p><div class="docstring">
|
1707
1658
|
<div class="discussion">
|
1708
|
-
|
1709
|
-
returns the sheet data as columnw
|
1710
|
-
</p>
|
1659
|
+
|
1660
|
+
<p>returns the sheet data as columnw</p>
|
1711
1661
|
|
1712
1662
|
|
1713
1663
|
</div>
|
@@ -1749,15 +1699,13 @@ returns the sheet data as columnw
|
|
1749
1699
|
|
1750
1700
|
<div class="note notetag">
|
1751
1701
|
<strong>Note:</strong>
|
1752
|
-
<div class='inline'
|
1753
|
-
the recommended way to work with drawings and charts is Worksheet#add_chart
|
1754
|
-
</p>
|
1702
|
+
<div class='inline'>
|
1703
|
+
<p>the recommended way to work with drawings and charts is Worksheet#add_chart</p>
|
1755
1704
|
</div>
|
1756
1705
|
</div>
|
1757
1706
|
|
1758
|
-
|
1759
|
-
The drawing associated with this worksheet
|
1760
|
-
</p>
|
1707
|
+
|
1708
|
+
<p>The drawing associated with this worksheet.</p>
|
1761
1709
|
|
1762
1710
|
|
1763
1711
|
</div>
|
@@ -1816,9 +1764,8 @@ The drawing associated with this worksheet.
|
|
1816
1764
|
|
1817
1765
|
</p><div class="docstring">
|
1818
1766
|
<div class="discussion">
|
1819
|
-
|
1820
|
-
The index of this worksheet in the owning Workbook
|
1821
|
-
</p>
|
1767
|
+
|
1768
|
+
<p>The index of this worksheet in the owning Workbook’s worksheets list.</p>
|
1822
1769
|
|
1823
1770
|
|
1824
1771
|
</div>
|
@@ -1870,9 +1817,8 @@ The index of this worksheet in the owning Workbook’s worksheets list.
|
|
1870
1817
|
|
1871
1818
|
</p><div class="docstring">
|
1872
1819
|
<div class="discussion">
|
1873
|
-
|
1874
|
-
The part name of this worksheet
|
1875
|
-
</p>
|
1820
|
+
|
1821
|
+
<p>The part name of this worksheet</p>
|
1876
1822
|
|
1877
1823
|
|
1878
1824
|
</div>
|
@@ -1924,9 +1870,8 @@ The part name of this worksheet
|
|
1924
1870
|
|
1925
1871
|
</p><div class="docstring">
|
1926
1872
|
<div class="discussion">
|
1927
|
-
|
1928
|
-
The worksheet relationships. This is managed automatically by the worksheet
|
1929
|
-
</p>
|
1873
|
+
|
1874
|
+
<p>The worksheet relationships. This is managed automatically by the worksheet</p>
|
1930
1875
|
|
1931
1876
|
|
1932
1877
|
</div>
|
@@ -1982,9 +1927,8 @@ The worksheet relationships. This is managed automatically by the worksheet
|
|
1982
1927
|
|
1983
1928
|
</p><div class="docstring">
|
1984
1929
|
<div class="discussion">
|
1985
|
-
|
1986
|
-
The relationship part name of this worksheet
|
1987
|
-
</p>
|
1930
|
+
|
1931
|
+
<p>The relationship part name of this worksheet</p>
|
1988
1932
|
|
1989
1933
|
|
1990
1934
|
</div>
|
@@ -2036,9 +1980,8 @@ The relationship part name of this worksheet
|
|
2036
1980
|
|
2037
1981
|
</p><div class="docstring">
|
2038
1982
|
<div class="discussion">
|
2039
|
-
|
2040
|
-
The relationship Id of thiw worksheet
|
2041
|
-
</p>
|
1983
|
+
|
1984
|
+
<p>The relationship Id of thiw worksheet</p>
|
2042
1985
|
|
2043
1986
|
|
2044
1987
|
</div>
|
@@ -2093,15 +2036,13 @@ The relationship Id of thiw worksheet
|
|
2093
2036
|
|
2094
2037
|
<div class="note notetag">
|
2095
2038
|
<strong>Note:</strong>
|
2096
|
-
<div class='inline'
|
2097
|
-
You can also specify the style in the add_row call
|
2098
|
-
</p>
|
2039
|
+
<div class='inline'>
|
2040
|
+
<p>You can also specify the style in the add_row call</p>
|
2099
2041
|
</div>
|
2100
2042
|
</div>
|
2101
2043
|
|
2102
|
-
|
2103
|
-
Set the style for cells in a specific row
|
2104
|
-
</p>
|
2044
|
+
|
2045
|
+
<p>Set the style for cells in a specific row</p>
|
2105
2046
|
|
2106
2047
|
|
2107
2048
|
</div>
|
@@ -2120,9 +2061,8 @@ Set the style for cells in a specific row
|
|
2120
2061
|
|
2121
2062
|
|
2122
2063
|
—
|
2123
|
-
<div class='inline'
|
2124
|
-
or range of indexes in the table
|
2125
|
-
</p>
|
2064
|
+
<div class='inline'>
|
2065
|
+
<p>or range of indexes in the table</p>
|
2126
2066
|
</div>
|
2127
2067
|
|
2128
2068
|
</li>
|
@@ -2137,9 +2077,8 @@ or range of indexes in the table
|
|
2137
2077
|
|
2138
2078
|
|
2139
2079
|
—
|
2140
|
-
<div class='inline'
|
2141
|
-
cellXfs index
|
2142
|
-
</p>
|
2080
|
+
<div class='inline'>
|
2081
|
+
<p>cellXfs index</p>
|
2143
2082
|
</div>
|
2144
2083
|
|
2145
2084
|
</li>
|
@@ -2156,9 +2095,8 @@ cellXfs index
|
|
2156
2095
|
|
2157
2096
|
|
2158
2097
|
—
|
2159
|
-
<div class='inline'
|
2160
|
-
a customizable set of options
|
2161
|
-
</p>
|
2098
|
+
<div class='inline'>
|
2099
|
+
<p>a customizable set of options</p>
|
2162
2100
|
</div>
|
2163
2101
|
|
2164
2102
|
</li>
|
@@ -2181,9 +2119,8 @@ a customizable set of options
|
|
2181
2119
|
<span class="default">
|
2182
2120
|
|
2183
2121
|
</span>
|
2184
|
-
— <div class='inline'
|
2185
|
-
only cells after this column will be updated
|
2186
|
-
</p>
|
2122
|
+
— <div class='inline'>
|
2123
|
+
<p>only cells after this column will be updated.</p>
|
2187
2124
|
</div>
|
2188
2125
|
</li>
|
2189
2126
|
|
@@ -2243,9 +2180,8 @@ only cells after this column will be updated.
|
|
2243
2180
|
|
2244
2181
|
</p><div class="docstring">
|
2245
2182
|
<div class="discussion">
|
2246
|
-
|
2247
|
-
Serializes the worksheet document
|
2248
|
-
</p>
|
2183
|
+
|
2184
|
+
<p>Serializes the worksheet document</p>
|
2249
2185
|
|
2250
2186
|
|
2251
2187
|
</div>
|
@@ -2333,11 +2269,10 @@ Serializes the worksheet document
|
|
2333
2269
|
|
2334
2270
|
</p><div class="docstring">
|
2335
2271
|
<div class="discussion">
|
2336
|
-
|
2337
|
-
Updates auto fit data.
|
2272
|
+
|
2273
|
+
<p>Updates auto fit data. Autofit data attempts to determine the cell in a
|
2338
2274
|
column that has the greatest width by comparing the length of the text
|
2339
|
-
multiplied by the size of the font
|
2340
|
-
</p>
|
2275
|
+
multiplied by the size of the font.</p>
|
2341
2276
|
|
2342
2277
|
|
2343
2278
|
</div>
|
@@ -2356,9 +2291,8 @@ multiplied by the size of the font.
|
|
2356
2291
|
|
2357
2292
|
|
2358
2293
|
—
|
2359
|
-
<div class='inline'
|
2360
|
-
an array of cells
|
2361
|
-
</p>
|
2294
|
+
<div class='inline'>
|
2295
|
+
<p>an array of cells</p>
|
2362
2296
|
</div>
|
2363
2297
|
|
2364
2298
|
</li>
|
@@ -2376,9 +2310,8 @@ an array of cells
|
|
2376
2310
|
|
2377
2311
|
|
2378
2312
|
—
|
2379
|
-
<div class='inline'
|
2380
|
-
of Cell objects
|
2381
|
-
</p>
|
2313
|
+
<div class='inline'>
|
2314
|
+
<p>of Cell objects</p>
|
2382
2315
|
</div>
|
2383
2316
|
|
2384
2317
|
</li>
|
@@ -2444,7 +2377,7 @@ of Cell objects
|
|
2444
2377
|
</div>
|
2445
2378
|
|
2446
2379
|
<div id="footer">
|
2447
|
-
Generated on
|
2380
|
+
Generated on Wed Nov 30 08:53:38 2011 by
|
2448
2381
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2449
2382
|
0.7.3 (ruby-1.8.7).
|
2450
2383
|
</div>
|