axlsx 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +14 -0
- data/README.md +22 -21
- data/Rakefile +1 -1
- data/axlsx.gemspec +36 -0
- data/doc/Axlsx.html +373 -559
- data/doc/Axlsx/App.html +257 -360
- data/doc/Axlsx/Axis.html +113 -144
- data/doc/Axlsx/Bar3DChart.html +122 -152
- data/doc/Axlsx/BarSeries.html +67 -81
- data/doc/Axlsx/Border.html +96 -119
- data/doc/Axlsx/BorderPr.html +89 -114
- data/doc/Axlsx/CatAxis.html +79 -104
- data/doc/Axlsx/CatAxisData.html +40 -54
- data/doc/Axlsx/Cell.html +193 -679
- data/doc/Axlsx/CellAlignment.html +116 -157
- data/doc/Axlsx/CellProtection.html +50 -68
- data/doc/Axlsx/CellStyle.html +78 -106
- data/doc/Axlsx/Chart.html +361 -432
- data/doc/Axlsx/Color.html +56 -78
- data/doc/Axlsx/ContentType.html +28 -41
- data/doc/Axlsx/Core.html +43 -55
- data/doc/Axlsx/DataTypeValidator.html +34 -43
- data/doc/Axlsx/Default.html +55 -81
- data/doc/Axlsx/Drawing.html +322 -412
- data/doc/Axlsx/Fill.html +34 -47
- data/doc/Axlsx/Font.html +157 -207
- data/doc/Axlsx/GradientFill.html +90 -122
- data/doc/Axlsx/GradientStop.html +36 -50
- data/doc/Axlsx/GraphicFrame.html +106 -130
- data/doc/Axlsx/Line3DChart.html +108 -134
- data/doc/Axlsx/LineSeries.html +58 -67
- data/doc/Axlsx/Marker.html +84 -111
- data/doc/Axlsx/NumFmt.html +83 -102
- data/doc/Axlsx/OneCellAnchor.html +158 -196
- data/doc/Axlsx/Override.html +60 -92
- data/doc/Axlsx/Package.html +190 -759
- data/doc/Axlsx/PatternFill.html +78 -99
- data/doc/Axlsx/Pic.html +451 -405
- data/doc/Axlsx/Pie3DChart.html +33 -42
- data/doc/Axlsx/PieSeries.html +68 -80
- data/doc/Axlsx/RegexValidator.html +15 -20
- data/doc/Axlsx/Relationship.html +49 -66
- data/doc/Axlsx/Relationships.html +28 -41
- data/doc/Axlsx/RestrictionValidator.html +23 -32
- data/doc/Axlsx/Row.html +132 -161
- data/doc/Axlsx/Scaling.html +71 -90
- data/doc/Axlsx/SerAxis.html +61 -79
- data/doc/Axlsx/Series.html +125 -201
- data/doc/Axlsx/SeriesTitle.html +26 -31
- data/doc/Axlsx/Styles.html +286 -355
- data/doc/Axlsx/TableStyle.html +62 -87
- data/doc/Axlsx/TableStyleElement.html +84 -104
- data/doc/Axlsx/TableStyles.html +59 -82
- data/doc/Axlsx/Title.html +58 -155
- data/doc/Axlsx/TwoCellAnchor.html +165 -204
- data/doc/Axlsx/ValAxis.html +39 -53
- data/doc/Axlsx/ValAxisData.html +29 -39
- data/doc/Axlsx/View3D.html +93 -122
- data/doc/Axlsx/Workbook.html +359 -362
- data/doc/Axlsx/Worksheet.html +471 -816
- data/doc/Axlsx/Xf.html +341 -296
- data/doc/_index.html +7 -11
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +86 -0
- data/doc/file.README.html +105 -107
- data/doc/file_list.html +3 -0
- data/doc/frames.html +1 -1
- data/doc/index.html +105 -107
- data/doc/method_list.html +426 -602
- data/doc/top-level-namespace.html +3 -3
- data/examples/example.rb +20 -1
- data/lib/axlsx.rb +20 -15
- data/lib/axlsx/content_type/default.rb +8 -3
- data/lib/axlsx/content_type/override.rb +11 -4
- data/lib/axlsx/doc_props/app.rb +53 -23
- data/lib/axlsx/drawing/axis.rb +16 -5
- data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
- data/lib/axlsx/drawing/bar_series.rb +7 -5
- data/lib/axlsx/drawing/cat_axis.rb +10 -3
- data/lib/axlsx/drawing/chart.rb +21 -15
- data/lib/axlsx/drawing/drawing.rb +16 -30
- data/lib/axlsx/drawing/graphic_frame.rb +2 -4
- data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
- data/lib/axlsx/drawing/line_series.rb +6 -5
- data/lib/axlsx/drawing/marker.rb +9 -5
- data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
- data/lib/axlsx/drawing/pic.rb +29 -37
- data/lib/axlsx/drawing/pie_series.rb +7 -5
- data/lib/axlsx/drawing/scaling.rb +11 -5
- data/lib/axlsx/drawing/ser_axis.rb +6 -2
- data/lib/axlsx/drawing/series.rb +11 -11
- data/lib/axlsx/drawing/series_title.rb +1 -1
- data/lib/axlsx/drawing/title.rb +5 -12
- data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
- data/lib/axlsx/drawing/val_axis.rb +2 -2
- data/lib/axlsx/drawing/view_3D.rb +16 -9
- data/lib/axlsx/package.rb +25 -27
- data/lib/axlsx/rels/relationship.rb +4 -2
- data/lib/axlsx/stylesheet/border.rb +9 -4
- data/lib/axlsx/stylesheet/border_pr.rb +7 -4
- data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
- data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
- data/lib/axlsx/stylesheet/cell_style.rb +12 -7
- data/lib/axlsx/stylesheet/color.rb +8 -6
- data/lib/axlsx/stylesheet/fill.rb +2 -1
- data/lib/axlsx/stylesheet/font.rb +24 -13
- data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
- data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
- data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
- data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
- data/lib/axlsx/stylesheet/styles.rb +12 -12
- data/lib/axlsx/stylesheet/table_style.rb +6 -3
- data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
- data/lib/axlsx/stylesheet/table_styles.rb +4 -4
- data/lib/axlsx/stylesheet/xf.rb +52 -31
- data/lib/axlsx/util/validators.rb +3 -3
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +8 -9
- data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
- data/lib/axlsx/workbook/worksheet/row.rb +2 -4
- data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
- data/test/drawing/tc_one_cell_anchor.rb +1 -1
- metadata +135 -165
- data/doc/Axlsx/SimpleTypedList.html +0 -1686
- data/lib/schema/dc.xsd~ +0 -118
- data/lib/schema/dcterms.xsd~ +0 -331
- data/lib/schema/opc-coreProperties.xsd~ +0 -50
- data/test/drawing/tc_line_series.tc~ +0 -34
data/doc/Axlsx/Xf.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Xf
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
|
96
96
|
<div class="discussion">
|
|
97
|
-
|
|
98
|
-
The Xf class defines a formatting record for use in Styles
|
|
99
|
-
</p>
|
|
97
|
+
|
|
98
|
+
<p>The Xf class defines a formatting record for use in Styles. The recommended
|
|
99
|
+
way to manage styles for your workbook is with Styles#add_style</p>
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
</div>
|
|
@@ -104,6 +104,13 @@ The Xf class defines a formatting record for use in Styles
|
|
|
104
104
|
<div class="tags">
|
|
105
105
|
|
|
106
106
|
|
|
107
|
+
<h3>See Also:</h3>
|
|
108
|
+
<ul class="see">
|
|
109
|
+
|
|
110
|
+
<li><span class='object_link'><a href="Styles.html#add_style-instance_method" title="Axlsx::Styles#add_style (method)">Styles#add_style</a></span></li>
|
|
111
|
+
|
|
112
|
+
</ul>
|
|
113
|
+
|
|
107
114
|
</div>
|
|
108
115
|
|
|
109
116
|
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
@@ -128,9 +135,8 @@ The Xf class defines a formatting record for use in Styles
|
|
|
128
135
|
|
|
129
136
|
|
|
130
137
|
|
|
131
|
-
<span class="summary_desc"><div class='inline'
|
|
132
|
-
The cell alignment for this style
|
|
133
|
-
</p>
|
|
138
|
+
<span class="summary_desc"><div class='inline'>
|
|
139
|
+
<p>The cell alignment for this style.</p>
|
|
134
140
|
</div></span>
|
|
135
141
|
|
|
136
142
|
</li>
|
|
@@ -155,9 +161,8 @@ The cell alignment for this style.
|
|
|
155
161
|
|
|
156
162
|
|
|
157
163
|
|
|
158
|
-
<span class="summary_desc"><div class='inline'
|
|
159
|
-
Indicates if the alignment options should be applied
|
|
160
|
-
</p>
|
|
164
|
+
<span class="summary_desc"><div class='inline'>
|
|
165
|
+
<p>Indicates if the alignment options should be applied.</p>
|
|
161
166
|
</div></span>
|
|
162
167
|
|
|
163
168
|
</li>
|
|
@@ -182,9 +187,8 @@ Indicates if the alignment options should be applied.
|
|
|
182
187
|
|
|
183
188
|
|
|
184
189
|
|
|
185
|
-
<span class="summary_desc"><div class='inline'
|
|
186
|
-
indicates if the borderId should be applied
|
|
187
|
-
</p>
|
|
190
|
+
<span class="summary_desc"><div class='inline'>
|
|
191
|
+
<p>indicates if the borderId should be applied.</p>
|
|
188
192
|
</div></span>
|
|
189
193
|
|
|
190
194
|
</li>
|
|
@@ -209,9 +213,8 @@ indicates if the borderId should be applied.
|
|
|
209
213
|
|
|
210
214
|
|
|
211
215
|
|
|
212
|
-
<span class="summary_desc"><div class='inline'
|
|
213
|
-
indicates if the fillId should be applied
|
|
214
|
-
</p>
|
|
216
|
+
<span class="summary_desc"><div class='inline'>
|
|
217
|
+
<p>indicates if the fillId should be applied.</p>
|
|
215
218
|
</div></span>
|
|
216
219
|
|
|
217
220
|
</li>
|
|
@@ -236,9 +239,8 @@ indicates if the fillId should be applied.
|
|
|
236
239
|
|
|
237
240
|
|
|
238
241
|
|
|
239
|
-
<span class="summary_desc"><div class='inline'
|
|
240
|
-
indicates if the fontId should be applied
|
|
241
|
-
</p>
|
|
242
|
+
<span class="summary_desc"><div class='inline'>
|
|
243
|
+
<p>indicates if the fontId should be applied.</p>
|
|
242
244
|
</div></span>
|
|
243
245
|
|
|
244
246
|
</li>
|
|
@@ -263,9 +265,8 @@ indicates if the fontId should be applied.
|
|
|
263
265
|
|
|
264
266
|
|
|
265
267
|
|
|
266
|
-
<span class="summary_desc"><div class='inline'
|
|
267
|
-
indicates if the numFmtId should be applied
|
|
268
|
-
</p>
|
|
268
|
+
<span class="summary_desc"><div class='inline'>
|
|
269
|
+
<p>indicates if the numFmtId should be applied.</p>
|
|
269
270
|
</div></span>
|
|
270
271
|
|
|
271
272
|
</li>
|
|
@@ -290,9 +291,8 @@ indicates if the numFmtId should be applied.
|
|
|
290
291
|
|
|
291
292
|
|
|
292
293
|
|
|
293
|
-
<span class="summary_desc"><div class='inline'
|
|
294
|
-
Indicates if the protection options should be applied
|
|
295
|
-
</p>
|
|
294
|
+
<span class="summary_desc"><div class='inline'>
|
|
295
|
+
<p>Indicates if the protection options should be applied.</p>
|
|
296
296
|
</div></span>
|
|
297
297
|
|
|
298
298
|
</li>
|
|
@@ -317,9 +317,8 @@ Indicates if the protection options should be applied.
|
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
|
|
320
|
-
<span class="summary_desc"><div class='inline'
|
|
321
|
-
index (0 based) of the border to be used in this style
|
|
322
|
-
</p>
|
|
320
|
+
<span class="summary_desc"><div class='inline'>
|
|
321
|
+
<p>index (0 based) of the border to be used in this style.</p>
|
|
323
322
|
</div></span>
|
|
324
323
|
|
|
325
324
|
</li>
|
|
@@ -344,9 +343,8 @@ index (0 based) of the border to be used in this style.
|
|
|
344
343
|
|
|
345
344
|
|
|
346
345
|
|
|
347
|
-
<span class="summary_desc"><div class='inline'
|
|
348
|
-
index (0 based) of the fill to be used in this style
|
|
349
|
-
</p>
|
|
346
|
+
<span class="summary_desc"><div class='inline'>
|
|
347
|
+
<p>index (0 based) of the fill to be used in this style.</p>
|
|
350
348
|
</div></span>
|
|
351
349
|
|
|
352
350
|
</li>
|
|
@@ -371,9 +369,8 @@ index (0 based) of the fill to be used in this style.
|
|
|
371
369
|
|
|
372
370
|
|
|
373
371
|
|
|
374
|
-
<span class="summary_desc"><div class='inline'
|
|
375
|
-
index (0 based) of the font to be used in this style
|
|
376
|
-
</p>
|
|
372
|
+
<span class="summary_desc"><div class='inline'>
|
|
373
|
+
<p>index (0 based) of the font to be used in this style.</p>
|
|
377
374
|
</div></span>
|
|
378
375
|
|
|
379
376
|
</li>
|
|
@@ -398,9 +395,8 @@ index (0 based) of the font to be used in this style.
|
|
|
398
395
|
|
|
399
396
|
|
|
400
397
|
|
|
401
|
-
<span class="summary_desc"><div class='inline'
|
|
402
|
-
id of the numFmt to apply to this style
|
|
403
|
-
</p>
|
|
398
|
+
<span class="summary_desc"><div class='inline'>
|
|
399
|
+
<p>id of the numFmt to apply to this style.</p>
|
|
404
400
|
</div></span>
|
|
405
401
|
|
|
406
402
|
</li>
|
|
@@ -425,9 +421,8 @@ id of the numFmt to apply to this style.
|
|
|
425
421
|
|
|
426
422
|
|
|
427
423
|
|
|
428
|
-
<span class="summary_desc"><div class='inline'
|
|
429
|
-
indicates if the cell has a pivot table drop down button
|
|
430
|
-
</p>
|
|
424
|
+
<span class="summary_desc"><div class='inline'>
|
|
425
|
+
<p>indicates if the cell has a pivot table drop down button.</p>
|
|
431
426
|
</div></span>
|
|
432
427
|
|
|
433
428
|
</li>
|
|
@@ -452,9 +447,8 @@ indicates if the cell has a pivot table drop down button.
|
|
|
452
447
|
|
|
453
448
|
|
|
454
449
|
|
|
455
|
-
<span class="summary_desc"><div class='inline'
|
|
456
|
-
The cell protection for this style
|
|
457
|
-
</p>
|
|
450
|
+
<span class="summary_desc"><div class='inline'>
|
|
451
|
+
<p>The cell protection for this style.</p>
|
|
458
452
|
</div></span>
|
|
459
453
|
|
|
460
454
|
</li>
|
|
@@ -479,9 +473,8 @@ The cell protection for this style.
|
|
|
479
473
|
|
|
480
474
|
|
|
481
475
|
|
|
482
|
-
<span class="summary_desc"><div class='inline'
|
|
483
|
-
indecates if text should be prefixed by a single quote in the cell
|
|
484
|
-
</p>
|
|
476
|
+
<span class="summary_desc"><div class='inline'>
|
|
477
|
+
<p>indecates if text should be prefixed by a single quote in the cell.</p>
|
|
485
478
|
</div></span>
|
|
486
479
|
|
|
487
480
|
</li>
|
|
@@ -506,9 +499,8 @@ indecates if text should be prefixed by a single quote in the cell.
|
|
|
506
499
|
|
|
507
500
|
|
|
508
501
|
|
|
509
|
-
<span class="summary_desc"><div class='inline'
|
|
510
|
-
index (0 based) of cellStylesXfs item to be used in this style
|
|
511
|
-
</p>
|
|
502
|
+
<span class="summary_desc"><div class='inline'>
|
|
503
|
+
<p>index (0 based) of cellStylesXfs item to be used in this style.</p>
|
|
512
504
|
</div></span>
|
|
513
505
|
|
|
514
506
|
</li>
|
|
@@ -545,9 +537,8 @@ index (0 based) of cellStylesXfs item to be used in this style.
|
|
|
545
537
|
|
|
546
538
|
|
|
547
539
|
|
|
548
|
-
<span class="summary_desc"><div class='inline'
|
|
549
|
-
Creates a new Xf object
|
|
550
|
-
</p>
|
|
540
|
+
<span class="summary_desc"><div class='inline'>
|
|
541
|
+
<p>Creates a new Xf object.</p>
|
|
551
542
|
</div></span>
|
|
552
543
|
|
|
553
544
|
</li>
|
|
@@ -569,9 +560,8 @@ Creates a new Xf object.
|
|
|
569
560
|
|
|
570
561
|
|
|
571
562
|
|
|
572
|
-
<span class="summary_desc"><div class='inline'
|
|
573
|
-
Serializes the xf elemen
|
|
574
|
-
</p>
|
|
563
|
+
<span class="summary_desc"><div class='inline'>
|
|
564
|
+
<p>Serializes the xf elemen.</p>
|
|
575
565
|
</div></span>
|
|
576
566
|
|
|
577
567
|
</li>
|
|
@@ -592,9 +582,8 @@ Serializes the xf elemen.
|
|
|
592
582
|
|
|
593
583
|
</p><div class="docstring">
|
|
594
584
|
<div class="discussion">
|
|
595
|
-
|
|
596
|
-
Creates a new Xf object
|
|
597
|
-
</p>
|
|
585
|
+
|
|
586
|
+
<p>Creates a new Xf object</p>
|
|
598
587
|
|
|
599
588
|
|
|
600
589
|
</div>
|
|
@@ -605,68 +594,18 @@ Creates a new Xf object
|
|
|
605
594
|
|
|
606
595
|
<li>
|
|
607
596
|
|
|
608
|
-
<span class='name'>
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
—
|
|
616
|
-
<div class='inline'><p>
|
|
617
|
-
a customizable set of options
|
|
618
|
-
</p>
|
|
619
|
-
</div>
|
|
620
|
-
|
|
621
|
-
</li>
|
|
622
|
-
|
|
623
|
-
<li>
|
|
624
|
-
|
|
625
|
-
<span class='name'>[Boolean]</span>
|
|
597
|
+
<span class='name'>options</span>
|
|
626
598
|
|
|
627
599
|
|
|
628
600
|
<span class='type'>(<tt>Hash</tt>)</span>
|
|
629
601
|
|
|
630
602
|
|
|
631
|
-
|
|
632
|
-
—
|
|
633
|
-
<div class='inline'><p>
|
|
634
|
-
a customizable set of options
|
|
635
|
-
</p>
|
|
636
|
-
</div>
|
|
637
|
-
|
|
638
|
-
</li>
|
|
639
|
-
|
|
640
|
-
<li>
|
|
641
|
-
|
|
642
|
-
<span class='name'>[CellAlignment]</span>
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
—
|
|
650
|
-
<div class='inline'><p>
|
|
651
|
-
a customizable set of options
|
|
652
|
-
</p>
|
|
653
|
-
</div>
|
|
654
|
-
|
|
655
|
-
</li>
|
|
656
|
-
|
|
657
|
-
<li>
|
|
658
|
-
|
|
659
|
-
<span class='name'>[CellProtection]</span>
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
|
663
|
-
|
|
603
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
664
604
|
|
|
665
605
|
|
|
666
606
|
—
|
|
667
|
-
<div class='inline'
|
|
668
|
-
a customizable set of options
|
|
669
|
-
</p>
|
|
607
|
+
<div class='inline'>
|
|
608
|
+
<p>a customizable set of options</p>
|
|
670
609
|
</div>
|
|
671
610
|
|
|
672
611
|
</li>
|
|
@@ -676,6 +615,146 @@ a customizable set of options
|
|
|
676
615
|
|
|
677
616
|
|
|
678
617
|
|
|
618
|
+
<h3>Options Hash (<tt>options</tt>):</h3>
|
|
619
|
+
<ul class="option">
|
|
620
|
+
|
|
621
|
+
<li>
|
|
622
|
+
<span class="name">numFmtId</span>
|
|
623
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
624
|
+
<span class="default">
|
|
625
|
+
|
|
626
|
+
</span>
|
|
627
|
+
|
|
628
|
+
</li>
|
|
629
|
+
|
|
630
|
+
<li>
|
|
631
|
+
<span class="name">fontId</span>
|
|
632
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
633
|
+
<span class="default">
|
|
634
|
+
|
|
635
|
+
</span>
|
|
636
|
+
|
|
637
|
+
</li>
|
|
638
|
+
|
|
639
|
+
<li>
|
|
640
|
+
<span class="name">fillId</span>
|
|
641
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
642
|
+
<span class="default">
|
|
643
|
+
|
|
644
|
+
</span>
|
|
645
|
+
|
|
646
|
+
</li>
|
|
647
|
+
|
|
648
|
+
<li>
|
|
649
|
+
<span class="name">borderId</span>
|
|
650
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
651
|
+
<span class="default">
|
|
652
|
+
|
|
653
|
+
</span>
|
|
654
|
+
|
|
655
|
+
</li>
|
|
656
|
+
|
|
657
|
+
<li>
|
|
658
|
+
<span class="name">xfId</span>
|
|
659
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
660
|
+
<span class="default">
|
|
661
|
+
|
|
662
|
+
</span>
|
|
663
|
+
|
|
664
|
+
</li>
|
|
665
|
+
|
|
666
|
+
<li>
|
|
667
|
+
<span class="name">quotePrefix</span>
|
|
668
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
669
|
+
<span class="default">
|
|
670
|
+
|
|
671
|
+
</span>
|
|
672
|
+
|
|
673
|
+
</li>
|
|
674
|
+
|
|
675
|
+
<li>
|
|
676
|
+
<span class="name">pivotButton</span>
|
|
677
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
678
|
+
<span class="default">
|
|
679
|
+
|
|
680
|
+
</span>
|
|
681
|
+
|
|
682
|
+
</li>
|
|
683
|
+
|
|
684
|
+
<li>
|
|
685
|
+
<span class="name">applyNumberFormat</span>
|
|
686
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
687
|
+
<span class="default">
|
|
688
|
+
|
|
689
|
+
</span>
|
|
690
|
+
|
|
691
|
+
</li>
|
|
692
|
+
|
|
693
|
+
<li>
|
|
694
|
+
<span class="name">applyFont</span>
|
|
695
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
696
|
+
<span class="default">
|
|
697
|
+
|
|
698
|
+
</span>
|
|
699
|
+
|
|
700
|
+
</li>
|
|
701
|
+
|
|
702
|
+
<li>
|
|
703
|
+
<span class="name">applyFill</span>
|
|
704
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
705
|
+
<span class="default">
|
|
706
|
+
|
|
707
|
+
</span>
|
|
708
|
+
|
|
709
|
+
</li>
|
|
710
|
+
|
|
711
|
+
<li>
|
|
712
|
+
<span class="name">applyBorder</span>
|
|
713
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
714
|
+
<span class="default">
|
|
715
|
+
|
|
716
|
+
</span>
|
|
717
|
+
|
|
718
|
+
</li>
|
|
719
|
+
|
|
720
|
+
<li>
|
|
721
|
+
<span class="name">applyAlignment</span>
|
|
722
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
723
|
+
<span class="default">
|
|
724
|
+
|
|
725
|
+
</span>
|
|
726
|
+
|
|
727
|
+
</li>
|
|
728
|
+
|
|
729
|
+
<li>
|
|
730
|
+
<span class="name">applyProtection</span>
|
|
731
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
732
|
+
<span class="default">
|
|
733
|
+
|
|
734
|
+
</span>
|
|
735
|
+
|
|
736
|
+
</li>
|
|
737
|
+
|
|
738
|
+
<li>
|
|
739
|
+
<span class="name">alignment</span>
|
|
740
|
+
<span class="type">(<tt><span class='object_link'><a href="CellAlignment.html" title="Axlsx::CellAlignment (class)">CellAlignment</a></span></tt>)</span>
|
|
741
|
+
<span class="default">
|
|
742
|
+
|
|
743
|
+
</span>
|
|
744
|
+
|
|
745
|
+
</li>
|
|
746
|
+
|
|
747
|
+
<li>
|
|
748
|
+
<span class="name">protection</span>
|
|
749
|
+
<span class="type">(<tt><span class='object_link'><a href="CellProtection.html" title="Axlsx::CellProtection (class)">CellProtection</a></span></tt>)</span>
|
|
750
|
+
<span class="default">
|
|
751
|
+
|
|
752
|
+
</span>
|
|
753
|
+
|
|
754
|
+
</li>
|
|
755
|
+
|
|
756
|
+
</ul>
|
|
757
|
+
|
|
679
758
|
|
|
680
759
|
|
|
681
760
|
</div><table class="source_code">
|
|
@@ -684,21 +763,20 @@ a customizable set of options
|
|
|
684
763
|
<pre class="lines">
|
|
685
764
|
|
|
686
765
|
|
|
687
|
-
84
|
|
688
766
|
85
|
|
689
767
|
86
|
|
690
768
|
87
|
|
691
|
-
88
|
|
769
|
+
88
|
|
770
|
+
89</pre>
|
|
692
771
|
</td>
|
|
693
772
|
<td>
|
|
694
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
695
|
-
|
|
696
|
-
<span class='
|
|
697
|
-
<span class='options
|
|
698
|
-
<span class='
|
|
699
|
-
<span class='
|
|
700
|
-
<span class='
|
|
701
|
-
</pre>
|
|
773
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 85</span>
|
|
774
|
+
|
|
775
|
+
<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>
|
|
776
|
+
<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>
|
|
777
|
+
<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'>"</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'>"</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='tstring'><span class='tstring_beg'>"</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'>"</span></span>
|
|
778
|
+
<span class='kw'>end</span>
|
|
779
|
+
<span class='kw'>end</span></pre>
|
|
702
780
|
</td>
|
|
703
781
|
</tr>
|
|
704
782
|
</table>
|
|
@@ -721,9 +799,8 @@ a customizable set of options
|
|
|
721
799
|
|
|
722
800
|
</p><div class="docstring">
|
|
723
801
|
<div class="discussion">
|
|
724
|
-
|
|
725
|
-
The cell alignment for this style
|
|
726
|
-
</p>
|
|
802
|
+
|
|
803
|
+
<p>The cell alignment for this style</p>
|
|
727
804
|
|
|
728
805
|
|
|
729
806
|
</div>
|
|
@@ -757,17 +834,16 @@ The cell alignment for this style
|
|
|
757
834
|
<pre class="lines">
|
|
758
835
|
|
|
759
836
|
|
|
760
|
-
9
|
|
761
837
|
10
|
|
762
|
-
11
|
|
838
|
+
11
|
|
839
|
+
12</pre>
|
|
763
840
|
</td>
|
|
764
841
|
<td>
|
|
765
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
842
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 10</span>
|
|
766
843
|
|
|
767
|
-
<span class='
|
|
768
|
-
<span class='
|
|
769
|
-
<span class='
|
|
770
|
-
</pre>
|
|
844
|
+
<span class='kw'>def</span> <span class='id alignment'>alignment</span>
|
|
845
|
+
<span class='ivar'>@alignment</span>
|
|
846
|
+
<span class='kw'>end</span></pre>
|
|
771
847
|
</td>
|
|
772
848
|
</tr>
|
|
773
849
|
</table>
|
|
@@ -785,9 +861,8 @@ The cell alignment for this style
|
|
|
785
861
|
|
|
786
862
|
</p><div class="docstring">
|
|
787
863
|
<div class="discussion">
|
|
788
|
-
|
|
789
|
-
Indicates if the alignment options should be applied
|
|
790
|
-
</p>
|
|
864
|
+
|
|
865
|
+
<p>Indicates if the alignment options should be applied</p>
|
|
791
866
|
|
|
792
867
|
|
|
793
868
|
</div>
|
|
@@ -814,17 +889,16 @@ Indicates if the alignment options should be applied
|
|
|
814
889
|
<pre class="lines">
|
|
815
890
|
|
|
816
891
|
|
|
817
|
-
62
|
|
818
892
|
63
|
|
819
|
-
64
|
|
893
|
+
64
|
|
894
|
+
65</pre>
|
|
820
895
|
</td>
|
|
821
896
|
<td>
|
|
822
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
897
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 63</span>
|
|
823
898
|
|
|
824
|
-
<span class='
|
|
825
|
-
<span class='
|
|
826
|
-
<span class='
|
|
827
|
-
</pre>
|
|
899
|
+
<span class='kw'>def</span> <span class='id applyAlignment'>applyAlignment</span>
|
|
900
|
+
<span class='ivar'>@applyAlignment</span>
|
|
901
|
+
<span class='kw'>end</span></pre>
|
|
828
902
|
</td>
|
|
829
903
|
</tr>
|
|
830
904
|
</table>
|
|
@@ -842,9 +916,8 @@ Indicates if the alignment options should be applied
|
|
|
842
916
|
|
|
843
917
|
</p><div class="docstring">
|
|
844
918
|
<div class="discussion">
|
|
845
|
-
|
|
846
|
-
indicates if the borderId should be applied
|
|
847
|
-
</p>
|
|
919
|
+
|
|
920
|
+
<p>indicates if the borderId should be applied</p>
|
|
848
921
|
|
|
849
922
|
|
|
850
923
|
</div>
|
|
@@ -871,17 +944,16 @@ indicates if the borderId should be applied
|
|
|
871
944
|
<pre class="lines">
|
|
872
945
|
|
|
873
946
|
|
|
874
|
-
58
|
|
875
947
|
59
|
|
876
|
-
60
|
|
948
|
+
60
|
|
949
|
+
61</pre>
|
|
877
950
|
</td>
|
|
878
951
|
<td>
|
|
879
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
952
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 59</span>
|
|
880
953
|
|
|
881
|
-
<span class='
|
|
882
|
-
<span class='
|
|
883
|
-
<span class='
|
|
884
|
-
</pre>
|
|
954
|
+
<span class='kw'>def</span> <span class='id applyBorder'>applyBorder</span>
|
|
955
|
+
<span class='ivar'>@applyBorder</span>
|
|
956
|
+
<span class='kw'>end</span></pre>
|
|
885
957
|
</td>
|
|
886
958
|
</tr>
|
|
887
959
|
</table>
|
|
@@ -899,9 +971,8 @@ indicates if the borderId should be applied
|
|
|
899
971
|
|
|
900
972
|
</p><div class="docstring">
|
|
901
973
|
<div class="discussion">
|
|
902
|
-
|
|
903
|
-
indicates if the fillId should be applied
|
|
904
|
-
</p>
|
|
974
|
+
|
|
975
|
+
<p>indicates if the fillId should be applied</p>
|
|
905
976
|
|
|
906
977
|
|
|
907
978
|
</div>
|
|
@@ -928,17 +999,16 @@ indicates if the fillId should be applied
|
|
|
928
999
|
<pre class="lines">
|
|
929
1000
|
|
|
930
1001
|
|
|
931
|
-
54
|
|
932
1002
|
55
|
|
933
|
-
56
|
|
1003
|
+
56
|
|
1004
|
+
57</pre>
|
|
934
1005
|
</td>
|
|
935
1006
|
<td>
|
|
936
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1007
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 55</span>
|
|
937
1008
|
|
|
938
|
-
<span class='
|
|
939
|
-
<span class='
|
|
940
|
-
<span class='
|
|
941
|
-
</pre>
|
|
1009
|
+
<span class='kw'>def</span> <span class='id applyFill'>applyFill</span>
|
|
1010
|
+
<span class='ivar'>@applyFill</span>
|
|
1011
|
+
<span class='kw'>end</span></pre>
|
|
942
1012
|
</td>
|
|
943
1013
|
</tr>
|
|
944
1014
|
</table>
|
|
@@ -956,9 +1026,8 @@ indicates if the fillId should be applied
|
|
|
956
1026
|
|
|
957
1027
|
</p><div class="docstring">
|
|
958
1028
|
<div class="discussion">
|
|
959
|
-
|
|
960
|
-
indicates if the fontId should be applied
|
|
961
|
-
</p>
|
|
1029
|
+
|
|
1030
|
+
<p>indicates if the fontId should be applied</p>
|
|
962
1031
|
|
|
963
1032
|
|
|
964
1033
|
</div>
|
|
@@ -985,17 +1054,16 @@ indicates if the fontId should be applied
|
|
|
985
1054
|
<pre class="lines">
|
|
986
1055
|
|
|
987
1056
|
|
|
988
|
-
50
|
|
989
1057
|
51
|
|
990
|
-
52
|
|
1058
|
+
52
|
|
1059
|
+
53</pre>
|
|
991
1060
|
</td>
|
|
992
1061
|
<td>
|
|
993
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1062
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 51</span>
|
|
994
1063
|
|
|
995
|
-
<span class='
|
|
996
|
-
<span class='
|
|
997
|
-
<span class='
|
|
998
|
-
</pre>
|
|
1064
|
+
<span class='kw'>def</span> <span class='id applyFont'>applyFont</span>
|
|
1065
|
+
<span class='ivar'>@applyFont</span>
|
|
1066
|
+
<span class='kw'>end</span></pre>
|
|
999
1067
|
</td>
|
|
1000
1068
|
</tr>
|
|
1001
1069
|
</table>
|
|
@@ -1013,9 +1081,8 @@ indicates if the fontId should be applied
|
|
|
1013
1081
|
|
|
1014
1082
|
</p><div class="docstring">
|
|
1015
1083
|
<div class="discussion">
|
|
1016
|
-
|
|
1017
|
-
indicates if the numFmtId should be applied
|
|
1018
|
-
</p>
|
|
1084
|
+
|
|
1085
|
+
<p>indicates if the numFmtId should be applied</p>
|
|
1019
1086
|
|
|
1020
1087
|
|
|
1021
1088
|
</div>
|
|
@@ -1042,17 +1109,16 @@ indicates if the numFmtId should be applied
|
|
|
1042
1109
|
<pre class="lines">
|
|
1043
1110
|
|
|
1044
1111
|
|
|
1045
|
-
46
|
|
1046
1112
|
47
|
|
1047
|
-
48
|
|
1113
|
+
48
|
|
1114
|
+
49</pre>
|
|
1048
1115
|
</td>
|
|
1049
1116
|
<td>
|
|
1050
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1117
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 47</span>
|
|
1051
1118
|
|
|
1052
|
-
<span class='
|
|
1053
|
-
<span class='
|
|
1054
|
-
<span class='
|
|
1055
|
-
</pre>
|
|
1119
|
+
<span class='kw'>def</span> <span class='id applyNumberFormat'>applyNumberFormat</span>
|
|
1120
|
+
<span class='ivar'>@applyNumberFormat</span>
|
|
1121
|
+
<span class='kw'>end</span></pre>
|
|
1056
1122
|
</td>
|
|
1057
1123
|
</tr>
|
|
1058
1124
|
</table>
|
|
@@ -1070,9 +1136,8 @@ indicates if the numFmtId should be applied
|
|
|
1070
1136
|
|
|
1071
1137
|
</p><div class="docstring">
|
|
1072
1138
|
<div class="discussion">
|
|
1073
|
-
|
|
1074
|
-
Indicates if the protection options should be applied
|
|
1075
|
-
</p>
|
|
1139
|
+
|
|
1140
|
+
<p>Indicates if the protection options should be applied</p>
|
|
1076
1141
|
|
|
1077
1142
|
|
|
1078
1143
|
</div>
|
|
@@ -1099,17 +1164,16 @@ Indicates if the protection options should be applied
|
|
|
1099
1164
|
<pre class="lines">
|
|
1100
1165
|
|
|
1101
1166
|
|
|
1102
|
-
66
|
|
1103
1167
|
67
|
|
1104
|
-
68
|
|
1168
|
+
68
|
|
1169
|
+
69</pre>
|
|
1105
1170
|
</td>
|
|
1106
1171
|
<td>
|
|
1107
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1172
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 67</span>
|
|
1108
1173
|
|
|
1109
|
-
<span class='
|
|
1110
|
-
<span class='
|
|
1111
|
-
<span class='
|
|
1112
|
-
</pre>
|
|
1174
|
+
<span class='kw'>def</span> <span class='id applyProtection'>applyProtection</span>
|
|
1175
|
+
<span class='ivar'>@applyProtection</span>
|
|
1176
|
+
<span class='kw'>end</span></pre>
|
|
1113
1177
|
</td>
|
|
1114
1178
|
</tr>
|
|
1115
1179
|
</table>
|
|
@@ -1127,9 +1191,8 @@ Indicates if the protection options should be applied
|
|
|
1127
1191
|
|
|
1128
1192
|
</p><div class="docstring">
|
|
1129
1193
|
<div class="discussion">
|
|
1130
|
-
|
|
1131
|
-
index (0 based) of the border to be used in this style
|
|
1132
|
-
</p>
|
|
1194
|
+
|
|
1195
|
+
<p>index (0 based) of the border to be used in this style</p>
|
|
1133
1196
|
|
|
1134
1197
|
|
|
1135
1198
|
</div>
|
|
@@ -1156,17 +1219,16 @@ index (0 based) of the border to be used in this style
|
|
|
1156
1219
|
<pre class="lines">
|
|
1157
1220
|
|
|
1158
1221
|
|
|
1159
|
-
30
|
|
1160
1222
|
31
|
|
1161
|
-
32
|
|
1223
|
+
32
|
|
1224
|
+
33</pre>
|
|
1162
1225
|
</td>
|
|
1163
1226
|
<td>
|
|
1164
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1227
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 31</span>
|
|
1165
1228
|
|
|
1166
|
-
<span class='
|
|
1167
|
-
<span class='
|
|
1168
|
-
<span class='
|
|
1169
|
-
</pre>
|
|
1229
|
+
<span class='kw'>def</span> <span class='id borderId'>borderId</span>
|
|
1230
|
+
<span class='ivar'>@borderId</span>
|
|
1231
|
+
<span class='kw'>end</span></pre>
|
|
1170
1232
|
</td>
|
|
1171
1233
|
</tr>
|
|
1172
1234
|
</table>
|
|
@@ -1184,9 +1246,8 @@ index (0 based) of the border to be used in this style
|
|
|
1184
1246
|
|
|
1185
1247
|
</p><div class="docstring">
|
|
1186
1248
|
<div class="discussion">
|
|
1187
|
-
|
|
1188
|
-
index (0 based) of the fill to be used in this style
|
|
1189
|
-
</p>
|
|
1249
|
+
|
|
1250
|
+
<p>index (0 based) of the fill to be used in this style</p>
|
|
1190
1251
|
|
|
1191
1252
|
|
|
1192
1253
|
</div>
|
|
@@ -1213,17 +1274,16 @@ index (0 based) of the fill to be used in this style
|
|
|
1213
1274
|
<pre class="lines">
|
|
1214
1275
|
|
|
1215
1276
|
|
|
1216
|
-
26
|
|
1217
1277
|
27
|
|
1218
|
-
28
|
|
1278
|
+
28
|
|
1279
|
+
29</pre>
|
|
1219
1280
|
</td>
|
|
1220
1281
|
<td>
|
|
1221
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1282
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 27</span>
|
|
1222
1283
|
|
|
1223
|
-
<span class='
|
|
1224
|
-
<span class='
|
|
1225
|
-
<span class='
|
|
1226
|
-
</pre>
|
|
1284
|
+
<span class='kw'>def</span> <span class='id fillId'>fillId</span>
|
|
1285
|
+
<span class='ivar'>@fillId</span>
|
|
1286
|
+
<span class='kw'>end</span></pre>
|
|
1227
1287
|
</td>
|
|
1228
1288
|
</tr>
|
|
1229
1289
|
</table>
|
|
@@ -1241,9 +1301,8 @@ index (0 based) of the fill to be used in this style
|
|
|
1241
1301
|
|
|
1242
1302
|
</p><div class="docstring">
|
|
1243
1303
|
<div class="discussion">
|
|
1244
|
-
|
|
1245
|
-
index (0 based) of the font to be used in this style
|
|
1246
|
-
</p>
|
|
1304
|
+
|
|
1305
|
+
<p>index (0 based) of the font to be used in this style</p>
|
|
1247
1306
|
|
|
1248
1307
|
|
|
1249
1308
|
</div>
|
|
@@ -1270,17 +1329,16 @@ index (0 based) of the font to be used in this style
|
|
|
1270
1329
|
<pre class="lines">
|
|
1271
1330
|
|
|
1272
1331
|
|
|
1273
|
-
22
|
|
1274
1332
|
23
|
|
1275
|
-
24
|
|
1333
|
+
24
|
|
1334
|
+
25</pre>
|
|
1276
1335
|
</td>
|
|
1277
1336
|
<td>
|
|
1278
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1337
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 23</span>
|
|
1279
1338
|
|
|
1280
|
-
<span class='
|
|
1281
|
-
<span class='
|
|
1282
|
-
<span class='
|
|
1283
|
-
</pre>
|
|
1339
|
+
<span class='kw'>def</span> <span class='id fontId'>fontId</span>
|
|
1340
|
+
<span class='ivar'>@fontId</span>
|
|
1341
|
+
<span class='kw'>end</span></pre>
|
|
1284
1342
|
</td>
|
|
1285
1343
|
</tr>
|
|
1286
1344
|
</table>
|
|
@@ -1298,9 +1356,8 @@ index (0 based) of the font to be used in this style
|
|
|
1298
1356
|
|
|
1299
1357
|
</p><div class="docstring">
|
|
1300
1358
|
<div class="discussion">
|
|
1301
|
-
|
|
1302
|
-
id of the numFmt to apply to this style
|
|
1303
|
-
</p>
|
|
1359
|
+
|
|
1360
|
+
<p>id of the numFmt to apply to this style</p>
|
|
1304
1361
|
|
|
1305
1362
|
|
|
1306
1363
|
</div>
|
|
@@ -1327,17 +1384,16 @@ id of the numFmt to apply to this style
|
|
|
1327
1384
|
<pre class="lines">
|
|
1328
1385
|
|
|
1329
1386
|
|
|
1330
|
-
18
|
|
1331
1387
|
19
|
|
1332
|
-
20
|
|
1388
|
+
20
|
|
1389
|
+
21</pre>
|
|
1333
1390
|
</td>
|
|
1334
1391
|
<td>
|
|
1335
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1392
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 19</span>
|
|
1336
1393
|
|
|
1337
|
-
<span class='
|
|
1338
|
-
<span class='
|
|
1339
|
-
<span class='
|
|
1340
|
-
</pre>
|
|
1394
|
+
<span class='kw'>def</span> <span class='id numFmtId'>numFmtId</span>
|
|
1395
|
+
<span class='ivar'>@numFmtId</span>
|
|
1396
|
+
<span class='kw'>end</span></pre>
|
|
1341
1397
|
</td>
|
|
1342
1398
|
</tr>
|
|
1343
1399
|
</table>
|
|
@@ -1355,9 +1411,8 @@ id of the numFmt to apply to this style
|
|
|
1355
1411
|
|
|
1356
1412
|
</p><div class="docstring">
|
|
1357
1413
|
<div class="discussion">
|
|
1358
|
-
|
|
1359
|
-
indicates if the cell has a pivot table drop down button
|
|
1360
|
-
</p>
|
|
1414
|
+
|
|
1415
|
+
<p>indicates if the cell has a pivot table drop down button</p>
|
|
1361
1416
|
|
|
1362
1417
|
|
|
1363
1418
|
</div>
|
|
@@ -1384,17 +1439,16 @@ indicates if the cell has a pivot table drop down button
|
|
|
1384
1439
|
<pre class="lines">
|
|
1385
1440
|
|
|
1386
1441
|
|
|
1387
|
-
42
|
|
1388
1442
|
43
|
|
1389
|
-
44
|
|
1443
|
+
44
|
|
1444
|
+
45</pre>
|
|
1390
1445
|
</td>
|
|
1391
1446
|
<td>
|
|
1392
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1447
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 43</span>
|
|
1393
1448
|
|
|
1394
|
-
<span class='
|
|
1395
|
-
<span class='
|
|
1396
|
-
<span class='
|
|
1397
|
-
</pre>
|
|
1449
|
+
<span class='kw'>def</span> <span class='id pivotButton'>pivotButton</span>
|
|
1450
|
+
<span class='ivar'>@pivotButton</span>
|
|
1451
|
+
<span class='kw'>end</span></pre>
|
|
1398
1452
|
</td>
|
|
1399
1453
|
</tr>
|
|
1400
1454
|
</table>
|
|
@@ -1412,9 +1466,8 @@ indicates if the cell has a pivot table drop down button
|
|
|
1412
1466
|
|
|
1413
1467
|
</p><div class="docstring">
|
|
1414
1468
|
<div class="discussion">
|
|
1415
|
-
|
|
1416
|
-
The cell protection for this style
|
|
1417
|
-
</p>
|
|
1469
|
+
|
|
1470
|
+
<p>The cell protection for this style</p>
|
|
1418
1471
|
|
|
1419
1472
|
|
|
1420
1473
|
</div>
|
|
@@ -1448,17 +1501,16 @@ The cell protection for this style
|
|
|
1448
1501
|
<pre class="lines">
|
|
1449
1502
|
|
|
1450
1503
|
|
|
1451
|
-
14
|
|
1452
1504
|
15
|
|
1453
|
-
16
|
|
1505
|
+
16
|
|
1506
|
+
17</pre>
|
|
1454
1507
|
</td>
|
|
1455
1508
|
<td>
|
|
1456
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1509
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 15</span>
|
|
1457
1510
|
|
|
1458
|
-
<span class='
|
|
1459
|
-
<span class='
|
|
1460
|
-
<span class='
|
|
1461
|
-
</pre>
|
|
1511
|
+
<span class='kw'>def</span> <span class='id protection'>protection</span>
|
|
1512
|
+
<span class='ivar'>@protection</span>
|
|
1513
|
+
<span class='kw'>end</span></pre>
|
|
1462
1514
|
</td>
|
|
1463
1515
|
</tr>
|
|
1464
1516
|
</table>
|
|
@@ -1476,9 +1528,8 @@ The cell protection for this style
|
|
|
1476
1528
|
|
|
1477
1529
|
</p><div class="docstring">
|
|
1478
1530
|
<div class="discussion">
|
|
1479
|
-
|
|
1480
|
-
indecates if text should be prefixed by a single quote in the cell
|
|
1481
|
-
</p>
|
|
1531
|
+
|
|
1532
|
+
<p>indecates if text should be prefixed by a single quote in the cell</p>
|
|
1482
1533
|
|
|
1483
1534
|
|
|
1484
1535
|
</div>
|
|
@@ -1505,17 +1556,16 @@ indecates if text should be prefixed by a single quote in the cell
|
|
|
1505
1556
|
<pre class="lines">
|
|
1506
1557
|
|
|
1507
1558
|
|
|
1508
|
-
38
|
|
1509
1559
|
39
|
|
1510
|
-
40
|
|
1560
|
+
40
|
|
1561
|
+
41</pre>
|
|
1511
1562
|
</td>
|
|
1512
1563
|
<td>
|
|
1513
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1564
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 39</span>
|
|
1514
1565
|
|
|
1515
|
-
<span class='
|
|
1516
|
-
<span class='
|
|
1517
|
-
<span class='
|
|
1518
|
-
</pre>
|
|
1566
|
+
<span class='kw'>def</span> <span class='id quotePrefix'>quotePrefix</span>
|
|
1567
|
+
<span class='ivar'>@quotePrefix</span>
|
|
1568
|
+
<span class='kw'>end</span></pre>
|
|
1519
1569
|
</td>
|
|
1520
1570
|
</tr>
|
|
1521
1571
|
</table>
|
|
@@ -1533,10 +1583,9 @@ indecates if text should be prefixed by a single quote in the cell
|
|
|
1533
1583
|
|
|
1534
1584
|
</p><div class="docstring">
|
|
1535
1585
|
<div class="discussion">
|
|
1536
|
-
|
|
1537
|
-
index (0 based) of cellStylesXfs item to be used in this style. Only
|
|
1538
|
-
applies to cellXfs items
|
|
1539
|
-
</p>
|
|
1586
|
+
|
|
1587
|
+
<p>index (0 based) of cellStylesXfs item to be used in this style. Only
|
|
1588
|
+
applies to cellXfs items</p>
|
|
1540
1589
|
|
|
1541
1590
|
|
|
1542
1591
|
</div>
|
|
@@ -1563,17 +1612,16 @@ applies to cellXfs items
|
|
|
1563
1612
|
<pre class="lines">
|
|
1564
1613
|
|
|
1565
1614
|
|
|
1566
|
-
34
|
|
1567
1615
|
35
|
|
1568
|
-
36
|
|
1616
|
+
36
|
|
1617
|
+
37</pre>
|
|
1569
1618
|
</td>
|
|
1570
1619
|
<td>
|
|
1571
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1620
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 35</span>
|
|
1572
1621
|
|
|
1573
|
-
<span class='
|
|
1574
|
-
<span class='
|
|
1575
|
-
<span class='
|
|
1576
|
-
</pre>
|
|
1622
|
+
<span class='kw'>def</span> <span class='id xfId'>xfId</span>
|
|
1623
|
+
<span class='ivar'>@xfId</span>
|
|
1624
|
+
<span class='kw'>end</span></pre>
|
|
1577
1625
|
</td>
|
|
1578
1626
|
</tr>
|
|
1579
1627
|
</table>
|
|
@@ -1595,9 +1643,8 @@ applies to cellXfs items
|
|
|
1595
1643
|
|
|
1596
1644
|
</p><div class="docstring">
|
|
1597
1645
|
<div class="discussion">
|
|
1598
|
-
|
|
1599
|
-
Serializes the xf elemen
|
|
1600
|
-
</p>
|
|
1646
|
+
|
|
1647
|
+
<p>Serializes the xf elemen</p>
|
|
1601
1648
|
|
|
1602
1649
|
|
|
1603
1650
|
</div>
|
|
@@ -1616,9 +1663,8 @@ Serializes the xf elemen
|
|
|
1616
1663
|
|
|
1617
1664
|
|
|
1618
1665
|
—
|
|
1619
|
-
<div class='inline'
|
|
1620
|
-
The document builder instance this objects xml will be added to
|
|
1621
|
-
</p>
|
|
1666
|
+
<div class='inline'>
|
|
1667
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
1622
1668
|
</div>
|
|
1623
1669
|
|
|
1624
1670
|
</li>
|
|
@@ -1645,23 +1691,22 @@ The document builder instance this objects xml will be added to.
|
|
|
1645
1691
|
<pre class="lines">
|
|
1646
1692
|
|
|
1647
1693
|
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1694
|
+
131
|
|
1695
|
+
132
|
|
1696
|
+
133
|
|
1697
|
+
134
|
|
1698
|
+
135
|
|
1699
|
+
136</pre>
|
|
1654
1700
|
</td>
|
|
1655
1701
|
<td>
|
|
1656
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line
|
|
1657
|
-
|
|
1658
|
-
<span class='
|
|
1659
|
-
<span class='xml
|
|
1660
|
-
<span class='alignment
|
|
1661
|
-
<span class='protection
|
|
1662
|
-
<span class='rbrace
|
|
1663
|
-
<span class='
|
|
1664
|
-
</pre>
|
|
1702
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/xf.rb', line 131</span>
|
|
1703
|
+
|
|
1704
|
+
<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>
|
|
1705
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id xf'>xf</span><span class='lparen'>(</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 reject'>reject</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'>:alignment</span><span class='comma'>,</span> <span class='symbol'>:protection</span><span class='comma'>,</span> <span class='symbol'>:extList</span><span class='comma'>,</span> <span class='symbol'>:name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id include?'>include?</span> <span class='id k'>k</span><span class='period'>.</span><span class='id to_sym'>to_sym</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
1706
|
+
<span class='id alignment'>alignment</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='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id alignment'>alignment</span>
|
|
1707
|
+
<span class='id protection'>protection</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='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id protection'>protection</span>
|
|
1708
|
+
<span class='rbrace'>}</span>
|
|
1709
|
+
<span class='kw'>end</span></pre>
|
|
1665
1710
|
</td>
|
|
1666
1711
|
</tr>
|
|
1667
1712
|
</table>
|
|
@@ -1672,9 +1717,9 @@ The document builder instance this objects xml will be added to.
|
|
|
1672
1717
|
</div>
|
|
1673
1718
|
|
|
1674
1719
|
<div id="footer">
|
|
1675
|
-
Generated on
|
|
1720
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
|
1676
1721
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1677
|
-
0.7.3 (ruby-1.
|
|
1722
|
+
0.7.3 (ruby-1.9.3).
|
|
1678
1723
|
</div>
|
|
1679
1724
|
|
|
1680
1725
|
</body>
|