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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::RegexValidator
|
|
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
|
-
Validates the value against the regular expression provided
|
|
99
|
-
</p>
|
|
97
|
+
|
|
98
|
+
<p>Validates the value against the regular expression provided.</p>
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
</div>
|
|
@@ -174,10 +173,9 @@ Validates the value against the regular expression provided.
|
|
|
174
173
|
|
|
175
174
|
|
|
176
175
|
—
|
|
177
|
-
<div class='inline'
|
|
178
|
-
The name of what is being validated. This is included in the output when
|
|
179
|
-
the value is invalid
|
|
180
|
-
</p>
|
|
176
|
+
<div class='inline'>
|
|
177
|
+
<p>The name of what is being validated. This is included in the output when
|
|
178
|
+
the value is invalid</p>
|
|
181
179
|
</div>
|
|
182
180
|
|
|
183
181
|
</li>
|
|
@@ -192,9 +190,8 @@ the value is invalid
|
|
|
192
190
|
|
|
193
191
|
|
|
194
192
|
—
|
|
195
|
-
<div class='inline'
|
|
196
|
-
The regular expression to evaluate
|
|
197
|
-
</p>
|
|
193
|
+
<div class='inline'>
|
|
194
|
+
<p>The regular expression to evaluate</p>
|
|
198
195
|
</div>
|
|
199
196
|
|
|
200
197
|
</li>
|
|
@@ -209,9 +206,8 @@ The regular expression to evaluate
|
|
|
209
206
|
|
|
210
207
|
|
|
211
208
|
—
|
|
212
|
-
<div class='inline'
|
|
213
|
-
The value to validate
|
|
214
|
-
</p>
|
|
209
|
+
<div class='inline'>
|
|
210
|
+
<p>The value to validate.</p>
|
|
215
211
|
</div>
|
|
216
212
|
|
|
217
213
|
</li>
|
|
@@ -245,10 +241,9 @@ The value to validate.
|
|
|
245
241
|
<td>
|
|
246
242
|
<pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 21</span>
|
|
247
243
|
|
|
248
|
-
<span class='
|
|
249
|
-
<span class='raise
|
|
250
|
-
<span class='
|
|
251
|
-
</pre>
|
|
244
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id validate'>validate</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id regex'>regex</span><span class='comma'>,</span> <span class='id v'>v</span><span class='rparen'>)</span>
|
|
245
|
+
<span class='id raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='const'>ERR_REGEX</span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id v'>v</span><span class='period'>.</span><span class='id inspect'>inspect</span><span class='comma'>,</span> <span class='id regex'>regex</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id v'>v</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:=~</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id v'>v</span> <span class='op'>=~</span> <span class='id regex'>regex</span><span class='rparen'>)</span>
|
|
246
|
+
<span class='kw'>end</span></pre>
|
|
252
247
|
</td>
|
|
253
248
|
</tr>
|
|
254
249
|
</table>
|
|
@@ -259,9 +254,9 @@ The value to validate.
|
|
|
259
254
|
</div>
|
|
260
255
|
|
|
261
256
|
<div id="footer">
|
|
262
|
-
Generated on
|
|
257
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
|
263
258
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
264
|
-
0.7.3 (ruby-1.
|
|
259
|
+
0.7.3 (ruby-1.9.3).
|
|
265
260
|
</div>
|
|
266
261
|
|
|
267
262
|
</body>
|
data/doc/Axlsx/Relationship.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Relationship
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -97,15 +97,13 @@
|
|
|
97
97
|
|
|
98
98
|
<div class="note notetag">
|
|
99
99
|
<strong>Note:</strong>
|
|
100
|
-
<div class='inline'
|
|
101
|
-
Packages automatcially manage relationships
|
|
102
|
-
</p>
|
|
100
|
+
<div class='inline'>
|
|
101
|
+
<p>Packages automatcially manage relationships.</p>
|
|
103
102
|
</div>
|
|
104
103
|
</div>
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
A relationship defines a reference between package parts
|
|
108
|
-
</p>
|
|
105
|
+
|
|
106
|
+
<p>A relationship defines a reference between package parts.</p>
|
|
109
107
|
|
|
110
108
|
|
|
111
109
|
</div>
|
|
@@ -137,9 +135,8 @@ A relationship defines a reference between package parts.
|
|
|
137
135
|
|
|
138
136
|
|
|
139
137
|
|
|
140
|
-
<span class="summary_desc"><div class='inline'
|
|
141
|
-
The location of the relationship target
|
|
142
|
-
</p>
|
|
138
|
+
<span class="summary_desc"><div class='inline'>
|
|
139
|
+
<p>The location of the relationship target.</p>
|
|
143
140
|
</div></span>
|
|
144
141
|
|
|
145
142
|
</li>
|
|
@@ -164,9 +161,8 @@ The location of the relationship target.
|
|
|
164
161
|
|
|
165
162
|
|
|
166
163
|
|
|
167
|
-
<span class="summary_desc"><div class='inline'
|
|
168
|
-
The type of relationship
|
|
169
|
-
</p>
|
|
164
|
+
<span class="summary_desc"><div class='inline'>
|
|
165
|
+
<p>The type of relationship.</p>
|
|
170
166
|
</div></span>
|
|
171
167
|
|
|
172
168
|
</li>
|
|
@@ -203,9 +199,8 @@ The type of relationship.
|
|
|
203
199
|
|
|
204
200
|
|
|
205
201
|
|
|
206
|
-
<span class="summary_desc"><div class='inline'
|
|
207
|
-
A new instance of Relationship
|
|
208
|
-
</p>
|
|
202
|
+
<span class="summary_desc"><div class='inline'>
|
|
203
|
+
<p>A new instance of Relationship.</p>
|
|
209
204
|
</div></span>
|
|
210
205
|
|
|
211
206
|
</li>
|
|
@@ -227,9 +222,8 @@ A new instance of Relationship.
|
|
|
227
222
|
|
|
228
223
|
|
|
229
224
|
|
|
230
|
-
<span class="summary_desc"><div class='inline'
|
|
231
|
-
Serializes the relationship
|
|
232
|
-
</p>
|
|
225
|
+
<span class="summary_desc"><div class='inline'>
|
|
226
|
+
<p>Serializes the relationship.</p>
|
|
233
227
|
</div></span>
|
|
234
228
|
|
|
235
229
|
</li>
|
|
@@ -250,9 +244,8 @@ Serializes the relationship.
|
|
|
250
244
|
|
|
251
245
|
</p><div class="docstring">
|
|
252
246
|
<div class="discussion">
|
|
253
|
-
|
|
254
|
-
A new instance of Relationship
|
|
255
|
-
</p>
|
|
247
|
+
|
|
248
|
+
<p>A new instance of Relationship</p>
|
|
256
249
|
|
|
257
250
|
|
|
258
251
|
</div>
|
|
@@ -274,11 +267,10 @@ A new instance of Relationship
|
|
|
274
267
|
<td>
|
|
275
268
|
<pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 24</span>
|
|
276
269
|
|
|
277
|
-
<span class='
|
|
278
|
-
<span class='
|
|
279
|
-
<span class='
|
|
280
|
-
<span class='
|
|
281
|
-
</pre>
|
|
270
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id type'>type</span><span class='comma'>,</span> <span class='id target'>target</span><span class='rparen'>)</span>
|
|
271
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='const'>Target</span><span class='op'>=</span><span class='id target'>target</span>
|
|
272
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='const'>Type</span><span class='op'>=</span><span class='id type'>type</span>
|
|
273
|
+
<span class='kw'>end</span></pre>
|
|
282
274
|
</td>
|
|
283
275
|
</tr>
|
|
284
276
|
</table>
|
|
@@ -301,9 +293,8 @@ A new instance of Relationship
|
|
|
301
293
|
|
|
302
294
|
</p><div class="docstring">
|
|
303
295
|
<div class="discussion">
|
|
304
|
-
|
|
305
|
-
The location of the relationship target
|
|
306
|
-
</p>
|
|
296
|
+
|
|
297
|
+
<p>The location of the relationship target</p>
|
|
307
298
|
|
|
308
299
|
|
|
309
300
|
</div>
|
|
@@ -337,10 +328,9 @@ The location of the relationship target
|
|
|
337
328
|
<td>
|
|
338
329
|
<pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 8</span>
|
|
339
330
|
|
|
340
|
-
<span class='
|
|
341
|
-
<span class='
|
|
342
|
-
<span class='
|
|
343
|
-
</pre>
|
|
331
|
+
<span class='kw'>def</span> <span class='const'>Target</span>
|
|
332
|
+
<span class='ivar'>@Target</span>
|
|
333
|
+
<span class='kw'>end</span></pre>
|
|
344
334
|
</td>
|
|
345
335
|
</tr>
|
|
346
336
|
</table>
|
|
@@ -361,15 +351,13 @@ The location of the relationship target
|
|
|
361
351
|
|
|
362
352
|
<div class="note notetag">
|
|
363
353
|
<strong>Note:</strong>
|
|
364
|
-
<div class='inline'
|
|
365
|
-
Supported types are defined as constants in Axlsx
|
|
366
|
-
</p>
|
|
354
|
+
<div class='inline'>
|
|
355
|
+
<p>Supported types are defined as constants in Axlsx:</p>
|
|
367
356
|
</div>
|
|
368
357
|
</div>
|
|
369
358
|
|
|
370
|
-
|
|
371
|
-
The type of relationship
|
|
372
|
-
</p>
|
|
359
|
+
|
|
360
|
+
<p>The type of relationship</p>
|
|
373
361
|
|
|
374
362
|
|
|
375
363
|
</div>
|
|
@@ -428,10 +416,9 @@ The type of relationship
|
|
|
428
416
|
<td>
|
|
429
417
|
<pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 23</span>
|
|
430
418
|
|
|
431
|
-
<span class='
|
|
432
|
-
<span class='
|
|
433
|
-
<span class='
|
|
434
|
-
</pre>
|
|
419
|
+
<span class='kw'>def</span> <span class='const'>Type</span>
|
|
420
|
+
<span class='ivar'>@Type</span>
|
|
421
|
+
<span class='kw'>end</span></pre>
|
|
435
422
|
</td>
|
|
436
423
|
</tr>
|
|
437
424
|
</table>
|
|
@@ -453,9 +440,8 @@ The type of relationship
|
|
|
453
440
|
|
|
454
441
|
</p><div class="docstring">
|
|
455
442
|
<div class="discussion">
|
|
456
|
-
|
|
457
|
-
Serializes the relationship
|
|
458
|
-
</p>
|
|
443
|
+
|
|
444
|
+
<p>Serializes the relationship</p>
|
|
459
445
|
|
|
460
446
|
|
|
461
447
|
</div>
|
|
@@ -474,9 +460,8 @@ Serializes the relationship
|
|
|
474
460
|
|
|
475
461
|
|
|
476
462
|
—
|
|
477
|
-
<div class='inline'
|
|
478
|
-
The document builder instance this objects xml will be added to
|
|
479
|
-
</p>
|
|
463
|
+
<div class='inline'>
|
|
464
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
480
465
|
</div>
|
|
481
466
|
|
|
482
467
|
</li>
|
|
@@ -491,9 +476,8 @@ The document builder instance this objects xml will be added to.
|
|
|
491
476
|
|
|
492
477
|
|
|
493
478
|
—
|
|
494
|
-
<div class='inline'
|
|
495
|
-
the reference id of the object
|
|
496
|
-
</p>
|
|
479
|
+
<div class='inline'>
|
|
480
|
+
<p>the reference id of the object.</p>
|
|
497
481
|
</div>
|
|
498
482
|
|
|
499
483
|
</li>
|
|
@@ -520,21 +504,20 @@ the reference id of the object.
|
|
|
520
504
|
<pre class="lines">
|
|
521
505
|
|
|
522
506
|
|
|
523
|
-
36
|
|
524
|
-
37
|
|
525
507
|
38
|
|
526
508
|
39
|
|
527
|
-
40
|
|
509
|
+
40
|
|
510
|
+
41
|
|
511
|
+
42</pre>
|
|
528
512
|
</td>
|
|
529
513
|
<td>
|
|
530
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line
|
|
531
|
-
|
|
532
|
-
<span class='
|
|
533
|
-
<span class='h
|
|
534
|
-
<span class='h
|
|
535
|
-
<span class='xml
|
|
536
|
-
<span class='
|
|
537
|
-
</pre>
|
|
514
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 38</span>
|
|
515
|
+
|
|
516
|
+
<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='comma'>,</span> <span class='id rId'>rId</span><span class='rparen'>)</span>
|
|
517
|
+
<span class='id h'>h</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span>
|
|
518
|
+
<span class='id h'>h</span><span class='lbracket'>[</span><span class='symbol'>:Id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id rId'>rId</span>
|
|
519
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='const'>Relationship</span><span class='lparen'>(</span><span class='id h'>h</span><span class='rparen'>)</span>
|
|
520
|
+
<span class='kw'>end</span></pre>
|
|
538
521
|
</td>
|
|
539
522
|
</tr>
|
|
540
523
|
</table>
|
|
@@ -545,9 +528,9 @@ the reference id of the object.
|
|
|
545
528
|
</div>
|
|
546
529
|
|
|
547
530
|
<div id="footer">
|
|
548
|
-
Generated on
|
|
531
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
549
532
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
550
|
-
0.7.3 (ruby-1.
|
|
533
|
+
0.7.3 (ruby-1.9.3).
|
|
551
534
|
</div>
|
|
552
535
|
|
|
553
536
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Relationships
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -99,16 +99,14 @@
|
|
|
99
99
|
|
|
100
100
|
<div class="note notetag">
|
|
101
101
|
<strong>Note:</strong>
|
|
102
|
-
<div class='inline'
|
|
103
|
-
The package automatically manages releationships
|
|
104
|
-
</p>
|
|
102
|
+
<div class='inline'>
|
|
103
|
+
<p>The package automatically manages releationships.</p>
|
|
105
104
|
</div>
|
|
106
105
|
</div>
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
Relationships are a collection of Relations that define how package parts
|
|
110
|
-
are related
|
|
111
|
-
</p>
|
|
107
|
+
|
|
108
|
+
<p>Relationships are a collection of Relations that define how package parts
|
|
109
|
+
are related.</p>
|
|
112
110
|
|
|
113
111
|
|
|
114
112
|
</div>
|
|
@@ -159,9 +157,8 @@ are related.
|
|
|
159
157
|
|
|
160
158
|
|
|
161
159
|
|
|
162
|
-
<span class="summary_desc"><div class='inline'
|
|
163
|
-
Creates a new Relationships collection based on SimpleTypedList
|
|
164
|
-
</p>
|
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
|
161
|
+
<p>Creates a new Relationships collection based on SimpleTypedList.</p>
|
|
165
162
|
</div></span>
|
|
166
163
|
|
|
167
164
|
</li>
|
|
@@ -183,9 +180,8 @@ Creates a new Relationships collection based on SimpleTypedList.
|
|
|
183
180
|
|
|
184
181
|
|
|
185
182
|
|
|
186
|
-
<span class="summary_desc"><div class='inline'
|
|
187
|
-
Serializes the relationships document
|
|
188
|
-
</p>
|
|
183
|
+
<span class="summary_desc"><div class='inline'>
|
|
184
|
+
<p>Serializes the relationships document.</p>
|
|
189
185
|
</div></span>
|
|
190
186
|
|
|
191
187
|
</li>
|
|
@@ -199,12 +195,7 @@ Serializes the relationships document.
|
|
|
199
195
|
|
|
200
196
|
|
|
201
197
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
|
|
206
|
-
<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>
|
|
207
|
-
<div id="constructor_details" class="method_details_list">
|
|
198
|
+
<div id="constructor_details" class="method_details_list">
|
|
208
199
|
<h2>Constructor Details</h2>
|
|
209
200
|
|
|
210
201
|
<div class="method_details first">
|
|
@@ -216,9 +207,8 @@ Serializes the relationships document.
|
|
|
216
207
|
|
|
217
208
|
</p><div class="docstring">
|
|
218
209
|
<div class="discussion">
|
|
219
|
-
|
|
220
|
-
Creates a new Relationships collection based on SimpleTypedList
|
|
221
|
-
</p>
|
|
210
|
+
|
|
211
|
+
<p>Creates a new Relationships collection based on SimpleTypedList</p>
|
|
222
212
|
|
|
223
213
|
|
|
224
214
|
</div>
|
|
@@ -239,10 +229,9 @@ Creates a new Relationships collection based on SimpleTypedList
|
|
|
239
229
|
<td>
|
|
240
230
|
<pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationships.rb', line 9</span>
|
|
241
231
|
|
|
242
|
-
<span class='
|
|
243
|
-
<span class='
|
|
244
|
-
<span class='
|
|
245
|
-
</pre>
|
|
232
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span>
|
|
233
|
+
<span class='kw'>super</span> <span class='const'>Relationship</span>
|
|
234
|
+
<span class='kw'>end</span></pre>
|
|
246
235
|
</td>
|
|
247
236
|
</tr>
|
|
248
237
|
</table>
|
|
@@ -274,9 +263,8 @@ Creates a new Relationships collection based on SimpleTypedList
|
|
|
274
263
|
|
|
275
264
|
</p><div class="docstring">
|
|
276
265
|
<div class="discussion">
|
|
277
|
-
|
|
278
|
-
Serializes the relationships document
|
|
279
|
-
</p>
|
|
266
|
+
|
|
267
|
+
<p>Serializes the relationships document.</p>
|
|
280
268
|
|
|
281
269
|
|
|
282
270
|
</div>
|
|
@@ -315,15 +303,14 @@ Serializes the relationships document.
|
|
|
315
303
|
<td>
|
|
316
304
|
<pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationships.rb', line 15</span>
|
|
317
305
|
|
|
318
|
-
<span class='
|
|
319
|
-
<span class='builder
|
|
320
|
-
<span class='xml
|
|
321
|
-
<span class='each_with_index
|
|
322
|
-
<span class='rbrace
|
|
323
|
-
<span class='
|
|
324
|
-
<span class='builder
|
|
325
|
-
<span class='
|
|
326
|
-
</pre>
|
|
306
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
307
|
+
<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>
|
|
308
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='const'>Relationships</span><span class='lparen'>(</span><span class='symbol'>:xmlns</span> <span class='op'>=></span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='const'>RELS_R</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
309
|
+
<span class='id each_with_index'>each_with_index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id rel'>rel</span><span class='comma'>,</span> <span class='id index'>index</span><span class='op'>|</span> <span class='id rel'>rel</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='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>rId</span><span class='embexpr_beg'>#{</span><span class='id index'>index</span><span class='op'>+</span><span class='int'>1</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
310
|
+
<span class='rbrace'>}</span>
|
|
311
|
+
<span class='kw'>end</span>
|
|
312
|
+
<span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span>
|
|
313
|
+
<span class='kw'>end</span></pre>
|
|
327
314
|
</td>
|
|
328
315
|
</tr>
|
|
329
316
|
</table>
|
|
@@ -334,9 +321,9 @@ Serializes the relationships document.
|
|
|
334
321
|
</div>
|
|
335
322
|
|
|
336
323
|
<div id="footer">
|
|
337
|
-
Generated on
|
|
324
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
338
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
339
|
-
0.7.3 (ruby-1.
|
|
326
|
+
0.7.3 (ruby-1.9.3).
|
|
340
327
|
</div>
|
|
341
328
|
|
|
342
329
|
</body>
|