axlsx 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +14 -0
- data/Gemfile +3 -7
- data/Gemfile.lock +17 -8
- data/README.md +88 -59
- data/axlsx.gemspec +9 -3
- data/doc/Axlsx.html +482 -248
- data/doc/Axlsx/App.html +237 -159
- data/doc/Axlsx/Axis.html +75 -51
- data/doc/Axlsx/Bar3DChart.html +75 -53
- data/doc/Axlsx/BarSeries.html +45 -31
- data/doc/Axlsx/Border.html +70 -50
- data/doc/Axlsx/BorderPr.html +80 -62
- data/doc/Axlsx/CatAxis.html +62 -43
- data/doc/Axlsx/CatAxisData.html +23 -16
- data/doc/Axlsx/Cell.html +2022 -393
- data/doc/Axlsx/CellAlignment.html +103 -75
- data/doc/Axlsx/CellProtection.html +44 -30
- data/doc/Axlsx/CellStyle.html +66 -46
- data/doc/Axlsx/Chart.html +159 -108
- data/doc/Axlsx/Color.html +73 -52
- data/doc/Axlsx/ContentType.html +20 -14
- data/doc/Axlsx/Core.html +29 -20
- data/doc/Axlsx/DataTypeValidator.html +27 -19
- data/doc/Axlsx/Default.html +39 -27
- data/doc/Axlsx/Drawing.html +104 -70
- data/doc/Axlsx/Fill.html +33 -23
- data/doc/Axlsx/Font.html +132 -98
- data/doc/Axlsx/GradientFill.html +70 -48
- data/doc/Axlsx/GradientStop.html +31 -21
- data/doc/Axlsx/GraphicFrame.html +40 -27
- data/doc/Axlsx/Line3DChart.html +62 -43
- data/doc/Axlsx/LineSeries.html +37 -25
- data/doc/Axlsx/Marker.html +63 -43
- data/doc/Axlsx/NumFmt.html +79 -65
- data/doc/Axlsx/OneCellAnchor.html +78 -54
- data/doc/Axlsx/Override.html +39 -27
- data/doc/Axlsx/Package.html +103 -163
- data/doc/Axlsx/Parser.html +549 -0
- data/doc/Axlsx/PatternFill.html +66 -51
- data/doc/Axlsx/Pic.html +230 -123
- data/doc/Axlsx/PictureLocking.html +1159 -0
- data/doc/Axlsx/Pie3DChart.html +23 -16
- data/doc/Axlsx/PieSeries.html +44 -30
- data/doc/Axlsx/RegexValidator.html +14 -10
- data/doc/Axlsx/Relationship.html +40 -27
- data/doc/Axlsx/Relationships.html +20 -14
- data/doc/Axlsx/RestrictionValidator.html +25 -17
- data/doc/Axlsx/Row.html +73 -53
- data/doc/Axlsx/Scaling.html +46 -31
- data/doc/Axlsx/SerAxis.html +49 -33
- data/doc/Axlsx/Series.html +51 -35
- data/doc/Axlsx/SeriesTitle.html +14 -10
- data/doc/Axlsx/Styles.html +210 -156
- data/doc/Axlsx/TableStyle.html +47 -32
- data/doc/Axlsx/TableStyleElement.html +75 -61
- data/doc/Axlsx/TableStyles.html +42 -28
- data/doc/Axlsx/Title.html +36 -25
- data/doc/Axlsx/TwoCellAnchor.html +83 -58
- data/doc/Axlsx/ValAxis.html +35 -24
- data/doc/Axlsx/ValAxisData.html +13 -9
- data/doc/Axlsx/View3D.html +64 -43
- data/doc/Axlsx/Workbook.html +305 -147
- data/doc/Axlsx/Worksheet.html +567 -271
- data/doc/Axlsx/Xf.html +114 -77
- data/doc/_index.html +15 -1
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +1 -1
- data/doc/file.LICENSE.html +25 -21
- data/doc/file.README.html +89 -66
- data/doc/index.html +89 -66
- data/doc/js/app.js +4 -4
- data/doc/method_list.html +717 -413
- data/doc/top-level-namespace.html +1 -1
- data/examples/example.rb +52 -25
- data/examples/follow_20111202.xlsx +0 -0
- data/lib/axlsx.rb +14 -1
- data/lib/axlsx/drawing/chart.rb +20 -4
- data/lib/axlsx/drawing/drawing.rb +1 -1
- data/lib/axlsx/drawing/pic.rb +5 -2
- data/lib/axlsx/drawing/picture_locking.rb +72 -0
- data/lib/axlsx/package.rb +9 -7
- data/lib/axlsx/stylesheet/color.rb +19 -9
- data/lib/axlsx/stylesheet/styles.rb +2 -0
- data/lib/axlsx/util/constants.rb +6 -0
- data/lib/axlsx/util/parser.rb +43 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +21 -1
- data/lib/axlsx/workbook/worksheet/cell.rb +159 -7
- data/lib/axlsx/workbook/worksheet/row.rb +4 -2
- data/lib/axlsx/workbook/worksheet/worksheet.rb +38 -4
- data/test/drawing/tc_picture_locking.rb +73 -0
- data/test/rels/tc_relationships.rb +0 -1
- data/test/stylesheet/tc_styles.rb +0 -12
- data/test/tc_package.rb +5 -3
- data/test/workbook/tc_workbook.rb +7 -0
- data/test/workbook/worksheet/tc_cell.rb +102 -1
- data/test/workbook/worksheet/tc_worksheet.rb +17 -0
- metadata +79 -19
- data/doc/Axlsx/Ar.html +0 -196
- data/doc/Axlsx/Ar/ClassMethods.html +0 -188
- data/doc/Axlsx/Ar/InstanceMethods.html +0 -108
- data/doc/Axlsx/Ar/SingletonMethods.html +0 -312
data/doc/Axlsx/ValAxisData.html
CHANGED
@@ -98,8 +98,9 @@
|
|
98
98
|
|
99
99
|
<h2>Overview</h2><div class="docstring">
|
100
100
|
<div class="discussion">
|
101
|
-
|
102
|
-
|
101
|
+
<p>
|
102
|
+
The ValAxisData class manages the values for a chart value series.
|
103
|
+
</p>
|
103
104
|
|
104
105
|
|
105
106
|
</div>
|
@@ -155,8 +156,9 @@
|
|
155
156
|
|
156
157
|
|
157
158
|
|
158
|
-
<span class="summary_desc"><div class='inline'>
|
159
|
-
|
159
|
+
<span class="summary_desc"><div class='inline'><p>
|
160
|
+
Serializes the value axis data.
|
161
|
+
</p>
|
160
162
|
</div></span>
|
161
163
|
|
162
164
|
</li>
|
@@ -211,8 +213,9 @@
|
|
211
213
|
|
212
214
|
</p><div class="docstring">
|
213
215
|
<div class="discussion">
|
214
|
-
|
215
|
-
|
216
|
+
<p>
|
217
|
+
Serializes the value axis data
|
218
|
+
</p>
|
216
219
|
|
217
220
|
|
218
221
|
</div>
|
@@ -231,8 +234,9 @@
|
|
231
234
|
|
232
235
|
|
233
236
|
—
|
234
|
-
<div class='inline'>
|
235
|
-
|
237
|
+
<div class='inline'><p>
|
238
|
+
The document builder instance this objects xml will be added to.
|
239
|
+
</p>
|
236
240
|
</div>
|
237
241
|
|
238
242
|
</li>
|
@@ -308,7 +312,7 @@
|
|
308
312
|
</div>
|
309
313
|
|
310
314
|
<div id="footer">
|
311
|
-
Generated on
|
315
|
+
Generated on Mon Dec 5 14:21:09 2011 by
|
312
316
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
313
317
|
0.7.3 (ruby-1.8.7).
|
314
318
|
</div>
|
data/doc/Axlsx/View3D.html
CHANGED
@@ -94,8 +94,9 @@
|
|
94
94
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
96
96
|
<div class="discussion">
|
97
|
-
|
98
|
-
|
97
|
+
<p>
|
98
|
+
3D attributes for a chart.
|
99
|
+
</p>
|
99
100
|
|
100
101
|
|
101
102
|
</div>
|
@@ -111,8 +112,9 @@
|
|
111
112
|
<dt id="H_PERCENT_REGEX-constant" class="">H_PERCENT_REGEX =
|
112
113
|
<div class="docstring">
|
113
114
|
<div class="discussion">
|
114
|
-
|
115
|
-
|
115
|
+
<p>
|
116
|
+
Validation for hPercent
|
117
|
+
</p>
|
116
118
|
|
117
119
|
|
118
120
|
</div>
|
@@ -128,8 +130,9 @@
|
|
128
130
|
<dt id="DEPTH_PERCENT_REGEX-constant" class="">DEPTH_PERCENT_REGEX =
|
129
131
|
<div class="docstring">
|
130
132
|
<div class="discussion">
|
131
|
-
|
132
|
-
|
133
|
+
<p>
|
134
|
+
validation for depthPercent
|
135
|
+
</p>
|
133
136
|
|
134
137
|
|
135
138
|
</div>
|
@@ -168,8 +171,9 @@
|
|
168
171
|
|
169
172
|
|
170
173
|
|
171
|
-
<span class="summary_desc"><div class='inline'>
|
172
|
-
|
174
|
+
<span class="summary_desc"><div class='inline'><p>
|
175
|
+
depth or chart as % of chart width must be between 20% and 2000%.
|
176
|
+
</p>
|
173
177
|
</div></span>
|
174
178
|
|
175
179
|
</li>
|
@@ -194,8 +198,9 @@
|
|
194
198
|
|
195
199
|
|
196
200
|
|
197
|
-
<span class="summary_desc"><div class='inline'>
|
198
|
-
|
201
|
+
<span class="summary_desc"><div class='inline'><p>
|
202
|
+
height of chart as % of chart must be between 5% and 500%.
|
203
|
+
</p>
|
199
204
|
</div></span>
|
200
205
|
|
201
206
|
</li>
|
@@ -220,8 +225,9 @@
|
|
220
225
|
|
221
226
|
|
222
227
|
|
223
|
-
<span class="summary_desc"><div class='inline'>
|
224
|
-
|
228
|
+
<span class="summary_desc"><div class='inline'><p>
|
229
|
+
field of view angle.
|
230
|
+
</p>
|
225
231
|
</div></span>
|
226
232
|
|
227
233
|
</li>
|
@@ -246,8 +252,9 @@
|
|
246
252
|
|
247
253
|
|
248
254
|
|
249
|
-
<span class="summary_desc"><div class='inline'>
|
250
|
-
|
255
|
+
<span class="summary_desc"><div class='inline'><p>
|
256
|
+
Chart axis are at right angles.
|
257
|
+
</p>
|
251
258
|
</div></span>
|
252
259
|
|
253
260
|
</li>
|
@@ -272,8 +279,9 @@
|
|
272
279
|
|
273
280
|
|
274
281
|
|
275
|
-
<span class="summary_desc"><div class='inline'>
|
276
|
-
|
282
|
+
<span class="summary_desc"><div class='inline'><p>
|
283
|
+
x rotation for the chart must be between -90 and 90.
|
284
|
+
</p>
|
277
285
|
</div></span>
|
278
286
|
|
279
287
|
</li>
|
@@ -298,8 +306,9 @@
|
|
298
306
|
|
299
307
|
|
300
308
|
|
301
|
-
<span class="summary_desc"><div class='inline'>
|
302
|
-
|
309
|
+
<span class="summary_desc"><div class='inline'><p>
|
310
|
+
y rotation for the chart must be between 0 and 360.
|
311
|
+
</p>
|
303
312
|
</div></span>
|
304
313
|
|
305
314
|
</li>
|
@@ -336,8 +345,9 @@
|
|
336
345
|
|
337
346
|
|
338
347
|
|
339
|
-
<span class="summary_desc"><div class='inline'>
|
340
|
-
|
348
|
+
<span class="summary_desc"><div class='inline'><p>
|
349
|
+
Creates a new View3D for charts.
|
350
|
+
</p>
|
341
351
|
</div></span>
|
342
352
|
|
343
353
|
</li>
|
@@ -359,8 +369,9 @@
|
|
359
369
|
|
360
370
|
|
361
371
|
|
362
|
-
<span class="summary_desc"><div class='inline'>
|
363
|
-
|
372
|
+
<span class="summary_desc"><div class='inline'><p>
|
373
|
+
Serializes the view3D properties.
|
374
|
+
</p>
|
364
375
|
</div></span>
|
365
376
|
|
366
377
|
</li>
|
@@ -381,8 +392,9 @@
|
|
381
392
|
|
382
393
|
</p><div class="docstring">
|
383
394
|
<div class="discussion">
|
384
|
-
|
385
|
-
|
395
|
+
<p>
|
396
|
+
Creates a new View3D for charts
|
397
|
+
</p>
|
386
398
|
|
387
399
|
|
388
400
|
</div>
|
@@ -403,8 +415,9 @@
|
|
403
415
|
|
404
416
|
|
405
417
|
—
|
406
|
-
<div class='inline'>
|
407
|
-
|
418
|
+
<div class='inline'><p>
|
419
|
+
a customizable set of options
|
420
|
+
</p>
|
408
421
|
</div>
|
409
422
|
|
410
423
|
</li>
|
@@ -520,8 +533,9 @@
|
|
520
533
|
|
521
534
|
</p><div class="docstring">
|
522
535
|
<div class="discussion">
|
523
|
-
|
524
|
-
|
536
|
+
<p>
|
537
|
+
depth or chart as % of chart width must be between 20% and 2000%
|
538
|
+
</p>
|
525
539
|
|
526
540
|
|
527
541
|
</div>
|
@@ -576,8 +590,9 @@
|
|
576
590
|
|
577
591
|
</p><div class="docstring">
|
578
592
|
<div class="discussion">
|
579
|
-
|
580
|
-
|
593
|
+
<p>
|
594
|
+
height of chart as % of chart must be between 5% and 500%
|
595
|
+
</p>
|
581
596
|
|
582
597
|
|
583
598
|
</div>
|
@@ -632,8 +647,9 @@
|
|
632
647
|
|
633
648
|
</p><div class="docstring">
|
634
649
|
<div class="discussion">
|
635
|
-
|
636
|
-
|
650
|
+
<p>
|
651
|
+
field of view angle
|
652
|
+
</p>
|
637
653
|
|
638
654
|
|
639
655
|
</div>
|
@@ -688,8 +704,9 @@
|
|
688
704
|
|
689
705
|
</p><div class="docstring">
|
690
706
|
<div class="discussion">
|
691
|
-
|
692
|
-
|
707
|
+
<p>
|
708
|
+
Chart axis are at right angles
|
709
|
+
</p>
|
693
710
|
|
694
711
|
|
695
712
|
</div>
|
@@ -744,8 +761,9 @@
|
|
744
761
|
|
745
762
|
</p><div class="docstring">
|
746
763
|
<div class="discussion">
|
747
|
-
|
748
|
-
|
764
|
+
<p>
|
765
|
+
x rotation for the chart must be between -90 and 90
|
766
|
+
</p>
|
749
767
|
|
750
768
|
|
751
769
|
</div>
|
@@ -800,8 +818,9 @@
|
|
800
818
|
|
801
819
|
</p><div class="docstring">
|
802
820
|
<div class="discussion">
|
803
|
-
|
804
|
-
|
821
|
+
<p>
|
822
|
+
y rotation for the chart must be between 0 and 360
|
823
|
+
</p>
|
805
824
|
|
806
825
|
|
807
826
|
</div>
|
@@ -860,8 +879,9 @@
|
|
860
879
|
|
861
880
|
</p><div class="docstring">
|
862
881
|
<div class="discussion">
|
863
|
-
|
864
|
-
|
882
|
+
<p>
|
883
|
+
Serializes the view3D properties
|
884
|
+
</p>
|
865
885
|
|
866
886
|
|
867
887
|
</div>
|
@@ -880,8 +900,9 @@
|
|
880
900
|
|
881
901
|
|
882
902
|
—
|
883
|
-
<div class='inline'>
|
884
|
-
|
903
|
+
<div class='inline'><p>
|
904
|
+
The document builder instance this objects xml will be added to.
|
905
|
+
</p>
|
885
906
|
</div>
|
886
907
|
|
887
908
|
</li>
|
@@ -943,7 +964,7 @@
|
|
943
964
|
</div>
|
944
965
|
|
945
966
|
<div id="footer">
|
946
|
-
Generated on
|
967
|
+
Generated on Mon Dec 5 14:21:17 2011 by
|
947
968
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
948
969
|
0.7.3 (ruby-1.8.7).
|
949
970
|
</div>
|
data/doc/Axlsx/Workbook.html
CHANGED
@@ -94,31 +94,32 @@
|
|
94
94
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
96
96
|
<div class="discussion">
|
97
|
-
|
98
|
-
|
97
|
+
<p>
|
98
|
+
The Workbook class is an xlsx workbook that manages worksheets, charts,
|
99
99
|
drawings and styles. The following parts of the Office Open XML spreadsheet
|
100
|
-
specification are not implimented in this version
|
101
|
-
|
102
|
-
<pre class="code"
|
103
|
-
<span class='
|
104
|
-
<span class='
|
105
|
-
<span class='
|
106
|
-
<span class='
|
107
|
-
<span class='
|
108
|
-
<span class='
|
109
|
-
<span class='
|
110
|
-
<span class='
|
111
|
-
<span class='
|
112
|
-
<span class='
|
113
|
-
<span class='
|
114
|
-
<span class='
|
115
|
-
<span class='
|
116
|
-
<span class='
|
117
|
-
<span class='
|
118
|
-
<span class='
|
119
|
-
<span class='
|
120
|
-
|
121
|
-
|
100
|
+
specification are not implimented in this version.
|
101
|
+
</p>
|
102
|
+
<pre class="code">
|
103
|
+
<span class='bookViews identifier id'>bookViews</span>
|
104
|
+
<span class='calcPr identifier id'>calcPr</span>
|
105
|
+
<span class='customWorkbookViews identifier id'>customWorkbookViews</span>
|
106
|
+
<span class='definedNames identifier id'>definedNames</span>
|
107
|
+
<span class='externalReferences identifier id'>externalReferences</span>
|
108
|
+
<span class='extLst identifier id'>extLst</span>
|
109
|
+
<span class='fileRecoveryPr identifier id'>fileRecoveryPr</span>
|
110
|
+
<span class='fileSharing identifier id'>fileSharing</span>
|
111
|
+
<span class='fileVersion identifier id'>fileVersion</span>
|
112
|
+
<span class='functionGroups identifier id'>functionGroups</span>
|
113
|
+
<span class='oleSize identifier id'>oleSize</span>
|
114
|
+
<span class='pivotCaches identifier id'>pivotCaches</span>
|
115
|
+
<span class='smartTagPr identifier id'>smartTagPr</span>
|
116
|
+
<span class='smartTagTypes identifier id'>smartTagTypes</span>
|
117
|
+
<span class='webPublishing identifier id'>webPublishing</span>
|
118
|
+
<span class='webPublishObjects identifier id'>webPublishObjects</span>
|
119
|
+
<span class='workbookProtection identifier id'>workbookProtection</span>
|
120
|
+
<span class='workbookPr identifier id'>workbookPr</span><span class='mult op'>*</span>
|
121
|
+
|
122
|
+
<span class='mult op'>*</span><span class='workbookPr identifier id'>workbookPr</span> <span class='is identifier id'>is</span> <span class='only identifier id'>only</span> <span class='supported identifier id'>supported</span> <span class='to identifier id'>to</span> <span class='the identifier id'>the</span> <span class='extend identifier id'>extend</span> <span class='of identifier id'>of</span> <span class='date1904 identifier id'>date1904</span>
|
122
123
|
</pre>
|
123
124
|
|
124
125
|
|
@@ -135,9 +136,10 @@ specification are not implimented in this version.</p>
|
|
135
136
|
<dt id="date1904-classvariable" class="">@@date1904 =
|
136
137
|
<div class="docstring">
|
137
138
|
<div class="discussion">
|
138
|
-
|
139
|
-
|
140
|
-
is used
|
139
|
+
<p>
|
140
|
+
Indicates if the epoc date for serialization should be 1904. If false, 1900
|
141
|
+
is used.
|
142
|
+
</p>
|
141
143
|
|
142
144
|
|
143
145
|
</div>
|
@@ -176,8 +178,9 @@ is used.</p>
|
|
176
178
|
|
177
179
|
|
178
180
|
|
179
|
-
<span class="summary_desc"><div class='inline'>
|
180
|
-
|
181
|
+
<span class="summary_desc"><div class='inline'><p>
|
182
|
+
A colllection of charts associated with this workbook.
|
183
|
+
</p>
|
181
184
|
</div></span>
|
182
185
|
|
183
186
|
</li>
|
@@ -202,8 +205,9 @@ is used.</p>
|
|
202
205
|
|
203
206
|
|
204
207
|
|
205
|
-
<span class="summary_desc"><div class='inline'>
|
206
|
-
|
208
|
+
<span class="summary_desc"><div class='inline'><p>
|
209
|
+
A colllection of drawings associated with this workbook.
|
210
|
+
</p>
|
207
211
|
</div></span>
|
208
212
|
|
209
213
|
</li>
|
@@ -228,8 +232,9 @@ is used.</p>
|
|
228
232
|
|
229
233
|
|
230
234
|
|
231
|
-
<span class="summary_desc"><div class='inline'>
|
232
|
-
|
235
|
+
<span class="summary_desc"><div class='inline'><p>
|
236
|
+
A colllection of images associated with this workbook.
|
237
|
+
</p>
|
233
238
|
</div></span>
|
234
239
|
|
235
240
|
</li>
|
@@ -254,8 +259,9 @@ is used.</p>
|
|
254
259
|
|
255
260
|
|
256
261
|
|
257
|
-
<span class="summary_desc"><div class='inline'>
|
258
|
-
|
262
|
+
<span class="summary_desc"><div class='inline'><p>
|
263
|
+
A collection of worksheets associated with this workbook.
|
264
|
+
</p>
|
259
265
|
</div></span>
|
260
266
|
|
261
267
|
</li>
|
@@ -290,8 +296,9 @@ is used.</p>
|
|
290
296
|
|
291
297
|
|
292
298
|
|
293
|
-
<span class="summary_desc"><div class='inline'>
|
294
|
-
|
299
|
+
<span class="summary_desc"><div class='inline'><p>
|
300
|
+
retrieves the date1904 attribute.
|
301
|
+
</p>
|
295
302
|
</div></span>
|
296
303
|
|
297
304
|
</li>
|
@@ -313,8 +320,9 @@ is used.</p>
|
|
313
320
|
|
314
321
|
|
315
322
|
|
316
|
-
<span class="summary_desc"><div class='inline'>
|
317
|
-
|
323
|
+
<span class="summary_desc"><div class='inline'><p>
|
324
|
+
Sets the date1904 attribute to the provided boolean.
|
325
|
+
</p>
|
318
326
|
</div></span>
|
319
327
|
|
320
328
|
</li>
|
@@ -332,6 +340,30 @@ is used.</p>
|
|
332
340
|
<li class="public ">
|
333
341
|
<span class="summary_signature">
|
334
342
|
|
343
|
+
<a href="#%5B%5D-instance_method" title="#[] (instance method)">- (Cell, Array) <strong>[]</strong>(cell_def) </a>
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
</span>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
<span class="summary_desc"><div class='inline'><p>
|
357
|
+
returns a range of cells in a worksheet retrieve the cells from.
|
358
|
+
</p>
|
359
|
+
</div></span>
|
360
|
+
|
361
|
+
</li>
|
362
|
+
|
363
|
+
|
364
|
+
<li class="public ">
|
365
|
+
<span class="summary_signature">
|
366
|
+
|
335
367
|
<a href="#add_worksheet-instance_method" title="#add_worksheet (instance method)">- (Worksheet) <strong>add_worksheet</strong>(options = {}) {|worksheet| ... }</a>
|
336
368
|
|
337
369
|
|
@@ -345,8 +377,9 @@ is used.</p>
|
|
345
377
|
|
346
378
|
|
347
379
|
|
348
|
-
<span class="summary_desc"><div class='inline'>
|
349
|
-
|
380
|
+
<span class="summary_desc"><div class='inline'><p>
|
381
|
+
Adds a worksheet to this workbook.
|
382
|
+
</p>
|
350
383
|
</div></span>
|
351
384
|
|
352
385
|
</li>
|
@@ -368,8 +401,9 @@ is used.</p>
|
|
368
401
|
|
369
402
|
|
370
403
|
|
371
|
-
<span class="summary_desc"><div class='inline'>
|
372
|
-
|
404
|
+
<span class="summary_desc"><div class='inline'><p>
|
405
|
+
Instance level access to the class variable 1904.
|
406
|
+
</p>
|
373
407
|
</div></span>
|
374
408
|
|
375
409
|
</li>
|
@@ -391,8 +425,9 @@ is used.</p>
|
|
391
425
|
|
392
426
|
|
393
427
|
|
394
|
-
<span class="summary_desc"><div class='inline'>
|
395
|
-
|
428
|
+
<span class="summary_desc"><div class='inline'><p>
|
429
|
+
see @date1904.
|
430
|
+
</p>
|
396
431
|
</div></span>
|
397
432
|
|
398
433
|
</li>
|
@@ -416,8 +451,9 @@ is used.</p>
|
|
416
451
|
|
417
452
|
|
418
453
|
|
419
|
-
<span class="summary_desc"><div class='inline'>
|
420
|
-
|
454
|
+
<span class="summary_desc"><div class='inline'><p>
|
455
|
+
Creates a new Workbook.
|
456
|
+
</p>
|
421
457
|
</div></span>
|
422
458
|
|
423
459
|
</li>
|
@@ -439,8 +475,9 @@ is used.</p>
|
|
439
475
|
|
440
476
|
|
441
477
|
|
442
|
-
<span class="summary_desc"><div class='inline'>
|
443
|
-
|
478
|
+
<span class="summary_desc"><div class='inline'><p>
|
479
|
+
The workbook relationships.
|
480
|
+
</p>
|
444
481
|
</div></span>
|
445
482
|
|
446
483
|
</li>
|
@@ -462,8 +499,9 @@ is used.</p>
|
|
462
499
|
|
463
500
|
|
464
501
|
|
465
|
-
<span class="summary_desc"><div class='inline'>
|
466
|
-
|
502
|
+
<span class="summary_desc"><div class='inline'><p>
|
503
|
+
The styles associated with this workbook.
|
504
|
+
</p>
|
467
505
|
</div></span>
|
468
506
|
|
469
507
|
</li>
|
@@ -485,8 +523,9 @@ is used.</p>
|
|
485
523
|
|
486
524
|
|
487
525
|
|
488
|
-
<span class="summary_desc"><div class='inline'>
|
489
|
-
|
526
|
+
<span class="summary_desc"><div class='inline'><p>
|
527
|
+
Serializes the workbook document.
|
528
|
+
</p>
|
490
529
|
</div></span>
|
491
530
|
|
492
531
|
</li>
|
@@ -507,8 +546,9 @@ is used.</p>
|
|
507
546
|
|
508
547
|
</p><div class="docstring">
|
509
548
|
<div class="discussion">
|
510
|
-
|
511
|
-
|
549
|
+
<p>
|
550
|
+
Creates a new Workbook
|
551
|
+
</p>
|
512
552
|
|
513
553
|
|
514
554
|
</div>
|
@@ -529,8 +569,9 @@ is used.</p>
|
|
529
569
|
|
530
570
|
|
531
571
|
—
|
532
|
-
<div class='inline'>
|
533
|
-
|
572
|
+
<div class='inline'><p>
|
573
|
+
a customizable set of options
|
574
|
+
</p>
|
534
575
|
</div>
|
535
576
|
|
536
577
|
</li>
|
@@ -581,8 +622,9 @@ is used.</p>
|
|
581
622
|
|
582
623
|
|
583
624
|
—
|
584
|
-
<div class='inline'>
|
585
|
-
|
625
|
+
<div class='inline'><p>
|
626
|
+
the object that the method was called on
|
627
|
+
</p>
|
586
628
|
</div>
|
587
629
|
|
588
630
|
</li>
|
@@ -595,18 +637,18 @@ is used.</p>
|
|
595
637
|
<pre class="lines">
|
596
638
|
|
597
639
|
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
640
|
+
86
|
641
|
+
87
|
642
|
+
88
|
643
|
+
89
|
644
|
+
90
|
645
|
+
91
|
646
|
+
92
|
647
|
+
93
|
648
|
+
94</pre>
|
607
649
|
</td>
|
608
650
|
<td>
|
609
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
651
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 86</span>
|
610
652
|
|
611
653
|
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
612
654
|
<span class='@styles ivar id'>@styles</span> <span class='assign token'>=</span> <span class='Styles constant id'>Styles</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
@@ -643,13 +685,15 @@ is used.</p>
|
|
643
685
|
|
644
686
|
<div class="note notetag">
|
645
687
|
<strong>Note:</strong>
|
646
|
-
<div class='inline'>
|
647
|
-
|
688
|
+
<div class='inline'><p>
|
689
|
+
The recommended way to manage charts is Worksheet#add_chart
|
690
|
+
</p>
|
648
691
|
</div>
|
649
692
|
</div>
|
650
693
|
|
651
|
-
|
652
|
-
|
694
|
+
<p>
|
695
|
+
A colllection of charts associated with this workbook
|
696
|
+
</p>
|
653
697
|
|
654
698
|
|
655
699
|
</div>
|
@@ -716,13 +760,15 @@ is used.</p>
|
|
716
760
|
|
717
761
|
<div class="note notetag">
|
718
762
|
<strong>Note:</strong>
|
719
|
-
<div class='inline'>
|
720
|
-
|
763
|
+
<div class='inline'><p>
|
764
|
+
The recommended way to manage drawings is Worksheet#add_chart
|
765
|
+
</p>
|
721
766
|
</div>
|
722
767
|
</div>
|
723
768
|
|
724
|
-
|
725
|
-
|
769
|
+
<p>
|
770
|
+
A colllection of drawings associated with this workbook
|
771
|
+
</p>
|
726
772
|
|
727
773
|
|
728
774
|
</div>
|
@@ -789,13 +835,15 @@ is used.</p>
|
|
789
835
|
|
790
836
|
<div class="note notetag">
|
791
837
|
<strong>Note:</strong>
|
792
|
-
<div class='inline'>
|
793
|
-
|
838
|
+
<div class='inline'><p>
|
839
|
+
The recommended way to manage images is Worksheet#add_image
|
840
|
+
</p>
|
794
841
|
</div>
|
795
842
|
</div>
|
796
843
|
|
797
|
-
|
798
|
-
|
844
|
+
<p>
|
845
|
+
A colllection of images associated with this workbook
|
846
|
+
</p>
|
799
847
|
|
800
848
|
|
801
849
|
</div>
|
@@ -862,13 +910,15 @@ is used.</p>
|
|
862
910
|
|
863
911
|
<div class="note notetag">
|
864
912
|
<strong>Note:</strong>
|
865
|
-
<div class='inline'>
|
866
|
-
|
913
|
+
<div class='inline'><p>
|
914
|
+
The recommended way to manage worksheets is add_worksheet
|
915
|
+
</p>
|
867
916
|
</div>
|
868
917
|
</div>
|
869
918
|
|
870
|
-
|
871
|
-
|
919
|
+
<p>
|
920
|
+
A collection of worksheets associated with this workbook.
|
921
|
+
</p>
|
872
922
|
|
873
923
|
|
874
924
|
</div>
|
@@ -936,8 +986,9 @@ is used.</p>
|
|
936
986
|
|
937
987
|
</p><div class="docstring">
|
938
988
|
<div class="discussion">
|
939
|
-
|
940
|
-
|
989
|
+
<p>
|
990
|
+
retrieves the date1904 attribute
|
991
|
+
</p>
|
941
992
|
|
942
993
|
|
943
994
|
</div>
|
@@ -964,10 +1015,10 @@ is used.</p>
|
|
964
1015
|
<pre class="lines">
|
965
1016
|
|
966
1017
|
|
967
|
-
|
1018
|
+
109</pre>
|
968
1019
|
</td>
|
969
1020
|
<td>
|
970
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
1021
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 109</span>
|
971
1022
|
|
972
1023
|
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='date1904 identifier id'>date1904</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='@@date1904 ivar id'>@@date1904</span><span class='semicolon token'>;</span> <span class='end end kw'>end</span>
|
973
1024
|
</pre>
|
@@ -985,8 +1036,9 @@ is used.</p>
|
|
985
1036
|
|
986
1037
|
</p><div class="docstring">
|
987
1038
|
<div class="discussion">
|
988
|
-
|
989
|
-
|
1039
|
+
<p>
|
1040
|
+
Sets the date1904 attribute to the provided boolean
|
1041
|
+
</p>
|
990
1042
|
|
991
1043
|
|
992
1044
|
</div>
|
@@ -1013,10 +1065,10 @@ is used.</p>
|
|
1013
1065
|
<pre class="lines">
|
1014
1066
|
|
1015
1067
|
|
1016
|
-
|
1068
|
+
105</pre>
|
1017
1069
|
</td>
|
1018
1070
|
<td>
|
1019
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
1071
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 105</span>
|
1020
1072
|
|
1021
1073
|
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='date1904 identifier id'>date1904</span><span class='assign token'>=</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='validate_boolean identifier id'>validate_boolean</span> <span class='v identifier id'>v</span><span class='semicolon token'>;</span> <span class='@@date1904 ivar id'>@@date1904</span> <span class='assign token'>=</span> <span class='v identifier id'>v</span> <span class='end end kw'>end</span>
|
1022
1074
|
</pre>
|
@@ -1032,16 +1084,114 @@ is used.</p>
|
|
1032
1084
|
|
1033
1085
|
|
1034
1086
|
<div class="method_details first">
|
1035
|
-
<p class="signature first" id="
|
1087
|
+
<p class="signature first" id="[]-instance_method">
|
1036
1088
|
|
1037
|
-
- (<tt><span class='object_link'><a href="
|
1089
|
+
- (<tt><span class='object_link'><a href="Cell.html" title="Axlsx::Cell (class)">Cell</a></span></tt>, <tt>Array</tt>) <strong>[]</strong>(cell_def)
|
1038
1090
|
|
1039
1091
|
|
1040
1092
|
|
1041
1093
|
</p><div class="docstring">
|
1042
1094
|
<div class="discussion">
|
1095
|
+
<p>
|
1096
|
+
returns a range of cells in a worksheet retrieve the cells from. e.g.
|
1097
|
+
range(‘Sheet1!A1:B2’) will return an array of four cells [A1,
|
1098
|
+
A2, B1, B2] while range(‘Sheet1!A1’) will return a single Cell.
|
1099
|
+
</p>
|
1100
|
+
|
1101
|
+
|
1102
|
+
</div>
|
1103
|
+
</div>
|
1104
|
+
<div class="tags">
|
1105
|
+
<h3>Parameters:</h3>
|
1106
|
+
<ul class="param">
|
1107
|
+
|
1108
|
+
<li>
|
1109
|
+
|
1110
|
+
<span class='name'>cell_def</span>
|
1111
|
+
|
1112
|
+
|
1113
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
—
|
1118
|
+
<div class='inline'><p>
|
1119
|
+
The excel style reference defining the worksheet and cells. The range must
|
1120
|
+
specify the sheet to
|
1121
|
+
</p>
|
1122
|
+
</div>
|
1123
|
+
|
1124
|
+
</li>
|
1125
|
+
|
1126
|
+
</ul>
|
1127
|
+
|
1128
|
+
<h3>Returns:</h3>
|
1129
|
+
<ul class="return">
|
1130
|
+
|
1131
|
+
<li>
|
1132
|
+
|
1133
|
+
|
1134
|
+
<span class='type'>(<tt><span class='object_link'><a href="Cell.html" title="Axlsx::Cell (class)">Cell</a></span></tt>, <tt>Array</tt>)</span>
|
1135
|
+
|
1136
|
+
|
1137
|
+
|
1138
|
+
</li>
|
1139
|
+
|
1140
|
+
</ul>
|
1141
|
+
<h3>Raises:</h3>
|
1142
|
+
<ul class="raise">
|
1143
|
+
|
1144
|
+
<li>
|
1145
|
+
|
1146
|
+
|
1147
|
+
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
</li>
|
1152
|
+
|
1153
|
+
</ul>
|
1154
|
+
|
1155
|
+
</div><table class="source_code">
|
1156
|
+
<tr>
|
1157
|
+
<td>
|
1158
|
+
<pre class="lines">
|
1159
|
+
|
1160
|
+
|
1161
|
+
136
|
1162
|
+
137
|
1163
|
+
138
|
1164
|
+
139
|
1165
|
+
140
|
1166
|
+
141</pre>
|
1167
|
+
</td>
|
1168
|
+
<td>
|
1169
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 136</span>
|
1170
|
+
|
1171
|
+
<span class='def def kw'>def</span> <span class='aref op'>[]</span><span class='lparen token'>(</span><span class='cell_def identifier id'>cell_def</span><span class='rparen token'>)</span>
|
1172
|
+
<span class='sheet_name identifier id'>sheet_name</span> <span class='assign token'>=</span> <span class='cell_def identifier id'>cell_def</span><span class='dot token'>.</span><span class='split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>'!'</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span> <span class='if if_mod kw'>if</span> <span class='cell_def identifier id'>cell_def</span><span class='dot token'>.</span><span class='match identifier id'>match</span><span class='lparen token'>(</span><span class='string val'>'!'</span><span class='rparen token'>)</span>
|
1173
|
+
<span class='worksheet identifier id'>worksheet</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='worksheets identifier id'>worksheets</span><span class='dot token'>.</span><span class='select identifier id'>select</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='s identifier id'>s</span><span class='bitor op'>|</span> <span class='s identifier id'>s</span><span class='dot token'>.</span><span class='name identifier id'>name</span> <span class='eq op'>==</span> <span class='sheet_name identifier id'>sheet_name</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='first identifier id'>first</span>
|
1174
|
+
<span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>'Unknown Sheet'</span> <span class='unless unless_mod kw'>unless</span> <span class='sheet_name identifier id'>sheet_name</span> <span class='andop op'>&&</span> <span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Worksheet constant id'>Worksheet</span><span class='rparen token'>)</span>
|
1175
|
+
<span class='worksheet identifier id'>worksheet</span><span class='lbrack token'>[</span><span class='cell_def identifier id'>cell_def</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/.+!/</span><span class='comma token'>,</span><span class='string val'>""</span><span class='rparen token'>)</span><span class='rbrack token'>]</span>
|
1176
|
+
<span class='end end kw'>end</span>
|
1177
|
+
</pre>
|
1178
|
+
</td>
|
1179
|
+
</tr>
|
1180
|
+
</table>
|
1181
|
+
</div>
|
1043
1182
|
|
1044
|
-
<
|
1183
|
+
<div class="method_details ">
|
1184
|
+
<p class="signature " id="add_worksheet-instance_method">
|
1185
|
+
|
1186
|
+
- (<tt><span class='object_link'><a href="Worksheet.html" title="Axlsx::Worksheet (class)">Worksheet</a></span></tt>) <strong>add_worksheet</strong>(options = {}) {|worksheet| ... }
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
</p><div class="docstring">
|
1191
|
+
<div class="discussion">
|
1192
|
+
<p>
|
1193
|
+
Adds a worksheet to this workbook
|
1194
|
+
</p>
|
1045
1195
|
|
1046
1196
|
|
1047
1197
|
</div>
|
@@ -1062,8 +1212,9 @@ is used.</p>
|
|
1062
1212
|
|
1063
1213
|
|
1064
1214
|
—
|
1065
|
-
<div class='inline'>
|
1066
|
-
|
1215
|
+
<div class='inline'><p>
|
1216
|
+
a customizable set of options
|
1217
|
+
</p>
|
1067
1218
|
</div>
|
1068
1219
|
|
1069
1220
|
</li>
|
@@ -1082,8 +1233,9 @@ is used.</p>
|
|
1082
1233
|
<span class="default">
|
1083
1234
|
|
1084
1235
|
</span>
|
1085
|
-
— <div class='inline'>
|
1086
|
-
|
1236
|
+
— <div class='inline'><p>
|
1237
|
+
The name of the worksheet.
|
1238
|
+
</p>
|
1087
1239
|
</div>
|
1088
1240
|
</li>
|
1089
1241
|
|
@@ -1130,14 +1282,14 @@ is used.</p>
|
|
1130
1282
|
<pre class="lines">
|
1131
1283
|
|
1132
1284
|
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1285
|
+
115
|
1286
|
+
116
|
1287
|
+
117
|
1288
|
+
118
|
1289
|
+
119</pre>
|
1138
1290
|
</td>
|
1139
1291
|
<td>
|
1140
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
1292
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 115</span>
|
1141
1293
|
|
1142
1294
|
<span class='def def kw'>def</span> <span class='add_worksheet identifier id'>add_worksheet</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
1143
1295
|
<span class='worksheet identifier id'>worksheet</span> <span class='assign token'>=</span> <span class='Worksheet constant id'>Worksheet</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
@@ -1159,8 +1311,9 @@ is used.</p>
|
|
1159
1311
|
|
1160
1312
|
</p><div class="docstring">
|
1161
1313
|
<div class="discussion">
|
1162
|
-
|
1163
|
-
|
1314
|
+
<p>
|
1315
|
+
Instance level access to the class variable 1904
|
1316
|
+
</p>
|
1164
1317
|
|
1165
1318
|
|
1166
1319
|
</div>
|
@@ -1187,10 +1340,10 @@ is used.</p>
|
|
1187
1340
|
<pre class="lines">
|
1188
1341
|
|
1189
1342
|
|
1190
|
-
|
1343
|
+
98</pre>
|
1191
1344
|
</td>
|
1192
1345
|
<td>
|
1193
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
1346
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 98</span>
|
1194
1347
|
|
1195
1348
|
<span class='def def kw'>def</span> <span class='date1904 identifier id'>date1904</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='@@date1904 ivar id'>@@date1904</span><span class='semicolon token'>;</span> <span class='end end kw'>end</span>
|
1196
1349
|
</pre>
|
@@ -1208,8 +1361,9 @@ is used.</p>
|
|
1208
1361
|
|
1209
1362
|
</p><div class="docstring">
|
1210
1363
|
<div class="discussion">
|
1211
|
-
|
1212
|
-
|
1364
|
+
<p>
|
1365
|
+
see @date1904
|
1366
|
+
</p>
|
1213
1367
|
|
1214
1368
|
|
1215
1369
|
</div>
|
@@ -1223,10 +1377,10 @@ is used.</p>
|
|
1223
1377
|
<pre class="lines">
|
1224
1378
|
|
1225
1379
|
|
1226
|
-
|
1380
|
+
101</pre>
|
1227
1381
|
</td>
|
1228
1382
|
<td>
|
1229
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
1383
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 101</span>
|
1230
1384
|
|
1231
1385
|
<span class='def def kw'>def</span> <span class='date1904= identifier id'>date1904=</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='validate_boolean identifier id'>validate_boolean</span> <span class='v identifier id'>v</span><span class='semicolon token'>;</span> <span class='@@date1904 ivar id'>@@date1904</span> <span class='assign token'>=</span> <span class='v identifier id'>v</span> <span class='end end kw'>end</span>
|
1232
1386
|
</pre>
|
@@ -1244,8 +1398,9 @@ is used.</p>
|
|
1244
1398
|
|
1245
1399
|
</p><div class="docstring">
|
1246
1400
|
<div class="discussion">
|
1247
|
-
|
1248
|
-
|
1401
|
+
<p>
|
1402
|
+
The workbook relationships. This is managed automatically by the workbook
|
1403
|
+
</p>
|
1249
1404
|
|
1250
1405
|
|
1251
1406
|
</div>
|
@@ -1272,17 +1427,17 @@ is used.</p>
|
|
1272
1427
|
<pre class="lines">
|
1273
1428
|
|
1274
1429
|
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1430
|
+
123
|
1431
|
+
124
|
1432
|
+
125
|
1433
|
+
126
|
1434
|
+
127
|
1435
|
+
128
|
1436
|
+
129
|
1437
|
+
130</pre>
|
1283
1438
|
</td>
|
1284
1439
|
<td>
|
1285
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
1440
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 123</span>
|
1286
1441
|
|
1287
1442
|
<span class='def def kw'>def</span> <span class='relationships identifier id'>relationships</span>
|
1288
1443
|
<span class='r identifier id'>r</span> <span class='assign token'>=</span> <span class='Relationships constant id'>Relationships</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
@@ -1310,13 +1465,15 @@ is used.</p>
|
|
1310
1465
|
|
1311
1466
|
<div class="note notetag">
|
1312
1467
|
<strong>Note:</strong>
|
1313
|
-
<div class='inline'>
|
1314
|
-
|
1468
|
+
<div class='inline'><p>
|
1469
|
+
The recommended way to manage styles is Styles#add_style
|
1470
|
+
</p>
|
1315
1471
|
</div>
|
1316
1472
|
</div>
|
1317
1473
|
|
1318
|
-
|
1319
|
-
|
1474
|
+
<p>
|
1475
|
+
The styles associated with this workbook
|
1476
|
+
</p>
|
1320
1477
|
|
1321
1478
|
|
1322
1479
|
</div>
|
@@ -1392,8 +1549,9 @@ is used.</p>
|
|
1392
1549
|
|
1393
1550
|
</p><div class="docstring">
|
1394
1551
|
<div class="discussion">
|
1395
|
-
|
1396
|
-
|
1552
|
+
<p>
|
1553
|
+
Serializes the workbook document
|
1554
|
+
</p>
|
1397
1555
|
|
1398
1556
|
|
1399
1557
|
</div>
|
@@ -1420,23 +1578,23 @@ is used.</p>
|
|
1420
1578
|
<pre class="lines">
|
1421
1579
|
|
1422
1580
|
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1581
|
+
145
|
1582
|
+
146
|
1583
|
+
147
|
1584
|
+
148
|
1585
|
+
149
|
1586
|
+
150
|
1587
|
+
151
|
1588
|
+
152
|
1589
|
+
153
|
1590
|
+
154
|
1591
|
+
155
|
1592
|
+
156
|
1593
|
+
157
|
1594
|
+
158</pre>
|
1437
1595
|
</td>
|
1438
1596
|
<td>
|
1439
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
1597
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 145</span>
|
1440
1598
|
|
1441
1599
|
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
1442
1600
|
<span class='add_worksheet identifier id'>add_worksheet</span> <span class='unless unless_mod kw'>unless</span> <span class='worksheets identifier id'>worksheets</span><span class='dot token'>.</span><span class='size identifier id'>size</span> <span class='gt op'>></span> <span class='integer val'>0</span>
|
@@ -1463,7 +1621,7 @@ is used.</p>
|
|
1463
1621
|
</div>
|
1464
1622
|
|
1465
1623
|
<div id="footer">
|
1466
|
-
Generated on
|
1624
|
+
Generated on Mon Dec 5 14:21:11 2011 by
|
1467
1625
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1468
1626
|
0.7.3 (ruby-1.8.7).
|
1469
1627
|
</div>
|