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/Color.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::Color
|
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
|
-
The color class represents a color used for borders, fills an fonts
|
99
|
-
</p>
|
97
|
+
|
98
|
+
<p>The color class represents a color used for borders, fills an fonts</p>
|
100
99
|
|
101
100
|
|
102
101
|
</div>
|
@@ -128,9 +127,8 @@ The color class represents a color used for borders, fills an fonts
|
|
128
127
|
|
129
128
|
|
130
129
|
|
131
|
-
<span class="summary_desc"><div class='inline'
|
132
|
-
Determines if the color is system color dependant
|
133
|
-
</p>
|
130
|
+
<span class="summary_desc"><div class='inline'>
|
131
|
+
<p>Determines if the color is system color dependant.</p>
|
134
132
|
</div></span>
|
135
133
|
|
136
134
|
</li>
|
@@ -155,9 +153,8 @@ Determines if the color is system color dependant.
|
|
155
153
|
|
156
154
|
|
157
155
|
|
158
|
-
<span class="summary_desc"><div class='inline'
|
159
|
-
The color as defined in rgb terms
|
160
|
-
</p>
|
156
|
+
<span class="summary_desc"><div class='inline'>
|
157
|
+
<p>The color as defined in rgb terms.</p>
|
161
158
|
</div></span>
|
162
159
|
|
163
160
|
</li>
|
@@ -182,9 +179,8 @@ The color as defined in rgb terms.
|
|
182
179
|
|
183
180
|
|
184
181
|
|
185
|
-
<span class="summary_desc"><div class='inline'
|
186
|
-
The tint value
|
187
|
-
</p>
|
182
|
+
<span class="summary_desc"><div class='inline'>
|
183
|
+
<p>The tint value.</p>
|
188
184
|
</div></span>
|
189
185
|
|
190
186
|
</li>
|
@@ -221,9 +217,8 @@ The tint value.
|
|
221
217
|
|
222
218
|
|
223
219
|
|
224
|
-
<span class="summary_desc"><div class='inline'
|
225
|
-
Creates a new Color object
|
226
|
-
</p>
|
220
|
+
<span class="summary_desc"><div class='inline'>
|
221
|
+
<p>Creates a new Color object.</p>
|
227
222
|
</div></span>
|
228
223
|
|
229
224
|
</li>
|
@@ -245,9 +240,8 @@ Creates a new Color object.
|
|
245
240
|
|
246
241
|
|
247
242
|
|
248
|
-
<span class="summary_desc"><div class='inline'
|
249
|
-
Serializes the color
|
250
|
-
</p>
|
243
|
+
<span class="summary_desc"><div class='inline'>
|
244
|
+
<p>Serializes the color.</p>
|
251
245
|
</div></span>
|
252
246
|
|
253
247
|
</li>
|
@@ -268,9 +262,8 @@ Serializes the color.
|
|
268
262
|
|
269
263
|
</p><div class="docstring">
|
270
264
|
<div class="discussion">
|
271
|
-
|
272
|
-
Creates a new Color object
|
273
|
-
</p>
|
265
|
+
|
266
|
+
<p>Creates a new Color object</p>
|
274
267
|
|
275
268
|
|
276
269
|
</div>
|
@@ -291,9 +284,8 @@ Creates a new Color 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>
|
@@ -353,13 +345,12 @@ a customizable set of options
|
|
353
345
|
<td>
|
354
346
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 34</span>
|
355
347
|
|
356
|
-
<span class='
|
357
|
-
<span class='
|
358
|
-
<span class='options
|
359
|
-
<span class='
|
360
|
-
<span class='
|
361
|
-
<span class='
|
362
|
-
</pre>
|
348
|
+
<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>
|
349
|
+
<span class='ivar'>@rgb</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>FF000000</span><span class='tstring_end'>"</span></span>
|
350
|
+
<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>
|
351
|
+
<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>
|
352
|
+
<span class='kw'>end</span>
|
353
|
+
<span class='kw'>end</span></pre>
|
363
354
|
</td>
|
364
355
|
</tr>
|
365
356
|
</table>
|
@@ -382,9 +373,8 @@ a customizable set of options
|
|
382
373
|
|
383
374
|
</p><div class="docstring">
|
384
375
|
<div class="discussion">
|
385
|
-
|
386
|
-
Determines if the color is system color dependant
|
387
|
-
</p>
|
376
|
+
|
377
|
+
<p>Determines if the color is system color dependant</p>
|
388
378
|
|
389
379
|
|
390
380
|
</div>
|
@@ -418,10 +408,9 @@ Determines if the color is system color dependant
|
|
418
408
|
<td>
|
419
409
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 6</span>
|
420
410
|
|
421
|
-
<span class='
|
422
|
-
<span class='
|
423
|
-
<span class='
|
424
|
-
</pre>
|
411
|
+
<span class='kw'>def</span> <span class='id auto'>auto</span>
|
412
|
+
<span class='ivar'>@auto</span>
|
413
|
+
<span class='kw'>end</span></pre>
|
425
414
|
</td>
|
426
415
|
</tr>
|
427
416
|
</table>
|
@@ -442,16 +431,14 @@ Determines if the color is system color dependant
|
|
442
431
|
|
443
432
|
<div class="note notetag">
|
444
433
|
<strong>Note:</strong>
|
445
|
-
<div class='inline'
|
446
|
-
rgb colors need to conform to ST_UnsignedIntHex. That basically means put
|
447
|
-
|
448
|
-
</p>
|
434
|
+
<div class='inline'>
|
435
|
+
<p>rgb colors need to conform to ST_UnsignedIntHex. That basically means put
|
436
|
+
'FF' before you color</p>
|
449
437
|
</div>
|
450
438
|
</div>
|
451
439
|
|
452
|
-
|
453
|
-
The color as defined in rgb terms
|
454
|
-
</p>
|
440
|
+
|
441
|
+
<p>The color as defined in rgb terms.</p>
|
455
442
|
|
456
443
|
|
457
444
|
</div>
|
@@ -461,13 +448,11 @@ The color as defined in rgb terms.
|
|
461
448
|
<div class="examples">
|
462
449
|
<h3>Examples:</h3>
|
463
450
|
|
464
|
-
<h4><div class='inline'
|
465
|
-
rgb colors
|
466
|
-
</p>
|
451
|
+
<h4><div class='inline'>
|
452
|
+
<p>rgb colors</p>
|
467
453
|
</div></h4>
|
468
|
-
<pre class="example code"
|
469
|
-
|
470
|
-
</pre>
|
454
|
+
<pre class="example code">"FF000000" is black
|
455
|
+
"FFFFFFFF" is white</pre>
|
471
456
|
|
472
457
|
</div>
|
473
458
|
|
@@ -498,10 +483,9 @@ rgb colors
|
|
498
483
|
<td>
|
499
484
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 19</span>
|
500
485
|
|
501
|
-
<span class='
|
502
|
-
<span class='
|
503
|
-
<span class='
|
504
|
-
</pre>
|
486
|
+
<span class='kw'>def</span> <span class='id rgb'>rgb</span>
|
487
|
+
<span class='ivar'>@rgb</span>
|
488
|
+
<span class='kw'>end</span></pre>
|
505
489
|
</td>
|
506
490
|
</tr>
|
507
491
|
</table>
|
@@ -522,15 +506,13 @@ rgb colors
|
|
522
506
|
|
523
507
|
<div class="note notetag">
|
524
508
|
<strong>Note:</strong>
|
525
|
-
<div class='inline'
|
526
|
-
valid values are between -1.0 and 1.0
|
527
|
-
</p>
|
509
|
+
<div class='inline'>
|
510
|
+
<p>valid values are between -1.0 and 1.0</p>
|
528
511
|
</div>
|
529
512
|
</div>
|
530
513
|
|
531
|
-
|
532
|
-
The tint value
|
533
|
-
</p>
|
514
|
+
|
515
|
+
<p>The tint value.</p>
|
534
516
|
|
535
517
|
|
536
518
|
</div>
|
@@ -564,10 +546,9 @@ The tint value.
|
|
564
546
|
<td>
|
565
547
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 28</span>
|
566
548
|
|
567
|
-
<span class='
|
568
|
-
<span class='
|
569
|
-
<span class='
|
570
|
-
</pre>
|
549
|
+
<span class='kw'>def</span> <span class='id tint'>tint</span>
|
550
|
+
<span class='ivar'>@tint</span>
|
551
|
+
<span class='kw'>end</span></pre>
|
571
552
|
</td>
|
572
553
|
</tr>
|
573
554
|
</table>
|
@@ -589,9 +570,8 @@ The tint value.
|
|
589
570
|
|
590
571
|
</p><div class="docstring">
|
591
572
|
<div class="discussion">
|
592
|
-
|
593
|
-
Serializes the color
|
594
|
-
</p>
|
573
|
+
|
574
|
+
<p>Serializes the color</p>
|
595
575
|
|
596
576
|
|
597
577
|
</div>
|
@@ -610,9 +590,8 @@ Serializes the color
|
|
610
590
|
|
611
591
|
|
612
592
|
—
|
613
|
-
<div class='inline'
|
614
|
-
The document builder instance this objects xml will be added to
|
615
|
-
</p>
|
593
|
+
<div class='inline'>
|
594
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
616
595
|
</div>
|
617
596
|
|
618
597
|
</li>
|
@@ -639,13 +618,12 @@ The document builder instance this objects xml will be added to.
|
|
639
618
|
<pre class="lines">
|
640
619
|
|
641
620
|
|
642
|
-
|
621
|
+
57</pre>
|
643
622
|
</td>
|
644
623
|
<td>
|
645
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line
|
624
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 57</span>
|
646
625
|
|
647
|
-
<span class='
|
648
|
-
</pre>
|
626
|
+
<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> <span class='id xml'>xml</span><span class='period'>.</span><span class='id color'>color</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
|
649
627
|
</td>
|
650
628
|
</tr>
|
651
629
|
</table>
|
@@ -656,9 +634,9 @@ The document builder instance this objects xml will be added to.
|
|
656
634
|
</div>
|
657
635
|
|
658
636
|
<div id="footer">
|
659
|
-
Generated on
|
637
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
660
638
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
661
|
-
0.7.3 (ruby-1.
|
639
|
+
0.7.3 (ruby-1.9.3).
|
662
640
|
</div>
|
663
641
|
|
664
642
|
</body>
|
data/doc/Axlsx/ContentType.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::ContentType
|
8
8
|
|
9
|
-
—
|
9
|
+
— AXLSX
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -96,10 +96,9 @@
|
|
96
96
|
|
97
97
|
<h2>Overview</h2><div class="docstring">
|
98
98
|
<div class="discussion">
|
99
|
-
|
100
|
-
ContentTypes used in the package. This is automatcially managed by the
|
101
|
-
package package
|
102
|
-
</p>
|
99
|
+
|
100
|
+
<p>ContentTypes used in the package. This is automatcially managed by the
|
101
|
+
package package.</p>
|
103
102
|
|
104
103
|
|
105
104
|
</div>
|
@@ -150,9 +149,8 @@ package package.
|
|
150
149
|
|
151
150
|
|
152
151
|
|
153
|
-
<span class="summary_desc"><div class='inline'
|
154
|
-
A new instance of ContentType
|
155
|
-
</p>
|
152
|
+
<span class="summary_desc"><div class='inline'>
|
153
|
+
<p>A new instance of ContentType.</p>
|
156
154
|
</div></span>
|
157
155
|
|
158
156
|
</li>
|
@@ -174,9 +172,8 @@ A new instance of ContentType.
|
|
174
172
|
|
175
173
|
|
176
174
|
|
177
|
-
<span class="summary_desc"><div class='inline'
|
178
|
-
Generates the xml document for [Content_Types].xml
|
179
|
-
</p>
|
175
|
+
<span class="summary_desc"><div class='inline'>
|
176
|
+
<p>Generates the xml document for [Content_Types].xml.</p>
|
180
177
|
</div></span>
|
181
178
|
|
182
179
|
</li>
|
@@ -190,12 +187,7 @@ Generates the xml document for [Content_Types].xml.
|
|
190
187
|
|
191
188
|
|
192
189
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
|
197
|
-
<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>
|
198
|
-
<div id="constructor_details" class="method_details_list">
|
190
|
+
<div id="constructor_details" class="method_details_list">
|
199
191
|
<h2>Constructor Details</h2>
|
200
192
|
|
201
193
|
<div class="method_details first">
|
@@ -207,9 +199,8 @@ Generates the xml document for [Content_Types].xml.
|
|
207
199
|
|
208
200
|
</p><div class="docstring">
|
209
201
|
<div class="discussion">
|
210
|
-
|
211
|
-
A new instance of ContentType
|
212
|
-
</p>
|
202
|
+
|
203
|
+
<p>A new instance of ContentType</p>
|
213
204
|
|
214
205
|
|
215
206
|
</div>
|
@@ -230,10 +221,9 @@ A new instance of ContentType
|
|
230
221
|
<td>
|
231
222
|
<pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 8</span>
|
232
223
|
|
233
|
-
<span class='
|
234
|
-
<span class='
|
235
|
-
<span class='
|
236
|
-
</pre>
|
224
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span>
|
225
|
+
<span class='kw'>super</span> <span class='lbracket'>[</span><span class='const'>Override</span><span class='comma'>,</span> <span class='const'>Default</span><span class='rbracket'>]</span>
|
226
|
+
<span class='kw'>end</span></pre>
|
237
227
|
</td>
|
238
228
|
</tr>
|
239
229
|
</table>
|
@@ -265,9 +255,8 @@ A new instance of ContentType
|
|
265
255
|
|
266
256
|
</p><div class="docstring">
|
267
257
|
<div class="discussion">
|
268
|
-
|
269
|
-
Generates the xml document for [Content_Types].xml
|
270
|
-
</p>
|
258
|
+
|
259
|
+
<p>Generates the xml document for [Content_Types].xml</p>
|
271
260
|
|
272
261
|
|
273
262
|
</div>
|
@@ -285,9 +274,8 @@ Generates the xml document for [Content_Types].xml
|
|
285
274
|
|
286
275
|
|
287
276
|
—
|
288
|
-
<div class='inline'
|
289
|
-
The document as a string
|
290
|
-
</p>
|
277
|
+
<div class='inline'>
|
278
|
+
<p>The document as a string.</p>
|
291
279
|
</div>
|
292
280
|
|
293
281
|
</li>
|
@@ -312,15 +300,14 @@ The document as a string.
|
|
312
300
|
<td>
|
313
301
|
<pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 14</span>
|
314
302
|
|
315
|
-
<span class='
|
316
|
-
<span class='builder
|
317
|
-
<span class='xml
|
318
|
-
<span class='each
|
319
|
-
<span class='rbrace
|
320
|
-
<span class='
|
321
|
-
<span class='builder
|
322
|
-
<span class='
|
323
|
-
</pre>
|
303
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
304
|
+
<span class='id builder'>builder</span> <span class='op'>=</span> <span class='const'>Nokogiri</span><span class='op'>::</span><span class='const'>XML</span><span class='op'>::</span><span class='const'>Builder</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:encoding</span> <span class='op'>=></span> <span class='const'>ENCODING</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml'>xml</span><span class='op'>|</span>
|
305
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='const'>Types</span><span class='lparen'>(</span><span class='symbol'>:xmlns</span> <span class='op'>=></span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='const'>XML_NS_T</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
306
|
+
<span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id type'>type</span><span class='op'>|</span> <span class='id type'>type</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>
|
307
|
+
<span class='rbrace'>}</span>
|
308
|
+
<span class='kw'>end</span>
|
309
|
+
<span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span>
|
310
|
+
<span class='kw'>end</span></pre>
|
324
311
|
</td>
|
325
312
|
</tr>
|
326
313
|
</table>
|
@@ -331,9 +318,9 @@ The document as a string.
|
|
331
318
|
</div>
|
332
319
|
|
333
320
|
<div id="footer">
|
334
|
-
Generated on
|
321
|
+
Generated on Sat Nov 26 13:16:40 2011 by
|
335
322
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
336
|
-
0.7.3 (ruby-1.
|
323
|
+
0.7.3 (ruby-1.9.3).
|
337
324
|
</div>
|
338
325
|
|
339
326
|
</body>
|
data/doc/Axlsx/Core.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::Core
|
8
8
|
|
9
|
-
—
|
9
|
+
— AXLSX
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -97,15 +97,13 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'
|
101
|
-
Packages manage their own core object
|
102
|
-
</p>
|
100
|
+
<div class='inline'>
|
101
|
+
<p>Packages manage their own core object.</p>
|
103
102
|
</div>
|
104
103
|
</div>
|
105
104
|
|
106
|
-
|
107
|
-
The core object for the package
|
108
|
-
</p>
|
105
|
+
|
106
|
+
<p>The core object for the package.</p>
|
109
107
|
|
110
108
|
|
111
109
|
</div>
|
@@ -144,9 +142,8 @@ The core object for the package.
|
|
144
142
|
|
145
143
|
|
146
144
|
|
147
|
-
<span class="summary_desc"><div class='inline'
|
148
|
-
The author of the document
|
149
|
-
</p>
|
145
|
+
<span class="summary_desc"><div class='inline'>
|
146
|
+
<p>The author of the document.</p>
|
150
147
|
</div></span>
|
151
148
|
|
152
149
|
</li>
|
@@ -183,9 +180,8 @@ The author of the document.
|
|
183
180
|
|
184
181
|
|
185
182
|
|
186
|
-
<span class="summary_desc"><div class='inline'
|
187
|
-
Creates a new Core object
|
188
|
-
</p>
|
183
|
+
<span class="summary_desc"><div class='inline'>
|
184
|
+
<p>Creates a new Core object.</p>
|
189
185
|
</div></span>
|
190
186
|
|
191
187
|
</li>
|
@@ -207,9 +203,8 @@ Creates a new Core object.
|
|
207
203
|
|
208
204
|
|
209
205
|
|
210
|
-
<span class="summary_desc"><div class='inline'
|
211
|
-
Serializes the core object
|
212
|
-
</p>
|
206
|
+
<span class="summary_desc"><div class='inline'>
|
207
|
+
<p>Serializes the core object.</p>
|
213
208
|
</div></span>
|
214
209
|
|
215
210
|
</li>
|
@@ -230,9 +225,8 @@ Serializes the core object.
|
|
230
225
|
|
231
226
|
</p><div class="docstring">
|
232
227
|
<div class="discussion">
|
233
|
-
|
234
|
-
Creates a new Core object
|
235
|
-
</p>
|
228
|
+
|
229
|
+
<p>Creates a new Core object.</p>
|
236
230
|
|
237
231
|
|
238
232
|
</div>
|
@@ -253,9 +247,8 @@ Creates a new Core object.
|
|
253
247
|
|
254
248
|
|
255
249
|
—
|
256
|
-
<div class='inline'
|
257
|
-
a customizable set of options
|
258
|
-
</p>
|
250
|
+
<div class='inline'>
|
251
|
+
<p>a customizable set of options</p>
|
259
252
|
</div>
|
260
253
|
|
261
254
|
</li>
|
@@ -294,10 +287,9 @@ a customizable set of options
|
|
294
287
|
<td>
|
295
288
|
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 12</span>
|
296
289
|
|
297
|
-
<span class='
|
298
|
-
<span class='
|
299
|
-
<span class='
|
300
|
-
</pre>
|
290
|
+
<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>
|
291
|
+
<span class='ivar'>@creator</span> <span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:creator</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>axlsx</span><span class='tstring_end'>'</span></span>
|
292
|
+
<span class='kw'>end</span></pre>
|
301
293
|
</td>
|
302
294
|
</tr>
|
303
295
|
</table>
|
@@ -320,9 +312,8 @@ a customizable set of options
|
|
320
312
|
|
321
313
|
</p><div class="docstring">
|
322
314
|
<div class="discussion">
|
323
|
-
|
324
|
-
The author of the document. By default this is
|
325
|
-
</p>
|
315
|
+
|
316
|
+
<p>The author of the document. By default this is 'axlsx'</p>
|
326
317
|
|
327
318
|
|
328
319
|
</div>
|
@@ -356,10 +347,9 @@ The author of the document. By default this is ‘axlsx’
|
|
356
347
|
<td>
|
357
348
|
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 8</span>
|
358
349
|
|
359
|
-
<span class='
|
360
|
-
<span class='
|
361
|
-
<span class='
|
362
|
-
</pre>
|
350
|
+
<span class='kw'>def</span> <span class='id creator'>creator</span>
|
351
|
+
<span class='ivar'>@creator</span>
|
352
|
+
<span class='kw'>end</span></pre>
|
363
353
|
</td>
|
364
354
|
</tr>
|
365
355
|
</table>
|
@@ -381,10 +371,9 @@ The author of the document. By default this is ‘axlsx’
|
|
381
371
|
|
382
372
|
</p><div class="docstring">
|
383
373
|
<div class="discussion">
|
384
|
-
|
385
|
-
Serializes the core object. The created dcterms item is set to the current
|
386
|
-
time when this method is called
|
387
|
-
</p>
|
374
|
+
|
375
|
+
<p>Serializes the core object. The created dcterms item is set to the current
|
376
|
+
time when this method is called.</p>
|
388
377
|
|
389
378
|
|
390
379
|
</div>
|
@@ -430,22 +419,21 @@ time when this method is called.
|
|
430
419
|
<td>
|
431
420
|
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 18</span>
|
432
421
|
|
433
|
-
<span class='
|
434
|
-
<span class='builder
|
435
|
-
<span class='xml
|
436
|
-
<span class='symbol
|
437
|
-
<span class='symbol
|
438
|
-
<span class='symbol
|
439
|
-
<span class='symbol
|
440
|
-
<span class='symbol
|
441
|
-
<span class='xml
|
442
|
-
<span class='xml
|
443
|
-
<span class='xml
|
444
|
-
<span class='rbrace
|
445
|
-
<span class='
|
446
|
-
<span class='builder
|
447
|
-
<span class='
|
448
|
-
</pre>
|
422
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
423
|
+
<span class='id builder'>builder</span> <span class='op'>=</span> <span class='const'>Nokogiri</span><span class='op'>::</span><span class='const'>XML</span><span class='op'>::</span><span class='const'>Builder</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:encoding</span> <span class='op'>=></span> <span class='const'>ENCODING</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml'>xml</span><span class='op'>|</span>
|
424
|
+
<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'>cp:coreProperties</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
425
|
+
<span class='symbol'>:xmlns:cp</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='const'>CORE_NS</span><span class='comma'>,</span>
|
426
|
+
<span class='symbol'>:xmlns:dc</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>CORE_NS_DC</span><span class='comma'>,</span>
|
427
|
+
<span class='symbol'>:xmlns:dcmitype</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='const'>CORE_NS_DCMIT</span><span class='comma'>,</span>
|
428
|
+
<span class='symbol'>:xmlns:dcterms</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='const'>CORE_NS_DCT</span><span class='comma'>,</span>
|
429
|
+
<span class='symbol'>:xmlns:xsi</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='const'>CORE_NS_XSI</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
430
|
+
<span class='id xml'>xml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dc</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id creator'>creator</span> <span class='kw'>self</span><span class='period'>.</span><span class='id creator'>creator</span>
|
431
|
+
<span class='id xml'>xml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dcterms</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id created'>created</span> <span class='const'>Time</span><span class='period'>.</span><span class='id now'>now</span><span class='period'>.</span><span class='id strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%Y-%m-%dT%H:%M:%S</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:xsi:type</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>dcterms:W3CDTF</span><span class='tstring_end'>"</span></span>
|
432
|
+
<span class='id xml'>xml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id revision'>revision</span> <span class='int'>0</span>
|
433
|
+
<span class='rbrace'>}</span>
|
434
|
+
<span class='kw'>end</span>
|
435
|
+
<span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span>
|
436
|
+
<span class='kw'>end</span></pre>
|
449
437
|
</td>
|
450
438
|
</tr>
|
451
439
|
</table>
|
@@ -456,9 +444,9 @@ time when this method is called.
|
|
456
444
|
</div>
|
457
445
|
|
458
446
|
<div id="footer">
|
459
|
-
Generated on
|
447
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
460
448
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
461
|
-
0.7.3 (ruby-1.
|
449
|
+
0.7.3 (ruby-1.9.3).
|
462
450
|
</div>
|
463
451
|
|
464
452
|
</body>
|