axlsx 1.0.9 → 1.0.10a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/Gemfile +3 -0
  2. data/Gemfile.lock +24 -0
  3. data/README.md +86 -1
  4. data/axlsx.gemspec +6 -10
  5. data/doc/Axlsx.html +557 -360
  6. data/doc/Axlsx/App.html +347 -244
  7. data/doc/Axlsx/Ar.html +200 -0
  8. data/doc/Axlsx/Ar/ClassMethods.html +192 -0
  9. data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
  10. data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
  11. data/doc/Axlsx/Axis.html +131 -98
  12. data/doc/Axlsx/Bar3DChart.html +138 -106
  13. data/doc/Axlsx/BarSeries.html +73 -54
  14. data/doc/Axlsx/Border.html +114 -87
  15. data/doc/Axlsx/BorderPr.html +107 -82
  16. data/doc/Axlsx/CatAxis.html +93 -68
  17. data/doc/Axlsx/CatAxisData.html +47 -38
  18. data/doc/Axlsx/Cell.html +642 -148
  19. data/doc/Axlsx/CellAlignment.html +152 -111
  20. data/doc/Axlsx/CellProtection.html +63 -45
  21. data/doc/Axlsx/CellStyle.html +101 -73
  22. data/doc/Axlsx/Chart.html +238 -179
  23. data/doc/Axlsx/Color.html +75 -53
  24. data/doc/Axlsx/ContentType.html +34 -26
  25. data/doc/Axlsx/Core.html +54 -42
  26. data/doc/Axlsx/DataTypeValidator.html +39 -30
  27. data/doc/Axlsx/Default.html +59 -43
  28. data/doc/Axlsx/Drawing.html +176 -128
  29. data/doc/Axlsx/Fill.html +46 -33
  30. data/doc/Axlsx/Font.html +197 -147
  31. data/doc/Axlsx/GradientFill.html +114 -82
  32. data/doc/Axlsx/GradientStop.html +47 -33
  33. data/doc/Axlsx/GraphicFrame.html +78 -60
  34. data/doc/Axlsx/Line3DChart.html +125 -97
  35. data/doc/Axlsx/LineSeries.html +60 -44
  36. data/doc/Axlsx/Marker.html +98 -71
  37. data/doc/Axlsx/NumFmt.html +99 -80
  38. data/doc/Axlsx/OneCellAnchor.html +126 -94
  39. data/doc/Axlsx/Override.html +59 -43
  40. data/doc/Axlsx/Package.html +269 -134
  41. data/doc/Axlsx/PatternFill.html +93 -72
  42. data/doc/Axlsx/Pic.html +202 -152
  43. data/doc/Axlsx/Pie3DChart.html +39 -30
  44. data/doc/Axlsx/PieSeries.html +72 -53
  45. data/doc/Axlsx/RegexValidator.html +19 -14
  46. data/doc/Axlsx/Relationship.html +60 -43
  47. data/doc/Axlsx/Relationships.html +34 -26
  48. data/doc/Axlsx/RestrictionValidator.html +31 -22
  49. data/doc/Axlsx/Row.html +241 -67
  50. data/doc/Axlsx/Scaling.html +80 -59
  51. data/doc/Axlsx/SerAxis.html +71 -51
  52. data/doc/Axlsx/Series.html +179 -51
  53. data/doc/Axlsx/SeriesTitle.html +29 -24
  54. data/doc/Axlsx/Styles.html +354 -285
  55. data/doc/Axlsx/TableStyle.html +74 -54
  56. data/doc/Axlsx/TableStyleElement.html +99 -79
  57. data/doc/Axlsx/TableStyles.html +65 -47
  58. data/doc/Axlsx/Title.html +66 -51
  59. data/doc/Axlsx/TwoCellAnchor.html +129 -96
  60. data/doc/Axlsx/ValAxis.html +52 -38
  61. data/doc/Axlsx/ValAxisData.html +32 -27
  62. data/doc/Axlsx/View3D.html +111 -80
  63. data/doc/Axlsx/Workbook.html +333 -272
  64. data/doc/Axlsx/Worksheet.html +1018 -266
  65. data/doc/Axlsx/Xf.html +188 -134
  66. data/doc/_index.html +44 -8
  67. data/doc/class_list.html +1 -1
  68. data/doc/file.LICENSE.html +28 -23
  69. data/doc/file.README.html +180 -91
  70. data/doc/index.html +180 -91
  71. data/doc/method_list.html +541 -421
  72. data/doc/top-level-namespace.html +2 -2
  73. data/examples/example.rb +70 -13
  74. data/lib/axlsx.rb +1 -0
  75. data/lib/axlsx/ar.rb +72 -0
  76. data/lib/axlsx/package.rb +8 -1
  77. data/lib/axlsx/util/simple_typed_list.rb +5 -0
  78. data/lib/axlsx/version.rb +1 -1
  79. data/lib/axlsx/workbook/workbook.rb +4 -2
  80. data/lib/axlsx/workbook/worksheet/row.rb +15 -0
  81. data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
  82. data/test/workbook/worksheet/tc_row.rb +6 -0
  83. data/test/workbook/worksheet/tc_worksheet.rb +36 -0
  84. metadata +103 -59
@@ -97,14 +97,16 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'>
101
- <p>The recommended way to manage styles is Styles#add_style</p>
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
- <p>A NumFmt object defines an identifier and formatting code for data in
107
- cells.</p>
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
- <p>The formatting to use for this number format.</p>
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
- <p>An unsinged integer referencing a standard or custom number format.</p>
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
- <p>A new instance of NumFmt.</p>
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
- <p>Creates a numFmt element applying the instance values of this object as
228
- attributes.</p>
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
- <p>A new instance of NumFmt</p>
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 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'>&quot;</span><span class='tstring_end'>&quot;</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'>&quot;</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'>&quot;</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>
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'>&quot;&quot;</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'>&quot;#{o[0]}=&quot;</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
- <p>The formatting to use for this number format.</p>
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
  &mdash;
323
- <div class='inline'>
324
- <p>The formatting to use for this number format.</p>
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 formatCode'>formatCode</span>
352
- <span class='ivar'>@formatCode</span>
353
- <span class='kw'>end</span></pre>
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
- <p>These are the known formats I can dig up. The constant NUM_FMT_PERCENT is
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.</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>
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
- <p>An unsinged integer referencing a standard or custom number format.</p>
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
  &mdash;
433
- <div class='inline'>
434
- <p>An unsinged integer referencing a standard or custom number format.</p>
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 numFmtId'>numFmtId</span>
462
- <span class='ivar'>@numFmtId</span>
463
- <span class='kw'>end</span></pre>
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
- <p>Creates a numFmt element applying the instance values of this object as
487
- attributes.</p>
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
  &mdash;
506
- <div class='inline'>
507
- <p>The document builder instance this objects xml will be added to.</p>
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 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>
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 Sat Nov 26 13:16:38 2011 by
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.9.3).
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
- <p>The recommended way to manage drawings, images and charts is
102
- Worksheet#add_chart or Worksheet#add_image.</p>
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
- <p>This class details a single cell anchor for drawings.</p>
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
- <p>The drawing that holds this anchor.</p>
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
- <p>A marker that defines the from cell anchor.</p>
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
- <p>the height of the graphic object in pixels this is converted to EMU at a 92
202
- ppi resolution.</p>
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
- <p>The object this anchor hosts.</p>
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
- <p>the width of the graphic object in pixels.</p>
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
- <p>The index of this anchor in the drawing.</p>
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
- <p>Creates a new OneCellAnchor object and an Pic associated with it.</p>
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
- <p>Serializes the anchor.</p>
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
- <p>Creates a new OneCellAnchor object and an Pic associated with it.</p>
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
  &mdash;
392
- <div class='inline'>
393
- <p>a customizable set of options</p>
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
- &mdash; <div class='inline'>
415
- <p>the col, row to start at</p>
426
+ &mdash; <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
- &mdash; <div class='inline'>
444
- <p>the file location of the image you will render</p>
456
+ &mdash; <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
- &mdash; <div class='inline'>
455
- <p>the name attribute for the rendered image</p>
468
+ &mdash; <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
- &mdash; <div class='inline'>
466
- <p>the description of the image rendered</p>
480
+ &mdash; <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 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'>&lt;&lt;</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'>&quot;</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'>&quot;</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'>&quot;</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'>&quot;</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>
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'>&lt;&lt;</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'>&quot;#{o[0]}=&quot;</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'>&quot;#{o[0]}=&quot;</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
- <p>The drawing that holds this anchor</p>
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 drawing'>drawing</span>
564
- <span class='ivar'>@drawing</span>
565
- <span class='kw'>end</span></pre>
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
- <p>A marker that defines the from cell anchor. The default from column and row
585
- are 0 and 0 respectively</p>
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 from'>from</span>
620
- <span class='ivar'>@from</span>
621
- <span class='kw'>end</span></pre>
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
- <p>the height of the graphic object in pixels this is converted to EMU at a 92
641
- ppi resolution</p>
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 height'>height</span>
676
- <span class='ivar'>@height</span>
677
- <span class='kw'>end</span></pre>
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
- <p>The object this anchor hosts</p>
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 object'>object</span>
731
- <span class='ivar'>@object</span>
732
- <span class='kw'>end</span></pre>
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
- <p>the width of the graphic object in pixels. this is converted to EMU at a 92
752
- ppi resolution</p>
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 width'>width</span>
787
- <span class='ivar'>@width</span>
788
- <span class='kw'>end</span></pre>
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
- <p>The index of this anchor in the drawing</p>
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 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>
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
- <p>Serializes the anchor</p>
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
  &mdash;
882
- <div class='inline'>
883
- <p>The document builder instance this objects xml will be added to.</p>
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 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>
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 Sat Nov 26 13:16:39 2011 by
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.9.3).
978
+ 0.7.3 (ruby-1.8.7).
947
979
  </div>
948
980
 
949
981
  </body>