axlsx 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- 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/TableStyle.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::TableStyle
|
8
8
|
|
9
|
-
—
|
9
|
+
— AXLSX
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -99,16 +99,14 @@
|
|
99
99
|
|
100
100
|
<div class="note notetag">
|
101
101
|
<strong>Note:</strong>
|
102
|
-
<div class='inline'
|
103
|
-
Table are not supported in this version and only the defaults required for
|
104
|
-
a valid workbook are created
|
105
|
-
</p>
|
102
|
+
<div class='inline'>
|
103
|
+
<p>Table are not supported in this version and only the defaults required for
|
104
|
+
a valid workbook are created.</p>
|
106
105
|
</div>
|
107
106
|
</div>
|
108
107
|
|
109
|
-
|
110
|
-
A single table style definition and is a collection for tableStyleElements
|
111
|
-
</p>
|
108
|
+
|
109
|
+
<p>A single table style definition and is a collection for tableStyleElements</p>
|
112
110
|
|
113
111
|
|
114
112
|
</div>
|
@@ -144,9 +142,8 @@ A single table style definition and is a collection for tableStyleElements
|
|
144
142
|
|
145
143
|
|
146
144
|
|
147
|
-
<span class="summary_desc"><div class='inline'
|
148
|
-
The name of this table style
|
149
|
-
</p>
|
145
|
+
<span class="summary_desc"><div class='inline'>
|
146
|
+
<p>The name of this table style.</p>
|
150
147
|
</div></span>
|
151
148
|
|
152
149
|
</li>
|
@@ -171,9 +168,8 @@ The name of this table style.
|
|
171
168
|
|
172
169
|
|
173
170
|
|
174
|
-
<span class="summary_desc"><div class='inline'
|
175
|
-
indicates if this style should be applied to pivot tables
|
176
|
-
</p>
|
171
|
+
<span class="summary_desc"><div class='inline'>
|
172
|
+
<p>indicates if this style should be applied to pivot tables.</p>
|
177
173
|
</div></span>
|
178
174
|
|
179
175
|
</li>
|
@@ -198,9 +194,8 @@ indicates if this style should be applied to pivot tables.
|
|
198
194
|
|
199
195
|
|
200
196
|
|
201
|
-
<span class="summary_desc"><div class='inline'
|
202
|
-
indicates if this style should be applied to tables
|
203
|
-
</p>
|
197
|
+
<span class="summary_desc"><div class='inline'>
|
198
|
+
<p>indicates if this style should be applied to tables.</p>
|
204
199
|
</div></span>
|
205
200
|
|
206
201
|
</li>
|
@@ -245,9 +240,8 @@ indicates if this style should be applied to tables.
|
|
245
240
|
|
246
241
|
|
247
242
|
|
248
|
-
<span class="summary_desc"><div class='inline'
|
249
|
-
creates a new TableStyle object
|
250
|
-
</p>
|
243
|
+
<span class="summary_desc"><div class='inline'>
|
244
|
+
<p>creates a new TableStyle object.</p>
|
251
245
|
</div></span>
|
252
246
|
|
253
247
|
</li>
|
@@ -269,9 +263,8 @@ creates a new TableStyle object.
|
|
269
263
|
|
270
264
|
|
271
265
|
|
272
|
-
<span class="summary_desc"><div class='inline'
|
273
|
-
Serializes the table style
|
274
|
-
</p>
|
266
|
+
<span class="summary_desc"><div class='inline'>
|
267
|
+
<p>Serializes the table style.</p>
|
275
268
|
</div></span>
|
276
269
|
|
277
270
|
</li>
|
@@ -285,12 +278,7 @@ Serializes the table style.
|
|
285
278
|
|
286
279
|
|
287
280
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
|
292
|
-
<p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#%3C%3C-instance_method" title="Axlsx::SimpleTypedList#<< (method)">#<<</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%3D%3D-instance_method" title="Axlsx::SimpleTypedList#== (method)">#==</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%5B%5D%3D-instance_method" title="Axlsx::SimpleTypedList#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete-instance_method" title="Axlsx::SimpleTypedList#delete (method)">#delete</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete_at-instance_method" title="Axlsx::SimpleTypedList#delete_at (method)">#delete_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#lock-instance_method" title="Axlsx::SimpleTypedList#lock (method)">#lock</a></span>, <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="SimpleTypedList.html#protected%3F-instance_method" title="Axlsx::SimpleTypedList#protected? (method)">#protected?</a></span>, <span class='object_link'><a href="SimpleTypedList.html#push-instance_method" title="Axlsx::SimpleTypedList#push (method)">#push</a></span>, <span class='object_link'><a href="SimpleTypedList.html#unlock-instance_method" title="Axlsx::SimpleTypedList#unlock (method)">#unlock</a></span></p>
|
293
|
-
<div id="constructor_details" class="method_details_list">
|
281
|
+
<div id="constructor_details" class="method_details_list">
|
294
282
|
<h2>Constructor Details</h2>
|
295
283
|
|
296
284
|
<div class="method_details first">
|
@@ -302,9 +290,8 @@ Serializes the table style.
|
|
302
290
|
|
303
291
|
</p><div class="docstring">
|
304
292
|
<div class="discussion">
|
305
|
-
|
306
|
-
creates a new TableStyle object
|
307
|
-
</p>
|
293
|
+
|
294
|
+
<p>creates a new TableStyle object</p>
|
308
295
|
|
309
296
|
|
310
297
|
</div>
|
@@ -336,9 +323,8 @@ creates a new TableStyle object
|
|
336
323
|
|
337
324
|
|
338
325
|
—
|
339
|
-
<div class='inline'
|
340
|
-
a customizable set of options
|
341
|
-
</p>
|
326
|
+
<div class='inline'>
|
327
|
+
<p>a customizable set of options</p>
|
342
328
|
</div>
|
343
329
|
|
344
330
|
</li>
|
@@ -385,9 +371,8 @@ a customizable set of options
|
|
385
371
|
|
386
372
|
|
387
373
|
—
|
388
|
-
<div class='inline'
|
389
|
-
if name option is not provided
|
390
|
-
</p>
|
374
|
+
<div class='inline'>
|
375
|
+
<p>if name option is not provided.</p>
|
391
376
|
</div>
|
392
377
|
|
393
378
|
</li>
|
@@ -411,14 +396,13 @@ if name option is not provided.
|
|
411
396
|
<td>
|
412
397
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 23</span>
|
413
398
|
|
414
|
-
<span class='
|
415
|
-
<span class='
|
416
|
-
<span class='options
|
417
|
-
<span class='
|
418
|
-
<span class='
|
419
|
-
<span class='
|
420
|
-
<span class='
|
421
|
-
</pre>
|
399
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
400
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id name'>name</span> <span class='op'>=</span> <span class='id name'>name</span>
|
401
|
+
<span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
|
402
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</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='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
403
|
+
<span class='kw'>end</span>
|
404
|
+
<span class='kw'>super</span> <span class='const'>TableStyleElement</span>
|
405
|
+
<span class='kw'>end</span></pre>
|
422
406
|
</td>
|
423
407
|
</tr>
|
424
408
|
</table>
|
@@ -451,9 +435,8 @@ if name option is not provided.
|
|
451
435
|
|
452
436
|
</p><div class="docstring">
|
453
437
|
<div class="discussion">
|
454
|
-
|
455
|
-
The name of this table style
|
456
|
-
</p>
|
438
|
+
|
439
|
+
<p>The name of this table style</p>
|
457
440
|
|
458
441
|
|
459
442
|
</div>
|
@@ -487,10 +470,9 @@ The name of this table style
|
|
487
470
|
<td>
|
488
471
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 8</span>
|
489
472
|
|
490
|
-
<span class='
|
491
|
-
<span class='
|
492
|
-
<span class='
|
493
|
-
</pre>
|
473
|
+
<span class='kw'>def</span> <span class='id name'>name</span>
|
474
|
+
<span class='ivar'>@name</span>
|
475
|
+
<span class='kw'>end</span></pre>
|
494
476
|
</td>
|
495
477
|
</tr>
|
496
478
|
</table>
|
@@ -508,9 +490,8 @@ The name of this table style
|
|
508
490
|
|
509
491
|
</p><div class="docstring">
|
510
492
|
<div class="discussion">
|
511
|
-
|
512
|
-
indicates if this style should be applied to pivot tables
|
513
|
-
</p>
|
493
|
+
|
494
|
+
<p>indicates if this style should be applied to pivot tables</p>
|
514
495
|
|
515
496
|
|
516
497
|
</div>
|
@@ -544,10 +525,9 @@ indicates if this style should be applied to pivot tables
|
|
544
525
|
<td>
|
545
526
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 12</span>
|
546
527
|
|
547
|
-
<span class='
|
548
|
-
<span class='
|
549
|
-
<span class='
|
550
|
-
</pre>
|
528
|
+
<span class='kw'>def</span> <span class='id pivot'>pivot</span>
|
529
|
+
<span class='ivar'>@pivot</span>
|
530
|
+
<span class='kw'>end</span></pre>
|
551
531
|
</td>
|
552
532
|
</tr>
|
553
533
|
</table>
|
@@ -565,9 +545,8 @@ indicates if this style should be applied to pivot tables
|
|
565
545
|
|
566
546
|
</p><div class="docstring">
|
567
547
|
<div class="discussion">
|
568
|
-
|
569
|
-
indicates if this style should be applied to tables
|
570
|
-
</p>
|
548
|
+
|
549
|
+
<p>indicates if this style should be applied to tables</p>
|
571
550
|
|
572
551
|
|
573
552
|
</div>
|
@@ -601,10 +580,9 @@ indicates if this style should be applied to tables
|
|
601
580
|
<td>
|
602
581
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 16</span>
|
603
582
|
|
604
|
-
<span class='
|
605
|
-
<span class='
|
606
|
-
<span class='
|
607
|
-
</pre>
|
583
|
+
<span class='kw'>def</span> <span class='id table'>table</span>
|
584
|
+
<span class='ivar'>@table</span>
|
585
|
+
<span class='kw'>end</span></pre>
|
608
586
|
</td>
|
609
587
|
</tr>
|
610
588
|
</table>
|
@@ -626,9 +604,8 @@ indicates if this style should be applied to tables
|
|
626
604
|
|
627
605
|
</p><div class="docstring">
|
628
606
|
<div class="discussion">
|
629
|
-
|
630
|
-
Serializes the table style
|
631
|
-
</p>
|
607
|
+
|
608
|
+
<p>Serializes the table style</p>
|
632
609
|
|
633
610
|
|
634
611
|
</div>
|
@@ -647,9 +624,8 @@ Serializes the table style
|
|
647
624
|
|
648
625
|
|
649
626
|
—
|
650
|
-
<div class='inline'
|
651
|
-
The document builder instance this objects xml will be added to
|
652
|
-
</p>
|
627
|
+
<div class='inline'>
|
628
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
653
629
|
</div>
|
654
630
|
|
655
631
|
</li>
|
@@ -676,21 +652,20 @@ The document builder instance this objects xml will be added to.
|
|
676
652
|
<pre class="lines">
|
677
653
|
|
678
654
|
|
679
|
-
38
|
680
|
-
39
|
681
|
-
40
|
682
655
|
41
|
683
|
-
42
|
656
|
+
42
|
657
|
+
43
|
658
|
+
44
|
659
|
+
45</pre>
|
684
660
|
</td>
|
685
661
|
<td>
|
686
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line
|
687
|
-
|
688
|
-
<span class='
|
689
|
-
<span class='attr
|
690
|
-
<span class='attr
|
691
|
-
<span class='xml
|
692
|
-
<span class='
|
693
|
-
</pre>
|
662
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 41</span>
|
663
|
+
|
664
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
665
|
+
<span class='id attr'>attr</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='period'>.</span><span class='id select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span> <span class='id v'>v</span><span class='op'>|</span> <span class='lbracket'>[</span><span class='symbol'>:name</span><span class='comma'>,</span> <span class='symbol'>:pivot</span><span class='comma'>,</span> <span class='symbol'>:table</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id include?'>include?</span> <span class='id k'>k</span> <span class='rbrace'>}</span>
|
666
|
+
<span class='id attr'>attr</span><span class='lbracket'>[</span><span class='symbol'>:count</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id size'>size</span>
|
667
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id tableStyle'>tableStyle</span><span class='lparen'>(</span><span class='id attr'>attr</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='kw'>self</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id table_style_el'>table_style_el</span><span class='op'>|</span> <span class='id table_style_el'>table_style_el</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
|
668
|
+
<span class='kw'>end</span></pre>
|
694
669
|
</td>
|
695
670
|
</tr>
|
696
671
|
</table>
|
@@ -701,9 +676,9 @@ The document builder instance this objects xml will be added to.
|
|
701
676
|
</div>
|
702
677
|
|
703
678
|
<div id="footer">
|
704
|
-
Generated on
|
679
|
+
Generated on Sat Nov 26 13:16:39 2011 by
|
705
680
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
706
|
-
0.7.3 (ruby-1.
|
681
|
+
0.7.3 (ruby-1.9.3).
|
707
682
|
</div>
|
708
683
|
|
709
684
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::TableStyleElement
|
8
8
|
|
9
|
-
—
|
9
|
+
— AXLSX
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -97,16 +97,14 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'
|
101
|
-
tables and table styles are not supported in this version. This class
|
102
|
-
exists in preparation for that support
|
103
|
-
</p>
|
100
|
+
<div class='inline'>
|
101
|
+
<p>tables and table styles are not supported in this version. This class
|
102
|
+
exists in preparation for that support.</p>
|
104
103
|
</div>
|
105
104
|
</div>
|
106
105
|
|
107
|
-
|
108
|
-
an element of style that belongs to a table style
|
109
|
-
</p>
|
106
|
+
|
107
|
+
<p>an element of style that belongs to a table style.</p>
|
110
108
|
|
111
109
|
|
112
110
|
</div>
|
@@ -138,9 +136,8 @@ an element of style that belongs to a table style.
|
|
138
136
|
|
139
137
|
|
140
138
|
|
141
|
-
<span class="summary_desc"><div class='inline'
|
142
|
-
The dxfId this style element points to
|
143
|
-
</p>
|
139
|
+
<span class="summary_desc"><div class='inline'>
|
140
|
+
<p>The dxfId this style element points to.</p>
|
144
141
|
</div></span>
|
145
142
|
|
146
143
|
</li>
|
@@ -165,10 +162,9 @@ The dxfId this style element points to.
|
|
165
162
|
|
166
163
|
|
167
164
|
|
168
|
-
<span class="summary_desc"><div class='inline'
|
169
|
-
Number of rows or columns used in striping when the type is firstRowStripe,
|
170
|
-
secondRowStripe, firstColumnStripe, or secondColumnStripe
|
171
|
-
</p>
|
165
|
+
<span class="summary_desc"><div class='inline'>
|
166
|
+
<p>Number of rows or columns used in striping when the type is firstRowStripe,
|
167
|
+
secondRowStripe, firstColumnStripe, or secondColumnStripe.</p>
|
172
168
|
</div></span>
|
173
169
|
|
174
170
|
</li>
|
@@ -193,9 +189,8 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.
|
|
193
189
|
|
194
190
|
|
195
191
|
|
196
|
-
<span class="summary_desc"><div class='inline'
|
197
|
-
The type of style element
|
198
|
-
</p>
|
192
|
+
<span class="summary_desc"><div class='inline'>
|
193
|
+
<p>The type of style element.</p>
|
199
194
|
</div></span>
|
200
195
|
|
201
196
|
</li>
|
@@ -232,9 +227,8 @@ The type of style element.
|
|
232
227
|
|
233
228
|
|
234
229
|
|
235
|
-
<span class="summary_desc"><div class='inline'
|
236
|
-
creates a new TableStyleElement object
|
237
|
-
</p>
|
230
|
+
<span class="summary_desc"><div class='inline'>
|
231
|
+
<p>creates a new TableStyleElement object.</p>
|
238
232
|
</div></span>
|
239
233
|
|
240
234
|
</li>
|
@@ -256,9 +250,8 @@ creates a new TableStyleElement object.
|
|
256
250
|
|
257
251
|
|
258
252
|
|
259
|
-
<span class="summary_desc"><div class='inline'
|
260
|
-
Serializes the table style element
|
261
|
-
</p>
|
253
|
+
<span class="summary_desc"><div class='inline'>
|
254
|
+
<p>Serializes the table style element.</p>
|
262
255
|
</div></span>
|
263
256
|
|
264
257
|
</li>
|
@@ -279,9 +272,8 @@ Serializes the table style element.
|
|
279
272
|
|
280
273
|
</p><div class="docstring">
|
281
274
|
<div class="discussion">
|
282
|
-
|
283
|
-
creates a new TableStyleElement object
|
284
|
-
</p>
|
275
|
+
|
276
|
+
<p>creates a new TableStyleElement object</p>
|
285
277
|
|
286
278
|
|
287
279
|
</div>
|
@@ -302,9 +294,8 @@ creates a new TableStyleElement object
|
|
302
294
|
|
303
295
|
|
304
296
|
—
|
305
|
-
<div class='inline'
|
306
|
-
a customizable set of options
|
307
|
-
</p>
|
297
|
+
<div class='inline'>
|
298
|
+
<p>a customizable set of options</p>
|
308
299
|
</div>
|
309
300
|
|
310
301
|
</li>
|
@@ -363,12 +354,11 @@ a customizable set of options
|
|
363
354
|
<td>
|
364
355
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 49</span>
|
365
356
|
|
366
|
-
<span class='
|
367
|
-
<span class='options
|
368
|
-
<span class='
|
369
|
-
<span class='
|
370
|
-
<span class='
|
371
|
-
</pre>
|
357
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
358
|
+
<span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
|
359
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</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='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
360
|
+
<span class='kw'>end</span>
|
361
|
+
<span class='kw'>end</span></pre>
|
372
362
|
</td>
|
373
363
|
</tr>
|
374
364
|
</table>
|
@@ -391,9 +381,8 @@ a customizable set of options
|
|
391
381
|
|
392
382
|
</p><div class="docstring">
|
393
383
|
<div class="discussion">
|
394
|
-
|
395
|
-
The dxfId this style element points to
|
396
|
-
</p>
|
384
|
+
|
385
|
+
<p>The dxfId this style element points to</p>
|
397
386
|
|
398
387
|
|
399
388
|
</div>
|
@@ -427,10 +416,9 @@ The dxfId this style element points to
|
|
427
416
|
<td>
|
428
417
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 43</span>
|
429
418
|
|
430
|
-
<span class='
|
431
|
-
<span class='
|
432
|
-
<span class='
|
433
|
-
</pre>
|
419
|
+
<span class='kw'>def</span> <span class='id dxfId'>dxfId</span>
|
420
|
+
<span class='ivar'>@dxfId</span>
|
421
|
+
<span class='kw'>end</span></pre>
|
434
422
|
</td>
|
435
423
|
</tr>
|
436
424
|
</table>
|
@@ -448,10 +436,9 @@ The dxfId this style element points to
|
|
448
436
|
|
449
437
|
</p><div class="docstring">
|
450
438
|
<div class="discussion">
|
451
|
-
|
452
|
-
Number of rows or columns used in striping when the type is firstRowStripe,
|
453
|
-
secondRowStripe, firstColumnStripe, or secondColumnStripe
|
454
|
-
</p>
|
439
|
+
|
440
|
+
<p>Number of rows or columns used in striping when the type is firstRowStripe,
|
441
|
+
secondRowStripe, firstColumnStripe, or secondColumnStripe.</p>
|
455
442
|
|
456
443
|
|
457
444
|
</div>
|
@@ -485,10 +472,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.
|
|
485
472
|
<td>
|
486
473
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 39</span>
|
487
474
|
|
488
|
-
<span class='
|
489
|
-
<span class='
|
490
|
-
<span class='
|
491
|
-
</pre>
|
475
|
+
<span class='kw'>def</span> <span class='id size'>size</span>
|
476
|
+
<span class='ivar'>@size</span>
|
477
|
+
<span class='kw'>end</span></pre>
|
492
478
|
</td>
|
493
479
|
</tr>
|
494
480
|
</table>
|
@@ -506,39 +492,37 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.
|
|
506
492
|
|
507
493
|
</p><div class="docstring">
|
508
494
|
<div class="discussion">
|
509
|
-
|
510
|
-
The type of style element. The following type are allowed
|
511
|
-
|
512
|
-
<pre class="code">
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
<span class='symbol val'>:pageFieldValues</span>
|
541
|
-
</pre>
|
495
|
+
|
496
|
+
<p>The type of style element. The following type are allowed</p>
|
497
|
+
|
498
|
+
<pre class="code"><span class='symbol'>:wholeTable</span>
|
499
|
+
<span class='symbol'>:headerRow</span>
|
500
|
+
<span class='symbol'>:totalRow</span>
|
501
|
+
<span class='symbol'>:firstColumn</span>
|
502
|
+
<span class='symbol'>:lastColumn</span>
|
503
|
+
<span class='symbol'>:firstRowStripe</span>
|
504
|
+
<span class='symbol'>:secondRowStripe</span>
|
505
|
+
<span class='symbol'>:firstColumnStripe</span>
|
506
|
+
<span class='symbol'>:secondColumnStripe</span>
|
507
|
+
<span class='symbol'>:firstHeaderCell</span>
|
508
|
+
<span class='symbol'>:lastHeaderCell</span>
|
509
|
+
<span class='symbol'>:firstTotalCell</span>
|
510
|
+
<span class='symbol'>:lastTotalCell</span>
|
511
|
+
<span class='symbol'>:firstSubtotalColumn</span>
|
512
|
+
<span class='symbol'>:secondSubtotalColumn</span>
|
513
|
+
<span class='symbol'>:thirdSubtotalColumn</span>
|
514
|
+
<span class='symbol'>:firstSubtotalRow</span>
|
515
|
+
<span class='symbol'>:secondSubtotalRow</span>
|
516
|
+
<span class='symbol'>:thirdSubtotalRow</span>
|
517
|
+
<span class='symbol'>:blankRow</span>
|
518
|
+
<span class='symbol'>:firstColumnSubheading</span>
|
519
|
+
<span class='symbol'>:secondColumnSubheading</span>
|
520
|
+
<span class='symbol'>:thirdColumnSubheading</span>
|
521
|
+
<span class='symbol'>:firstRowSubheading</span>
|
522
|
+
<span class='symbol'>:secondRowSubheading</span>
|
523
|
+
<span class='symbol'>:thirdRowSubheading</span>
|
524
|
+
<span class='symbol'>:pageFieldLabels</span>
|
525
|
+
<span class='symbol'>:pageFieldValues</span></pre>
|
542
526
|
|
543
527
|
|
544
528
|
</div>
|
@@ -572,10 +556,9 @@ The type of style element. The following type are allowed
|
|
572
556
|
<td>
|
573
557
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 35</span>
|
574
558
|
|
575
|
-
<span class='
|
576
|
-
<span class='
|
577
|
-
<span class='
|
578
|
-
</pre>
|
559
|
+
<span class='kw'>def</span> <span class='id type'>type</span>
|
560
|
+
<span class='ivar'>@type</span>
|
561
|
+
<span class='kw'>end</span></pre>
|
579
562
|
</td>
|
580
563
|
</tr>
|
581
564
|
</table>
|
@@ -597,9 +580,8 @@ The type of style element. The following type are allowed
|
|
597
580
|
|
598
581
|
</p><div class="docstring">
|
599
582
|
<div class="discussion">
|
600
|
-
|
601
|
-
Serializes the table style element
|
602
|
-
</p>
|
583
|
+
|
584
|
+
<p>Serializes the table style element</p>
|
603
585
|
|
604
586
|
|
605
587
|
</div>
|
@@ -618,9 +600,8 @@ Serializes the table style element
|
|
618
600
|
|
619
601
|
|
620
602
|
—
|
621
|
-
<div class='inline'
|
622
|
-
The document builder instance this objects xml will be added to
|
623
|
-
</p>
|
603
|
+
<div class='inline'>
|
604
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
624
605
|
</div>
|
625
606
|
|
626
607
|
</li>
|
@@ -647,17 +628,16 @@ The document builder instance this objects xml will be added to.
|
|
647
628
|
<pre class="lines">
|
648
629
|
|
649
630
|
|
650
|
-
|
651
|
-
|
652
|
-
|
631
|
+
67
|
632
|
+
68
|
633
|
+
69</pre>
|
653
634
|
</td>
|
654
635
|
<td>
|
655
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line
|
636
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style_element.rb', line 67</span>
|
656
637
|
|
657
|
-
<span class='
|
658
|
-
<span class='xml
|
659
|
-
<span class='
|
660
|
-
</pre>
|
638
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
639
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id tableStyleElement'>tableStyleElement</span> <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span>
|
640
|
+
<span class='kw'>end</span></pre>
|
661
641
|
</td>
|
662
642
|
</tr>
|
663
643
|
</table>
|
@@ -668,9 +648,9 @@ The document builder instance this objects xml will be added to.
|
|
668
648
|
</div>
|
669
649
|
|
670
650
|
<div id="footer">
|
671
|
-
Generated on
|
651
|
+
Generated on Sat Nov 26 13:16:40 2011 by
|
672
652
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
673
|
-
0.7.3 (ruby-1.
|
653
|
+
0.7.3 (ruby-1.9.3).
|
674
654
|
</div>
|
675
655
|
|
676
656
|
</body>
|