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/Workbook.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Workbook
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -94,33 +94,31 @@
|
|
|
94
94
|
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
|
96
96
|
<div class="discussion">
|
|
97
|
-
|
|
98
|
-
The Workbook class is an xlsx workbook that manages worksheets, charts,
|
|
97
|
+
|
|
98
|
+
<p>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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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>
|
|
123
|
-
</pre>
|
|
100
|
+
specification are not implimented in this version.</p>
|
|
101
|
+
|
|
102
|
+
<pre class="code">bookViews
|
|
103
|
+
calcPr
|
|
104
|
+
customWorkbookViews
|
|
105
|
+
definedNames
|
|
106
|
+
externalReferences
|
|
107
|
+
extLst
|
|
108
|
+
fileRecoveryPr
|
|
109
|
+
fileSharing
|
|
110
|
+
fileVersion
|
|
111
|
+
functionGroups
|
|
112
|
+
oleSize
|
|
113
|
+
pivotCaches
|
|
114
|
+
smartTagPr
|
|
115
|
+
smartTagTypes
|
|
116
|
+
webPublishing
|
|
117
|
+
webPublishObjects
|
|
118
|
+
workbookProtection
|
|
119
|
+
workbookPr*
|
|
120
|
+
|
|
121
|
+
*workbookPr is only supported to the extend of date1904</pre>
|
|
124
122
|
|
|
125
123
|
|
|
126
124
|
</div>
|
|
@@ -136,10 +134,9 @@ specification are not implimented in this version.
|
|
|
136
134
|
<dt id="date1904-classvariable" class="">@@date1904 =
|
|
137
135
|
<div class="docstring">
|
|
138
136
|
<div class="discussion">
|
|
139
|
-
|
|
140
|
-
Indicates if the epoc date for serialization should be 1904. If false, 1900
|
|
141
|
-
is used
|
|
142
|
-
</p>
|
|
137
|
+
|
|
138
|
+
<p>Indicates if the epoc date for serialization should be 1904. If false, 1900
|
|
139
|
+
is used.</p>
|
|
143
140
|
|
|
144
141
|
|
|
145
142
|
</div>
|
|
@@ -149,8 +146,7 @@ is used.
|
|
|
149
146
|
|
|
150
147
|
</div>
|
|
151
148
|
</dt>
|
|
152
|
-
<dd><pre class="code"><span class='
|
|
153
|
-
</pre></dd>
|
|
149
|
+
<dd><pre class="code"><span class='kw'>false</span></pre></dd>
|
|
154
150
|
|
|
155
151
|
</dl>
|
|
156
152
|
|
|
@@ -178,9 +174,8 @@ is used.
|
|
|
178
174
|
|
|
179
175
|
|
|
180
176
|
|
|
181
|
-
<span class="summary_desc"><div class='inline'
|
|
182
|
-
A colllection of charts associated with this workbook
|
|
183
|
-
</p>
|
|
177
|
+
<span class="summary_desc"><div class='inline'>
|
|
178
|
+
<p>A colllection of charts associated with this workbook.</p>
|
|
184
179
|
</div></span>
|
|
185
180
|
|
|
186
181
|
</li>
|
|
@@ -189,14 +184,14 @@ A colllection of charts associated with this workbook.
|
|
|
189
184
|
<li class="public ">
|
|
190
185
|
<span class="summary_signature">
|
|
191
186
|
|
|
192
|
-
<a href="#
|
|
187
|
+
<a href="#drawings-instance_method" title="#drawings (instance method)">- (SimpleTypedList) <strong>drawings</strong> </a>
|
|
193
188
|
|
|
194
189
|
|
|
195
190
|
|
|
196
191
|
</span>
|
|
197
192
|
|
|
198
193
|
|
|
199
|
-
|
|
194
|
+
<span class="note title readonly">readonly</span>
|
|
200
195
|
|
|
201
196
|
|
|
202
197
|
|
|
@@ -205,9 +200,8 @@ A colllection of charts associated with this workbook.
|
|
|
205
200
|
|
|
206
201
|
|
|
207
202
|
|
|
208
|
-
<span class="summary_desc"><div class='inline'
|
|
209
|
-
|
|
210
|
-
</p>
|
|
203
|
+
<span class="summary_desc"><div class='inline'>
|
|
204
|
+
<p>A colllection of drawings associated with this workbook.</p>
|
|
211
205
|
</div></span>
|
|
212
206
|
|
|
213
207
|
</li>
|
|
@@ -216,7 +210,7 @@ Instance level access to the class variable 1904.
|
|
|
216
210
|
<li class="public ">
|
|
217
211
|
<span class="summary_signature">
|
|
218
212
|
|
|
219
|
-
<a href="#
|
|
213
|
+
<a href="#images-instance_method" title="#images (instance method)">- (SimpleTypedList) <strong>images</strong> </a>
|
|
220
214
|
|
|
221
215
|
|
|
222
216
|
|
|
@@ -232,9 +226,8 @@ Instance level access to the class variable 1904.
|
|
|
232
226
|
|
|
233
227
|
|
|
234
228
|
|
|
235
|
-
<span class="summary_desc"><div class='inline'
|
|
236
|
-
A colllection of
|
|
237
|
-
</p>
|
|
229
|
+
<span class="summary_desc"><div class='inline'>
|
|
230
|
+
<p>A colllection of images associated with this workbook.</p>
|
|
238
231
|
</div></span>
|
|
239
232
|
|
|
240
233
|
</li>
|
|
@@ -243,7 +236,7 @@ A colllection of drawings associated with this workbook.
|
|
|
243
236
|
<li class="public ">
|
|
244
237
|
<span class="summary_signature">
|
|
245
238
|
|
|
246
|
-
<a href="#
|
|
239
|
+
<a href="#styles-instance_method" title="#styles (instance method)">- (Styles) <strong>styles</strong> </a>
|
|
247
240
|
|
|
248
241
|
|
|
249
242
|
|
|
@@ -259,9 +252,8 @@ A colllection of drawings associated with this workbook.
|
|
|
259
252
|
|
|
260
253
|
|
|
261
254
|
|
|
262
|
-
<span class="summary_desc"><div class='inline'
|
|
263
|
-
|
|
264
|
-
</p>
|
|
255
|
+
<span class="summary_desc"><div class='inline'>
|
|
256
|
+
<p>The styles associated with this workbook.</p>
|
|
265
257
|
</div></span>
|
|
266
258
|
|
|
267
259
|
</li>
|
|
@@ -270,7 +262,7 @@ A colllection of images associated with this workbook.
|
|
|
270
262
|
<li class="public ">
|
|
271
263
|
<span class="summary_signature">
|
|
272
264
|
|
|
273
|
-
<a href="#
|
|
265
|
+
<a href="#worksheets-instance_method" title="#worksheets (instance method)">- (SimpleTypedList) <strong>worksheets</strong> </a>
|
|
274
266
|
|
|
275
267
|
|
|
276
268
|
|
|
@@ -286,76 +278,76 @@ A colllection of images associated with this workbook.
|
|
|
286
278
|
|
|
287
279
|
|
|
288
280
|
|
|
289
|
-
<span class="summary_desc"><div class='inline'
|
|
290
|
-
|
|
291
|
-
</p>
|
|
281
|
+
<span class="summary_desc"><div class='inline'>
|
|
282
|
+
<p>A collection of worksheets associated with this workbook.</p>
|
|
292
283
|
</div></span>
|
|
293
284
|
|
|
294
285
|
</li>
|
|
295
286
|
|
|
296
287
|
|
|
297
|
-
|
|
288
|
+
</ul>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
<h2>
|
|
295
|
+
Class Method Summary
|
|
296
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
297
|
+
</h2>
|
|
298
|
+
|
|
299
|
+
<ul class="summary">
|
|
300
|
+
|
|
301
|
+
<li class="public ">
|
|
298
302
|
<span class="summary_signature">
|
|
299
303
|
|
|
300
|
-
<a href="#
|
|
304
|
+
<a href="#date1904-class_method" title="date1904 (class method)">+ (Boolean) <strong>date1904</strong> </a>
|
|
301
305
|
|
|
302
306
|
|
|
303
307
|
|
|
304
308
|
</span>
|
|
305
309
|
|
|
306
310
|
|
|
307
|
-
<span class="note title readonly">readonly</span>
|
|
308
|
-
|
|
309
|
-
|
|
310
311
|
|
|
311
312
|
|
|
312
313
|
|
|
313
314
|
|
|
314
315
|
|
|
315
316
|
|
|
316
|
-
<span class="summary_desc"><div class='inline'
|
|
317
|
-
|
|
318
|
-
</p>
|
|
317
|
+
<span class="summary_desc"><div class='inline'>
|
|
318
|
+
<p>retrieves the date1904 attribute.</p>
|
|
319
319
|
</div></span>
|
|
320
320
|
|
|
321
321
|
</li>
|
|
322
322
|
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
|
|
324
|
+
<li class="public ">
|
|
325
325
|
<span class="summary_signature">
|
|
326
326
|
|
|
327
|
-
<a href="#
|
|
327
|
+
<a href="#date1904%3D-class_method" title="date1904= (class method)">+ (Boolean) <strong>date1904=</strong>(v) </a>
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
|
|
331
331
|
</span>
|
|
332
332
|
|
|
333
333
|
|
|
334
|
-
<span class="note title readonly">readonly</span>
|
|
335
|
-
|
|
336
|
-
|
|
337
334
|
|
|
338
335
|
|
|
339
336
|
|
|
340
337
|
|
|
341
338
|
|
|
342
339
|
|
|
343
|
-
<span class="summary_desc"><div class='inline'
|
|
344
|
-
|
|
345
|
-
</p>
|
|
340
|
+
<span class="summary_desc"><div class='inline'>
|
|
341
|
+
<p>Sets the date1904 attribute to the provided boolean.</p>
|
|
346
342
|
</div></span>
|
|
347
343
|
|
|
348
344
|
</li>
|
|
349
345
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
346
|
+
|
|
347
|
+
</ul>
|
|
356
348
|
|
|
357
349
|
<h2>
|
|
358
|
-
|
|
350
|
+
Instance Method Summary
|
|
359
351
|
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
360
352
|
</h2>
|
|
361
353
|
|
|
@@ -364,7 +356,7 @@ A collection of worksheets associated with this workbook.
|
|
|
364
356
|
<li class="public ">
|
|
365
357
|
<span class="summary_signature">
|
|
366
358
|
|
|
367
|
-
<a href="#
|
|
359
|
+
<a href="#add_worksheet-instance_method" title="#add_worksheet (instance method)">- (Worksheet) <strong>add_worksheet</strong>(options = {}) {|worksheet| ... }</a>
|
|
368
360
|
|
|
369
361
|
|
|
370
362
|
|
|
@@ -377,9 +369,8 @@ A collection of worksheets associated with this workbook.
|
|
|
377
369
|
|
|
378
370
|
|
|
379
371
|
|
|
380
|
-
<span class="summary_desc"><div class='inline'
|
|
381
|
-
|
|
382
|
-
</p>
|
|
372
|
+
<span class="summary_desc"><div class='inline'>
|
|
373
|
+
<p>Adds a worksheet to this workbook.</p>
|
|
383
374
|
</div></span>
|
|
384
375
|
|
|
385
376
|
</li>
|
|
@@ -388,7 +379,7 @@ retrieves the date1904 attribute.
|
|
|
388
379
|
<li class="public ">
|
|
389
380
|
<span class="summary_signature">
|
|
390
381
|
|
|
391
|
-
<a href="#date1904
|
|
382
|
+
<a href="#date1904-instance_method" title="#date1904 (instance method)">- (Boolean) <strong>date1904</strong> </a>
|
|
392
383
|
|
|
393
384
|
|
|
394
385
|
|
|
@@ -401,27 +392,17 @@ retrieves the date1904 attribute.
|
|
|
401
392
|
|
|
402
393
|
|
|
403
394
|
|
|
404
|
-
<span class="summary_desc"><div class='inline'
|
|
405
|
-
|
|
406
|
-
</p>
|
|
395
|
+
<span class="summary_desc"><div class='inline'>
|
|
396
|
+
<p>Instance level access to the class variable 1904.</p>
|
|
407
397
|
</div></span>
|
|
408
398
|
|
|
409
399
|
</li>
|
|
410
400
|
|
|
411
401
|
|
|
412
|
-
</ul>
|
|
413
|
-
|
|
414
|
-
<h2>
|
|
415
|
-
Instance Method Summary
|
|
416
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
417
|
-
</h2>
|
|
418
|
-
|
|
419
|
-
<ul class="summary">
|
|
420
|
-
|
|
421
402
|
<li class="public ">
|
|
422
403
|
<span class="summary_signature">
|
|
423
404
|
|
|
424
|
-
<a href="#
|
|
405
|
+
<a href="#date1904%3D-instance_method" title="#date1904= (instance method)">- (Object) <strong>date1904=</strong>(v) </a>
|
|
425
406
|
|
|
426
407
|
|
|
427
408
|
|
|
@@ -434,9 +415,8 @@ Sets the date1904 attribute to the provided boolean.
|
|
|
434
415
|
|
|
435
416
|
|
|
436
417
|
|
|
437
|
-
<span class="summary_desc"><div class='inline'
|
|
438
|
-
|
|
439
|
-
</p>
|
|
418
|
+
<span class="summary_desc"><div class='inline'>
|
|
419
|
+
<p>see @date1904.</p>
|
|
440
420
|
</div></span>
|
|
441
421
|
|
|
442
422
|
</li>
|
|
@@ -460,9 +440,31 @@ Adds a worksheet to this workbook.
|
|
|
460
440
|
|
|
461
441
|
|
|
462
442
|
|
|
463
|
-
<span class="summary_desc"><div class='inline'
|
|
464
|
-
Creates a new Workbook
|
|
465
|
-
</
|
|
443
|
+
<span class="summary_desc"><div class='inline'>
|
|
444
|
+
<p>Creates a new Workbook.</p>
|
|
445
|
+
</div></span>
|
|
446
|
+
|
|
447
|
+
</li>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<li class="public ">
|
|
451
|
+
<span class="summary_signature">
|
|
452
|
+
|
|
453
|
+
<a href="#relationships-instance_method" title="#relationships (instance method)">- (Relationships) <strong>relationships</strong> </a>
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
</span>
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<span class="summary_desc"><div class='inline'>
|
|
467
|
+
<p>The workbook relationships.</p>
|
|
466
468
|
</div></span>
|
|
467
469
|
|
|
468
470
|
</li>
|
|
@@ -484,9 +486,8 @@ Creates a new Workbook.
|
|
|
484
486
|
|
|
485
487
|
|
|
486
488
|
|
|
487
|
-
<span class="summary_desc"><div class='inline'
|
|
488
|
-
Serializes the workbook document
|
|
489
|
-
</p>
|
|
489
|
+
<span class="summary_desc"><div class='inline'>
|
|
490
|
+
<p>Serializes the workbook document.</p>
|
|
490
491
|
</div></span>
|
|
491
492
|
|
|
492
493
|
</li>
|
|
@@ -507,9 +508,8 @@ Serializes the workbook document.
|
|
|
507
508
|
|
|
508
509
|
</p><div class="docstring">
|
|
509
510
|
<div class="discussion">
|
|
510
|
-
|
|
511
|
-
Creates a new Workbook
|
|
512
|
-
</p>
|
|
511
|
+
|
|
512
|
+
<p>Creates a new Workbook</p>
|
|
513
513
|
|
|
514
514
|
|
|
515
515
|
</div>
|
|
@@ -530,9 +530,8 @@ Creates a new Workbook
|
|
|
530
530
|
|
|
531
531
|
|
|
532
532
|
—
|
|
533
|
-
<div class='inline'
|
|
534
|
-
a customizable set of options
|
|
535
|
-
</p>
|
|
533
|
+
<div class='inline'>
|
|
534
|
+
<p>a customizable set of options</p>
|
|
536
535
|
</div>
|
|
537
536
|
|
|
538
537
|
</li>
|
|
@@ -583,9 +582,8 @@ a customizable set of options
|
|
|
583
582
|
|
|
584
583
|
|
|
585
584
|
—
|
|
586
|
-
<div class='inline'
|
|
587
|
-
the object that the method was called on
|
|
588
|
-
</p>
|
|
585
|
+
<div class='inline'>
|
|
586
|
+
<p>the object that the method was called on</p>
|
|
589
587
|
</div>
|
|
590
588
|
|
|
591
589
|
</li>
|
|
@@ -598,29 +596,28 @@ the object that the method was called on
|
|
|
598
596
|
<pre class="lines">
|
|
599
597
|
|
|
600
598
|
|
|
599
|
+
75
|
|
600
|
+
76
|
|
601
|
+
77
|
|
602
|
+
78
|
|
603
|
+
79
|
|
604
|
+
80
|
|
605
|
+
81
|
|
601
606
|
82
|
|
602
|
-
83
|
|
603
|
-
84
|
|
604
|
-
85
|
|
605
|
-
86
|
|
606
|
-
87
|
|
607
|
-
88
|
|
608
|
-
89
|
|
609
|
-
90</pre>
|
|
607
|
+
83</pre>
|
|
610
608
|
</td>
|
|
611
609
|
<td>
|
|
612
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
|
613
|
-
|
|
614
|
-
<span class='
|
|
615
|
-
<span class='
|
|
616
|
-
<span class='
|
|
617
|
-
<span class='
|
|
618
|
-
<span class='
|
|
619
|
-
<span class='
|
|
620
|
-
<span class='
|
|
621
|
-
<span class='
|
|
622
|
-
<span class='
|
|
623
|
-
</pre>
|
|
610
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 75</span>
|
|
611
|
+
|
|
612
|
+
<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>
|
|
613
|
+
<span class='ivar'>@styles</span> <span class='op'>=</span> <span class='const'>Styles</span><span class='period'>.</span><span class='id new'>new</span>
|
|
614
|
+
<span class='ivar'>@worksheets</span> <span class='op'>=</span> <span class='const'>SimpleTypedList</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>Worksheet</span>
|
|
615
|
+
<span class='ivar'>@drawings</span> <span class='op'>=</span> <span class='const'>SimpleTypedList</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>Drawing</span>
|
|
616
|
+
<span class='ivar'>@charts</span> <span class='op'>=</span> <span class='const'>SimpleTypedList</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>Chart</span>
|
|
617
|
+
<span class='ivar'>@images</span> <span class='op'>=</span> <span class='const'>SimpleTypedList</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>Pic</span>
|
|
618
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id date1904'>date1904</span><span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:date1904</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:date1904</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
|
619
|
+
<span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
|
620
|
+
<span class='kw'>end</span></pre>
|
|
624
621
|
</td>
|
|
625
622
|
</tr>
|
|
626
623
|
</table>
|
|
@@ -646,15 +643,13 @@ the object that the method was called on
|
|
|
646
643
|
|
|
647
644
|
<div class="note notetag">
|
|
648
645
|
<strong>Note:</strong>
|
|
649
|
-
<div class='inline'
|
|
650
|
-
The recommended way to manage charts is Worksheet#add_chart
|
|
651
|
-
</p>
|
|
646
|
+
<div class='inline'>
|
|
647
|
+
<p>The recommended way to manage charts is Worksheet#add_chart</p>
|
|
652
648
|
</div>
|
|
653
649
|
</div>
|
|
654
650
|
|
|
655
|
-
|
|
656
|
-
A colllection of charts associated with this workbook
|
|
657
|
-
</p>
|
|
651
|
+
|
|
652
|
+
<p>A colllection of charts associated with this workbook</p>
|
|
658
653
|
|
|
659
654
|
|
|
660
655
|
</div>
|
|
@@ -697,63 +692,9 @@ A colllection of charts associated with this workbook
|
|
|
697
692
|
<td>
|
|
698
693
|
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 45</span>
|
|
699
694
|
|
|
700
|
-
<span class='
|
|
701
|
-
<span class='
|
|
702
|
-
<span class='
|
|
703
|
-
</pre>
|
|
704
|
-
</td>
|
|
705
|
-
</tr>
|
|
706
|
-
</table>
|
|
707
|
-
</div>
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
<span id="date1904=-instance_method"></span>
|
|
711
|
-
<span id="date1904-instance_method"></span>
|
|
712
|
-
<div class="method_details ">
|
|
713
|
-
<p class="signature " id="date1904-instance_method">
|
|
714
|
-
|
|
715
|
-
- (<tt>Boolean</tt>) <strong>date1904</strong>
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
</p><div class="docstring">
|
|
720
|
-
<div class="discussion">
|
|
721
|
-
<p>
|
|
722
|
-
Instance level access to the class variable 1904
|
|
723
|
-
</p>
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
</div>
|
|
727
|
-
</div>
|
|
728
|
-
<div class="tags">
|
|
729
|
-
|
|
730
|
-
<h3>Returns:</h3>
|
|
731
|
-
<ul class="return">
|
|
732
|
-
|
|
733
|
-
<li>
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
</li>
|
|
741
|
-
|
|
742
|
-
</ul>
|
|
743
|
-
|
|
744
|
-
</div><table class="source_code">
|
|
745
|
-
<tr>
|
|
746
|
-
<td>
|
|
747
|
-
<pre class="lines">
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
74</pre>
|
|
751
|
-
</td>
|
|
752
|
-
<td>
|
|
753
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 74</span>
|
|
754
|
-
|
|
755
|
-
<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>
|
|
756
|
-
</pre>
|
|
695
|
+
<span class='kw'>def</span> <span class='id charts'>charts</span>
|
|
696
|
+
<span class='ivar'>@charts</span>
|
|
697
|
+
<span class='kw'>end</span></pre>
|
|
757
698
|
</td>
|
|
758
699
|
</tr>
|
|
759
700
|
</table>
|
|
@@ -774,15 +715,13 @@ Instance level access to the class variable 1904
|
|
|
774
715
|
|
|
775
716
|
<div class="note notetag">
|
|
776
717
|
<strong>Note:</strong>
|
|
777
|
-
<div class='inline'
|
|
778
|
-
The recommended way to manage drawings is Worksheet#add_chart
|
|
779
|
-
</p>
|
|
718
|
+
<div class='inline'>
|
|
719
|
+
<p>The recommended way to manage drawings is Worksheet#add_chart</p>
|
|
780
720
|
</div>
|
|
781
721
|
</div>
|
|
782
722
|
|
|
783
|
-
|
|
784
|
-
A colllection of drawings associated with this workbook
|
|
785
|
-
</p>
|
|
723
|
+
|
|
724
|
+
<p>A colllection of drawings associated with this workbook</p>
|
|
786
725
|
|
|
787
726
|
|
|
788
727
|
</div>
|
|
@@ -825,10 +764,9 @@ A colllection of drawings associated with this workbook
|
|
|
825
764
|
<td>
|
|
826
765
|
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 59</span>
|
|
827
766
|
|
|
828
|
-
<span class='
|
|
829
|
-
<span class='
|
|
830
|
-
<span class='
|
|
831
|
-
</pre>
|
|
767
|
+
<span class='kw'>def</span> <span class='id drawings'>drawings</span>
|
|
768
|
+
<span class='ivar'>@drawings</span>
|
|
769
|
+
<span class='kw'>end</span></pre>
|
|
832
770
|
</td>
|
|
833
771
|
</tr>
|
|
834
772
|
</table>
|
|
@@ -849,15 +787,13 @@ A colllection of drawings associated with this workbook
|
|
|
849
787
|
|
|
850
788
|
<div class="note notetag">
|
|
851
789
|
<strong>Note:</strong>
|
|
852
|
-
<div class='inline'
|
|
853
|
-
The recommended way to manage images is Worksheet#add_image
|
|
854
|
-
</p>
|
|
790
|
+
<div class='inline'>
|
|
791
|
+
<p>The recommended way to manage images is Worksheet#add_image</p>
|
|
855
792
|
</div>
|
|
856
793
|
</div>
|
|
857
794
|
|
|
858
|
-
|
|
859
|
-
A colllection of images associated with this workbook
|
|
860
|
-
</p>
|
|
795
|
+
|
|
796
|
+
<p>A colllection of images associated with this workbook</p>
|
|
861
797
|
|
|
862
798
|
|
|
863
799
|
</div>
|
|
@@ -900,77 +836,9 @@ A colllection of images associated with this workbook
|
|
|
900
836
|
<td>
|
|
901
837
|
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 52</span>
|
|
902
838
|
|
|
903
|
-
<span class='
|
|
904
|
-
<span class='
|
|
905
|
-
<span class='
|
|
906
|
-
</pre>
|
|
907
|
-
</td>
|
|
908
|
-
</tr>
|
|
909
|
-
</table>
|
|
910
|
-
</div>
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
<span id=""></span>
|
|
914
|
-
<span id="relationships-instance_method"></span>
|
|
915
|
-
<div class="method_details ">
|
|
916
|
-
<p class="signature " id="relationships-instance_method">
|
|
917
|
-
|
|
918
|
-
- (<tt><span class='object_link'><a href="Relationships.html" title="Axlsx::Relationships (class)">Relationships</a></span></tt>) <strong>relationships</strong> <span class="extras">(readonly)</span>
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
</p><div class="docstring">
|
|
923
|
-
<div class="discussion">
|
|
924
|
-
<p>
|
|
925
|
-
The workbook relationships. This is managed automatically by the workbook
|
|
926
|
-
</p>
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
</div>
|
|
930
|
-
</div>
|
|
931
|
-
<div class="tags">
|
|
932
|
-
|
|
933
|
-
<h3>Returns:</h3>
|
|
934
|
-
<ul class="return">
|
|
935
|
-
|
|
936
|
-
<li>
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
<span class='type'>(<tt><span class='object_link'><a href="Relationships.html" title="Axlsx::Relationships (class)">Relationships</a></span></tt>)</span>
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
</li>
|
|
944
|
-
|
|
945
|
-
</ul>
|
|
946
|
-
|
|
947
|
-
</div><table class="source_code">
|
|
948
|
-
<tr>
|
|
949
|
-
<td>
|
|
950
|
-
<pre class="lines">
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
70
|
|
954
|
-
71
|
|
955
|
-
72
|
|
956
|
-
73
|
|
957
|
-
74
|
|
958
|
-
75
|
|
959
|
-
76
|
|
960
|
-
77</pre>
|
|
961
|
-
</td>
|
|
962
|
-
<td>
|
|
963
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 70</span>
|
|
964
|
-
|
|
965
|
-
<span class='def def kw'>def</span> <span class='relationships identifier id'>relationships</span>
|
|
966
|
-
<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>
|
|
967
|
-
<span class='@worksheets ivar id'>@worksheets</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='sheet identifier id'>sheet</span><span class='bitor op'>|</span>
|
|
968
|
-
<span class='r identifier id'>r</span> <span class='lshft op'><<</span> <span class='Relationship constant id'>Relationship</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='WORKSHEET_R constant id'>WORKSHEET_R</span><span class='comma token'>,</span> <span class='WORKSHEET_PN constant id'>WORKSHEET_PN</span> <span class='mod op'>%</span> <span class='lparen token'>(</span><span class='r identifier id'>r</span><span class='dot token'>.</span><span class='size identifier id'>size</span><span class='plus op'>+</span><span class='integer val'>1</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
|
969
|
-
<span class='end end kw'>end</span>
|
|
970
|
-
<span class='r identifier id'>r</span> <span class='lshft op'><<</span> <span class='Relationship constant id'>Relationship</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='STYLES_R constant id'>STYLES_R</span><span class='comma token'>,</span> <span class='STYLES_PN constant id'>STYLES_PN</span><span class='rparen token'>)</span>
|
|
971
|
-
<span class='r identifier id'>r</span>
|
|
972
|
-
<span class='end end kw'>end</span>
|
|
973
|
-
</pre>
|
|
839
|
+
<span class='kw'>def</span> <span class='id images'>images</span>
|
|
840
|
+
<span class='ivar'>@images</span>
|
|
841
|
+
<span class='kw'>end</span></pre>
|
|
974
842
|
</td>
|
|
975
843
|
</tr>
|
|
976
844
|
</table>
|
|
@@ -991,15 +859,13 @@ The workbook relationships. This is managed automatically by the workbook
|
|
|
991
859
|
|
|
992
860
|
<div class="note notetag">
|
|
993
861
|
<strong>Note:</strong>
|
|
994
|
-
<div class='inline'
|
|
995
|
-
The recommended way to manage styles is Styles#add_style
|
|
996
|
-
</p>
|
|
862
|
+
<div class='inline'>
|
|
863
|
+
<p>The recommended way to manage styles is Styles#add_style</p>
|
|
997
864
|
</div>
|
|
998
865
|
</div>
|
|
999
866
|
|
|
1000
|
-
|
|
1001
|
-
The styles associated with this workbook
|
|
1002
|
-
</p>
|
|
867
|
+
|
|
868
|
+
<p>The styles associated with this workbook</p>
|
|
1003
869
|
|
|
1004
870
|
|
|
1005
871
|
</div>
|
|
@@ -1042,10 +908,9 @@ The styles associated with this workbook
|
|
|
1042
908
|
<td>
|
|
1043
909
|
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 66</span>
|
|
1044
910
|
|
|
1045
|
-
<span class='
|
|
1046
|
-
<span class='
|
|
1047
|
-
<span class='
|
|
1048
|
-
</pre>
|
|
911
|
+
<span class='kw'>def</span> <span class='id styles'>styles</span>
|
|
912
|
+
<span class='ivar'>@styles</span>
|
|
913
|
+
<span class='kw'>end</span></pre>
|
|
1049
914
|
</td>
|
|
1050
915
|
</tr>
|
|
1051
916
|
</table>
|
|
@@ -1066,15 +931,13 @@ The styles associated with this workbook
|
|
|
1066
931
|
|
|
1067
932
|
<div class="note notetag">
|
|
1068
933
|
<strong>Note:</strong>
|
|
1069
|
-
<div class='inline'
|
|
1070
|
-
The recommended way to manage worksheets is add_worksheet
|
|
1071
|
-
</p>
|
|
934
|
+
<div class='inline'>
|
|
935
|
+
<p>The recommended way to manage worksheets is add_worksheet</p>
|
|
1072
936
|
</div>
|
|
1073
937
|
</div>
|
|
1074
938
|
|
|
1075
|
-
|
|
1076
|
-
A collection of worksheets associated with this workbook
|
|
1077
|
-
</p>
|
|
939
|
+
|
|
940
|
+
<p>A collection of worksheets associated with this workbook.</p>
|
|
1078
941
|
|
|
1079
942
|
|
|
1080
943
|
</div>
|
|
@@ -1117,10 +980,9 @@ A collection of worksheets associated with this workbook.
|
|
|
1117
980
|
<td>
|
|
1118
981
|
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 38</span>
|
|
1119
982
|
|
|
1120
|
-
<span class='
|
|
1121
|
-
<span class='
|
|
1122
|
-
<span class='
|
|
1123
|
-
</pre>
|
|
983
|
+
<span class='kw'>def</span> <span class='id worksheets'>worksheets</span>
|
|
984
|
+
<span class='ivar'>@worksheets</span>
|
|
985
|
+
<span class='kw'>end</span></pre>
|
|
1124
986
|
</td>
|
|
1125
987
|
</tr>
|
|
1126
988
|
</table>
|
|
@@ -1142,9 +1004,8 @@ A collection of worksheets associated with this workbook.
|
|
|
1142
1004
|
|
|
1143
1005
|
</p><div class="docstring">
|
|
1144
1006
|
<div class="discussion">
|
|
1145
|
-
|
|
1146
|
-
retrieves the date1904 attribute
|
|
1147
|
-
</p>
|
|
1007
|
+
|
|
1008
|
+
<p>retrieves the date1904 attribute</p>
|
|
1148
1009
|
|
|
1149
1010
|
|
|
1150
1011
|
</div>
|
|
@@ -1171,13 +1032,12 @@ retrieves the date1904 attribute
|
|
|
1171
1032
|
<pre class="lines">
|
|
1172
1033
|
|
|
1173
1034
|
|
|
1174
|
-
|
|
1035
|
+
98</pre>
|
|
1175
1036
|
</td>
|
|
1176
1037
|
<td>
|
|
1177
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
|
1038
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 98</span>
|
|
1178
1039
|
|
|
1179
|
-
<span class='
|
|
1180
|
-
</pre>
|
|
1040
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id date1904'>date1904</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='cvar'>@@date1904</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1181
1041
|
</td>
|
|
1182
1042
|
</tr>
|
|
1183
1043
|
</table>
|
|
@@ -1192,9 +1052,8 @@ retrieves the date1904 attribute
|
|
|
1192
1052
|
|
|
1193
1053
|
</p><div class="docstring">
|
|
1194
1054
|
<div class="discussion">
|
|
1195
|
-
|
|
1196
|
-
Sets the date1904 attribute to the provided boolean
|
|
1197
|
-
</p>
|
|
1055
|
+
|
|
1056
|
+
<p>Sets the date1904 attribute to the provided boolean</p>
|
|
1198
1057
|
|
|
1199
1058
|
|
|
1200
1059
|
</div>
|
|
@@ -1221,13 +1080,12 @@ Sets the date1904 attribute to the provided boolean
|
|
|
1221
1080
|
<pre class="lines">
|
|
1222
1081
|
|
|
1223
1082
|
|
|
1224
|
-
|
|
1083
|
+
94</pre>
|
|
1225
1084
|
</td>
|
|
1226
1085
|
<td>
|
|
1227
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
|
1086
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 94</span>
|
|
1228
1087
|
|
|
1229
|
-
<span class='
|
|
1230
|
-
</pre>
|
|
1088
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id date1904='>date1904=</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='id validate_boolean'>validate_boolean</span> <span class='id v'>v</span><span class='semicolon'>;</span> <span class='cvar'>@@date1904</span> <span class='op'>=</span> <span class='id v'>v</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1231
1089
|
</td>
|
|
1232
1090
|
</tr>
|
|
1233
1091
|
</table>
|
|
@@ -1248,9 +1106,8 @@ Sets the date1904 attribute to the provided boolean
|
|
|
1248
1106
|
|
|
1249
1107
|
</p><div class="docstring">
|
|
1250
1108
|
<div class="discussion">
|
|
1251
|
-
|
|
1252
|
-
Adds a worksheet to this workbook
|
|
1253
|
-
</p>
|
|
1109
|
+
|
|
1110
|
+
<p>Adds a worksheet to this workbook</p>
|
|
1254
1111
|
|
|
1255
1112
|
|
|
1256
1113
|
</div>
|
|
@@ -1271,9 +1128,8 @@ Adds a worksheet to this workbook
|
|
|
1271
1128
|
|
|
1272
1129
|
|
|
1273
1130
|
—
|
|
1274
|
-
<div class='inline'
|
|
1275
|
-
a customizable set of options
|
|
1276
|
-
</p>
|
|
1131
|
+
<div class='inline'>
|
|
1132
|
+
<p>a customizable set of options</p>
|
|
1277
1133
|
</div>
|
|
1278
1134
|
|
|
1279
1135
|
</li>
|
|
@@ -1292,9 +1148,8 @@ a customizable set of options
|
|
|
1292
1148
|
<span class="default">
|
|
1293
1149
|
|
|
1294
1150
|
</span>
|
|
1295
|
-
— <div class='inline'
|
|
1296
|
-
The name of the worksheet
|
|
1297
|
-
</p>
|
|
1151
|
+
— <div class='inline'>
|
|
1152
|
+
<p>The name of the worksheet.</p>
|
|
1298
1153
|
</div>
|
|
1299
1154
|
</li>
|
|
1300
1155
|
|
|
@@ -1341,21 +1196,165 @@ The name of the worksheet.
|
|
|
1341
1196
|
<pre class="lines">
|
|
1342
1197
|
|
|
1343
1198
|
|
|
1199
|
+
104
|
|
1200
|
+
105
|
|
1201
|
+
106
|
|
1344
1202
|
107
|
|
1345
|
-
108
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1203
|
+
108</pre>
|
|
1204
|
+
</td>
|
|
1205
|
+
<td>
|
|
1206
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 104</span>
|
|
1207
|
+
|
|
1208
|
+
<span class='kw'>def</span> <span class='id add_worksheet'>add_worksheet</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>
|
|
1209
|
+
<span class='id worksheet'>worksheet</span> <span class='op'>=</span> <span class='const'>Worksheet</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
|
1210
|
+
<span class='kw'>yield</span> <span class='id worksheet'>worksheet</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
|
1211
|
+
<span class='id worksheet'>worksheet</span>
|
|
1212
|
+
<span class='kw'>end</span></pre>
|
|
1213
|
+
</td>
|
|
1214
|
+
</tr>
|
|
1215
|
+
</table>
|
|
1216
|
+
</div>
|
|
1217
|
+
|
|
1218
|
+
<div class="method_details ">
|
|
1219
|
+
<p class="signature " id="date1904-instance_method">
|
|
1220
|
+
|
|
1221
|
+
- (<tt>Boolean</tt>) <strong>date1904</strong>
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
</p><div class="docstring">
|
|
1226
|
+
<div class="discussion">
|
|
1227
|
+
|
|
1228
|
+
<p>Instance level access to the class variable 1904</p>
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
</div>
|
|
1232
|
+
</div>
|
|
1233
|
+
<div class="tags">
|
|
1234
|
+
|
|
1235
|
+
<h3>Returns:</h3>
|
|
1236
|
+
<ul class="return">
|
|
1237
|
+
|
|
1238
|
+
<li>
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
</li>
|
|
1246
|
+
|
|
1247
|
+
</ul>
|
|
1248
|
+
|
|
1249
|
+
</div><table class="source_code">
|
|
1250
|
+
<tr>
|
|
1251
|
+
<td>
|
|
1252
|
+
<pre class="lines">
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
87</pre>
|
|
1256
|
+
</td>
|
|
1257
|
+
<td>
|
|
1258
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 87</span>
|
|
1259
|
+
|
|
1260
|
+
<span class='kw'>def</span> <span class='id date1904'>date1904</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='cvar'>@@date1904</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1261
|
+
</td>
|
|
1262
|
+
</tr>
|
|
1263
|
+
</table>
|
|
1264
|
+
</div>
|
|
1265
|
+
|
|
1266
|
+
<div class="method_details ">
|
|
1267
|
+
<p class="signature " id="date1904=-instance_method">
|
|
1268
|
+
|
|
1269
|
+
- (<tt>Object</tt>) <strong>date1904=</strong>(v)
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
</p><div class="docstring">
|
|
1274
|
+
<div class="discussion">
|
|
1275
|
+
|
|
1276
|
+
<p>see @date1904</p>
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
</div>
|
|
1280
|
+
</div>
|
|
1281
|
+
<div class="tags">
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
</div><table class="source_code">
|
|
1285
|
+
<tr>
|
|
1286
|
+
<td>
|
|
1287
|
+
<pre class="lines">
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
90</pre>
|
|
1291
|
+
</td>
|
|
1292
|
+
<td>
|
|
1293
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 90</span>
|
|
1294
|
+
|
|
1295
|
+
<span class='kw'>def</span> <span class='id date1904='>date1904=</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='id validate_boolean'>validate_boolean</span> <span class='id v'>v</span><span class='semicolon'>;</span> <span class='cvar'>@@date1904</span> <span class='op'>=</span> <span class='id v'>v</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1296
|
+
</td>
|
|
1297
|
+
</tr>
|
|
1298
|
+
</table>
|
|
1299
|
+
</div>
|
|
1300
|
+
|
|
1301
|
+
<div class="method_details ">
|
|
1302
|
+
<p class="signature " id="relationships-instance_method">
|
|
1303
|
+
|
|
1304
|
+
- (<tt><span class='object_link'><a href="Relationships.html" title="Axlsx::Relationships (class)">Relationships</a></span></tt>) <strong>relationships</strong>
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
</p><div class="docstring">
|
|
1309
|
+
<div class="discussion">
|
|
1310
|
+
|
|
1311
|
+
<p>The workbook relationships. This is managed automatically by the workbook</p>
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
</div>
|
|
1315
|
+
</div>
|
|
1316
|
+
<div class="tags">
|
|
1317
|
+
|
|
1318
|
+
<h3>Returns:</h3>
|
|
1319
|
+
<ul class="return">
|
|
1320
|
+
|
|
1321
|
+
<li>
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
<span class='type'>(<tt><span class='object_link'><a href="Relationships.html" title="Axlsx::Relationships (class)">Relationships</a></span></tt>)</span>
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
</li>
|
|
1329
|
+
|
|
1330
|
+
</ul>
|
|
1331
|
+
|
|
1332
|
+
</div><table class="source_code">
|
|
1333
|
+
<tr>
|
|
1334
|
+
<td>
|
|
1335
|
+
<pre class="lines">
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
112
|
|
1339
|
+
113
|
|
1340
|
+
114
|
|
1341
|
+
115
|
|
1342
|
+
116
|
|
1343
|
+
117
|
|
1344
|
+
118
|
|
1345
|
+
119</pre>
|
|
1349
1346
|
</td>
|
|
1350
1347
|
<td>
|
|
1351
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
|
1352
|
-
|
|
1353
|
-
<span class='
|
|
1354
|
-
<span class='
|
|
1355
|
-
<span class='
|
|
1356
|
-
|
|
1357
|
-
<span class='
|
|
1358
|
-
</
|
|
1348
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 112</span>
|
|
1349
|
+
|
|
1350
|
+
<span class='kw'>def</span> <span class='id relationships'>relationships</span>
|
|
1351
|
+
<span class='id r'>r</span> <span class='op'>=</span> <span class='const'>Relationships</span><span class='period'>.</span><span class='id new'>new</span>
|
|
1352
|
+
<span class='ivar'>@worksheets</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id sheet'>sheet</span><span class='op'>|</span>
|
|
1353
|
+
<span class='id r'>r</span> <span class='op'><<</span> <span class='const'>Relationship</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='const'>WORKSHEET_R</span><span class='comma'>,</span> <span class='const'>WORKSHEET_PN</span> <span class='op'>%</span> <span class='lparen'>(</span><span class='id r'>r</span><span class='period'>.</span><span class='id size'>size</span><span class='op'>+</span><span class='int'>1</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
1354
|
+
<span class='kw'>end</span>
|
|
1355
|
+
<span class='id r'>r</span> <span class='op'><<</span> <span class='const'>Relationship</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='const'>STYLES_R</span><span class='comma'>,</span> <span class='const'>STYLES_PN</span><span class='rparen'>)</span>
|
|
1356
|
+
<span class='id r'>r</span>
|
|
1357
|
+
<span class='kw'>end</span></pre>
|
|
1359
1358
|
</td>
|
|
1360
1359
|
</tr>
|
|
1361
1360
|
</table>
|
|
@@ -1370,9 +1369,8 @@ The name of the worksheet.
|
|
|
1370
1369
|
|
|
1371
1370
|
</p><div class="docstring">
|
|
1372
1371
|
<div class="discussion">
|
|
1373
|
-
|
|
1374
|
-
Serializes the workbook document
|
|
1375
|
-
</p>
|
|
1372
|
+
|
|
1373
|
+
<p>Serializes the workbook document</p>
|
|
1376
1374
|
|
|
1377
1375
|
|
|
1378
1376
|
</div>
|
|
@@ -1399,6 +1397,7 @@ Serializes the workbook document
|
|
|
1399
1397
|
<pre class="lines">
|
|
1400
1398
|
|
|
1401
1399
|
|
|
1400
|
+
123
|
|
1402
1401
|
124
|
|
1403
1402
|
125
|
|
1404
1403
|
126
|
|
@@ -1411,27 +1410,25 @@ Serializes the workbook document
|
|
|
1411
1410
|
133
|
|
1412
1411
|
134
|
|
1413
1412
|
135
|
|
1414
|
-
136
|
|
1415
|
-
137</pre>
|
|
1413
|
+
136</pre>
|
|
1416
1414
|
</td>
|
|
1417
1415
|
<td>
|
|
1418
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line
|
|
1419
|
-
|
|
1420
|
-
<span class='
|
|
1421
|
-
<span class='add_worksheet
|
|
1422
|
-
<span class='builder
|
|
1423
|
-
<span class='xml
|
|
1424
|
-
<span class='xml
|
|
1425
|
-
<span class='xml
|
|
1426
|
-
<span class='
|
|
1427
|
-
<span class='xml
|
|
1428
|
-
<span class='
|
|
1429
|
-
<span class='rbrace
|
|
1430
|
-
<span class='rbrace
|
|
1431
|
-
<span class='
|
|
1432
|
-
<span class='builder
|
|
1433
|
-
<span class='
|
|
1434
|
-
</pre>
|
|
1416
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/workbook/workbook.rb', line 123</span>
|
|
1417
|
+
|
|
1418
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
1419
|
+
<span class='id add_worksheet'>add_worksheet</span> <span class='kw'>unless</span> <span class='id worksheets'>worksheets</span><span class='period'>.</span><span class='id size'>size</span> <span class='op'>></span> <span class='int'>0</span>
|
|
1420
|
+
<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>
|
|
1421
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id workbook'>workbook</span><span class='lparen'>(</span><span class='symbol'>:xmlns</span> <span class='op'>=></span> <span class='const'>XML_NS</span><span class='comma'>,</span> <span class='symbol'>:xmlns:r</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>XML_NS_R</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
1422
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id workbookPr'>workbookPr</span><span class='lparen'>(</span><span class='symbol'>:date1904</span><span class='op'>=></span><span class='cvar'>@@date1904</span><span class='rparen'>)</span>
|
|
1423
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id sheets'>sheets</span> <span class='lbrace'>{</span>
|
|
1424
|
+
<span class='ivar'>@worksheets</span><span class='period'>.</span><span class='id each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id sheet'>sheet</span><span class='comma'>,</span> <span class='id index'>index</span><span class='op'>|</span>
|
|
1425
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id sheet'>sheet</span><span class='lparen'>(</span><span class='symbol'>:name</span><span class='op'>=></span><span class='id sheet'>sheet</span><span class='period'>.</span><span class='id name'>name</span><span class='comma'>,</span> <span class='symbol'>:sheetId</span><span class='op'>=></span><span class='id index'>index</span><span class='op'>+</span><span class='int'>1</span><span class='comma'>,</span> <span class='symbol'>:r:id</span><span class='tstring_end'>"</span></span><span class='op'>=></span><span class='id sheet'>sheet</span><span class='period'>.</span><span class='id rId'>rId</span><span class='rparen'>)</span>
|
|
1426
|
+
<span class='kw'>end</span>
|
|
1427
|
+
<span class='rbrace'>}</span>
|
|
1428
|
+
<span class='rbrace'>}</span>
|
|
1429
|
+
<span class='kw'>end</span>
|
|
1430
|
+
<span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='symbol'>:indent</span><span class='op'>=></span><span class='int'>0</span><span class='rparen'>)</span>
|
|
1431
|
+
<span class='kw'>end</span></pre>
|
|
1435
1432
|
</td>
|
|
1436
1433
|
</tr>
|
|
1437
1434
|
</table>
|
|
@@ -1442,9 +1439,9 @@ Serializes the workbook document
|
|
|
1442
1439
|
</div>
|
|
1443
1440
|
|
|
1444
1441
|
<div id="footer">
|
|
1445
|
-
Generated on
|
|
1442
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
1446
1443
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1447
|
-
0.7.3 (ruby-1.
|
|
1444
|
+
0.7.3 (ruby-1.9.3).
|
|
1448
1445
|
</div>
|
|
1449
1446
|
|
|
1450
1447
|
</body>
|