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/NumFmt.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::NumFmt
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -97,16 +97,14 @@
|
|
|
97
97
|
|
|
98
98
|
<div class="note notetag">
|
|
99
99
|
<strong>Note:</strong>
|
|
100
|
-
<div class='inline'
|
|
101
|
-
The recommended way to manage styles is Styles#add_style
|
|
102
|
-
</p>
|
|
100
|
+
<div class='inline'>
|
|
101
|
+
<p>The recommended way to manage styles is Styles#add_style</p>
|
|
103
102
|
</div>
|
|
104
103
|
</div>
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
A NumFmt object defines an identifier and formatting code for data in
|
|
108
|
-
cells
|
|
109
|
-
</p>
|
|
105
|
+
|
|
106
|
+
<p>A NumFmt object defines an identifier and formatting code for data in
|
|
107
|
+
cells.</p>
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
</div>
|
|
@@ -138,9 +136,8 @@ cells.
|
|
|
138
136
|
|
|
139
137
|
|
|
140
138
|
|
|
141
|
-
<span class="summary_desc"><div class='inline'
|
|
142
|
-
The formatting to use for this number format
|
|
143
|
-
</p>
|
|
139
|
+
<span class="summary_desc"><div class='inline'>
|
|
140
|
+
<p>The formatting to use for this number format.</p>
|
|
144
141
|
</div></span>
|
|
145
142
|
|
|
146
143
|
</li>
|
|
@@ -165,9 +162,8 @@ The formatting to use for this number format.
|
|
|
165
162
|
|
|
166
163
|
|
|
167
164
|
|
|
168
|
-
<span class="summary_desc"><div class='inline'
|
|
169
|
-
An unsinged integer referencing a standard or custom number format
|
|
170
|
-
</p>
|
|
165
|
+
<span class="summary_desc"><div class='inline'>
|
|
166
|
+
<p>An unsinged integer referencing a standard or custom number format.</p>
|
|
171
167
|
</div></span>
|
|
172
168
|
|
|
173
169
|
</li>
|
|
@@ -204,9 +200,8 @@ An unsinged integer referencing a standard or custom number format.
|
|
|
204
200
|
|
|
205
201
|
|
|
206
202
|
|
|
207
|
-
<span class="summary_desc"><div class='inline'
|
|
208
|
-
A new instance of NumFmt
|
|
209
|
-
</p>
|
|
203
|
+
<span class="summary_desc"><div class='inline'>
|
|
204
|
+
<p>A new instance of NumFmt.</p>
|
|
210
205
|
</div></span>
|
|
211
206
|
|
|
212
207
|
</li>
|
|
@@ -228,10 +223,9 @@ A new instance of NumFmt.
|
|
|
228
223
|
|
|
229
224
|
|
|
230
225
|
|
|
231
|
-
<span class="summary_desc"><div class='inline'
|
|
232
|
-
Creates a numFmt element applying the instance values of this object as
|
|
233
|
-
attributes
|
|
234
|
-
</p>
|
|
226
|
+
<span class="summary_desc"><div class='inline'>
|
|
227
|
+
<p>Creates a numFmt element applying the instance values of this object as
|
|
228
|
+
attributes.</p>
|
|
235
229
|
</div></span>
|
|
236
230
|
|
|
237
231
|
</li>
|
|
@@ -252,9 +246,8 @@ attributes.
|
|
|
252
246
|
|
|
253
247
|
</p><div class="docstring">
|
|
254
248
|
<div class="discussion">
|
|
255
|
-
|
|
256
|
-
A new instance of NumFmt
|
|
257
|
-
</p>
|
|
249
|
+
|
|
250
|
+
<p>A new instance of NumFmt</p>
|
|
258
251
|
|
|
259
252
|
|
|
260
253
|
</div>
|
|
@@ -279,14 +272,13 @@ A new instance of NumFmt
|
|
|
279
272
|
<td>
|
|
280
273
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 45</span>
|
|
281
274
|
|
|
282
|
-
<span class='
|
|
283
|
-
<span class='
|
|
284
|
-
<span class='
|
|
285
|
-
<span class='options
|
|
286
|
-
<span class='
|
|
287
|
-
<span class='
|
|
288
|
-
<span class='
|
|
289
|
-
</pre>
|
|
275
|
+
<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>
|
|
276
|
+
<span class='ivar'>@numFmtId</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
277
|
+
<span class='ivar'>@formatCode</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
278
|
+
<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>
|
|
279
|
+
<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>
|
|
280
|
+
<span class='kw'>end</span>
|
|
281
|
+
<span class='kw'>end</span></pre>
|
|
290
282
|
</td>
|
|
291
283
|
</tr>
|
|
292
284
|
</table>
|
|
@@ -309,9 +301,8 @@ A new instance of NumFmt
|
|
|
309
301
|
|
|
310
302
|
</p><div class="docstring">
|
|
311
303
|
<div class="discussion">
|
|
312
|
-
|
|
313
|
-
The formatting to use for this number format
|
|
314
|
-
</p>
|
|
304
|
+
|
|
305
|
+
<p>The formatting to use for this number format.</p>
|
|
315
306
|
|
|
316
307
|
|
|
317
308
|
</div>
|
|
@@ -329,9 +320,8 @@ The formatting to use for this number format.
|
|
|
329
320
|
|
|
330
321
|
|
|
331
322
|
—
|
|
332
|
-
<div class='inline'
|
|
333
|
-
The formatting to use for this number format
|
|
334
|
-
</p>
|
|
323
|
+
<div class='inline'>
|
|
324
|
+
<p>The formatting to use for this number format.</p>
|
|
335
325
|
</div>
|
|
336
326
|
|
|
337
327
|
</li>
|
|
@@ -358,10 +348,9 @@ The formatting to use for this number format.
|
|
|
358
348
|
<td>
|
|
359
349
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 44</span>
|
|
360
350
|
|
|
361
|
-
<span class='
|
|
362
|
-
<span class='
|
|
363
|
-
<span class='
|
|
364
|
-
</pre>
|
|
351
|
+
<span class='kw'>def</span> <span class='id formatCode'>formatCode</span>
|
|
352
|
+
<span class='ivar'>@formatCode</span>
|
|
353
|
+
<span class='kw'>end</span></pre>
|
|
365
354
|
</td>
|
|
366
355
|
</tr>
|
|
367
356
|
</table>
|
|
@@ -382,51 +371,48 @@ The formatting to use for this number format.
|
|
|
382
371
|
|
|
383
372
|
<div class="note notetag">
|
|
384
373
|
<strong>Note:</strong>
|
|
385
|
-
<div class='inline'
|
|
386
|
-
These are the known formats I can dig up. The constant NUM_FMT_PERCENT is
|
|
374
|
+
<div class='inline'>
|
|
375
|
+
<p>These are the known formats I can dig up. The constant NUM_FMT_PERCENT is
|
|
387
376
|
9, and uses the default % formatting. Axlsx also defines a few formats for
|
|
388
377
|
date and time that are commonly used in asia as NUM_FMT_YYYYMMDD and
|
|
389
|
-
NUM_FRM_YYYYMMDDHHMMSS
|
|
390
|
-
|
|
391
|
-
<pre class="code">
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
<span class='integer val'>49</span> @
|
|
423
|
-
</pre>
|
|
378
|
+
NUM_FRM_YYYYMMDDHHMMSS.</p>
|
|
379
|
+
|
|
380
|
+
<pre class="code">1 0
|
|
381
|
+
2 0.00
|
|
382
|
+
3 #,##0
|
|
383
|
+
4 #,##0.00
|
|
384
|
+
5 $#,##0_);($#,##0)
|
|
385
|
+
6 $#,##0_);[Red]($#,##0)
|
|
386
|
+
7 $#,##0.00_);($#,##0.00)
|
|
387
|
+
8 $#,##0.00_);[Red]($#,##0.00)
|
|
388
|
+
9 0%
|
|
389
|
+
10 0.00%
|
|
390
|
+
11 0.00E+00
|
|
391
|
+
12 # ?/?
|
|
392
|
+
13 # ??/??
|
|
393
|
+
14 m/d/yyyy
|
|
394
|
+
15 d-mmm-yy
|
|
395
|
+
16 d-mmm
|
|
396
|
+
17 mmm-yy
|
|
397
|
+
18 h:mm AM/PM
|
|
398
|
+
19 h:mm:ss AM/PM
|
|
399
|
+
20 h:mm
|
|
400
|
+
21 h:mm:ss
|
|
401
|
+
22 m/d/yyyy h:mm
|
|
402
|
+
37 #,##0_);(#,##0)
|
|
403
|
+
38 #,##0_);[Red](#,##0)
|
|
404
|
+
39 #,##0.00_);(#,##0.00)
|
|
405
|
+
40 #,##0.00_);[Red](#,##0.00)
|
|
406
|
+
45 mm:ss
|
|
407
|
+
46 [h]:mm:ss
|
|
408
|
+
47 mm:ss.0
|
|
409
|
+
48 ##0.0E+0
|
|
410
|
+
49 @</pre>
|
|
424
411
|
</div>
|
|
425
412
|
</div>
|
|
426
413
|
|
|
427
|
-
|
|
428
|
-
An unsinged integer referencing a standard or custom number format
|
|
429
|
-
</p>
|
|
414
|
+
|
|
415
|
+
<p>An unsinged integer referencing a standard or custom number format.</p>
|
|
430
416
|
|
|
431
417
|
|
|
432
418
|
</div>
|
|
@@ -444,9 +430,8 @@ An unsinged integer referencing a standard or custom number format.
|
|
|
444
430
|
|
|
445
431
|
|
|
446
432
|
—
|
|
447
|
-
<div class='inline'
|
|
448
|
-
An unsinged integer referencing a standard or custom number format
|
|
449
|
-
</p>
|
|
433
|
+
<div class='inline'>
|
|
434
|
+
<p>An unsinged integer referencing a standard or custom number format.</p>
|
|
450
435
|
</div>
|
|
451
436
|
|
|
452
437
|
</li>
|
|
@@ -473,10 +458,9 @@ An unsinged integer referencing a standard or custom number format.
|
|
|
473
458
|
<td>
|
|
474
459
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 40</span>
|
|
475
460
|
|
|
476
|
-
<span class='
|
|
477
|
-
<span class='
|
|
478
|
-
<span class='
|
|
479
|
-
</pre>
|
|
461
|
+
<span class='kw'>def</span> <span class='id numFmtId'>numFmtId</span>
|
|
462
|
+
<span class='ivar'>@numFmtId</span>
|
|
463
|
+
<span class='kw'>end</span></pre>
|
|
480
464
|
</td>
|
|
481
465
|
</tr>
|
|
482
466
|
</table>
|
|
@@ -498,10 +482,9 @@ An unsinged integer referencing a standard or custom number format.
|
|
|
498
482
|
|
|
499
483
|
</p><div class="docstring">
|
|
500
484
|
<div class="discussion">
|
|
501
|
-
|
|
502
|
-
Creates a numFmt element applying the instance values of this object as
|
|
503
|
-
attributes
|
|
504
|
-
</p>
|
|
485
|
+
|
|
486
|
+
<p>Creates a numFmt element applying the instance values of this object as
|
|
487
|
+
attributes.</p>
|
|
505
488
|
|
|
506
489
|
|
|
507
490
|
</div>
|
|
@@ -520,9 +503,8 @@ attributes.
|
|
|
520
503
|
|
|
521
504
|
|
|
522
505
|
—
|
|
523
|
-
<div class='inline'
|
|
524
|
-
The document builder instance this objects xml will be added to
|
|
525
|
-
</p>
|
|
506
|
+
<div class='inline'>
|
|
507
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
526
508
|
</div>
|
|
527
509
|
|
|
528
510
|
</li>
|
|
@@ -536,13 +518,12 @@ The document builder instance this objects xml will be added to.
|
|
|
536
518
|
<pre class="lines">
|
|
537
519
|
|
|
538
520
|
|
|
539
|
-
|
|
521
|
+
60</pre>
|
|
540
522
|
</td>
|
|
541
523
|
<td>
|
|
542
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line
|
|
524
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 60</span>
|
|
543
525
|
|
|
544
|
-
<span class='
|
|
545
|
-
</pre>
|
|
526
|
+
<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> <span class='id xml'>xml</span><span class='period'>.</span><span class='id numFmt'>numFmt</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
|
|
546
527
|
</td>
|
|
547
528
|
</tr>
|
|
548
529
|
</table>
|
|
@@ -553,9 +534,9 @@ The document builder instance this objects xml will be added to.
|
|
|
553
534
|
</div>
|
|
554
535
|
|
|
555
536
|
<div id="footer">
|
|
556
|
-
Generated on
|
|
537
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
557
538
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
558
|
-
0.7.3 (ruby-1.
|
|
539
|
+
0.7.3 (ruby-1.9.3).
|
|
559
540
|
</div>
|
|
560
541
|
|
|
561
542
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::OneCellAnchor
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -97,16 +97,14 @@
|
|
|
97
97
|
|
|
98
98
|
<div class="note notetag">
|
|
99
99
|
<strong>Note:</strong>
|
|
100
|
-
<div class='inline'
|
|
101
|
-
The recommended way to manage drawings, images and charts is
|
|
102
|
-
Worksheet#add_chart or Worksheet#add_image
|
|
103
|
-
</p>
|
|
100
|
+
<div class='inline'>
|
|
101
|
+
<p>The recommended way to manage drawings, images and charts is
|
|
102
|
+
Worksheet#add_chart or Worksheet#add_image.</p>
|
|
104
103
|
</div>
|
|
105
104
|
</div>
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
This class details a single cell anchor for drawings
|
|
109
|
-
</p>
|
|
106
|
+
|
|
107
|
+
<p>This class details a single cell anchor for drawings.</p>
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
</div>
|
|
@@ -147,9 +145,8 @@ This class details a single cell anchor for drawings.
|
|
|
147
145
|
|
|
148
146
|
|
|
149
147
|
|
|
150
|
-
<span class="summary_desc"><div class='inline'
|
|
151
|
-
The drawing that holds this anchor
|
|
152
|
-
</p>
|
|
148
|
+
<span class="summary_desc"><div class='inline'>
|
|
149
|
+
<p>The drawing that holds this anchor.</p>
|
|
153
150
|
</div></span>
|
|
154
151
|
|
|
155
152
|
</li>
|
|
@@ -174,9 +171,8 @@ The drawing that holds this anchor.
|
|
|
174
171
|
|
|
175
172
|
|
|
176
173
|
|
|
177
|
-
<span class="summary_desc"><div class='inline'
|
|
178
|
-
A marker that defines the from cell anchor
|
|
179
|
-
</p>
|
|
174
|
+
<span class="summary_desc"><div class='inline'>
|
|
175
|
+
<p>A marker that defines the from cell anchor.</p>
|
|
180
176
|
</div></span>
|
|
181
177
|
|
|
182
178
|
</li>
|
|
@@ -201,10 +197,9 @@ A marker that defines the from cell anchor.
|
|
|
201
197
|
|
|
202
198
|
|
|
203
199
|
|
|
204
|
-
<span class="summary_desc"><div class='inline'
|
|
205
|
-
the height of the graphic object in pixels this is converted to EMU at a 92
|
|
206
|
-
ppi resolution
|
|
207
|
-
</p>
|
|
200
|
+
<span class="summary_desc"><div class='inline'>
|
|
201
|
+
<p>the height of the graphic object in pixels this is converted to EMU at a 92
|
|
202
|
+
ppi resolution.</p>
|
|
208
203
|
</div></span>
|
|
209
204
|
|
|
210
205
|
</li>
|
|
@@ -213,7 +208,7 @@ ppi resolution.
|
|
|
213
208
|
<li class="public ">
|
|
214
209
|
<span class="summary_signature">
|
|
215
210
|
|
|
216
|
-
<a href="#
|
|
211
|
+
<a href="#object-instance_method" title="#object (instance method)">- (Pic) <strong>object</strong> </a>
|
|
217
212
|
|
|
218
213
|
|
|
219
214
|
|
|
@@ -229,9 +224,8 @@ ppi resolution.
|
|
|
229
224
|
|
|
230
225
|
|
|
231
226
|
|
|
232
|
-
<span class="summary_desc"><div class='inline'
|
|
233
|
-
The
|
|
234
|
-
</p>
|
|
227
|
+
<span class="summary_desc"><div class='inline'>
|
|
228
|
+
<p>The object this anchor hosts.</p>
|
|
235
229
|
</div></span>
|
|
236
230
|
|
|
237
231
|
</li>
|
|
@@ -240,14 +234,14 @@ The index of this anchor in the drawing.
|
|
|
240
234
|
<li class="public ">
|
|
241
235
|
<span class="summary_signature">
|
|
242
236
|
|
|
243
|
-
<a href="#
|
|
237
|
+
<a href="#width-instance_method" title="#width (instance method)">- (Integer) <strong>width</strong> </a>
|
|
244
238
|
|
|
245
239
|
|
|
246
240
|
|
|
247
241
|
</span>
|
|
248
242
|
|
|
249
243
|
|
|
250
|
-
|
|
244
|
+
|
|
251
245
|
|
|
252
246
|
|
|
253
247
|
|
|
@@ -256,53 +250,48 @@ The index of this anchor in the drawing.
|
|
|
256
250
|
|
|
257
251
|
|
|
258
252
|
|
|
259
|
-
<span class="summary_desc"><div class='inline'
|
|
260
|
-
|
|
261
|
-
</p>
|
|
253
|
+
<span class="summary_desc"><div class='inline'>
|
|
254
|
+
<p>the width of the graphic object in pixels.</p>
|
|
262
255
|
</div></span>
|
|
263
256
|
|
|
264
257
|
</li>
|
|
265
258
|
|
|
266
259
|
|
|
267
|
-
|
|
260
|
+
</ul>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
<h2>
|
|
267
|
+
Instance Method Summary
|
|
268
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
269
|
+
</h2>
|
|
270
|
+
|
|
271
|
+
<ul class="summary">
|
|
272
|
+
|
|
273
|
+
<li class="public ">
|
|
268
274
|
<span class="summary_signature">
|
|
269
275
|
|
|
270
|
-
<a href="#
|
|
276
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
|
|
271
277
|
|
|
272
278
|
|
|
273
279
|
|
|
274
280
|
</span>
|
|
275
281
|
|
|
276
282
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
283
|
|
|
281
284
|
|
|
282
285
|
|
|
283
286
|
|
|
284
287
|
|
|
285
288
|
|
|
286
|
-
<span class="summary_desc"><div class='inline'
|
|
287
|
-
|
|
288
|
-
</p>
|
|
289
|
+
<span class="summary_desc"><div class='inline'>
|
|
290
|
+
<p>The index of this anchor in the drawing.</p>
|
|
289
291
|
</div></span>
|
|
290
292
|
|
|
291
293
|
</li>
|
|
292
294
|
|
|
293
|
-
|
|
294
|
-
</ul>
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
<h2>
|
|
301
|
-
Instance Method Summary
|
|
302
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
303
|
-
</h2>
|
|
304
|
-
|
|
305
|
-
<ul class="summary">
|
|
306
295
|
|
|
307
296
|
<li class="public ">
|
|
308
297
|
<span class="summary_signature">
|
|
@@ -322,9 +311,8 @@ the width of the graphic object in pixels.
|
|
|
322
311
|
|
|
323
312
|
|
|
324
313
|
|
|
325
|
-
<span class="summary_desc"><div class='inline'
|
|
326
|
-
Creates a new OneCellAnchor object and an Pic associated with it
|
|
327
|
-
</p>
|
|
314
|
+
<span class="summary_desc"><div class='inline'>
|
|
315
|
+
<p>Creates a new OneCellAnchor object and an Pic associated with it.</p>
|
|
328
316
|
</div></span>
|
|
329
317
|
|
|
330
318
|
</li>
|
|
@@ -346,9 +334,8 @@ Creates a new OneCellAnchor object and an Pic associated with it.
|
|
|
346
334
|
|
|
347
335
|
|
|
348
336
|
|
|
349
|
-
<span class="summary_desc"><div class='inline'
|
|
350
|
-
Serializes the anchor
|
|
351
|
-
</p>
|
|
337
|
+
<span class="summary_desc"><div class='inline'>
|
|
338
|
+
<p>Serializes the anchor.</p>
|
|
352
339
|
</div></span>
|
|
353
340
|
|
|
354
341
|
</li>
|
|
@@ -369,9 +356,8 @@ Serializes the anchor.
|
|
|
369
356
|
|
|
370
357
|
</p><div class="docstring">
|
|
371
358
|
<div class="discussion">
|
|
372
|
-
|
|
373
|
-
Creates a new OneCellAnchor object and an Pic associated with it
|
|
374
|
-
</p>
|
|
359
|
+
|
|
360
|
+
<p>Creates a new OneCellAnchor object and an Pic associated with it.</p>
|
|
375
361
|
|
|
376
362
|
|
|
377
363
|
</div>
|
|
@@ -403,9 +389,8 @@ Creates a new OneCellAnchor object and an Pic associated with it.
|
|
|
403
389
|
|
|
404
390
|
|
|
405
391
|
—
|
|
406
|
-
<div class='inline'
|
|
407
|
-
a customizable set of options
|
|
408
|
-
</p>
|
|
392
|
+
<div class='inline'>
|
|
393
|
+
<p>a customizable set of options</p>
|
|
409
394
|
</div>
|
|
410
395
|
|
|
411
396
|
</li>
|
|
@@ -426,9 +411,8 @@ a customizable set of options
|
|
|
426
411
|
<span class="default">
|
|
427
412
|
|
|
428
413
|
</span>
|
|
429
|
-
— <div class='inline'
|
|
430
|
-
the col, row to start at
|
|
431
|
-
</p>
|
|
414
|
+
— <div class='inline'>
|
|
415
|
+
<p>the col, row to start at</p>
|
|
432
416
|
</div>
|
|
433
417
|
</li>
|
|
434
418
|
|
|
@@ -456,9 +440,8 @@ the col, row to start at
|
|
|
456
440
|
<span class="default">
|
|
457
441
|
|
|
458
442
|
</span>
|
|
459
|
-
— <div class='inline'
|
|
460
|
-
the file location of the image you will render
|
|
461
|
-
</p>
|
|
443
|
+
— <div class='inline'>
|
|
444
|
+
<p>the file location of the image you will render</p>
|
|
462
445
|
</div>
|
|
463
446
|
</li>
|
|
464
447
|
|
|
@@ -468,9 +451,8 @@ the file location of the image you will render
|
|
|
468
451
|
<span class="default">
|
|
469
452
|
|
|
470
453
|
</span>
|
|
471
|
-
— <div class='inline'
|
|
472
|
-
the name attribute for the rendered image
|
|
473
|
-
</p>
|
|
454
|
+
— <div class='inline'>
|
|
455
|
+
<p>the name attribute for the rendered image</p>
|
|
474
456
|
</div>
|
|
475
457
|
</li>
|
|
476
458
|
|
|
@@ -480,9 +462,8 @@ the name attribute for the rendered image
|
|
|
480
462
|
<span class="default">
|
|
481
463
|
|
|
482
464
|
</span>
|
|
483
|
-
— <div class='inline'
|
|
484
|
-
the description of the image rendered
|
|
485
|
-
</p>
|
|
465
|
+
— <div class='inline'>
|
|
466
|
+
<p>the description of the image rendered</p>
|
|
486
467
|
</div>
|
|
487
468
|
</li>
|
|
488
469
|
|
|
@@ -496,33 +477,32 @@ the description of the image rendered
|
|
|
496
477
|
<pre class="lines">
|
|
497
478
|
|
|
498
479
|
|
|
480
|
+
39
|
|
481
|
+
40
|
|
482
|
+
41
|
|
483
|
+
42
|
|
484
|
+
43
|
|
499
485
|
44
|
|
500
486
|
45
|
|
501
487
|
46
|
|
502
488
|
47
|
|
503
489
|
48
|
|
504
|
-
49
|
|
505
|
-
50
|
|
506
|
-
51
|
|
507
|
-
52
|
|
508
|
-
53
|
|
509
|
-
54</pre>
|
|
490
|
+
49</pre>
|
|
510
491
|
</td>
|
|
511
492
|
<td>
|
|
512
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line
|
|
513
|
-
|
|
514
|
-
<span class='
|
|
515
|
-
<span class='
|
|
516
|
-
<span class='
|
|
517
|
-
<span class='
|
|
518
|
-
<span class='drawing
|
|
519
|
-
<span class='
|
|
520
|
-
<span class='options
|
|
521
|
-
<span class='
|
|
522
|
-
<span class='
|
|
523
|
-
<span class='
|
|
524
|
-
<span class='
|
|
525
|
-
</pre>
|
|
493
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 39</span>
|
|
494
|
+
|
|
495
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id drawing'>drawing</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
496
|
+
<span class='ivar'>@drawing</span> <span class='op'>=</span> <span class='id drawing'>drawing</span>
|
|
497
|
+
<span class='ivar'>@width</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
498
|
+
<span class='ivar'>@height</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
499
|
+
<span class='id drawing'>drawing</span><span class='period'>.</span><span class='id anchors'>anchors</span> <span class='op'><<</span> <span class='kw'>self</span>
|
|
500
|
+
<span class='ivar'>@from</span> <span class='op'>=</span> <span class='const'>Marker</span><span class='period'>.</span><span class='id new'>new</span>
|
|
501
|
+
<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>
|
|
502
|
+
<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='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>
|
|
503
|
+
<span class='kw'>end</span>
|
|
504
|
+
<span class='ivar'>@object</span> <span class='op'>=</span> <span class='const'>Pic</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>
|
|
505
|
+
<span class='kw'>end</span></pre>
|
|
526
506
|
</td>
|
|
527
507
|
</tr>
|
|
528
508
|
</table>
|
|
@@ -545,9 +525,8 @@ the description of the image rendered
|
|
|
545
525
|
|
|
546
526
|
</p><div class="docstring">
|
|
547
527
|
<div class="discussion">
|
|
548
|
-
|
|
549
|
-
The drawing that holds this anchor
|
|
550
|
-
</p>
|
|
528
|
+
|
|
529
|
+
<p>The drawing that holds this anchor</p>
|
|
551
530
|
|
|
552
531
|
|
|
553
532
|
</div>
|
|
@@ -581,10 +560,9 @@ The drawing that holds this anchor
|
|
|
581
560
|
<td>
|
|
582
561
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 18</span>
|
|
583
562
|
|
|
584
|
-
<span class='
|
|
585
|
-
<span class='
|
|
586
|
-
<span class='
|
|
587
|
-
</pre>
|
|
563
|
+
<span class='kw'>def</span> <span class='id drawing'>drawing</span>
|
|
564
|
+
<span class='ivar'>@drawing</span>
|
|
565
|
+
<span class='kw'>end</span></pre>
|
|
588
566
|
</td>
|
|
589
567
|
</tr>
|
|
590
568
|
</table>
|
|
@@ -602,10 +580,9 @@ The drawing that holds this anchor
|
|
|
602
580
|
|
|
603
581
|
</p><div class="docstring">
|
|
604
582
|
<div class="discussion">
|
|
605
|
-
|
|
606
|
-
A marker that defines the from cell anchor. The default from column and row
|
|
607
|
-
are 0 and 0 respectively
|
|
608
|
-
</p>
|
|
583
|
+
|
|
584
|
+
<p>A marker that defines the from cell anchor. The default from column and row
|
|
585
|
+
are 0 and 0 respectively</p>
|
|
609
586
|
|
|
610
587
|
|
|
611
588
|
</div>
|
|
@@ -639,10 +616,9 @@ are 0 and 0 respectively
|
|
|
639
616
|
<td>
|
|
640
617
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 10</span>
|
|
641
618
|
|
|
642
|
-
<span class='
|
|
643
|
-
<span class='
|
|
644
|
-
<span class='
|
|
645
|
-
</pre>
|
|
619
|
+
<span class='kw'>def</span> <span class='id from'>from</span>
|
|
620
|
+
<span class='ivar'>@from</span>
|
|
621
|
+
<span class='kw'>end</span></pre>
|
|
646
622
|
</td>
|
|
647
623
|
</tr>
|
|
648
624
|
</table>
|
|
@@ -660,10 +636,9 @@ are 0 and 0 respectively
|
|
|
660
636
|
|
|
661
637
|
</p><div class="docstring">
|
|
662
638
|
<div class="discussion">
|
|
663
|
-
|
|
664
|
-
the height of the graphic object in pixels this is converted to EMU at a 92
|
|
665
|
-
ppi resolution
|
|
666
|
-
</p>
|
|
639
|
+
|
|
640
|
+
<p>the height of the graphic object in pixels this is converted to EMU at a 92
|
|
641
|
+
ppi resolution</p>
|
|
667
642
|
|
|
668
643
|
|
|
669
644
|
</div>
|
|
@@ -690,17 +665,16 @@ ppi resolution
|
|
|
690
665
|
<pre class="lines">
|
|
691
666
|
|
|
692
667
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
668
|
+
28
|
|
669
|
+
29
|
|
670
|
+
30</pre>
|
|
696
671
|
</td>
|
|
697
672
|
<td>
|
|
698
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line
|
|
673
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 28</span>
|
|
699
674
|
|
|
700
|
-
<span class='
|
|
701
|
-
<span class='
|
|
702
|
-
<span class='
|
|
703
|
-
</pre>
|
|
675
|
+
<span class='kw'>def</span> <span class='id height'>height</span>
|
|
676
|
+
<span class='ivar'>@height</span>
|
|
677
|
+
<span class='kw'>end</span></pre>
|
|
704
678
|
</td>
|
|
705
679
|
</tr>
|
|
706
680
|
</table>
|
|
@@ -708,19 +682,18 @@ ppi resolution
|
|
|
708
682
|
|
|
709
683
|
|
|
710
684
|
<span id=""></span>
|
|
711
|
-
<span id="
|
|
685
|
+
<span id="object-instance_method"></span>
|
|
712
686
|
<div class="method_details ">
|
|
713
|
-
<p class="signature " id="
|
|
687
|
+
<p class="signature " id="object-instance_method">
|
|
714
688
|
|
|
715
|
-
- (<tt>
|
|
689
|
+
- (<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>) <strong>object</strong> <span class="extras">(readonly)</span>
|
|
716
690
|
|
|
717
691
|
|
|
718
692
|
|
|
719
693
|
</p><div class="docstring">
|
|
720
694
|
<div class="discussion">
|
|
721
|
-
|
|
722
|
-
The
|
|
723
|
-
</p>
|
|
695
|
+
|
|
696
|
+
<p>The object this anchor hosts</p>
|
|
724
697
|
|
|
725
698
|
|
|
726
699
|
</div>
|
|
@@ -733,7 +706,7 @@ The index of this anchor in the drawing
|
|
|
733
706
|
<li>
|
|
734
707
|
|
|
735
708
|
|
|
736
|
-
<span class='type'>(<tt>
|
|
709
|
+
<span class='type'>(<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>)</span>
|
|
737
710
|
|
|
738
711
|
|
|
739
712
|
|
|
@@ -747,37 +720,36 @@ The index of this anchor in the drawing
|
|
|
747
720
|
<pre class="lines">
|
|
748
721
|
|
|
749
722
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
723
|
+
14
|
|
724
|
+
15
|
|
725
|
+
16</pre>
|
|
753
726
|
</td>
|
|
754
727
|
<td>
|
|
755
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line
|
|
728
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 14</span>
|
|
756
729
|
|
|
757
|
-
<span class='
|
|
758
|
-
<span class='
|
|
759
|
-
<span class='
|
|
760
|
-
</pre>
|
|
730
|
+
<span class='kw'>def</span> <span class='id object'>object</span>
|
|
731
|
+
<span class='ivar'>@object</span>
|
|
732
|
+
<span class='kw'>end</span></pre>
|
|
761
733
|
</td>
|
|
762
734
|
</tr>
|
|
763
735
|
</table>
|
|
764
736
|
</div>
|
|
765
737
|
|
|
766
738
|
|
|
767
|
-
<span id=""></span>
|
|
768
|
-
<span id="
|
|
739
|
+
<span id="width=-instance_method"></span>
|
|
740
|
+
<span id="width-instance_method"></span>
|
|
769
741
|
<div class="method_details ">
|
|
770
|
-
<p class="signature " id="
|
|
742
|
+
<p class="signature " id="width-instance_method">
|
|
771
743
|
|
|
772
|
-
- (<tt
|
|
744
|
+
- (<tt>Integer</tt>) <strong>width</strong>
|
|
773
745
|
|
|
774
746
|
|
|
775
747
|
|
|
776
748
|
</p><div class="docstring">
|
|
777
749
|
<div class="discussion">
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
</p>
|
|
750
|
+
|
|
751
|
+
<p>the width of the graphic object in pixels. this is converted to EMU at a 92
|
|
752
|
+
ppi resolution</p>
|
|
781
753
|
|
|
782
754
|
|
|
783
755
|
</div>
|
|
@@ -790,7 +762,7 @@ The object this anchor hosts
|
|
|
790
762
|
<li>
|
|
791
763
|
|
|
792
764
|
|
|
793
|
-
<span class='type'>(<tt
|
|
765
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
794
766
|
|
|
795
767
|
|
|
796
768
|
|
|
@@ -804,38 +776,39 @@ The object this anchor hosts
|
|
|
804
776
|
<pre class="lines">
|
|
805
777
|
|
|
806
778
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
779
|
+
23
|
|
780
|
+
24
|
|
781
|
+
25</pre>
|
|
810
782
|
</td>
|
|
811
783
|
<td>
|
|
812
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line
|
|
784
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 23</span>
|
|
813
785
|
|
|
814
|
-
<span class='
|
|
815
|
-
<span class='
|
|
816
|
-
<span class='
|
|
817
|
-
</pre>
|
|
786
|
+
<span class='kw'>def</span> <span class='id width'>width</span>
|
|
787
|
+
<span class='ivar'>@width</span>
|
|
788
|
+
<span class='kw'>end</span></pre>
|
|
818
789
|
</td>
|
|
819
790
|
</tr>
|
|
820
791
|
</table>
|
|
821
792
|
</div>
|
|
822
793
|
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
794
|
+
</div>
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
<div id="instance_method_details" class="method_details_list">
|
|
798
|
+
<h2>Instance Method Details</h2>
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
<div class="method_details first">
|
|
802
|
+
<p class="signature first" id="index-instance_method">
|
|
828
803
|
|
|
829
|
-
- (<tt>Integer</tt>) <strong>
|
|
804
|
+
- (<tt>Integer</tt>) <strong>index</strong>
|
|
830
805
|
|
|
831
806
|
|
|
832
807
|
|
|
833
808
|
</p><div class="docstring">
|
|
834
809
|
<div class="discussion">
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
ppi resolution
|
|
838
|
-
</p>
|
|
810
|
+
|
|
811
|
+
<p>The index of this anchor in the drawing</p>
|
|
839
812
|
|
|
840
813
|
|
|
841
814
|
</div>
|
|
@@ -862,31 +835,23 @@ ppi resolution
|
|
|
862
835
|
<pre class="lines">
|
|
863
836
|
|
|
864
837
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
838
|
+
59
|
|
839
|
+
60
|
|
840
|
+
61</pre>
|
|
868
841
|
</td>
|
|
869
842
|
<td>
|
|
870
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line
|
|
843
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 59</span>
|
|
871
844
|
|
|
872
|
-
<span class='
|
|
873
|
-
<span class='
|
|
874
|
-
<span class='
|
|
875
|
-
</pre>
|
|
845
|
+
<span class='kw'>def</span> <span class='id index'>index</span>
|
|
846
|
+
<span class='ivar'>@drawing</span><span class='period'>.</span><span class='id anchors'>anchors</span><span class='period'>.</span><span class='id index'>index</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
|
847
|
+
<span class='kw'>end</span></pre>
|
|
876
848
|
</td>
|
|
877
849
|
</tr>
|
|
878
850
|
</table>
|
|
879
851
|
</div>
|
|
880
852
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
<div id="instance_method_details" class="method_details_list">
|
|
885
|
-
<h2>Instance Method Details</h2>
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
<div class="method_details first">
|
|
889
|
-
<p class="signature first" id="to_xml-instance_method">
|
|
853
|
+
<div class="method_details ">
|
|
854
|
+
<p class="signature " id="to_xml-instance_method">
|
|
890
855
|
|
|
891
856
|
- (<tt>String</tt>) <strong>to_xml</strong>(xml)
|
|
892
857
|
|
|
@@ -894,9 +859,8 @@ ppi resolution
|
|
|
894
859
|
|
|
895
860
|
</p><div class="docstring">
|
|
896
861
|
<div class="discussion">
|
|
897
|
-
|
|
898
|
-
Serializes the anchor
|
|
899
|
-
</p>
|
|
862
|
+
|
|
863
|
+
<p>Serializes the anchor</p>
|
|
900
864
|
|
|
901
865
|
|
|
902
866
|
</div>
|
|
@@ -915,9 +879,8 @@ Serializes the anchor
|
|
|
915
879
|
|
|
916
880
|
|
|
917
881
|
—
|
|
918
|
-
<div class='inline'
|
|
919
|
-
The document builder instance this objects xml will be added to
|
|
920
|
-
</p>
|
|
882
|
+
<div class='inline'>
|
|
883
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
921
884
|
</div>
|
|
922
885
|
|
|
923
886
|
</li>
|
|
@@ -958,17 +921,16 @@ The document builder instance this objects xml will be added to.
|
|
|
958
921
|
<td>
|
|
959
922
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 66</span>
|
|
960
923
|
|
|
961
|
-
<span class='
|
|
962
|
-
<span class='xml
|
|
963
|
-
<span class='xml
|
|
964
|
-
<span class='from
|
|
965
|
-
<span class='rbrace
|
|
966
|
-
<span class='xml
|
|
967
|
-
<span class='
|
|
968
|
-
<span class='xml
|
|
969
|
-
<span class='rbrace
|
|
970
|
-
<span class='
|
|
971
|
-
</pre>
|
|
924
|
+
<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>
|
|
925
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>xdr:oneCellAnchor</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
926
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>xdr:from</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
927
|
+
<span class='id from'>from</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>
|
|
928
|
+
<span class='rbrace'>}</span>
|
|
929
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>xdr:ext</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id ext'>ext</span><span class='rparen'>)</span>
|
|
930
|
+
<span class='ivar'>@object</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>
|
|
931
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>xdr:clientData</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
932
|
+
<span class='rbrace'>}</span>
|
|
933
|
+
<span class='kw'>end</span></pre>
|
|
972
934
|
</td>
|
|
973
935
|
</tr>
|
|
974
936
|
</table>
|
|
@@ -979,9 +941,9 @@ The document builder instance this objects xml will be added to.
|
|
|
979
941
|
</div>
|
|
980
942
|
|
|
981
943
|
<div id="footer">
|
|
982
|
-
Generated on
|
|
944
|
+
Generated on Sat Nov 26 13:16:39 2011 by
|
|
983
945
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
984
|
-
0.7.3 (ruby-1.
|
|
946
|
+
0.7.3 (ruby-1.9.3).
|
|
985
947
|
</div>
|
|
986
948
|
|
|
987
949
|
</body>
|