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/BorderPr.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::BorderPr
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -94,9 +94,8 @@
|
|
|
94
94
|
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
|
96
96
|
<div class="discussion">
|
|
97
|
-
|
|
98
|
-
A border part
|
|
99
|
-
</p>
|
|
97
|
+
|
|
98
|
+
<p>A border part.</p>
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
</div>
|
|
@@ -128,9 +127,8 @@ A border part.
|
|
|
128
127
|
|
|
129
128
|
|
|
130
129
|
|
|
131
|
-
<span class="summary_desc"><div class='inline'
|
|
132
|
-
The color of this border part
|
|
133
|
-
</p>
|
|
130
|
+
<span class="summary_desc"><div class='inline'>
|
|
131
|
+
<p>The color of this border part.</p>
|
|
134
132
|
</div></span>
|
|
135
133
|
|
|
136
134
|
</li>
|
|
@@ -155,9 +153,8 @@ The color of this border part.
|
|
|
155
153
|
|
|
156
154
|
|
|
157
155
|
|
|
158
|
-
<span class="summary_desc"><div class='inline'
|
|
159
|
-
The name of this border part
|
|
160
|
-
</p>
|
|
156
|
+
<span class="summary_desc"><div class='inline'>
|
|
157
|
+
<p>The name of this border part.</p>
|
|
161
158
|
</div></span>
|
|
162
159
|
|
|
163
160
|
</li>
|
|
@@ -182,9 +179,8 @@ The name of this border part.
|
|
|
182
179
|
|
|
183
180
|
|
|
184
181
|
|
|
185
|
-
<span class="summary_desc"><div class='inline'
|
|
186
|
-
The syle of this border part
|
|
187
|
-
</p>
|
|
182
|
+
<span class="summary_desc"><div class='inline'>
|
|
183
|
+
<p>The syle of this border part.</p>
|
|
188
184
|
</div></span>
|
|
189
185
|
|
|
190
186
|
</li>
|
|
@@ -221,9 +217,8 @@ The syle of this border part.
|
|
|
221
217
|
|
|
222
218
|
|
|
223
219
|
|
|
224
|
-
<span class="summary_desc"><div class='inline'
|
|
225
|
-
Creates a new Border Part Object
|
|
226
|
-
</p>
|
|
220
|
+
<span class="summary_desc"><div class='inline'>
|
|
221
|
+
<p>Creates a new Border Part Object.</p>
|
|
227
222
|
</div></span>
|
|
228
223
|
|
|
229
224
|
</li>
|
|
@@ -245,9 +240,8 @@ Creates a new Border Part Object.
|
|
|
245
240
|
|
|
246
241
|
|
|
247
242
|
|
|
248
|
-
<span class="summary_desc"><div class='inline'
|
|
249
|
-
Serializes the border part
|
|
250
|
-
</p>
|
|
243
|
+
<span class="summary_desc"><div class='inline'>
|
|
244
|
+
<p>Serializes the border part.</p>
|
|
251
245
|
</div></span>
|
|
252
246
|
|
|
253
247
|
</li>
|
|
@@ -268,9 +262,8 @@ Serializes the border part.
|
|
|
268
262
|
|
|
269
263
|
</p><div class="docstring">
|
|
270
264
|
<div class="discussion">
|
|
271
|
-
|
|
272
|
-
Creates a new Border Part Object
|
|
273
|
-
</p>
|
|
265
|
+
|
|
266
|
+
<p>Creates a new Border Part Object</p>
|
|
274
267
|
|
|
275
268
|
|
|
276
269
|
</div>
|
|
@@ -291,9 +284,8 @@ Creates a new Border Part Object
|
|
|
291
284
|
|
|
292
285
|
|
|
293
286
|
—
|
|
294
|
-
<div class='inline'
|
|
295
|
-
a customizable set of options
|
|
296
|
-
</p>
|
|
287
|
+
<div class='inline'>
|
|
288
|
+
<p>a customizable set of options</p>
|
|
297
289
|
</div>
|
|
298
290
|
|
|
299
291
|
</li>
|
|
@@ -359,12 +351,11 @@ a customizable set of options
|
|
|
359
351
|
<td>
|
|
360
352
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border_pr.rb', line 46</span>
|
|
361
353
|
|
|
362
|
-
<span class='
|
|
363
|
-
<span class='options
|
|
364
|
-
<span class='
|
|
365
|
-
<span class='
|
|
366
|
-
<span class='
|
|
367
|
-
</pre>
|
|
354
|
+
<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>
|
|
355
|
+
<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>
|
|
356
|
+
<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>
|
|
357
|
+
<span class='kw'>end</span>
|
|
358
|
+
<span class='kw'>end</span></pre>
|
|
368
359
|
</td>
|
|
369
360
|
</tr>
|
|
370
361
|
</table>
|
|
@@ -387,9 +378,8 @@ a customizable set of options
|
|
|
387
378
|
|
|
388
379
|
</p><div class="docstring">
|
|
389
380
|
<div class="discussion">
|
|
390
|
-
|
|
391
|
-
The color of this border part
|
|
392
|
-
</p>
|
|
381
|
+
|
|
382
|
+
<p>The color of this border part.</p>
|
|
393
383
|
|
|
394
384
|
|
|
395
385
|
</div>
|
|
@@ -407,9 +397,8 @@ The color of this border part.
|
|
|
407
397
|
|
|
408
398
|
|
|
409
399
|
—
|
|
410
|
-
<div class='inline'
|
|
411
|
-
The color of this border part
|
|
412
|
-
</p>
|
|
400
|
+
<div class='inline'>
|
|
401
|
+
<p>The color of this border part.</p>
|
|
413
402
|
</div>
|
|
414
403
|
|
|
415
404
|
</li>
|
|
@@ -429,10 +418,9 @@ The color of this border part.
|
|
|
429
418
|
<td>
|
|
430
419
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border_pr.rb', line 6</span>
|
|
431
420
|
|
|
432
|
-
<span class='
|
|
433
|
-
<span class='
|
|
434
|
-
<span class='
|
|
435
|
-
</pre>
|
|
421
|
+
<span class='kw'>def</span> <span class='id color'>color</span>
|
|
422
|
+
<span class='ivar'>@color</span>
|
|
423
|
+
<span class='kw'>end</span></pre>
|
|
436
424
|
</td>
|
|
437
425
|
</tr>
|
|
438
426
|
</table>
|
|
@@ -453,26 +441,23 @@ The color of this border part.
|
|
|
453
441
|
|
|
454
442
|
<div class="note notetag">
|
|
455
443
|
<strong>Note:</strong>
|
|
456
|
-
<div class='inline'
|
|
457
|
-
The following are allowed
|
|
458
|
-
|
|
459
|
-
<pre class="code">
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
<span class='symbol val'>:horizontal</span>
|
|
469
|
-
</pre>
|
|
444
|
+
<div class='inline'>
|
|
445
|
+
<p>The following are allowed</p>
|
|
446
|
+
|
|
447
|
+
<pre class="code"><span class='symbol'>:start</span>
|
|
448
|
+
<span class='symbol'>:end</span>
|
|
449
|
+
<span class='symbol'>:left</span>
|
|
450
|
+
<span class='symbol'>:right</span>
|
|
451
|
+
<span class='symbol'>:top</span>
|
|
452
|
+
<span class='symbol'>:bottom</span>
|
|
453
|
+
<span class='symbol'>:diagonal</span>
|
|
454
|
+
<span class='symbol'>:vertical</span>
|
|
455
|
+
<span class='symbol'>:horizontal</span></pre>
|
|
470
456
|
</div>
|
|
471
457
|
</div>
|
|
472
458
|
|
|
473
|
-
|
|
474
|
-
The name of this border part
|
|
475
|
-
</p>
|
|
459
|
+
|
|
460
|
+
<p>The name of this border part</p>
|
|
476
461
|
|
|
477
462
|
|
|
478
463
|
</div>
|
|
@@ -490,9 +475,8 @@ The name of this border part
|
|
|
490
475
|
|
|
491
476
|
|
|
492
477
|
—
|
|
493
|
-
<div class='inline'
|
|
494
|
-
The name of this border part
|
|
495
|
-
</p>
|
|
478
|
+
<div class='inline'>
|
|
479
|
+
<p>The name of this border part</p>
|
|
496
480
|
</div>
|
|
497
481
|
|
|
498
482
|
</li>
|
|
@@ -512,10 +496,9 @@ The name of this border part
|
|
|
512
496
|
<td>
|
|
513
497
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border_pr.rb', line 39</span>
|
|
514
498
|
|
|
515
|
-
<span class='
|
|
516
|
-
<span class='
|
|
517
|
-
<span class='
|
|
518
|
-
</pre>
|
|
499
|
+
<span class='kw'>def</span> <span class='id name'>name</span>
|
|
500
|
+
<span class='ivar'>@name</span>
|
|
501
|
+
<span class='kw'>end</span></pre>
|
|
519
502
|
</td>
|
|
520
503
|
</tr>
|
|
521
504
|
</table>
|
|
@@ -536,31 +519,28 @@ The name of this border part
|
|
|
536
519
|
|
|
537
520
|
<div class="note notetag">
|
|
538
521
|
<strong>Note:</strong>
|
|
539
|
-
<div class='inline'
|
|
540
|
-
The following are allowed
|
|
541
|
-
|
|
542
|
-
<pre class="code">
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
<span class='symbol val'>:slantDashDot</span>
|
|
557
|
-
</pre>
|
|
522
|
+
<div class='inline'>
|
|
523
|
+
<p>The following are allowed</p>
|
|
524
|
+
|
|
525
|
+
<pre class="code"><span class='symbol'>:none</span>
|
|
526
|
+
<span class='symbol'>:thin</span>
|
|
527
|
+
<span class='symbol'>:medium</span>
|
|
528
|
+
<span class='symbol'>:dashed</span>
|
|
529
|
+
<span class='symbol'>:dotted</span>
|
|
530
|
+
<span class='symbol'>:thick</span>
|
|
531
|
+
<span class='symbol'>:double</span>
|
|
532
|
+
<span class='symbol'>:hair</span>
|
|
533
|
+
<span class='symbol'>:mediumDashed</span>
|
|
534
|
+
<span class='symbol'>:dashDot</span>
|
|
535
|
+
<span class='symbol'>:mediumDashDot</span>
|
|
536
|
+
<span class='symbol'>:dashDotDot</span>
|
|
537
|
+
<span class='symbol'>:mediumDashDotDot</span>
|
|
538
|
+
<span class='symbol'>:slantDashDot</span></pre>
|
|
558
539
|
</div>
|
|
559
540
|
</div>
|
|
560
541
|
|
|
561
|
-
|
|
562
|
-
The syle of this border part
|
|
563
|
-
</p>
|
|
542
|
+
|
|
543
|
+
<p>The syle of this border part.</p>
|
|
564
544
|
|
|
565
545
|
|
|
566
546
|
</div>
|
|
@@ -578,9 +558,8 @@ The syle of this border part.
|
|
|
578
558
|
|
|
579
559
|
|
|
580
560
|
—
|
|
581
|
-
<div class='inline'
|
|
582
|
-
The syle of this border part
|
|
583
|
-
</p>
|
|
561
|
+
<div class='inline'>
|
|
562
|
+
<p>The syle of this border part.</p>
|
|
584
563
|
</div>
|
|
585
564
|
|
|
586
565
|
</li>
|
|
@@ -600,10 +579,9 @@ The syle of this border part.
|
|
|
600
579
|
<td>
|
|
601
580
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border_pr.rb', line 25</span>
|
|
602
581
|
|
|
603
|
-
<span class='
|
|
604
|
-
<span class='
|
|
605
|
-
<span class='
|
|
606
|
-
</pre>
|
|
582
|
+
<span class='kw'>def</span> <span class='id style'>style</span>
|
|
583
|
+
<span class='ivar'>@style</span>
|
|
584
|
+
<span class='kw'>end</span></pre>
|
|
607
585
|
</td>
|
|
608
586
|
</tr>
|
|
609
587
|
</table>
|
|
@@ -625,9 +603,8 @@ The syle of this border part.
|
|
|
625
603
|
|
|
626
604
|
</p><div class="docstring">
|
|
627
605
|
<div class="discussion">
|
|
628
|
-
|
|
629
|
-
Serializes the border part
|
|
630
|
-
</p>
|
|
606
|
+
|
|
607
|
+
<p>Serializes the border part</p>
|
|
631
608
|
|
|
632
609
|
|
|
633
610
|
</div>
|
|
@@ -646,9 +623,8 @@ Serializes the border part
|
|
|
646
623
|
|
|
647
624
|
|
|
648
625
|
—
|
|
649
|
-
<div class='inline'
|
|
650
|
-
The document builder instance this objects xml will be added to
|
|
651
|
-
</p>
|
|
626
|
+
<div class='inline'>
|
|
627
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
652
628
|
</div>
|
|
653
629
|
|
|
654
630
|
</li>
|
|
@@ -675,21 +651,20 @@ The document builder instance this objects xml will be added to.
|
|
|
675
651
|
<pre class="lines">
|
|
676
652
|
|
|
677
653
|
|
|
678
|
-
59
|
|
679
|
-
60
|
|
680
|
-
61
|
|
681
654
|
62
|
|
682
|
-
63
|
|
655
|
+
63
|
|
656
|
+
64
|
|
657
|
+
65
|
|
658
|
+
66</pre>
|
|
683
659
|
</td>
|
|
684
660
|
<td>
|
|
685
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border_pr.rb', line
|
|
686
|
-
|
|
687
|
-
<span class='
|
|
688
|
-
<span class='xml
|
|
689
|
-
<span class='
|
|
690
|
-
<span class='rbrace
|
|
691
|
-
<span class='
|
|
692
|
-
</pre>
|
|
661
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border_pr.rb', line 62</span>
|
|
662
|
+
|
|
663
|
+
<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>
|
|
664
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='ivar'>@name</span><span class='comma'>,</span> <span class='symbol'>:style</span> <span class='op'>=></span> <span class='ivar'>@style</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
665
|
+
<span class='ivar'>@color</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='ivar'>@color</span><span class='period'>.</span><span class='id is_a?'>is_a?</span> <span class='const'>Color</span>
|
|
666
|
+
<span class='rbrace'>}</span>
|
|
667
|
+
<span class='kw'>end</span></pre>
|
|
693
668
|
</td>
|
|
694
669
|
</tr>
|
|
695
670
|
</table>
|
|
@@ -700,9 +675,9 @@ The document builder instance this objects xml will be added to.
|
|
|
700
675
|
</div>
|
|
701
676
|
|
|
702
677
|
<div id="footer">
|
|
703
|
-
Generated on
|
|
678
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
704
679
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
705
|
-
0.7.3 (ruby-1.
|
|
680
|
+
0.7.3 (ruby-1.9.3).
|
|
706
681
|
</div>
|
|
707
682
|
|
|
708
683
|
</body>
|
data/doc/Axlsx/CatAxis.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::CatAxis
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -96,9 +96,8 @@
|
|
|
96
96
|
|
|
97
97
|
<h2>Overview</h2><div class="docstring">
|
|
98
98
|
<div class="discussion">
|
|
99
|
-
|
|
100
|
-
A CatAxis object defines a chart category axis
|
|
101
|
-
</p>
|
|
99
|
+
|
|
100
|
+
<p>A CatAxis object defines a chart category axis</p>
|
|
102
101
|
|
|
103
102
|
|
|
104
103
|
</div>
|
|
@@ -114,9 +113,8 @@ A CatAxis object defines a chart category axis
|
|
|
114
113
|
<dt id="LBL_OFFSET_REGEX-constant" class="">LBL_OFFSET_REGEX =
|
|
115
114
|
<div class="docstring">
|
|
116
115
|
<div class="discussion">
|
|
117
|
-
|
|
118
|
-
regex for validating label offset
|
|
119
|
-
</p>
|
|
116
|
+
|
|
117
|
+
<p>regex for validating label offset</p>
|
|
120
118
|
|
|
121
119
|
|
|
122
120
|
</div>
|
|
@@ -126,8 +124,7 @@ regex for validating label offset
|
|
|
126
124
|
|
|
127
125
|
</div>
|
|
128
126
|
</dt>
|
|
129
|
-
<dd><pre class="code"><span class='
|
|
130
|
-
</pre></dd>
|
|
127
|
+
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>0*(([0-9])|([1-9][0-9])|([1-9][0-9][0-9])|1000)%</span><span class='regexp_end'>/</span></span></pre></dd>
|
|
131
128
|
|
|
132
129
|
</dl>
|
|
133
130
|
|
|
@@ -159,10 +156,9 @@ regex for validating label offset
|
|
|
159
156
|
|
|
160
157
|
|
|
161
158
|
|
|
162
|
-
<span class="summary_desc"><div class='inline'
|
|
163
|
-
From the docs: This element specifies that this axis is a date or text axis
|
|
164
|
-
based on the data that is used for the axis labels, not a specific choice
|
|
165
|
-
</p>
|
|
159
|
+
<span class="summary_desc"><div class='inline'>
|
|
160
|
+
<p>From the docs: This element specifies that this axis is a date or text axis
|
|
161
|
+
based on the data that is used for the axis labels, not a specific choice.</p>
|
|
166
162
|
</div></span>
|
|
167
163
|
|
|
168
164
|
</li>
|
|
@@ -187,10 +183,9 @@ based on the data that is used for the axis labels, not a specific choice.
|
|
|
187
183
|
|
|
188
184
|
|
|
189
185
|
|
|
190
|
-
<span class="summary_desc"><div class='inline'
|
|
191
|
-
specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
192
|
-
:r]
|
|
193
|
-
</p>
|
|
186
|
+
<span class="summary_desc"><div class='inline'>
|
|
187
|
+
<p>specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
188
|
+
:r].</p>
|
|
194
189
|
</div></span>
|
|
195
190
|
|
|
196
191
|
</li>
|
|
@@ -215,9 +210,8 @@ specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
|
215
210
|
|
|
216
211
|
|
|
217
212
|
|
|
218
|
-
<span class="summary_desc"><div class='inline'
|
|
219
|
-
The offset of the labels must be between a string between 0 and 1000
|
|
220
|
-
</p>
|
|
213
|
+
<span class="summary_desc"><div class='inline'>
|
|
214
|
+
<p>The offset of the labels must be between a string between 0 and 1000.</p>
|
|
221
215
|
</div></span>
|
|
222
216
|
|
|
223
217
|
</li>
|
|
@@ -262,9 +256,8 @@ The offset of the labels must be between a string between 0 and 1000.
|
|
|
262
256
|
|
|
263
257
|
|
|
264
258
|
|
|
265
|
-
<span class="summary_desc"><div class='inline'
|
|
266
|
-
Creates a new CatAxis object
|
|
267
|
-
</p>
|
|
259
|
+
<span class="summary_desc"><div class='inline'>
|
|
260
|
+
<p>Creates a new CatAxis object.</p>
|
|
268
261
|
</div></span>
|
|
269
262
|
|
|
270
263
|
</li>
|
|
@@ -286,9 +279,8 @@ Creates a new CatAxis object.
|
|
|
286
279
|
|
|
287
280
|
|
|
288
281
|
|
|
289
|
-
<span class="summary_desc"><div class='inline'
|
|
290
|
-
Serializes the category axis
|
|
291
|
-
</p>
|
|
282
|
+
<span class="summary_desc"><div class='inline'>
|
|
283
|
+
<p>Serializes the category axis.</p>
|
|
292
284
|
</div></span>
|
|
293
285
|
|
|
294
286
|
</li>
|
|
@@ -314,9 +306,8 @@ Serializes the category axis.
|
|
|
314
306
|
|
|
315
307
|
</p><div class="docstring">
|
|
316
308
|
<div class="discussion">
|
|
317
|
-
|
|
318
|
-
Creates a new CatAxis object
|
|
319
|
-
</p>
|
|
309
|
+
|
|
310
|
+
<p>Creates a new CatAxis object</p>
|
|
320
311
|
|
|
321
312
|
|
|
322
313
|
</div>
|
|
@@ -335,9 +326,8 @@ Creates a new CatAxis object
|
|
|
335
326
|
|
|
336
327
|
|
|
337
328
|
—
|
|
338
|
-
<div class='inline'
|
|
339
|
-
the id of this axis. Inherited
|
|
340
|
-
</p>
|
|
329
|
+
<div class='inline'>
|
|
330
|
+
<p>the id of this axis. Inherited</p>
|
|
341
331
|
</div>
|
|
342
332
|
|
|
343
333
|
</li>
|
|
@@ -352,9 +342,8 @@ the id of this axis. Inherited
|
|
|
352
342
|
|
|
353
343
|
|
|
354
344
|
—
|
|
355
|
-
<div class='inline'
|
|
356
|
-
the id of the perpendicular axis. Inherited
|
|
357
|
-
</p>
|
|
345
|
+
<div class='inline'>
|
|
346
|
+
<p>the id of the perpendicular axis. Inherited</p>
|
|
358
347
|
</div>
|
|
359
348
|
|
|
360
349
|
</li>
|
|
@@ -371,9 +360,8 @@ the id of the perpendicular axis. Inherited
|
|
|
371
360
|
|
|
372
361
|
|
|
373
362
|
—
|
|
374
|
-
<div class='inline'
|
|
375
|
-
a customizable set of options
|
|
376
|
-
</p>
|
|
363
|
+
<div class='inline'>
|
|
364
|
+
<p>a customizable set of options</p>
|
|
377
365
|
</div>
|
|
378
366
|
|
|
379
367
|
</li>
|
|
@@ -396,9 +384,8 @@ a customizable set of options
|
|
|
396
384
|
<span class="default">
|
|
397
385
|
|
|
398
386
|
</span>
|
|
399
|
-
— <div class='inline'
|
|
400
|
-
Inherited
|
|
401
|
-
</p>
|
|
387
|
+
— <div class='inline'>
|
|
388
|
+
<p>Inherited</p>
|
|
402
389
|
</div>
|
|
403
390
|
</li>
|
|
404
391
|
|
|
@@ -408,9 +395,8 @@ Inherited
|
|
|
408
395
|
<span class="default">
|
|
409
396
|
|
|
410
397
|
</span>
|
|
411
|
-
— <div class='inline'
|
|
412
|
-
Inherited
|
|
413
|
-
</p>
|
|
398
|
+
— <div class='inline'>
|
|
399
|
+
<p>Inherited</p>
|
|
414
400
|
</div>
|
|
415
401
|
</li>
|
|
416
402
|
|
|
@@ -420,9 +406,8 @@ Inherited
|
|
|
420
406
|
<span class="default">
|
|
421
407
|
|
|
422
408
|
</span>
|
|
423
|
-
— <div class='inline'
|
|
424
|
-
Inherited
|
|
425
|
-
</p>
|
|
409
|
+
— <div class='inline'>
|
|
410
|
+
<p>Inherited</p>
|
|
426
411
|
</div>
|
|
427
412
|
</li>
|
|
428
413
|
|
|
@@ -473,13 +458,12 @@ Inherited
|
|
|
473
458
|
<td>
|
|
474
459
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 31</span>
|
|
475
460
|
|
|
476
|
-
<span class='
|
|
477
|
-
<span class='
|
|
478
|
-
<span class='
|
|
479
|
-
<span class='
|
|
480
|
-
<span class='
|
|
481
|
-
<span class='
|
|
482
|
-
</pre>
|
|
461
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id axId'>axId</span><span class='comma'>,</span> <span class='id crossAx'>crossAx</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>
|
|
462
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id auto'>auto</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
463
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id lblAlgn'>lblAlgn</span> <span class='op'>=</span> <span class='symbol'>:ctr</span>
|
|
464
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id lblOffset'>lblOffset</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>100%</span><span class='tstring_end'>"</span></span>
|
|
465
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id axId'>axId</span><span class='comma'>,</span> <span class='id crossAx'>crossAx</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
|
466
|
+
<span class='kw'>end</span></pre>
|
|
483
467
|
</td>
|
|
484
468
|
</tr>
|
|
485
469
|
</table>
|
|
@@ -502,10 +486,9 @@ Inherited
|
|
|
502
486
|
|
|
503
487
|
</p><div class="docstring">
|
|
504
488
|
<div class="discussion">
|
|
505
|
-
|
|
506
|
-
From the docs: This element specifies that this axis is a date or text axis
|
|
507
|
-
based on the data that is used for the axis labels, not a specific choice
|
|
508
|
-
</p>
|
|
489
|
+
|
|
490
|
+
<p>From the docs: This element specifies that this axis is a date or text axis
|
|
491
|
+
based on the data that is used for the axis labels, not a specific choice.</p>
|
|
509
492
|
|
|
510
493
|
|
|
511
494
|
</div>
|
|
@@ -539,10 +522,9 @@ based on the data that is used for the axis labels, not a specific choice.
|
|
|
539
522
|
<td>
|
|
540
523
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 7</span>
|
|
541
524
|
|
|
542
|
-
<span class='
|
|
543
|
-
<span class='
|
|
544
|
-
<span class='
|
|
545
|
-
</pre>
|
|
525
|
+
<span class='kw'>def</span> <span class='id auto'>auto</span>
|
|
526
|
+
<span class='ivar'>@auto</span>
|
|
527
|
+
<span class='kw'>end</span></pre>
|
|
546
528
|
</td>
|
|
547
529
|
</tr>
|
|
548
530
|
</table>
|
|
@@ -560,10 +542,9 @@ based on the data that is used for the axis labels, not a specific choice.
|
|
|
560
542
|
|
|
561
543
|
</p><div class="docstring">
|
|
562
544
|
<div class="discussion">
|
|
563
|
-
|
|
564
|
-
specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
565
|
-
:r]
|
|
566
|
-
</p>
|
|
545
|
+
|
|
546
|
+
<p>specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
547
|
+
:r]</p>
|
|
567
548
|
|
|
568
549
|
|
|
569
550
|
</div>
|
|
@@ -597,10 +578,9 @@ specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
|
597
578
|
<td>
|
|
598
579
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 12</span>
|
|
599
580
|
|
|
600
|
-
<span class='
|
|
601
|
-
<span class='
|
|
602
|
-
<span class='
|
|
603
|
-
</pre>
|
|
581
|
+
<span class='kw'>def</span> <span class='id lblAlgn'>lblAlgn</span>
|
|
582
|
+
<span class='ivar'>@lblAlgn</span>
|
|
583
|
+
<span class='kw'>end</span></pre>
|
|
604
584
|
</td>
|
|
605
585
|
</tr>
|
|
606
586
|
</table>
|
|
@@ -618,9 +598,8 @@ specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
|
618
598
|
|
|
619
599
|
</p><div class="docstring">
|
|
620
600
|
<div class="discussion">
|
|
621
|
-
|
|
622
|
-
The offset of the labels must be between a string between 0 and 1000
|
|
623
|
-
</p>
|
|
601
|
+
|
|
602
|
+
<p>The offset of the labels must be between a string between 0 and 1000</p>
|
|
624
603
|
|
|
625
604
|
|
|
626
605
|
</div>
|
|
@@ -654,10 +633,9 @@ The offset of the labels must be between a string between 0 and 1000
|
|
|
654
633
|
<td>
|
|
655
634
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 17</span>
|
|
656
635
|
|
|
657
|
-
<span class='
|
|
658
|
-
<span class='
|
|
659
|
-
<span class='
|
|
660
|
-
</pre>
|
|
636
|
+
<span class='kw'>def</span> <span class='id lblOffset'>lblOffset</span>
|
|
637
|
+
<span class='ivar'>@lblOffset</span>
|
|
638
|
+
<span class='kw'>end</span></pre>
|
|
661
639
|
</td>
|
|
662
640
|
</tr>
|
|
663
641
|
</table>
|
|
@@ -679,9 +657,8 @@ The offset of the labels must be between a string between 0 and 1000
|
|
|
679
657
|
|
|
680
658
|
</p><div class="docstring">
|
|
681
659
|
<div class="discussion">
|
|
682
|
-
|
|
683
|
-
Serializes the category axis
|
|
684
|
-
</p>
|
|
660
|
+
|
|
661
|
+
<p>Serializes the category axis</p>
|
|
685
662
|
|
|
686
663
|
|
|
687
664
|
</div>
|
|
@@ -700,9 +677,8 @@ Serializes the category axis
|
|
|
700
677
|
|
|
701
678
|
|
|
702
679
|
—
|
|
703
|
-
<div class='inline'
|
|
704
|
-
The document builder instance this objects xml will be added to
|
|
705
|
-
</p>
|
|
680
|
+
<div class='inline'>
|
|
681
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
706
682
|
</div>
|
|
707
683
|
|
|
708
684
|
</li>
|
|
@@ -729,27 +705,26 @@ The document builder instance this objects xml will be added to.
|
|
|
729
705
|
<pre class="lines">
|
|
730
706
|
|
|
731
707
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
708
|
+
52
|
|
709
|
+
53
|
|
710
|
+
54
|
|
711
|
+
55
|
|
712
|
+
56
|
|
713
|
+
57
|
|
714
|
+
58
|
|
715
|
+
59</pre>
|
|
740
716
|
</td>
|
|
741
717
|
<td>
|
|
742
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line
|
|
743
|
-
|
|
744
|
-
<span class='
|
|
745
|
-
<span class='xml
|
|
746
|
-
<span class='
|
|
747
|
-
<span class='xml
|
|
748
|
-
<span class='xml
|
|
749
|
-
<span class='xml
|
|
750
|
-
<span class='rbrace
|
|
751
|
-
<span class='
|
|
752
|
-
</pre>
|
|
718
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 52</span>
|
|
719
|
+
|
|
720
|
+
<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>
|
|
721
|
+
<span class='id xml'>xml</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='tstring_content'>c:catAx</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
722
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
|
723
|
+
<span class='id xml'>xml</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='tstring_content'>c:auto</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@auto</span><span class='rparen'>)</span>
|
|
724
|
+
<span class='id xml'>xml</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='tstring_content'>c:lblAlgn</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@lblAlgn</span><span class='rparen'>)</span>
|
|
725
|
+
<span class='id xml'>xml</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='tstring_content'>c:lblOffset</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@lblOffset</span><span class='rparen'>)</span>
|
|
726
|
+
<span class='rbrace'>}</span>
|
|
727
|
+
<span class='kw'>end</span></pre>
|
|
753
728
|
</td>
|
|
754
729
|
</tr>
|
|
755
730
|
</table>
|
|
@@ -760,9 +735,9 @@ The document builder instance this objects xml will be added to.
|
|
|
760
735
|
</div>
|
|
761
736
|
|
|
762
737
|
<div id="footer">
|
|
763
|
-
Generated on
|
|
738
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
|
764
739
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
765
|
-
0.7.3 (ruby-1.
|
|
740
|
+
0.7.3 (ruby-1.9.3).
|
|
766
741
|
</div>
|
|
767
742
|
|
|
768
743
|
</body>
|