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/Fill.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Fill
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -97,17 +97,15 @@
|
|
|
97
97
|
|
|
98
98
|
<div class="note notetag">
|
|
99
99
|
<strong>Note:</strong>
|
|
100
|
-
<div class='inline'
|
|
101
|
-
The recommended way to manage styles in your workbook is to use
|
|
102
|
-
Styles#add_style
|
|
103
|
-
</p>
|
|
100
|
+
<div class='inline'>
|
|
101
|
+
<p>The recommended way to manage styles in your workbook is to use
|
|
102
|
+
Styles#add_style.</p>
|
|
104
103
|
</div>
|
|
105
104
|
</div>
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
The Fill is a formatting object that manages the background color, and
|
|
109
|
-
pattern for cells
|
|
110
|
-
</p>
|
|
106
|
+
|
|
107
|
+
<p>The Fill is a formatting object that manages the background color, and
|
|
108
|
+
pattern for cells.</p>
|
|
111
109
|
|
|
112
110
|
|
|
113
111
|
</div>
|
|
@@ -150,9 +148,8 @@ pattern for cells.
|
|
|
150
148
|
|
|
151
149
|
|
|
152
150
|
|
|
153
|
-
<span class="summary_desc"><div class='inline'
|
|
154
|
-
The type of fill
|
|
155
|
-
</p>
|
|
151
|
+
<span class="summary_desc"><div class='inline'>
|
|
152
|
+
<p>The type of fill.</p>
|
|
156
153
|
</div></span>
|
|
157
154
|
|
|
158
155
|
</li>
|
|
@@ -189,9 +186,8 @@ The type of fill.
|
|
|
189
186
|
|
|
190
187
|
|
|
191
188
|
|
|
192
|
-
<span class="summary_desc"><div class='inline'
|
|
193
|
-
Creates a new Fill object
|
|
194
|
-
</p>
|
|
189
|
+
<span class="summary_desc"><div class='inline'>
|
|
190
|
+
<p>Creates a new Fill object.</p>
|
|
195
191
|
</div></span>
|
|
196
192
|
|
|
197
193
|
</li>
|
|
@@ -213,9 +209,8 @@ Creates a new Fill object.
|
|
|
213
209
|
|
|
214
210
|
|
|
215
211
|
|
|
216
|
-
<span class="summary_desc"><div class='inline'
|
|
217
|
-
Serializes the fill
|
|
218
|
-
</p>
|
|
212
|
+
<span class="summary_desc"><div class='inline'>
|
|
213
|
+
<p>Serializes the fill.</p>
|
|
219
214
|
</div></span>
|
|
220
215
|
|
|
221
216
|
</li>
|
|
@@ -236,9 +231,8 @@ Serializes the fill.
|
|
|
236
231
|
|
|
237
232
|
</p><div class="docstring">
|
|
238
233
|
<div class="discussion">
|
|
239
|
-
|
|
240
|
-
Creates a new Fill object
|
|
241
|
-
</p>
|
|
234
|
+
|
|
235
|
+
<p>Creates a new Fill object</p>
|
|
242
236
|
|
|
243
237
|
|
|
244
238
|
</div>
|
|
@@ -271,9 +265,8 @@ Creates a new Fill object
|
|
|
271
265
|
|
|
272
266
|
|
|
273
267
|
—
|
|
274
|
-
<div class='inline'
|
|
275
|
-
if the fill_type parameter is not a PatternFill or a GradientFill instance
|
|
276
|
-
</p>
|
|
268
|
+
<div class='inline'>
|
|
269
|
+
<p>if the fill_type parameter is not a PatternFill or a GradientFill instance</p>
|
|
277
270
|
</div>
|
|
278
271
|
|
|
279
272
|
</li>
|
|
@@ -293,10 +286,9 @@ if the fill_type parameter is not a PatternFill or a GradientFill instance
|
|
|
293
286
|
<td>
|
|
294
287
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/fill.rb', line 16</span>
|
|
295
288
|
|
|
296
|
-
<span class='
|
|
297
|
-
<span class='
|
|
298
|
-
<span class='
|
|
299
|
-
</pre>
|
|
289
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id fill_type'>fill_type</span><span class='rparen'>)</span>
|
|
290
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id fill_type'>fill_type</span> <span class='op'>=</span> <span class='id fill_type'>fill_type</span>
|
|
291
|
+
<span class='kw'>end</span></pre>
|
|
300
292
|
</td>
|
|
301
293
|
</tr>
|
|
302
294
|
</table>
|
|
@@ -319,9 +311,8 @@ if the fill_type parameter is not a PatternFill or a GradientFill instance
|
|
|
319
311
|
|
|
320
312
|
</p><div class="docstring">
|
|
321
313
|
<div class="discussion">
|
|
322
|
-
|
|
323
|
-
The type of fill
|
|
324
|
-
</p>
|
|
314
|
+
|
|
315
|
+
<p>The type of fill</p>
|
|
325
316
|
|
|
326
317
|
|
|
327
318
|
</div>
|
|
@@ -355,10 +346,9 @@ The type of fill
|
|
|
355
346
|
<td>
|
|
356
347
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/fill.rb', line 11</span>
|
|
357
348
|
|
|
358
|
-
<span class='
|
|
359
|
-
<span class='
|
|
360
|
-
<span class='
|
|
361
|
-
</pre>
|
|
349
|
+
<span class='kw'>def</span> <span class='id fill_type'>fill_type</span>
|
|
350
|
+
<span class='ivar'>@fill_type</span>
|
|
351
|
+
<span class='kw'>end</span></pre>
|
|
362
352
|
</td>
|
|
363
353
|
</tr>
|
|
364
354
|
</table>
|
|
@@ -380,9 +370,8 @@ The type of fill
|
|
|
380
370
|
|
|
381
371
|
</p><div class="docstring">
|
|
382
372
|
<div class="discussion">
|
|
383
|
-
|
|
384
|
-
Serializes the fill
|
|
385
|
-
</p>
|
|
373
|
+
|
|
374
|
+
<p>Serializes the fill</p>
|
|
386
375
|
|
|
387
376
|
|
|
388
377
|
</div>
|
|
@@ -401,9 +390,8 @@ Serializes the fill
|
|
|
401
390
|
|
|
402
391
|
|
|
403
392
|
—
|
|
404
|
-
<div class='inline'
|
|
405
|
-
The document builder instance this objects xml will be added to
|
|
406
|
-
</p>
|
|
393
|
+
<div class='inline'>
|
|
394
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
407
395
|
</div>
|
|
408
396
|
|
|
409
397
|
</li>
|
|
@@ -437,10 +425,9 @@ The document builder instance this objects xml will be added to.
|
|
|
437
425
|
<td>
|
|
438
426
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/fill.rb', line 23</span>
|
|
439
427
|
|
|
440
|
-
<span class='
|
|
441
|
-
<span class='xml
|
|
442
|
-
<span class='
|
|
443
|
-
</pre>
|
|
428
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
|
429
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id fill'>fill</span> <span class='lbrace'>{</span> <span class='ivar'>@fill_type</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
430
|
+
<span class='kw'>end</span></pre>
|
|
444
431
|
</td>
|
|
445
432
|
</tr>
|
|
446
433
|
</table>
|
|
@@ -451,9 +438,9 @@ The document builder instance this objects xml will be added to.
|
|
|
451
438
|
</div>
|
|
452
439
|
|
|
453
440
|
<div id="footer">
|
|
454
|
-
Generated on
|
|
441
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
|
455
442
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
456
|
-
0.7.3 (ruby-1.
|
|
443
|
+
0.7.3 (ruby-1.9.3).
|
|
457
444
|
</div>
|
|
458
445
|
|
|
459
446
|
</body>
|
data/doc/Axlsx/Font.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Font
|
|
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
|
-
The recommended way to manage fonts, and other styles is Styles#add_style
|
|
102
|
-
</p>
|
|
100
|
+
<div class='inline'>
|
|
101
|
+
<p>The recommended way to manage fonts, and other styles is Styles#add_style</p>
|
|
103
102
|
</div>
|
|
104
103
|
</div>
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
The Font class details a font instance for use in styling cells
|
|
108
|
-
</p>
|
|
105
|
+
|
|
106
|
+
<p>The Font class details a font instance for use in styling cells.</p>
|
|
109
107
|
|
|
110
108
|
|
|
111
109
|
</div>
|
|
@@ -144,9 +142,8 @@ The Font class details a font instance for use in styling cells.
|
|
|
144
142
|
|
|
145
143
|
|
|
146
144
|
|
|
147
|
-
<span class="summary_desc"><div class='inline'
|
|
148
|
-
Indicates if the font should be rendered in <b>bold</b
|
|
149
|
-
</p>
|
|
145
|
+
<span class="summary_desc"><div class='inline'>
|
|
146
|
+
<p>Indicates if the font should be rendered in <b>bold</b>.</p>
|
|
150
147
|
</div></span>
|
|
151
148
|
|
|
152
149
|
</li>
|
|
@@ -171,9 +168,8 @@ Indicates if the font should be rendered in <b>bold</b>.
|
|
|
171
168
|
|
|
172
169
|
|
|
173
170
|
|
|
174
|
-
<span class="summary_desc"><div class='inline'
|
|
175
|
-
The charset of the font
|
|
176
|
-
</p>
|
|
171
|
+
<span class="summary_desc"><div class='inline'>
|
|
172
|
+
<p>The charset of the font.</p>
|
|
177
173
|
</div></span>
|
|
178
174
|
|
|
179
175
|
</li>
|
|
@@ -198,9 +194,8 @@ The charset of the font.
|
|
|
198
194
|
|
|
199
195
|
|
|
200
196
|
|
|
201
|
-
<span class="summary_desc"><div class='inline'
|
|
202
|
-
The color of the font
|
|
203
|
-
</p>
|
|
197
|
+
<span class="summary_desc"><div class='inline'>
|
|
198
|
+
<p>The color of the font.</p>
|
|
204
199
|
</div></span>
|
|
205
200
|
|
|
206
201
|
</li>
|
|
@@ -225,9 +220,8 @@ The color of the font.
|
|
|
225
220
|
|
|
226
221
|
|
|
227
222
|
|
|
228
|
-
<span class="summary_desc"><div class='inline'
|
|
229
|
-
Indicates if the font should be condensed
|
|
230
|
-
</p>
|
|
223
|
+
<span class="summary_desc"><div class='inline'>
|
|
224
|
+
<p>Indicates if the font should be condensed.</p>
|
|
231
225
|
</div></span>
|
|
232
226
|
|
|
233
227
|
</li>
|
|
@@ -252,9 +246,8 @@ Indicates if the font should be condensed.
|
|
|
252
246
|
|
|
253
247
|
|
|
254
248
|
|
|
255
|
-
<span class="summary_desc"><div class='inline'
|
|
256
|
-
The font
|
|
257
|
-
</p>
|
|
249
|
+
<span class="summary_desc"><div class='inline'>
|
|
250
|
+
<p>The font's extend property.</p>
|
|
258
251
|
</div></span>
|
|
259
252
|
|
|
260
253
|
</li>
|
|
@@ -279,9 +272,8 @@ The font’s extend property.
|
|
|
279
272
|
|
|
280
273
|
|
|
281
274
|
|
|
282
|
-
<span class="summary_desc"><div class='inline'
|
|
283
|
-
The font
|
|
284
|
-
</p>
|
|
275
|
+
<span class="summary_desc"><div class='inline'>
|
|
276
|
+
<p>The font's family.</p>
|
|
285
277
|
</div></span>
|
|
286
278
|
|
|
287
279
|
</li>
|
|
@@ -306,9 +298,8 @@ The font’s family.
|
|
|
306
298
|
|
|
307
299
|
|
|
308
300
|
|
|
309
|
-
<span class="summary_desc"><div class='inline'
|
|
310
|
-
Indicates if the font should be rendered italicized
|
|
311
|
-
</p>
|
|
301
|
+
<span class="summary_desc"><div class='inline'>
|
|
302
|
+
<p>Indicates if the font should be rendered italicized.</p>
|
|
312
303
|
</div></span>
|
|
313
304
|
|
|
314
305
|
</li>
|
|
@@ -333,9 +324,8 @@ Indicates if the font should be rendered italicized.
|
|
|
333
324
|
|
|
334
325
|
|
|
335
326
|
|
|
336
|
-
<span class="summary_desc"><div class='inline'
|
|
337
|
-
The name of the font
|
|
338
|
-
</p>
|
|
327
|
+
<span class="summary_desc"><div class='inline'>
|
|
328
|
+
<p>The name of the font.</p>
|
|
339
329
|
</div></span>
|
|
340
330
|
|
|
341
331
|
</li>
|
|
@@ -360,9 +350,8 @@ The name of the font.
|
|
|
360
350
|
|
|
361
351
|
|
|
362
352
|
|
|
363
|
-
<span class="summary_desc"><div class='inline'
|
|
364
|
-
Indicates if the font should be rendered with an outline
|
|
365
|
-
</p>
|
|
353
|
+
<span class="summary_desc"><div class='inline'>
|
|
354
|
+
<p>Indicates if the font should be rendered with an outline.</p>
|
|
366
355
|
</div></span>
|
|
367
356
|
|
|
368
357
|
</li>
|
|
@@ -387,9 +376,8 @@ Indicates if the font should be rendered with an outline.
|
|
|
387
376
|
|
|
388
377
|
|
|
389
378
|
|
|
390
|
-
<span class="summary_desc"><div class='inline'
|
|
391
|
-
Indicates if the font should be rendered with a shadow
|
|
392
|
-
</p>
|
|
379
|
+
<span class="summary_desc"><div class='inline'>
|
|
380
|
+
<p>Indicates if the font should be rendered with a shadow.</p>
|
|
393
381
|
</div></span>
|
|
394
382
|
|
|
395
383
|
</li>
|
|
@@ -414,9 +402,8 @@ Indicates if the font should be rendered with a shadow.
|
|
|
414
402
|
|
|
415
403
|
|
|
416
404
|
|
|
417
|
-
<span class="summary_desc"><div class='inline'
|
|
418
|
-
Indicates if the font should be rendered with a strikthrough
|
|
419
|
-
</p>
|
|
405
|
+
<span class="summary_desc"><div class='inline'>
|
|
406
|
+
<p>Indicates if the font should be rendered with a strikthrough.</p>
|
|
420
407
|
</div></span>
|
|
421
408
|
|
|
422
409
|
</li>
|
|
@@ -441,9 +428,8 @@ Indicates if the font should be rendered with a strikthrough.
|
|
|
441
428
|
|
|
442
429
|
|
|
443
430
|
|
|
444
|
-
<span class="summary_desc"><div class='inline'
|
|
445
|
-
The size of the font
|
|
446
|
-
</p>
|
|
431
|
+
<span class="summary_desc"><div class='inline'>
|
|
432
|
+
<p>The size of the font.</p>
|
|
447
433
|
</div></span>
|
|
448
434
|
|
|
449
435
|
</li>
|
|
@@ -480,9 +466,8 @@ The size of the font.
|
|
|
480
466
|
|
|
481
467
|
|
|
482
468
|
|
|
483
|
-
<span class="summary_desc"><div class='inline'
|
|
484
|
-
Creates a new Font
|
|
485
|
-
</p>
|
|
469
|
+
<span class="summary_desc"><div class='inline'>
|
|
470
|
+
<p>Creates a new Font.</p>
|
|
486
471
|
</div></span>
|
|
487
472
|
|
|
488
473
|
</li>
|
|
@@ -504,9 +489,8 @@ Creates a new Font.
|
|
|
504
489
|
|
|
505
490
|
|
|
506
491
|
|
|
507
|
-
<span class="summary_desc"><div class='inline'
|
|
508
|
-
Serializes the fill
|
|
509
|
-
</p>
|
|
492
|
+
<span class="summary_desc"><div class='inline'>
|
|
493
|
+
<p>Serializes the fill.</p>
|
|
510
494
|
</div></span>
|
|
511
495
|
|
|
512
496
|
</li>
|
|
@@ -527,9 +511,8 @@ Serializes the fill.
|
|
|
527
511
|
|
|
528
512
|
</p><div class="docstring">
|
|
529
513
|
<div class="discussion">
|
|
530
|
-
|
|
531
|
-
Creates a new Font
|
|
532
|
-
</p>
|
|
514
|
+
|
|
515
|
+
<p>Creates a new Font</p>
|
|
533
516
|
|
|
534
517
|
|
|
535
518
|
</div>
|
|
@@ -550,9 +533,8 @@ Creates a new Font
|
|
|
550
533
|
|
|
551
534
|
|
|
552
535
|
—
|
|
553
|
-
<div class='inline'
|
|
554
|
-
a customizable set of options
|
|
555
|
-
</p>
|
|
536
|
+
<div class='inline'>
|
|
537
|
+
<p>a customizable set of options</p>
|
|
556
538
|
</div>
|
|
557
539
|
|
|
558
540
|
</li>
|
|
@@ -701,12 +683,11 @@ a customizable set of options
|
|
|
701
683
|
<td>
|
|
702
684
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 98</span>
|
|
703
685
|
|
|
704
|
-
<span class='
|
|
705
|
-
<span class='options
|
|
706
|
-
<span class='
|
|
707
|
-
<span class='
|
|
708
|
-
<span class='
|
|
709
|
-
</pre>
|
|
686
|
+
<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>
|
|
687
|
+
<span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
|
|
688
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
|
689
|
+
<span class='kw'>end</span>
|
|
690
|
+
<span class='kw'>end</span></pre>
|
|
710
691
|
</td>
|
|
711
692
|
</tr>
|
|
712
693
|
</table>
|
|
@@ -729,9 +710,8 @@ a customizable set of options
|
|
|
729
710
|
|
|
730
711
|
</p><div class="docstring">
|
|
731
712
|
<div class="discussion">
|
|
732
|
-
|
|
733
|
-
Indicates if the font should be rendered in <b>bold</b>
|
|
734
|
-
</p>
|
|
713
|
+
|
|
714
|
+
<p>Indicates if the font should be rendered in <b>bold</b></p>
|
|
735
715
|
|
|
736
716
|
|
|
737
717
|
</div>
|
|
@@ -765,10 +745,9 @@ Indicates if the font should be rendered in <b>bold</b>
|
|
|
765
745
|
<td>
|
|
766
746
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 50</span>
|
|
767
747
|
|
|
768
|
-
<span class='
|
|
769
|
-
<span class='
|
|
770
|
-
<span class='
|
|
771
|
-
</pre>
|
|
748
|
+
<span class='kw'>def</span> <span class='id b'>b</span>
|
|
749
|
+
<span class='ivar'>@b</span>
|
|
750
|
+
<span class='kw'>end</span></pre>
|
|
772
751
|
</td>
|
|
773
752
|
</tr>
|
|
774
753
|
</table>
|
|
@@ -789,37 +768,34 @@ Indicates if the font should be rendered in <b>bold</b>
|
|
|
789
768
|
|
|
790
769
|
<div class="note notetag">
|
|
791
770
|
<strong>Note:</strong>
|
|
792
|
-
<div class='inline'
|
|
793
|
-
The following values are defined in the OOXML specification and are OS
|
|
794
|
-
dependant values
|
|
795
|
-
|
|
796
|
-
<pre class="code">
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
<span class='integer val'>255</span> <span class='OEM_CHARSET constant id'>OEM_CHARSET</span>
|
|
816
|
-
</pre>
|
|
771
|
+
<div class='inline'>
|
|
772
|
+
<p>The following values are defined in the OOXML specification and are OS
|
|
773
|
+
dependant values</p>
|
|
774
|
+
|
|
775
|
+
<pre class="code">0 ANSI_CHARSET
|
|
776
|
+
1 DEFAULT_CHARSET
|
|
777
|
+
2 SYMBOL_CHARSET
|
|
778
|
+
77 MAC_CHARSET
|
|
779
|
+
128 SHIFTJIS_CHARSET
|
|
780
|
+
129 HANGUL_CHARSET
|
|
781
|
+
130 JOHAB_CHARSET
|
|
782
|
+
134 GB2312_CHARSET
|
|
783
|
+
136 CHINESEBIG5_CHARSET
|
|
784
|
+
161 GREEK_CHARSET
|
|
785
|
+
162 TURKISH_CHARSET
|
|
786
|
+
163 VIETNAMESE_CHARSET
|
|
787
|
+
177 HEBREW_CHARSET
|
|
788
|
+
178 ARABIC_CHARSET
|
|
789
|
+
186 BALTIC_CHARSET
|
|
790
|
+
204 RUSSIAN_CHARSET
|
|
791
|
+
222 THAI_CHARSET
|
|
792
|
+
238 EASTEUROPE_CHARSET
|
|
793
|
+
255 OEM_CHARSET</pre>
|
|
817
794
|
</div>
|
|
818
795
|
</div>
|
|
819
796
|
|
|
820
|
-
|
|
821
|
-
The charset of the font
|
|
822
|
-
</p>
|
|
797
|
+
|
|
798
|
+
<p>The charset of the font</p>
|
|
823
799
|
|
|
824
800
|
|
|
825
801
|
</div>
|
|
@@ -853,10 +829,9 @@ The charset of the font
|
|
|
853
829
|
<td>
|
|
854
830
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 33</span>
|
|
855
831
|
|
|
856
|
-
<span class='
|
|
857
|
-
<span class='
|
|
858
|
-
<span class='
|
|
859
|
-
</pre>
|
|
832
|
+
<span class='kw'>def</span> <span class='id charset'>charset</span>
|
|
833
|
+
<span class='ivar'>@charset</span>
|
|
834
|
+
<span class='kw'>end</span></pre>
|
|
860
835
|
</td>
|
|
861
836
|
</tr>
|
|
862
837
|
</table>
|
|
@@ -874,9 +849,8 @@ The charset of the font
|
|
|
874
849
|
|
|
875
850
|
</p><div class="docstring">
|
|
876
851
|
<div class="discussion">
|
|
877
|
-
|
|
878
|
-
The color of the font
|
|
879
|
-
</p>
|
|
852
|
+
|
|
853
|
+
<p>The color of the font</p>
|
|
880
854
|
|
|
881
855
|
|
|
882
856
|
</div>
|
|
@@ -910,10 +884,9 @@ The color of the font
|
|
|
910
884
|
<td>
|
|
911
885
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 78</span>
|
|
912
886
|
|
|
913
|
-
<span class='
|
|
914
|
-
<span class='
|
|
915
|
-
<span class='
|
|
916
|
-
</pre>
|
|
887
|
+
<span class='kw'>def</span> <span class='id color'>color</span>
|
|
888
|
+
<span class='ivar'>@color</span>
|
|
889
|
+
<span class='kw'>end</span></pre>
|
|
917
890
|
</td>
|
|
918
891
|
</tr>
|
|
919
892
|
</table>
|
|
@@ -931,9 +904,8 @@ The color of the font
|
|
|
931
904
|
|
|
932
905
|
</p><div class="docstring">
|
|
933
906
|
<div class="discussion">
|
|
934
|
-
|
|
935
|
-
Indicates if the font should be condensed
|
|
936
|
-
</p>
|
|
907
|
+
|
|
908
|
+
<p>Indicates if the font should be condensed</p>
|
|
937
909
|
|
|
938
910
|
|
|
939
911
|
</div>
|
|
@@ -967,10 +939,9 @@ Indicates if the font should be condensed
|
|
|
967
939
|
<td>
|
|
968
940
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 70</span>
|
|
969
941
|
|
|
970
|
-
<span class='
|
|
971
|
-
<span class='
|
|
972
|
-
<span class='
|
|
973
|
-
</pre>
|
|
942
|
+
<span class='kw'>def</span> <span class='id condense'>condense</span>
|
|
943
|
+
<span class='ivar'>@condense</span>
|
|
944
|
+
<span class='kw'>end</span></pre>
|
|
974
945
|
</td>
|
|
975
946
|
</tr>
|
|
976
947
|
</table>
|
|
@@ -988,9 +959,8 @@ Indicates if the font should be condensed
|
|
|
988
959
|
|
|
989
960
|
</p><div class="docstring">
|
|
990
961
|
<div class="discussion">
|
|
991
|
-
|
|
992
|
-
The font
|
|
993
|
-
</p>
|
|
962
|
+
|
|
963
|
+
<p>The font's extend property</p>
|
|
994
964
|
|
|
995
965
|
|
|
996
966
|
</div>
|
|
@@ -1024,10 +994,9 @@ The font’s extend property
|
|
|
1024
994
|
<td>
|
|
1025
995
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 74</span>
|
|
1026
996
|
|
|
1027
|
-
<span class='
|
|
1028
|
-
<span class='
|
|
1029
|
-
<span class='
|
|
1030
|
-
</pre>
|
|
997
|
+
<span class='kw'>def</span> <span class='id extend'>extend</span>
|
|
998
|
+
<span class='ivar'>@extend</span>
|
|
999
|
+
<span class='kw'>end</span></pre>
|
|
1031
1000
|
</td>
|
|
1032
1001
|
</tr>
|
|
1033
1002
|
</table>
|
|
@@ -1048,24 +1017,21 @@ The font’s extend property
|
|
|
1048
1017
|
|
|
1049
1018
|
<div class="note notetag">
|
|
1050
1019
|
<strong>Note:</strong>
|
|
1051
|
-
<div class='inline'
|
|
1052
|
-
The following are defined OOXML specification
|
|
1053
|
-
|
|
1054
|
-
<pre class="code">
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
<span class='float val'>6</span><span class='dot2 op'>..</span><span class='integer val'>14</span> <span class='Reserved constant id'>Reserved</span> <span class='for for kw'>for</span> <span class='future identifier id'>future</span> <span class='use identifier id'>use</span>
|
|
1062
|
-
</pre>
|
|
1020
|
+
<div class='inline'>
|
|
1021
|
+
<p>The following are defined OOXML specification</p>
|
|
1022
|
+
|
|
1023
|
+
<pre class="code">0 Not applicable.
|
|
1024
|
+
1 Roman
|
|
1025
|
+
2 Swiss
|
|
1026
|
+
3 Modern
|
|
1027
|
+
4 Script
|
|
1028
|
+
5 Decorative
|
|
1029
|
+
6..14 Reserved for future use</pre>
|
|
1063
1030
|
</div>
|
|
1064
1031
|
</div>
|
|
1065
1032
|
|
|
1066
|
-
|
|
1067
|
-
The font
|
|
1068
|
-
</p>
|
|
1033
|
+
|
|
1034
|
+
<p>The font's family</p>
|
|
1069
1035
|
|
|
1070
1036
|
|
|
1071
1037
|
</div>
|
|
@@ -1099,10 +1065,9 @@ The font’s family
|
|
|
1099
1065
|
<td>
|
|
1100
1066
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 46</span>
|
|
1101
1067
|
|
|
1102
|
-
<span class='
|
|
1103
|
-
<span class='
|
|
1104
|
-
<span class='
|
|
1105
|
-
</pre>
|
|
1068
|
+
<span class='kw'>def</span> <span class='id family'>family</span>
|
|
1069
|
+
<span class='ivar'>@family</span>
|
|
1070
|
+
<span class='kw'>end</span></pre>
|
|
1106
1071
|
</td>
|
|
1107
1072
|
</tr>
|
|
1108
1073
|
</table>
|
|
@@ -1120,9 +1085,8 @@ The font’s family
|
|
|
1120
1085
|
|
|
1121
1086
|
</p><div class="docstring">
|
|
1122
1087
|
<div class="discussion">
|
|
1123
|
-
|
|
1124
|
-
Indicates if the font should be rendered italicized
|
|
1125
|
-
</p>
|
|
1088
|
+
|
|
1089
|
+
<p>Indicates if the font should be rendered italicized</p>
|
|
1126
1090
|
|
|
1127
1091
|
|
|
1128
1092
|
</div>
|
|
@@ -1156,10 +1120,9 @@ Indicates if the font should be rendered italicized
|
|
|
1156
1120
|
<td>
|
|
1157
1121
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 54</span>
|
|
1158
1122
|
|
|
1159
|
-
<span class='
|
|
1160
|
-
<span class='
|
|
1161
|
-
<span class='
|
|
1162
|
-
</pre>
|
|
1123
|
+
<span class='kw'>def</span> <span class='id i'>i</span>
|
|
1124
|
+
<span class='ivar'>@i</span>
|
|
1125
|
+
<span class='kw'>end</span></pre>
|
|
1163
1126
|
</td>
|
|
1164
1127
|
</tr>
|
|
1165
1128
|
</table>
|
|
@@ -1177,9 +1140,8 @@ Indicates if the font should be rendered italicized
|
|
|
1177
1140
|
|
|
1178
1141
|
</p><div class="docstring">
|
|
1179
1142
|
<div class="discussion">
|
|
1180
|
-
|
|
1181
|
-
The name of the font
|
|
1182
|
-
</p>
|
|
1143
|
+
|
|
1144
|
+
<p>The name of the font</p>
|
|
1183
1145
|
|
|
1184
1146
|
|
|
1185
1147
|
</div>
|
|
@@ -1213,10 +1175,9 @@ The name of the font
|
|
|
1213
1175
|
<td>
|
|
1214
1176
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 8</span>
|
|
1215
1177
|
|
|
1216
|
-
<span class='
|
|
1217
|
-
<span class='
|
|
1218
|
-
<span class='
|
|
1219
|
-
</pre>
|
|
1178
|
+
<span class='kw'>def</span> <span class='id name'>name</span>
|
|
1179
|
+
<span class='ivar'>@name</span>
|
|
1180
|
+
<span class='kw'>end</span></pre>
|
|
1220
1181
|
</td>
|
|
1221
1182
|
</tr>
|
|
1222
1183
|
</table>
|
|
@@ -1234,9 +1195,8 @@ The name of the font
|
|
|
1234
1195
|
|
|
1235
1196
|
</p><div class="docstring">
|
|
1236
1197
|
<div class="discussion">
|
|
1237
|
-
|
|
1238
|
-
Indicates if the font should be rendered with an outline
|
|
1239
|
-
</p>
|
|
1198
|
+
|
|
1199
|
+
<p>Indicates if the font should be rendered with an outline</p>
|
|
1240
1200
|
|
|
1241
1201
|
|
|
1242
1202
|
</div>
|
|
@@ -1270,10 +1230,9 @@ Indicates if the font should be rendered with an outline
|
|
|
1270
1230
|
<td>
|
|
1271
1231
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 62</span>
|
|
1272
1232
|
|
|
1273
|
-
<span class='
|
|
1274
|
-
<span class='
|
|
1275
|
-
<span class='
|
|
1276
|
-
</pre>
|
|
1233
|
+
<span class='kw'>def</span> <span class='id outline'>outline</span>
|
|
1234
|
+
<span class='ivar'>@outline</span>
|
|
1235
|
+
<span class='kw'>end</span></pre>
|
|
1277
1236
|
</td>
|
|
1278
1237
|
</tr>
|
|
1279
1238
|
</table>
|
|
@@ -1291,9 +1250,8 @@ Indicates if the font should be rendered with an outline
|
|
|
1291
1250
|
|
|
1292
1251
|
</p><div class="docstring">
|
|
1293
1252
|
<div class="discussion">
|
|
1294
|
-
|
|
1295
|
-
Indicates if the font should be rendered with a shadow
|
|
1296
|
-
</p>
|
|
1253
|
+
|
|
1254
|
+
<p>Indicates if the font should be rendered with a shadow</p>
|
|
1297
1255
|
|
|
1298
1256
|
|
|
1299
1257
|
</div>
|
|
@@ -1327,10 +1285,9 @@ Indicates if the font should be rendered with a shadow
|
|
|
1327
1285
|
<td>
|
|
1328
1286
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 66</span>
|
|
1329
1287
|
|
|
1330
|
-
<span class='
|
|
1331
|
-
<span class='
|
|
1332
|
-
<span class='
|
|
1333
|
-
</pre>
|
|
1288
|
+
<span class='kw'>def</span> <span class='id shadow'>shadow</span>
|
|
1289
|
+
<span class='ivar'>@shadow</span>
|
|
1290
|
+
<span class='kw'>end</span></pre>
|
|
1334
1291
|
</td>
|
|
1335
1292
|
</tr>
|
|
1336
1293
|
</table>
|
|
@@ -1348,9 +1305,8 @@ Indicates if the font should be rendered with a shadow
|
|
|
1348
1305
|
|
|
1349
1306
|
</p><div class="docstring">
|
|
1350
1307
|
<div class="discussion">
|
|
1351
|
-
|
|
1352
|
-
Indicates if the font should be rendered with a strikthrough
|
|
1353
|
-
</p>
|
|
1308
|
+
|
|
1309
|
+
<p>Indicates if the font should be rendered with a strikthrough</p>
|
|
1354
1310
|
|
|
1355
1311
|
|
|
1356
1312
|
</div>
|
|
@@ -1384,10 +1340,9 @@ Indicates if the font should be rendered with a strikthrough
|
|
|
1384
1340
|
<td>
|
|
1385
1341
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 58</span>
|
|
1386
1342
|
|
|
1387
|
-
<span class='
|
|
1388
|
-
<span class='
|
|
1389
|
-
<span class='
|
|
1390
|
-
</pre>
|
|
1343
|
+
<span class='kw'>def</span> <span class='id strike'>strike</span>
|
|
1344
|
+
<span class='ivar'>@strike</span>
|
|
1345
|
+
<span class='kw'>end</span></pre>
|
|
1391
1346
|
</td>
|
|
1392
1347
|
</tr>
|
|
1393
1348
|
</table>
|
|
@@ -1405,9 +1360,8 @@ Indicates if the font should be rendered with a strikthrough
|
|
|
1405
1360
|
|
|
1406
1361
|
</p><div class="docstring">
|
|
1407
1362
|
<div class="discussion">
|
|
1408
|
-
|
|
1409
|
-
The size of the font
|
|
1410
|
-
</p>
|
|
1363
|
+
|
|
1364
|
+
<p>The size of the font.</p>
|
|
1411
1365
|
|
|
1412
1366
|
|
|
1413
1367
|
</div>
|
|
@@ -1441,10 +1395,9 @@ The size of the font.
|
|
|
1441
1395
|
<td>
|
|
1442
1396
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 82</span>
|
|
1443
1397
|
|
|
1444
|
-
<span class='
|
|
1445
|
-
<span class='
|
|
1446
|
-
<span class='
|
|
1447
|
-
</pre>
|
|
1398
|
+
<span class='kw'>def</span> <span class='id sz'>sz</span>
|
|
1399
|
+
<span class='ivar'>@sz</span>
|
|
1400
|
+
<span class='kw'>end</span></pre>
|
|
1448
1401
|
</td>
|
|
1449
1402
|
</tr>
|
|
1450
1403
|
</table>
|
|
@@ -1466,9 +1419,8 @@ The size of the font.
|
|
|
1466
1419
|
|
|
1467
1420
|
</p><div class="docstring">
|
|
1468
1421
|
<div class="discussion">
|
|
1469
|
-
|
|
1470
|
-
Serializes the fill
|
|
1471
|
-
</p>
|
|
1422
|
+
|
|
1423
|
+
<p>Serializes the fill</p>
|
|
1472
1424
|
|
|
1473
1425
|
|
|
1474
1426
|
</div>
|
|
@@ -1487,9 +1439,8 @@ Serializes the fill
|
|
|
1487
1439
|
|
|
1488
1440
|
|
|
1489
1441
|
—
|
|
1490
|
-
<div class='inline'
|
|
1491
|
-
The document builder instance this objects xml will be added to
|
|
1492
|
-
</p>
|
|
1442
|
+
<div class='inline'>
|
|
1443
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
1493
1444
|
</div>
|
|
1494
1445
|
|
|
1495
1446
|
</li>
|
|
@@ -1516,25 +1467,24 @@ The document builder instance this objects xml will be added to.
|
|
|
1516
1467
|
<pre class="lines">
|
|
1517
1468
|
|
|
1518
1469
|
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1470
|
+
131
|
|
1471
|
+
132
|
|
1472
|
+
133
|
|
1473
|
+
134
|
|
1474
|
+
135
|
|
1475
|
+
136
|
|
1476
|
+
137</pre>
|
|
1526
1477
|
</td>
|
|
1527
1478
|
<td>
|
|
1528
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line
|
|
1529
|
-
|
|
1530
|
-
<span class='
|
|
1531
|
-
<span class='xml
|
|
1532
|
-
<span class='
|
|
1533
|
-
<span class='v
|
|
1534
|
-
<span class='
|
|
1535
|
-
<span class='rbrace
|
|
1536
|
-
<span class='
|
|
1537
|
-
</pre>
|
|
1479
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 131</span>
|
|
1480
|
+
|
|
1481
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
|
1482
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id font'>font</span> <span class='lbrace'>{</span>
|
|
1483
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span> <span class='id v'>v</span><span class='op'>|</span>
|
|
1484
|
+
<span class='id v'>v</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Color</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id v'>v</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='id k'>k</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:val</span> <span class='op'>=></span> <span class='id v'>v</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
1485
|
+
<span class='kw'>end</span>
|
|
1486
|
+
<span class='rbrace'>}</span>
|
|
1487
|
+
<span class='kw'>end</span></pre>
|
|
1538
1488
|
</td>
|
|
1539
1489
|
</tr>
|
|
1540
1490
|
</table>
|
|
@@ -1545,9 +1495,9 @@ The document builder instance this objects xml will be added to.
|
|
|
1545
1495
|
</div>
|
|
1546
1496
|
|
|
1547
1497
|
<div id="footer">
|
|
1548
|
-
Generated on
|
|
1498
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
|
1549
1499
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1550
|
-
0.7.3 (ruby-1.
|
|
1500
|
+
0.7.3 (ruby-1.9.3).
|
|
1551
1501
|
</div>
|
|
1552
1502
|
|
|
1553
1503
|
</body>
|