axlsx 1.0.9 → 1.0.10a
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +24 -0
- data/README.md +86 -1
- data/axlsx.gemspec +6 -10
- data/doc/Axlsx.html +557 -360
- data/doc/Axlsx/App.html +347 -244
- data/doc/Axlsx/Ar.html +200 -0
- data/doc/Axlsx/Ar/ClassMethods.html +192 -0
- data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
- data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
- data/doc/Axlsx/Axis.html +131 -98
- data/doc/Axlsx/Bar3DChart.html +138 -106
- data/doc/Axlsx/BarSeries.html +73 -54
- data/doc/Axlsx/Border.html +114 -87
- data/doc/Axlsx/BorderPr.html +107 -82
- data/doc/Axlsx/CatAxis.html +93 -68
- data/doc/Axlsx/CatAxisData.html +47 -38
- data/doc/Axlsx/Cell.html +642 -148
- data/doc/Axlsx/CellAlignment.html +152 -111
- data/doc/Axlsx/CellProtection.html +63 -45
- data/doc/Axlsx/CellStyle.html +101 -73
- data/doc/Axlsx/Chart.html +238 -179
- data/doc/Axlsx/Color.html +75 -53
- data/doc/Axlsx/ContentType.html +34 -26
- data/doc/Axlsx/Core.html +54 -42
- data/doc/Axlsx/DataTypeValidator.html +39 -30
- data/doc/Axlsx/Default.html +59 -43
- data/doc/Axlsx/Drawing.html +176 -128
- data/doc/Axlsx/Fill.html +46 -33
- data/doc/Axlsx/Font.html +197 -147
- data/doc/Axlsx/GradientFill.html +114 -82
- data/doc/Axlsx/GradientStop.html +47 -33
- data/doc/Axlsx/GraphicFrame.html +78 -60
- data/doc/Axlsx/Line3DChart.html +125 -97
- data/doc/Axlsx/LineSeries.html +60 -44
- data/doc/Axlsx/Marker.html +98 -71
- data/doc/Axlsx/NumFmt.html +99 -80
- data/doc/Axlsx/OneCellAnchor.html +126 -94
- data/doc/Axlsx/Override.html +59 -43
- data/doc/Axlsx/Package.html +269 -134
- data/doc/Axlsx/PatternFill.html +93 -72
- data/doc/Axlsx/Pic.html +202 -152
- data/doc/Axlsx/Pie3DChart.html +39 -30
- data/doc/Axlsx/PieSeries.html +72 -53
- data/doc/Axlsx/RegexValidator.html +19 -14
- data/doc/Axlsx/Relationship.html +60 -43
- data/doc/Axlsx/Relationships.html +34 -26
- data/doc/Axlsx/RestrictionValidator.html +31 -22
- data/doc/Axlsx/Row.html +241 -67
- data/doc/Axlsx/Scaling.html +80 -59
- data/doc/Axlsx/SerAxis.html +71 -51
- data/doc/Axlsx/Series.html +179 -51
- data/doc/Axlsx/SeriesTitle.html +29 -24
- data/doc/Axlsx/Styles.html +354 -285
- data/doc/Axlsx/TableStyle.html +74 -54
- data/doc/Axlsx/TableStyleElement.html +99 -79
- data/doc/Axlsx/TableStyles.html +65 -47
- data/doc/Axlsx/Title.html +66 -51
- data/doc/Axlsx/TwoCellAnchor.html +129 -96
- data/doc/Axlsx/ValAxis.html +52 -38
- data/doc/Axlsx/ValAxisData.html +32 -27
- data/doc/Axlsx/View3D.html +111 -80
- data/doc/Axlsx/Workbook.html +333 -272
- data/doc/Axlsx/Worksheet.html +1018 -266
- data/doc/Axlsx/Xf.html +188 -134
- data/doc/_index.html +44 -8
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +28 -23
- data/doc/file.README.html +180 -91
- data/doc/index.html +180 -91
- data/doc/method_list.html +541 -421
- data/doc/top-level-namespace.html +2 -2
- data/examples/example.rb +70 -13
- data/lib/axlsx.rb +1 -0
- data/lib/axlsx/ar.rb +72 -0
- data/lib/axlsx/package.rb +8 -1
- data/lib/axlsx/util/simple_typed_list.rb +5 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +4 -2
- data/lib/axlsx/workbook/worksheet/row.rb +15 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
- data/test/workbook/worksheet/tc_row.rb +6 -0
- data/test/workbook/worksheet/tc_worksheet.rb +36 -0
- metadata +103 -59
data/doc/Axlsx/NumFmt.html
CHANGED
@@ -97,14 +97,16 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
|
100
|
+
<div class='inline'><p>
|
101
|
+
The recommended way to manage styles is Styles#add_style
|
102
|
+
</p>
|
102
103
|
</div>
|
103
104
|
</div>
|
104
105
|
|
105
|
-
|
106
|
-
|
107
|
-
cells
|
106
|
+
<p>
|
107
|
+
A NumFmt object defines an identifier and formatting code for data in
|
108
|
+
cells.
|
109
|
+
</p>
|
108
110
|
|
109
111
|
|
110
112
|
</div>
|
@@ -136,8 +138,9 @@ cells.</p>
|
|
136
138
|
|
137
139
|
|
138
140
|
|
139
|
-
<span class="summary_desc"><div class='inline'>
|
140
|
-
|
141
|
+
<span class="summary_desc"><div class='inline'><p>
|
142
|
+
The formatting to use for this number format.
|
143
|
+
</p>
|
141
144
|
</div></span>
|
142
145
|
|
143
146
|
</li>
|
@@ -162,8 +165,9 @@ cells.</p>
|
|
162
165
|
|
163
166
|
|
164
167
|
|
165
|
-
<span class="summary_desc"><div class='inline'>
|
166
|
-
|
168
|
+
<span class="summary_desc"><div class='inline'><p>
|
169
|
+
An unsinged integer referencing a standard or custom number format.
|
170
|
+
</p>
|
167
171
|
</div></span>
|
168
172
|
|
169
173
|
</li>
|
@@ -200,8 +204,9 @@ cells.</p>
|
|
200
204
|
|
201
205
|
|
202
206
|
|
203
|
-
<span class="summary_desc"><div class='inline'>
|
204
|
-
|
207
|
+
<span class="summary_desc"><div class='inline'><p>
|
208
|
+
A new instance of NumFmt.
|
209
|
+
</p>
|
205
210
|
</div></span>
|
206
211
|
|
207
212
|
</li>
|
@@ -223,9 +228,10 @@ cells.</p>
|
|
223
228
|
|
224
229
|
|
225
230
|
|
226
|
-
<span class="summary_desc"><div class='inline'>
|
227
|
-
|
228
|
-
attributes
|
231
|
+
<span class="summary_desc"><div class='inline'><p>
|
232
|
+
Creates a numFmt element applying the instance values of this object as
|
233
|
+
attributes.
|
234
|
+
</p>
|
229
235
|
</div></span>
|
230
236
|
|
231
237
|
</li>
|
@@ -246,8 +252,9 @@ attributes.</p>
|
|
246
252
|
|
247
253
|
</p><div class="docstring">
|
248
254
|
<div class="discussion">
|
249
|
-
|
250
|
-
|
255
|
+
<p>
|
256
|
+
A new instance of NumFmt
|
257
|
+
</p>
|
251
258
|
|
252
259
|
|
253
260
|
</div>
|
@@ -272,13 +279,14 @@ attributes.</p>
|
|
272
279
|
<td>
|
273
280
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 45</span>
|
274
281
|
|
275
|
-
<span class='kw'>def</span> <span class='id
|
276
|
-
<span class='ivar'>@numFmtId</span> <span class='
|
277
|
-
<span class='ivar'>@formatCode</span> <span class='
|
278
|
-
<span class='id
|
279
|
-
<span class='kw'>self</span><span class='
|
280
|
-
<span class='kw'>end</span>
|
281
|
-
<span class='kw'>end</span
|
282
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
283
|
+
<span class='@numFmtId ivar id'>@numFmtId</span> <span class='assign token'>=</span> <span class='integer val'>0</span>
|
284
|
+
<span class='@formatCode ivar id'>@formatCode</span> <span class='assign token'>=</span> <span class='string val'>""</span>
|
285
|
+
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span>
|
286
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
|
287
|
+
<span class='end end kw'>end</span>
|
288
|
+
<span class='end end kw'>end</span>
|
289
|
+
</pre>
|
282
290
|
</td>
|
283
291
|
</tr>
|
284
292
|
</table>
|
@@ -301,8 +309,9 @@ attributes.</p>
|
|
301
309
|
|
302
310
|
</p><div class="docstring">
|
303
311
|
<div class="discussion">
|
304
|
-
|
305
|
-
|
312
|
+
<p>
|
313
|
+
The formatting to use for this number format.
|
314
|
+
</p>
|
306
315
|
|
307
316
|
|
308
317
|
</div>
|
@@ -320,8 +329,9 @@ attributes.</p>
|
|
320
329
|
|
321
330
|
|
322
331
|
—
|
323
|
-
<div class='inline'>
|
324
|
-
|
332
|
+
<div class='inline'><p>
|
333
|
+
The formatting to use for this number format.
|
334
|
+
</p>
|
325
335
|
</div>
|
326
336
|
|
327
337
|
</li>
|
@@ -348,9 +358,10 @@ attributes.</p>
|
|
348
358
|
<td>
|
349
359
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 44</span>
|
350
360
|
|
351
|
-
<span class='kw'>def</span> <span class='id
|
352
|
-
<span class='ivar'>@formatCode</span>
|
353
|
-
<span class='kw'>end</span
|
361
|
+
<span class='def def kw'>def</span> <span class='formatCode identifier id'>formatCode</span>
|
362
|
+
<span class='@formatCode ivar id'>@formatCode</span>
|
363
|
+
<span class='end end kw'>end</span>
|
364
|
+
</pre>
|
354
365
|
</td>
|
355
366
|
</tr>
|
356
367
|
</table>
|
@@ -371,48 +382,51 @@ attributes.</p>
|
|
371
382
|
|
372
383
|
<div class="note notetag">
|
373
384
|
<strong>Note:</strong>
|
374
|
-
<div class='inline'>
|
375
|
-
|
385
|
+
<div class='inline'><p>
|
386
|
+
These are the known formats I can dig up. The constant NUM_FMT_PERCENT is
|
376
387
|
9, and uses the default % formatting. Axlsx also defines a few formats for
|
377
388
|
date and time that are commonly used in asia as NUM_FMT_YYYYMMDD and
|
378
|
-
NUM_FRM_YYYYMMDDHHMMSS
|
379
|
-
|
380
|
-
<pre class="code">
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
389
|
+
NUM_FRM_YYYYMMDDHHMMSS.
|
390
|
+
</p>
|
391
|
+
<pre class="code">
|
392
|
+
<span class='integer val'>1</span> <span class='integer val'>0</span>
|
393
|
+
<span class='integer val'>2</span> <span class='integer val'>0</span><span class='integer val'>.00</span>
|
394
|
+
<span class='integer val'>3</span> <span class='comment val'>#,##0</span>
|
395
|
+
<span class='integer val'>4</span> <span class='comment val'>#,##0.00</span>
|
396
|
+
<span class='integer val'>5</span> $<span class='comment val'>#,##0_);($#,##0)</span>
|
397
|
+
<span class='integer val'>6</span> $<span class='comment val'>#,##0_);[Red]($#,##0)</span>
|
398
|
+
<span class='integer val'>7</span> $<span class='comment val'>#,##0.00_);($#,##0.00)</span>
|
399
|
+
<span class='integer val'>8</span> $<span class='comment val'>#,##0.00_);[Red]($#,##0.00)</span>
|
400
|
+
<span class='integer val'>9</span> <span class='integer val'>0</span><span class='mod op'>%</span>
|
401
|
+
<span class='integer val'>10</span> <span class='integer val'>0</span><span class='integer val'>.00</span><span class='mod op'>%</span>
|
402
|
+
<span class='integer val'>11</span> <span class='integer val'>0</span><span class='float val'>.00E+00</span>
|
403
|
+
<span class='integer val'>12</span> <span class='comment val'># ?/?</span>
|
404
|
+
<span class='integer val'>13</span> <span class='comment val'># ??/??</span>
|
405
|
+
<span class='integer val'>14</span> <span class='m identifier id'>m</span><span class='div op'>/</span><span class='d identifier id'>d</span><span class='div op'>/</span><span class='yyyy identifier id'>yyyy</span>
|
406
|
+
<span class='integer val'>15</span> <span class='d identifier id'>d</span><span class='minus op'>-</span><span class='mmm identifier id'>mmm</span><span class='minus op'>-</span><span class='yy identifier id'>yy</span>
|
407
|
+
<span class='integer val'>16</span> <span class='d identifier id'>d</span><span class='minus op'>-</span><span class='mmm identifier id'>mmm</span>
|
408
|
+
<span class='integer val'>17</span> <span class='mmm identifier id'>mmm</span><span class='minus op'>-</span><span class='yy identifier id'>yy</span>
|
409
|
+
<span class='integer val'>18</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span> <span class='AM constant id'>AM</span><span class='div op'>/</span><span class='PM constant id'>PM</span>
|
410
|
+
<span class='integer val'>19</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span><span class='symbol val'>:ss</span> <span class='AM constant id'>AM</span><span class='div op'>/</span><span class='PM constant id'>PM</span>
|
411
|
+
<span class='integer val'>20</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span>
|
412
|
+
<span class='integer val'>21</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span><span class='symbol val'>:ss</span>
|
413
|
+
<span class='integer val'>22</span> <span class='m identifier id'>m</span><span class='div op'>/</span><span class='d identifier id'>d</span><span class='div op'>/</span><span class='yyyy identifier id'>yyyy</span> <span class='h identifier id'>h</span><span class='symbol val'>:mm</span>
|
414
|
+
<span class='integer val'>37</span> <span class='comment val'>#,##0_);(#,##0)</span>
|
415
|
+
<span class='integer val'>38</span> <span class='comment val'>#,##0_);[Red](#,##0)</span>
|
416
|
+
<span class='integer val'>39</span> <span class='comment val'>#,##0.00_);(#,##0.00)</span>
|
417
|
+
<span class='integer val'>40</span> <span class='comment val'>#,##0.00_);[Red](#,##0.00)</span>
|
418
|
+
<span class='integer val'>45</span> <span class='mm identifier id'>mm</span><span class='symbol val'>:ss</span>
|
419
|
+
<span class='integer val'>46</span> <span class='lbrack token'>[</span><span class='h identifier id'>h</span><span class='rbrack token'>]</span><span class='symbol val'>:mm</span><span class='symbol val'>:ss</span>
|
420
|
+
<span class='integer val'>47</span> <span class='mm identifier id'>mm</span><span class='symbol val'>:ss</span><span class='integer val'>.0</span>
|
421
|
+
<span class='integer val'>48</span> <span class='comment val'>##0.0E+0</span>
|
422
|
+
<span class='integer val'>49</span> @
|
423
|
+
</pre>
|
411
424
|
</div>
|
412
425
|
</div>
|
413
426
|
|
414
|
-
|
415
|
-
|
427
|
+
<p>
|
428
|
+
An unsinged integer referencing a standard or custom number format.
|
429
|
+
</p>
|
416
430
|
|
417
431
|
|
418
432
|
</div>
|
@@ -430,8 +444,9 @@ NUM_FRM_YYYYMMDDHHMMSS.</p>
|
|
430
444
|
|
431
445
|
|
432
446
|
—
|
433
|
-
<div class='inline'>
|
434
|
-
|
447
|
+
<div class='inline'><p>
|
448
|
+
An unsinged integer referencing a standard or custom number format.
|
449
|
+
</p>
|
435
450
|
</div>
|
436
451
|
|
437
452
|
</li>
|
@@ -458,9 +473,10 @@ NUM_FRM_YYYYMMDDHHMMSS.</p>
|
|
458
473
|
<td>
|
459
474
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 40</span>
|
460
475
|
|
461
|
-
<span class='kw'>def</span> <span class='id
|
462
|
-
<span class='ivar'>@numFmtId</span>
|
463
|
-
<span class='kw'>end</span
|
476
|
+
<span class='def def kw'>def</span> <span class='numFmtId identifier id'>numFmtId</span>
|
477
|
+
<span class='@numFmtId ivar id'>@numFmtId</span>
|
478
|
+
<span class='end end kw'>end</span>
|
479
|
+
</pre>
|
464
480
|
</td>
|
465
481
|
</tr>
|
466
482
|
</table>
|
@@ -482,9 +498,10 @@ NUM_FRM_YYYYMMDDHHMMSS.</p>
|
|
482
498
|
|
483
499
|
</p><div class="docstring">
|
484
500
|
<div class="discussion">
|
485
|
-
|
486
|
-
|
487
|
-
attributes
|
501
|
+
<p>
|
502
|
+
Creates a numFmt element applying the instance values of this object as
|
503
|
+
attributes.
|
504
|
+
</p>
|
488
505
|
|
489
506
|
|
490
507
|
</div>
|
@@ -503,8 +520,9 @@ attributes.</p>
|
|
503
520
|
|
504
521
|
|
505
522
|
—
|
506
|
-
<div class='inline'>
|
507
|
-
|
523
|
+
<div class='inline'><p>
|
524
|
+
The document builder instance this objects xml will be added to.
|
525
|
+
</p>
|
508
526
|
</div>
|
509
527
|
|
510
528
|
</li>
|
@@ -523,7 +541,8 @@ attributes.</p>
|
|
523
541
|
<td>
|
524
542
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 60</span>
|
525
543
|
|
526
|
-
<span class='kw'>def</span> <span class='id
|
544
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='numFmt identifier id'>numFmt</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='rparen token'>)</span> <span class='end end kw'>end</span>
|
545
|
+
</pre>
|
527
546
|
</td>
|
528
547
|
</tr>
|
529
548
|
</table>
|
@@ -534,9 +553,9 @@ attributes.</p>
|
|
534
553
|
</div>
|
535
554
|
|
536
555
|
<div id="footer">
|
537
|
-
Generated on
|
556
|
+
Generated on Sun Nov 27 21:54:28 2011 by
|
538
557
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
539
|
-
0.7.3 (ruby-1.
|
558
|
+
0.7.3 (ruby-1.8.7).
|
540
559
|
</div>
|
541
560
|
|
542
561
|
</body>
|
@@ -97,14 +97,16 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
|
102
|
-
Worksheet#add_chart or Worksheet#add_image
|
100
|
+
<div class='inline'><p>
|
101
|
+
The recommended way to manage drawings, images and charts is
|
102
|
+
Worksheet#add_chart or Worksheet#add_image.
|
103
|
+
</p>
|
103
104
|
</div>
|
104
105
|
</div>
|
105
106
|
|
106
|
-
|
107
|
-
|
107
|
+
<p>
|
108
|
+
This class details a single cell anchor for drawings.
|
109
|
+
</p>
|
108
110
|
|
109
111
|
|
110
112
|
</div>
|
@@ -145,8 +147,9 @@ Worksheet#add_chart or Worksheet#add_image.</p>
|
|
145
147
|
|
146
148
|
|
147
149
|
|
148
|
-
<span class="summary_desc"><div class='inline'>
|
149
|
-
|
150
|
+
<span class="summary_desc"><div class='inline'><p>
|
151
|
+
The drawing that holds this anchor.
|
152
|
+
</p>
|
150
153
|
</div></span>
|
151
154
|
|
152
155
|
</li>
|
@@ -171,8 +174,9 @@ Worksheet#add_chart or Worksheet#add_image.</p>
|
|
171
174
|
|
172
175
|
|
173
176
|
|
174
|
-
<span class="summary_desc"><div class='inline'>
|
175
|
-
|
177
|
+
<span class="summary_desc"><div class='inline'><p>
|
178
|
+
A marker that defines the from cell anchor.
|
179
|
+
</p>
|
176
180
|
</div></span>
|
177
181
|
|
178
182
|
</li>
|
@@ -197,9 +201,10 @@ Worksheet#add_chart or Worksheet#add_image.</p>
|
|
197
201
|
|
198
202
|
|
199
203
|
|
200
|
-
<span class="summary_desc"><div class='inline'>
|
201
|
-
|
202
|
-
ppi resolution
|
204
|
+
<span class="summary_desc"><div class='inline'><p>
|
205
|
+
the height of the graphic object in pixels this is converted to EMU at a 92
|
206
|
+
ppi resolution.
|
207
|
+
</p>
|
203
208
|
</div></span>
|
204
209
|
|
205
210
|
</li>
|
@@ -224,8 +229,9 @@ ppi resolution.</p>
|
|
224
229
|
|
225
230
|
|
226
231
|
|
227
|
-
<span class="summary_desc"><div class='inline'>
|
228
|
-
|
232
|
+
<span class="summary_desc"><div class='inline'><p>
|
233
|
+
The object this anchor hosts.
|
234
|
+
</p>
|
229
235
|
</div></span>
|
230
236
|
|
231
237
|
</li>
|
@@ -250,8 +256,9 @@ ppi resolution.</p>
|
|
250
256
|
|
251
257
|
|
252
258
|
|
253
|
-
<span class="summary_desc"><div class='inline'>
|
254
|
-
|
259
|
+
<span class="summary_desc"><div class='inline'><p>
|
260
|
+
the width of the graphic object in pixels.
|
261
|
+
</p>
|
255
262
|
</div></span>
|
256
263
|
|
257
264
|
</li>
|
@@ -286,8 +293,9 @@ ppi resolution.</p>
|
|
286
293
|
|
287
294
|
|
288
295
|
|
289
|
-
<span class="summary_desc"><div class='inline'>
|
290
|
-
|
296
|
+
<span class="summary_desc"><div class='inline'><p>
|
297
|
+
The index of this anchor in the drawing.
|
298
|
+
</p>
|
291
299
|
</div></span>
|
292
300
|
|
293
301
|
</li>
|
@@ -311,8 +319,9 @@ ppi resolution.</p>
|
|
311
319
|
|
312
320
|
|
313
321
|
|
314
|
-
<span class="summary_desc"><div class='inline'>
|
315
|
-
|
322
|
+
<span class="summary_desc"><div class='inline'><p>
|
323
|
+
Creates a new OneCellAnchor object and an Pic associated with it.
|
324
|
+
</p>
|
316
325
|
</div></span>
|
317
326
|
|
318
327
|
</li>
|
@@ -334,8 +343,9 @@ ppi resolution.</p>
|
|
334
343
|
|
335
344
|
|
336
345
|
|
337
|
-
<span class="summary_desc"><div class='inline'>
|
338
|
-
|
346
|
+
<span class="summary_desc"><div class='inline'><p>
|
347
|
+
Serializes the anchor.
|
348
|
+
</p>
|
339
349
|
</div></span>
|
340
350
|
|
341
351
|
</li>
|
@@ -356,8 +366,9 @@ ppi resolution.</p>
|
|
356
366
|
|
357
367
|
</p><div class="docstring">
|
358
368
|
<div class="discussion">
|
359
|
-
|
360
|
-
|
369
|
+
<p>
|
370
|
+
Creates a new OneCellAnchor object and an Pic associated with it.
|
371
|
+
</p>
|
361
372
|
|
362
373
|
|
363
374
|
</div>
|
@@ -389,8 +400,9 @@ ppi resolution.</p>
|
|
389
400
|
|
390
401
|
|
391
402
|
—
|
392
|
-
<div class='inline'>
|
393
|
-
|
403
|
+
<div class='inline'><p>
|
404
|
+
a customizable set of options
|
405
|
+
</p>
|
394
406
|
</div>
|
395
407
|
|
396
408
|
</li>
|
@@ -411,8 +423,9 @@ ppi resolution.</p>
|
|
411
423
|
<span class="default">
|
412
424
|
|
413
425
|
</span>
|
414
|
-
— <div class='inline'>
|
415
|
-
|
426
|
+
— <div class='inline'><p>
|
427
|
+
the col, row to start at
|
428
|
+
</p>
|
416
429
|
</div>
|
417
430
|
</li>
|
418
431
|
|
@@ -440,8 +453,9 @@ ppi resolution.</p>
|
|
440
453
|
<span class="default">
|
441
454
|
|
442
455
|
</span>
|
443
|
-
— <div class='inline'>
|
444
|
-
|
456
|
+
— <div class='inline'><p>
|
457
|
+
the file location of the image you will render
|
458
|
+
</p>
|
445
459
|
</div>
|
446
460
|
</li>
|
447
461
|
|
@@ -451,8 +465,9 @@ ppi resolution.</p>
|
|
451
465
|
<span class="default">
|
452
466
|
|
453
467
|
</span>
|
454
|
-
— <div class='inline'>
|
455
|
-
|
468
|
+
— <div class='inline'><p>
|
469
|
+
the name attribute for the rendered image
|
470
|
+
</p>
|
456
471
|
</div>
|
457
472
|
</li>
|
458
473
|
|
@@ -462,8 +477,9 @@ ppi resolution.</p>
|
|
462
477
|
<span class="default">
|
463
478
|
|
464
479
|
</span>
|
465
|
-
— <div class='inline'>
|
466
|
-
|
480
|
+
— <div class='inline'><p>
|
481
|
+
the description of the image rendered
|
482
|
+
</p>
|
467
483
|
</div>
|
468
484
|
</li>
|
469
485
|
|
@@ -492,17 +508,18 @@ ppi resolution.</p>
|
|
492
508
|
<td>
|
493
509
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 39</span>
|
494
510
|
|
495
|
-
<span class='kw'>def</span> <span class='id
|
496
|
-
<span class='ivar'>@drawing</span> <span class='
|
497
|
-
<span class='ivar'>@width</span> <span class='
|
498
|
-
<span class='ivar'>@height</span> <span class='
|
499
|
-
<span class='id
|
500
|
-
<span class='ivar'>@from</span> <span class='
|
501
|
-
<span class='id
|
502
|
-
<span class='kw'>self</span><span class='
|
503
|
-
<span class='kw'>end</span>
|
504
|
-
<span class='ivar'>@object</span> <span class='
|
505
|
-
<span class='kw'>end</span
|
511
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='drawing identifier id'>drawing</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
512
|
+
<span class='@drawing ivar id'>@drawing</span> <span class='assign token'>=</span> <span class='drawing identifier id'>drawing</span>
|
513
|
+
<span class='@width ivar id'>@width</span> <span class='assign token'>=</span> <span class='integer val'>0</span>
|
514
|
+
<span class='@height ivar id'>@height</span> <span class='assign token'>=</span> <span class='integer val'>0</span>
|
515
|
+
<span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='anchors identifier id'>anchors</span> <span class='lshft op'><<</span> <span class='self self kw'>self</span>
|
516
|
+
<span class='@from ivar id'>@from</span> <span class='assign token'>=</span> <span class='Marker constant id'>Marker</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
517
|
+
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span>
|
518
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='dstring node'>"#{o[0]}="</span>
|
519
|
+
<span class='end end kw'>end</span>
|
520
|
+
<span class='@object ivar id'>@object</span> <span class='assign token'>=</span> <span class='Pic constant id'>Pic</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
521
|
+
<span class='end end kw'>end</span>
|
522
|
+
</pre>
|
506
523
|
</td>
|
507
524
|
</tr>
|
508
525
|
</table>
|
@@ -525,8 +542,9 @@ ppi resolution.</p>
|
|
525
542
|
|
526
543
|
</p><div class="docstring">
|
527
544
|
<div class="discussion">
|
528
|
-
|
529
|
-
|
545
|
+
<p>
|
546
|
+
The drawing that holds this anchor
|
547
|
+
</p>
|
530
548
|
|
531
549
|
|
532
550
|
</div>
|
@@ -560,9 +578,10 @@ ppi resolution.</p>
|
|
560
578
|
<td>
|
561
579
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 18</span>
|
562
580
|
|
563
|
-
<span class='kw'>def</span> <span class='id
|
564
|
-
<span class='ivar'>@drawing</span>
|
565
|
-
<span class='kw'>end</span
|
581
|
+
<span class='def def kw'>def</span> <span class='drawing identifier id'>drawing</span>
|
582
|
+
<span class='@drawing ivar id'>@drawing</span>
|
583
|
+
<span class='end end kw'>end</span>
|
584
|
+
</pre>
|
566
585
|
</td>
|
567
586
|
</tr>
|
568
587
|
</table>
|
@@ -580,9 +599,10 @@ ppi resolution.</p>
|
|
580
599
|
|
581
600
|
</p><div class="docstring">
|
582
601
|
<div class="discussion">
|
583
|
-
|
584
|
-
|
585
|
-
are 0 and 0 respectively
|
602
|
+
<p>
|
603
|
+
A marker that defines the from cell anchor. The default from column and row
|
604
|
+
are 0 and 0 respectively
|
605
|
+
</p>
|
586
606
|
|
587
607
|
|
588
608
|
</div>
|
@@ -616,9 +636,10 @@ are 0 and 0 respectively</p>
|
|
616
636
|
<td>
|
617
637
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 10</span>
|
618
638
|
|
619
|
-
<span class='kw'>def</span> <span class='id
|
620
|
-
<span class='ivar'>@from</span>
|
621
|
-
<span class='kw'>end</span
|
639
|
+
<span class='def def kw'>def</span> <span class='from identifier id'>from</span>
|
640
|
+
<span class='@from ivar id'>@from</span>
|
641
|
+
<span class='end end kw'>end</span>
|
642
|
+
</pre>
|
622
643
|
</td>
|
623
644
|
</tr>
|
624
645
|
</table>
|
@@ -636,9 +657,10 @@ are 0 and 0 respectively</p>
|
|
636
657
|
|
637
658
|
</p><div class="docstring">
|
638
659
|
<div class="discussion">
|
639
|
-
|
640
|
-
|
641
|
-
ppi resolution
|
660
|
+
<p>
|
661
|
+
the height of the graphic object in pixels this is converted to EMU at a 92
|
662
|
+
ppi resolution
|
663
|
+
</p>
|
642
664
|
|
643
665
|
|
644
666
|
</div>
|
@@ -672,9 +694,10 @@ ppi resolution</p>
|
|
672
694
|
<td>
|
673
695
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 28</span>
|
674
696
|
|
675
|
-
<span class='kw'>def</span> <span class='id
|
676
|
-
<span class='ivar'>@height</span>
|
677
|
-
<span class='kw'>end</span
|
697
|
+
<span class='def def kw'>def</span> <span class='height identifier id'>height</span>
|
698
|
+
<span class='@height ivar id'>@height</span>
|
699
|
+
<span class='end end kw'>end</span>
|
700
|
+
</pre>
|
678
701
|
</td>
|
679
702
|
</tr>
|
680
703
|
</table>
|
@@ -692,8 +715,9 @@ ppi resolution</p>
|
|
692
715
|
|
693
716
|
</p><div class="docstring">
|
694
717
|
<div class="discussion">
|
695
|
-
|
696
|
-
|
718
|
+
<p>
|
719
|
+
The object this anchor hosts
|
720
|
+
</p>
|
697
721
|
|
698
722
|
|
699
723
|
</div>
|
@@ -727,9 +751,10 @@ ppi resolution</p>
|
|
727
751
|
<td>
|
728
752
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 14</span>
|
729
753
|
|
730
|
-
<span class='kw'>def</span> <span class='id
|
731
|
-
<span class='ivar'>@object</span>
|
732
|
-
<span class='kw'>end</span
|
754
|
+
<span class='def def kw'>def</span> <span class='object identifier id'>object</span>
|
755
|
+
<span class='@object ivar id'>@object</span>
|
756
|
+
<span class='end end kw'>end</span>
|
757
|
+
</pre>
|
733
758
|
</td>
|
734
759
|
</tr>
|
735
760
|
</table>
|
@@ -747,9 +772,10 @@ ppi resolution</p>
|
|
747
772
|
|
748
773
|
</p><div class="docstring">
|
749
774
|
<div class="discussion">
|
750
|
-
|
751
|
-
|
752
|
-
ppi resolution
|
775
|
+
<p>
|
776
|
+
the width of the graphic object in pixels. this is converted to EMU at a 92
|
777
|
+
ppi resolution
|
778
|
+
</p>
|
753
779
|
|
754
780
|
|
755
781
|
</div>
|
@@ -783,9 +809,10 @@ ppi resolution</p>
|
|
783
809
|
<td>
|
784
810
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 23</span>
|
785
811
|
|
786
|
-
<span class='kw'>def</span> <span class='id
|
787
|
-
<span class='ivar'>@width</span>
|
788
|
-
<span class='kw'>end</span
|
812
|
+
<span class='def def kw'>def</span> <span class='width identifier id'>width</span>
|
813
|
+
<span class='@width ivar id'>@width</span>
|
814
|
+
<span class='end end kw'>end</span>
|
815
|
+
</pre>
|
789
816
|
</td>
|
790
817
|
</tr>
|
791
818
|
</table>
|
@@ -807,8 +834,9 @@ ppi resolution</p>
|
|
807
834
|
|
808
835
|
</p><div class="docstring">
|
809
836
|
<div class="discussion">
|
810
|
-
|
811
|
-
|
837
|
+
<p>
|
838
|
+
The index of this anchor in the drawing
|
839
|
+
</p>
|
812
840
|
|
813
841
|
|
814
842
|
</div>
|
@@ -842,9 +870,10 @@ ppi resolution</p>
|
|
842
870
|
<td>
|
843
871
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 59</span>
|
844
872
|
|
845
|
-
<span class='kw'>def</span> <span class='id
|
846
|
-
<span class='ivar'>@drawing</span><span class='
|
847
|
-
<span class='kw'>end</span
|
873
|
+
<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
|
874
|
+
<span class='@drawing ivar id'>@drawing</span><span class='dot token'>.</span><span class='anchors identifier id'>anchors</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
|
875
|
+
<span class='end end kw'>end</span>
|
876
|
+
</pre>
|
848
877
|
</td>
|
849
878
|
</tr>
|
850
879
|
</table>
|
@@ -859,8 +888,9 @@ ppi resolution</p>
|
|
859
888
|
|
860
889
|
</p><div class="docstring">
|
861
890
|
<div class="discussion">
|
862
|
-
|
863
|
-
|
891
|
+
<p>
|
892
|
+
Serializes the anchor
|
893
|
+
</p>
|
864
894
|
|
865
895
|
|
866
896
|
</div>
|
@@ -879,8 +909,9 @@ ppi resolution</p>
|
|
879
909
|
|
880
910
|
|
881
911
|
—
|
882
|
-
<div class='inline'>
|
883
|
-
|
912
|
+
<div class='inline'><p>
|
913
|
+
The document builder instance this objects xml will be added to.
|
914
|
+
</p>
|
884
915
|
</div>
|
885
916
|
|
886
917
|
</li>
|
@@ -921,16 +952,17 @@ ppi resolution</p>
|
|
921
952
|
<td>
|
922
953
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 66</span>
|
923
954
|
|
924
|
-
<span class='kw'>def</span> <span class='id
|
925
|
-
<span class='id
|
926
|
-
<span class='id
|
927
|
-
<span class='id
|
928
|
-
<span class='rbrace'>}</span>
|
929
|
-
<span class='id
|
930
|
-
<span class='ivar'>@object</span><span class='
|
931
|
-
<span class='id
|
932
|
-
<span class='rbrace'>}</span>
|
933
|
-
<span class='kw'>end</span
|
955
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
956
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:oneCellAnchor'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
957
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:from'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
958
|
+
<span class='from identifier id'>from</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
959
|
+
<span class='rbrace token'>}</span>
|
960
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:ext'</span><span class='comma token'>,</span> <span class='ext identifier id'>ext</span><span class='rparen token'>)</span>
|
961
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
962
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:clientData'</span><span class='rparen token'>)</span>
|
963
|
+
<span class='rbrace token'>}</span>
|
964
|
+
<span class='end end kw'>end</span>
|
965
|
+
</pre>
|
934
966
|
</td>
|
935
967
|
</tr>
|
936
968
|
</table>
|
@@ -941,9 +973,9 @@ ppi resolution</p>
|
|
941
973
|
</div>
|
942
974
|
|
943
975
|
<div id="footer">
|
944
|
-
Generated on
|
976
|
+
Generated on Sun Nov 27 21:54:13 2011 by
|
945
977
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
946
|
-
0.7.3 (ruby-1.
|
978
|
+
0.7.3 (ruby-1.8.7).
|
947
979
|
</div>
|
948
980
|
|
949
981
|
</body>
|