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/TableStyles.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::TableStyles
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -99,18 +99,16 @@
|
|
|
99
99
|
|
|
100
100
|
<div class="note notetag">
|
|
101
101
|
<strong>Note:</strong>
|
|
102
|
-
<div class='inline'
|
|
103
|
-
Support for custom table styles does not exist in this version. Many of the
|
|
102
|
+
<div class='inline'>
|
|
103
|
+
<p>Support for custom table styles does not exist in this version. Many of the
|
|
104
104
|
classes required are defined in preparation for future release. Please do
|
|
105
|
-
not attempt to add custom table styles
|
|
106
|
-
</p>
|
|
105
|
+
not attempt to add custom table styles.</p>
|
|
107
106
|
</div>
|
|
108
107
|
</div>
|
|
109
108
|
|
|
110
|
-
|
|
111
|
-
TableStyles represents a collection of style definitions for table styles
|
|
112
|
-
and pivot table styles
|
|
113
|
-
</p>
|
|
109
|
+
|
|
110
|
+
<p>TableStyles represents a collection of style definitions for table styles
|
|
111
|
+
and pivot table styles.</p>
|
|
114
112
|
|
|
115
113
|
|
|
116
114
|
</div>
|
|
@@ -146,9 +144,8 @@ and pivot table styles.
|
|
|
146
144
|
|
|
147
145
|
|
|
148
146
|
|
|
149
|
-
<span class="summary_desc"><div class='inline'
|
|
150
|
-
The default pivot table style
|
|
151
|
-
</p>
|
|
147
|
+
<span class="summary_desc"><div class='inline'>
|
|
148
|
+
<p>The default pivot table style.</p>
|
|
152
149
|
</div></span>
|
|
153
150
|
|
|
154
151
|
</li>
|
|
@@ -173,9 +170,8 @@ The default pivot table style.
|
|
|
173
170
|
|
|
174
171
|
|
|
175
172
|
|
|
176
|
-
<span class="summary_desc"><div class='inline'
|
|
177
|
-
The default table style
|
|
178
|
-
</p>
|
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
|
174
|
+
<p>The default table style.</p>
|
|
179
175
|
</div></span>
|
|
180
176
|
|
|
181
177
|
</li>
|
|
@@ -220,10 +216,9 @@ The default table style.
|
|
|
220
216
|
|
|
221
217
|
|
|
222
218
|
|
|
223
|
-
<span class="summary_desc"><div class='inline'
|
|
224
|
-
Creates a new TableStyles object that is a container for TableStyle
|
|
225
|
-
objects
|
|
226
|
-
</p>
|
|
219
|
+
<span class="summary_desc"><div class='inline'>
|
|
220
|
+
<p>Creates a new TableStyles object that is a container for TableStyle
|
|
221
|
+
objects.</p>
|
|
227
222
|
</div></span>
|
|
228
223
|
|
|
229
224
|
</li>
|
|
@@ -245,9 +240,8 @@ objects.
|
|
|
245
240
|
|
|
246
241
|
|
|
247
242
|
|
|
248
|
-
<span class="summary_desc"><div class='inline'
|
|
249
|
-
Serializes the table styles element
|
|
250
|
-
</p>
|
|
243
|
+
<span class="summary_desc"><div class='inline'>
|
|
244
|
+
<p>Serializes the table styles element.</p>
|
|
251
245
|
</div></span>
|
|
252
246
|
|
|
253
247
|
</li>
|
|
@@ -261,12 +255,7 @@ Serializes the table styles element.
|
|
|
261
255
|
|
|
262
256
|
|
|
263
257
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
|
|
268
|
-
<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>
|
|
269
|
-
<div id="constructor_details" class="method_details_list">
|
|
258
|
+
<div id="constructor_details" class="method_details_list">
|
|
270
259
|
<h2>Constructor Details</h2>
|
|
271
260
|
|
|
272
261
|
<div class="method_details first">
|
|
@@ -278,9 +267,8 @@ Serializes the table styles element.
|
|
|
278
267
|
|
|
279
268
|
</p><div class="docstring">
|
|
280
269
|
<div class="discussion">
|
|
281
|
-
|
|
282
|
-
Creates a new TableStyles object that is a container for TableStyle objects
|
|
283
|
-
</p>
|
|
270
|
+
|
|
271
|
+
<p>Creates a new TableStyles object that is a container for TableStyle objects</p>
|
|
284
272
|
|
|
285
273
|
|
|
286
274
|
</div>
|
|
@@ -301,9 +289,8 @@ Creates a new TableStyles object that is a container for TableStyle objects
|
|
|
301
289
|
|
|
302
290
|
|
|
303
291
|
—
|
|
304
|
-
<div class='inline'
|
|
305
|
-
a customizable set of options
|
|
306
|
-
</p>
|
|
292
|
+
<div class='inline'>
|
|
293
|
+
<p>a customizable set of options</p>
|
|
307
294
|
</div>
|
|
308
295
|
|
|
309
296
|
</li>
|
|
@@ -344,21 +331,20 @@ a customizable set of options
|
|
|
344
331
|
<pre class="lines">
|
|
345
332
|
|
|
346
333
|
|
|
334
|
+
17
|
|
347
335
|
18
|
|
348
336
|
19
|
|
349
337
|
20
|
|
350
|
-
21
|
|
351
|
-
22</pre>
|
|
338
|
+
21</pre>
|
|
352
339
|
</td>
|
|
353
340
|
<td>
|
|
354
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line
|
|
355
|
-
|
|
356
|
-
<span class='
|
|
357
|
-
<span class='
|
|
358
|
-
<span class='
|
|
359
|
-
<span class='
|
|
360
|
-
<span class='
|
|
361
|
-
</pre>
|
|
341
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 17</span>
|
|
342
|
+
|
|
343
|
+
<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>
|
|
344
|
+
<span class='ivar'>@defaultTableStyle</span> <span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:defaultTableStyle</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>TableStyleMedium9</span><span class='tstring_end'>"</span></span>
|
|
345
|
+
<span class='ivar'>@defaultPivotStyle</span> <span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:defaultPivotStyle</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>PivotStyleLight16</span><span class='tstring_end'>"</span></span>
|
|
346
|
+
<span class='kw'>super</span> <span class='const'>TableStyle</span>
|
|
347
|
+
<span class='kw'>end</span></pre>
|
|
362
348
|
</td>
|
|
363
349
|
</tr>
|
|
364
350
|
</table>
|
|
@@ -391,10 +377,8 @@ a customizable set of options
|
|
|
391
377
|
|
|
392
378
|
</p><div class="docstring">
|
|
393
379
|
<div class="discussion">
|
|
394
|
-
|
|
395
|
-
The default pivot table style. The default value is
|
|
396
|
-
‘PivotStyleLight6’
|
|
397
|
-
</p>
|
|
380
|
+
|
|
381
|
+
<p>The default pivot table style. The default value is 'PivotStyleLight6'</p>
|
|
398
382
|
|
|
399
383
|
|
|
400
384
|
</div>
|
|
@@ -421,17 +405,16 @@ The default pivot table style. The default value is
|
|
|
421
405
|
<pre class="lines">
|
|
422
406
|
|
|
423
407
|
|
|
408
|
+
12
|
|
424
409
|
13
|
|
425
|
-
14
|
|
426
|
-
15</pre>
|
|
410
|
+
14</pre>
|
|
427
411
|
</td>
|
|
428
412
|
<td>
|
|
429
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line
|
|
413
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 12</span>
|
|
430
414
|
|
|
431
|
-
<span class='
|
|
432
|
-
<span class='
|
|
433
|
-
<span class='
|
|
434
|
-
</pre>
|
|
415
|
+
<span class='kw'>def</span> <span class='id defaultPivotStyle'>defaultPivotStyle</span>
|
|
416
|
+
<span class='ivar'>@defaultPivotStyle</span>
|
|
417
|
+
<span class='kw'>end</span></pre>
|
|
435
418
|
</td>
|
|
436
419
|
</tr>
|
|
437
420
|
</table>
|
|
@@ -449,10 +432,8 @@ The default pivot table style. The default value is
|
|
|
449
432
|
|
|
450
433
|
</p><div class="docstring">
|
|
451
434
|
<div class="discussion">
|
|
452
|
-
|
|
453
|
-
The default table style. The default value is
|
|
454
|
-
‘TableStyleMedium9’
|
|
455
|
-
</p>
|
|
435
|
+
|
|
436
|
+
<p>The default table style. The default value is 'TableStyleMedium9'</p>
|
|
456
437
|
|
|
457
438
|
|
|
458
439
|
</div>
|
|
@@ -479,17 +460,16 @@ The default table style. The default value is
|
|
|
479
460
|
<pre class="lines">
|
|
480
461
|
|
|
481
462
|
|
|
463
|
+
8
|
|
482
464
|
9
|
|
483
|
-
10
|
|
484
|
-
11</pre>
|
|
465
|
+
10</pre>
|
|
485
466
|
</td>
|
|
486
467
|
<td>
|
|
487
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line
|
|
468
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 8</span>
|
|
488
469
|
|
|
489
|
-
<span class='
|
|
490
|
-
<span class='
|
|
491
|
-
<span class='
|
|
492
|
-
</pre>
|
|
470
|
+
<span class='kw'>def</span> <span class='id defaultTableStyle'>defaultTableStyle</span>
|
|
471
|
+
<span class='ivar'>@defaultTableStyle</span>
|
|
472
|
+
<span class='kw'>end</span></pre>
|
|
493
473
|
</td>
|
|
494
474
|
</tr>
|
|
495
475
|
</table>
|
|
@@ -511,9 +491,8 @@ The default table style. The default value is
|
|
|
511
491
|
|
|
512
492
|
</p><div class="docstring">
|
|
513
493
|
<div class="discussion">
|
|
514
|
-
|
|
515
|
-
Serializes the table styles element
|
|
516
|
-
</p>
|
|
494
|
+
|
|
495
|
+
<p>Serializes the table styles element</p>
|
|
517
496
|
|
|
518
497
|
|
|
519
498
|
</div>
|
|
@@ -532,9 +511,8 @@ Serializes the table styles element
|
|
|
532
511
|
|
|
533
512
|
|
|
534
513
|
—
|
|
535
|
-
<div class='inline'
|
|
536
|
-
The document builder instance this objects xml will be added to
|
|
537
|
-
</p>
|
|
514
|
+
<div class='inline'>
|
|
515
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
538
516
|
</div>
|
|
539
517
|
|
|
540
518
|
</li>
|
|
@@ -572,14 +550,13 @@ The document builder instance this objects xml will be added to.
|
|
|
572
550
|
<td>
|
|
573
551
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 30</span>
|
|
574
552
|
|
|
575
|
-
<span class='
|
|
576
|
-
<span class='attr
|
|
577
|
-
<span class='attr
|
|
578
|
-
<span class='xml
|
|
579
|
-
<span class='
|
|
580
|
-
<span class='rbrace
|
|
581
|
-
<span class='
|
|
582
|
-
</pre>
|
|
553
|
+
<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>
|
|
554
|
+
<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 reject'>reject</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span> <span class='id v'>v</span><span class='op'>|</span> <span class='op'>!</span><span class='lbracket'>[</span><span class='symbol'>:defaultTableStyle</span><span class='comma'>,</span> <span class='symbol'>:defaultPivotStyle</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id k'>k</span><span class='period'>.</span><span class='id to_sym'>to_sym</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
555
|
+
<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>
|
|
556
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id tableStyles'>tableStyles</span><span class='lparen'>(</span><span class='id attr'>attr</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
557
|
+
<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'>table_style</span><span class='op'>|</span> <span class='id table_style'>table_style</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>
|
|
558
|
+
<span class='rbrace'>}</span>
|
|
559
|
+
<span class='kw'>end</span></pre>
|
|
583
560
|
</td>
|
|
584
561
|
</tr>
|
|
585
562
|
</table>
|
|
@@ -590,9 +567,9 @@ The document builder instance this objects xml will be added to.
|
|
|
590
567
|
</div>
|
|
591
568
|
|
|
592
569
|
<div id="footer">
|
|
593
|
-
Generated on
|
|
570
|
+
Generated on Sat Nov 26 13:16:39 2011 by
|
|
594
571
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
595
|
-
0.7.3 (ruby-1.
|
|
572
|
+
0.7.3 (ruby-1.9.3).
|
|
596
573
|
</div>
|
|
597
574
|
|
|
598
575
|
</body>
|
data/doc/Axlsx/Title.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Title
|
|
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 Title stores information about the title of a chart
|
|
99
|
-
</p>
|
|
97
|
+
|
|
98
|
+
<p>A Title stores information about the title of a chart</p>
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
</div>
|
|
@@ -132,9 +131,8 @@ A Title stores information about the title of a chart
|
|
|
132
131
|
|
|
133
132
|
|
|
134
133
|
|
|
135
|
-
<span class="summary_desc"><div class='inline'
|
|
136
|
-
The cell that holds the text for the title
|
|
137
|
-
</p>
|
|
134
|
+
<span class="summary_desc"><div class='inline'>
|
|
135
|
+
<p>The cell that holds the text for the title.</p>
|
|
138
136
|
</div></span>
|
|
139
137
|
|
|
140
138
|
</li>
|
|
@@ -159,9 +157,8 @@ The cell that holds the text for the title.
|
|
|
159
157
|
|
|
160
158
|
|
|
161
159
|
|
|
162
|
-
<span class="summary_desc"><div class='inline'
|
|
163
|
-
The text to be shown
|
|
164
|
-
</p>
|
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
|
161
|
+
<p>The text to be shown.</p>
|
|
165
162
|
</div></span>
|
|
166
163
|
|
|
167
164
|
</li>
|
|
@@ -198,34 +195,8 @@ The text to be shown.
|
|
|
198
195
|
|
|
199
196
|
|
|
200
197
|
|
|
201
|
-
<span class="summary_desc"><div class='inline'
|
|
202
|
-
Creates a new Title object
|
|
203
|
-
</p>
|
|
204
|
-
</div></span>
|
|
205
|
-
|
|
206
|
-
</li>
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<li class="public ">
|
|
210
|
-
<span class="summary_signature">
|
|
211
|
-
|
|
212
|
-
<a href="#range-instance_method" title="#range (instance method)">- (String) <strong>range</strong> </a>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
</span>
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
226
|
-
returns the excel style abslute reference for the title when title is a
|
|
227
|
-
Cell object.
|
|
228
|
-
</p>
|
|
198
|
+
<span class="summary_desc"><div class='inline'>
|
|
199
|
+
<p>Creates a new Title object.</p>
|
|
229
200
|
</div></span>
|
|
230
201
|
|
|
231
202
|
</li>
|
|
@@ -247,9 +218,8 @@ Cell object.
|
|
|
247
218
|
|
|
248
219
|
|
|
249
220
|
|
|
250
|
-
<span class="summary_desc"><div class='inline'
|
|
251
|
-
Serializes the chart title
|
|
252
|
-
</p>
|
|
221
|
+
<span class="summary_desc"><div class='inline'>
|
|
222
|
+
<p>Serializes the chart title.</p>
|
|
253
223
|
</div></span>
|
|
254
224
|
|
|
255
225
|
</li>
|
|
@@ -270,9 +240,8 @@ Serializes the chart title.
|
|
|
270
240
|
|
|
271
241
|
</p><div class="docstring">
|
|
272
242
|
<div class="discussion">
|
|
273
|
-
|
|
274
|
-
Creates a new Title object
|
|
275
|
-
</p>
|
|
243
|
+
|
|
244
|
+
<p>Creates a new Title object</p>
|
|
276
245
|
|
|
277
246
|
|
|
278
247
|
</div>
|
|
@@ -293,9 +262,8 @@ Creates a new Title object
|
|
|
293
262
|
|
|
294
263
|
|
|
295
264
|
—
|
|
296
|
-
<div class='inline'
|
|
297
|
-
The cell or string to be used for the chart
|
|
298
|
-
</p>
|
|
265
|
+
<div class='inline'>
|
|
266
|
+
<p>The cell or string to be used for the chart's title</p>
|
|
299
267
|
</div>
|
|
300
268
|
|
|
301
269
|
</li>
|
|
@@ -317,11 +285,10 @@ The cell or string to be used for the chart’s title
|
|
|
317
285
|
<td>
|
|
318
286
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 15</span>
|
|
319
287
|
|
|
320
|
-
<span class='
|
|
321
|
-
<span class='
|
|
322
|
-
<span class='
|
|
323
|
-
<span class='
|
|
324
|
-
</pre>
|
|
288
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id title'>title</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
289
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id cell'>cell</span> <span class='op'>=</span> <span class='id title'>title</span> <span class='kw'>if</span> <span class='id title'>title</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Cell</span><span class='rparen'>)</span>
|
|
290
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id text'>text</span> <span class='op'>=</span> <span class='id title'>title</span><span class='period'>.</span><span class='id to_s'>to_s</span> <span class='kw'>unless</span> <span class='id title'>title</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Cell</span><span class='rparen'>)</span>
|
|
291
|
+
<span class='kw'>end</span></pre>
|
|
325
292
|
</td>
|
|
326
293
|
</tr>
|
|
327
294
|
</table>
|
|
@@ -344,10 +311,9 @@ The cell or string to be used for the chart’s title
|
|
|
344
311
|
|
|
345
312
|
</p><div class="docstring">
|
|
346
313
|
<div class="discussion">
|
|
347
|
-
|
|
348
|
-
The cell that holds the text for the title. Setting this property will
|
|
349
|
-
automatically update the text attribute
|
|
350
|
-
</p>
|
|
314
|
+
|
|
315
|
+
<p>The cell that holds the text for the title. Setting this property will
|
|
316
|
+
automatically update the text attribute.</p>
|
|
351
317
|
|
|
352
318
|
|
|
353
319
|
</div>
|
|
@@ -381,10 +347,9 @@ automatically update the text attribute.
|
|
|
381
347
|
<td>
|
|
382
348
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 11</span>
|
|
383
349
|
|
|
384
|
-
<span class='
|
|
385
|
-
<span class='
|
|
386
|
-
<span class='
|
|
387
|
-
</pre>
|
|
350
|
+
<span class='kw'>def</span> <span class='id cell'>cell</span>
|
|
351
|
+
<span class='ivar'>@cell</span>
|
|
352
|
+
<span class='kw'>end</span></pre>
|
|
388
353
|
</td>
|
|
389
354
|
</tr>
|
|
390
355
|
</table>
|
|
@@ -402,10 +367,9 @@ automatically update the text attribute.
|
|
|
402
367
|
|
|
403
368
|
</p><div class="docstring">
|
|
404
369
|
<div class="discussion">
|
|
405
|
-
|
|
406
|
-
The text to be shown. Setting this property directly with a string will
|
|
407
|
-
remove the cell reference
|
|
408
|
-
</p>
|
|
370
|
+
|
|
371
|
+
<p>The text to be shown. Setting this property directly with a string will
|
|
372
|
+
remove the cell reference.</p>
|
|
409
373
|
|
|
410
374
|
|
|
411
375
|
</div>
|
|
@@ -439,10 +403,9 @@ remove the cell reference.
|
|
|
439
403
|
<td>
|
|
440
404
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 7</span>
|
|
441
405
|
|
|
442
|
-
<span class='
|
|
443
|
-
<span class='
|
|
444
|
-
<span class='
|
|
445
|
-
</pre>
|
|
406
|
+
<span class='kw'>def</span> <span class='id text'>text</span>
|
|
407
|
+
<span class='ivar'>@text</span>
|
|
408
|
+
<span class='kw'>end</span></pre>
|
|
446
409
|
</td>
|
|
447
410
|
</tr>
|
|
448
411
|
</table>
|
|
@@ -456,64 +419,7 @@ remove the cell reference.
|
|
|
456
419
|
|
|
457
420
|
|
|
458
421
|
<div class="method_details first">
|
|
459
|
-
<p class="signature first" id="
|
|
460
|
-
|
|
461
|
-
- (<tt>String</tt>) <strong>range</strong>
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
</p><div class="docstring">
|
|
466
|
-
<div class="discussion">
|
|
467
|
-
<p>
|
|
468
|
-
returns the excel style abslute reference for the title when title is a
|
|
469
|
-
Cell object
|
|
470
|
-
</p>
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
</div>
|
|
474
|
-
</div>
|
|
475
|
-
<div class="tags">
|
|
476
|
-
|
|
477
|
-
<h3>Returns:</h3>
|
|
478
|
-
<ul class="return">
|
|
479
|
-
|
|
480
|
-
<li>
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
</li>
|
|
488
|
-
|
|
489
|
-
</ul>
|
|
490
|
-
|
|
491
|
-
</div><table class="source_code">
|
|
492
|
-
<tr>
|
|
493
|
-
<td>
|
|
494
|
-
<pre class="lines">
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
62
|
|
498
|
-
63
|
|
499
|
-
64
|
|
500
|
-
65</pre>
|
|
501
|
-
</td>
|
|
502
|
-
<td>
|
|
503
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 62</span>
|
|
504
|
-
|
|
505
|
-
<span class='def def kw'>def</span> <span class='range identifier id'>range</span>
|
|
506
|
-
<span class='return return kw'>return</span> <span class='string val'>""</span> <span class='unless unless_mod kw'>unless</span> <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Cell constant id'>Cell</span><span class='rparen token'>)</span>
|
|
507
|
-
<span class='dstring node'>"#{@data.row.worksheet.name}!#{data.row.r_abs}"</span>
|
|
508
|
-
<span class='end end kw'>end</span>
|
|
509
|
-
</pre>
|
|
510
|
-
</td>
|
|
511
|
-
</tr>
|
|
512
|
-
</table>
|
|
513
|
-
</div>
|
|
514
|
-
|
|
515
|
-
<div class="method_details ">
|
|
516
|
-
<p class="signature " id="to_xml-instance_method">
|
|
422
|
+
<p class="signature first" id="to_xml-instance_method">
|
|
517
423
|
|
|
518
424
|
- (<tt>String</tt>) <strong>to_xml</strong>(xml)
|
|
519
425
|
|
|
@@ -521,9 +427,8 @@ Cell object
|
|
|
521
427
|
|
|
522
428
|
</p><div class="docstring">
|
|
523
429
|
<div class="discussion">
|
|
524
|
-
|
|
525
|
-
Serializes the chart title
|
|
526
|
-
</p>
|
|
430
|
+
|
|
431
|
+
<p>Serializes the chart title</p>
|
|
527
432
|
|
|
528
433
|
|
|
529
434
|
</div>
|
|
@@ -542,9 +447,8 @@ Serializes the chart title
|
|
|
542
447
|
|
|
543
448
|
|
|
544
449
|
—
|
|
545
|
-
<div class='inline'
|
|
546
|
-
The document builder instance this objects xml will be added to
|
|
547
|
-
</p>
|
|
450
|
+
<div class='inline'>
|
|
451
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
548
452
|
</div>
|
|
549
453
|
|
|
550
454
|
</li>
|
|
@@ -571,8 +475,6 @@ The document builder instance this objects xml will be added to.
|
|
|
571
475
|
<pre class="lines">
|
|
572
476
|
|
|
573
477
|
|
|
574
|
-
42
|
|
575
|
-
43
|
|
576
478
|
44
|
|
577
479
|
45
|
|
578
480
|
46
|
|
@@ -585,27 +487,28 @@ The document builder instance this objects xml will be added to.
|
|
|
585
487
|
53
|
|
586
488
|
54
|
|
587
489
|
55
|
|
588
|
-
56
|
|
490
|
+
56
|
|
491
|
+
57
|
|
492
|
+
58</pre>
|
|
589
493
|
</td>
|
|
590
494
|
<td>
|
|
591
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line
|
|
592
|
-
|
|
593
|
-
<span class='
|
|
594
|
-
<span class='xml
|
|
595
|
-
<span class='xml
|
|
596
|
-
<span class='xml
|
|
597
|
-
<span class='xml
|
|
598
|
-
<span class='xml
|
|
599
|
-
<span class='xml
|
|
600
|
-
<span class='xml
|
|
601
|
-
<span class='xml
|
|
602
|
-
<span class='rbrace
|
|
603
|
-
<span class='rbrace
|
|
604
|
-
<span class='rbrace
|
|
605
|
-
<span class='rbrace
|
|
606
|
-
<span class='rbrace
|
|
607
|
-
<span class='
|
|
608
|
-
</pre>
|
|
495
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 44</span>
|
|
496
|
+
|
|
497
|
+
<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>
|
|
498
|
+
<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:title</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
499
|
+
<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:tx</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
500
|
+
<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:strRef</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
501
|
+
<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:f</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='id cell_range'>cell_range</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='ivar'>@cell</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
502
|
+
<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:strCache</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
503
|
+
<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:ptCount</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='int'>1</span><span class='rparen'>)</span>
|
|
504
|
+
<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:pt</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:idx</span><span class='op'>=></span><span class='int'>0</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
505
|
+
<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:v</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='ivar'>@text</span><span class='rparen'>)</span>
|
|
506
|
+
<span class='rbrace'>}</span>
|
|
507
|
+
<span class='rbrace'>}</span>
|
|
508
|
+
<span class='rbrace'>}</span>
|
|
509
|
+
<span class='rbrace'>}</span>
|
|
510
|
+
<span class='rbrace'>}</span>
|
|
511
|
+
<span class='kw'>end</span></pre>
|
|
609
512
|
</td>
|
|
610
513
|
</tr>
|
|
611
514
|
</table>
|
|
@@ -616,9 +519,9 @@ The document builder instance this objects xml will be added to.
|
|
|
616
519
|
</div>
|
|
617
520
|
|
|
618
521
|
<div id="footer">
|
|
619
|
-
Generated on
|
|
522
|
+
Generated on Sat Nov 26 13:16:36 2011 by
|
|
620
523
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
621
|
-
0.7.3 (ruby-1.
|
|
524
|
+
0.7.3 (ruby-1.9.3).
|
|
622
525
|
</div>
|
|
623
526
|
|
|
624
527
|
</body>
|