axlsx 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/README.md +22 -21
  3. data/Rakefile +1 -1
  4. data/axlsx.gemspec +36 -0
  5. data/doc/Axlsx.html +373 -559
  6. data/doc/Axlsx/App.html +257 -360
  7. data/doc/Axlsx/Axis.html +113 -144
  8. data/doc/Axlsx/Bar3DChart.html +122 -152
  9. data/doc/Axlsx/BarSeries.html +67 -81
  10. data/doc/Axlsx/Border.html +96 -119
  11. data/doc/Axlsx/BorderPr.html +89 -114
  12. data/doc/Axlsx/CatAxis.html +79 -104
  13. data/doc/Axlsx/CatAxisData.html +40 -54
  14. data/doc/Axlsx/Cell.html +193 -679
  15. data/doc/Axlsx/CellAlignment.html +116 -157
  16. data/doc/Axlsx/CellProtection.html +50 -68
  17. data/doc/Axlsx/CellStyle.html +78 -106
  18. data/doc/Axlsx/Chart.html +361 -432
  19. data/doc/Axlsx/Color.html +56 -78
  20. data/doc/Axlsx/ContentType.html +28 -41
  21. data/doc/Axlsx/Core.html +43 -55
  22. data/doc/Axlsx/DataTypeValidator.html +34 -43
  23. data/doc/Axlsx/Default.html +55 -81
  24. data/doc/Axlsx/Drawing.html +322 -412
  25. data/doc/Axlsx/Fill.html +34 -47
  26. data/doc/Axlsx/Font.html +157 -207
  27. data/doc/Axlsx/GradientFill.html +90 -122
  28. data/doc/Axlsx/GradientStop.html +36 -50
  29. data/doc/Axlsx/GraphicFrame.html +106 -130
  30. data/doc/Axlsx/Line3DChart.html +108 -134
  31. data/doc/Axlsx/LineSeries.html +58 -67
  32. data/doc/Axlsx/Marker.html +84 -111
  33. data/doc/Axlsx/NumFmt.html +83 -102
  34. data/doc/Axlsx/OneCellAnchor.html +158 -196
  35. data/doc/Axlsx/Override.html +60 -92
  36. data/doc/Axlsx/Package.html +190 -759
  37. data/doc/Axlsx/PatternFill.html +78 -99
  38. data/doc/Axlsx/Pic.html +451 -405
  39. data/doc/Axlsx/Pie3DChart.html +33 -42
  40. data/doc/Axlsx/PieSeries.html +68 -80
  41. data/doc/Axlsx/RegexValidator.html +15 -20
  42. data/doc/Axlsx/Relationship.html +49 -66
  43. data/doc/Axlsx/Relationships.html +28 -41
  44. data/doc/Axlsx/RestrictionValidator.html +23 -32
  45. data/doc/Axlsx/Row.html +132 -161
  46. data/doc/Axlsx/Scaling.html +71 -90
  47. data/doc/Axlsx/SerAxis.html +61 -79
  48. data/doc/Axlsx/Series.html +125 -201
  49. data/doc/Axlsx/SeriesTitle.html +26 -31
  50. data/doc/Axlsx/Styles.html +286 -355
  51. data/doc/Axlsx/TableStyle.html +62 -87
  52. data/doc/Axlsx/TableStyleElement.html +84 -104
  53. data/doc/Axlsx/TableStyles.html +59 -82
  54. data/doc/Axlsx/Title.html +58 -155
  55. data/doc/Axlsx/TwoCellAnchor.html +165 -204
  56. data/doc/Axlsx/ValAxis.html +39 -53
  57. data/doc/Axlsx/ValAxisData.html +29 -39
  58. data/doc/Axlsx/View3D.html +93 -122
  59. data/doc/Axlsx/Workbook.html +359 -362
  60. data/doc/Axlsx/Worksheet.html +471 -816
  61. data/doc/Axlsx/Xf.html +341 -296
  62. data/doc/_index.html +7 -11
  63. data/doc/class_list.html +1 -1
  64. data/doc/file.LICENSE.html +86 -0
  65. data/doc/file.README.html +105 -107
  66. data/doc/file_list.html +3 -0
  67. data/doc/frames.html +1 -1
  68. data/doc/index.html +105 -107
  69. data/doc/method_list.html +426 -602
  70. data/doc/top-level-namespace.html +3 -3
  71. data/examples/example.rb +20 -1
  72. data/lib/axlsx.rb +20 -15
  73. data/lib/axlsx/content_type/default.rb +8 -3
  74. data/lib/axlsx/content_type/override.rb +11 -4
  75. data/lib/axlsx/doc_props/app.rb +53 -23
  76. data/lib/axlsx/drawing/axis.rb +16 -5
  77. data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
  78. data/lib/axlsx/drawing/bar_series.rb +7 -5
  79. data/lib/axlsx/drawing/cat_axis.rb +10 -3
  80. data/lib/axlsx/drawing/chart.rb +21 -15
  81. data/lib/axlsx/drawing/drawing.rb +16 -30
  82. data/lib/axlsx/drawing/graphic_frame.rb +2 -4
  83. data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
  84. data/lib/axlsx/drawing/line_series.rb +6 -5
  85. data/lib/axlsx/drawing/marker.rb +9 -5
  86. data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
  87. data/lib/axlsx/drawing/pic.rb +29 -37
  88. data/lib/axlsx/drawing/pie_series.rb +7 -5
  89. data/lib/axlsx/drawing/scaling.rb +11 -5
  90. data/lib/axlsx/drawing/ser_axis.rb +6 -2
  91. data/lib/axlsx/drawing/series.rb +11 -11
  92. data/lib/axlsx/drawing/series_title.rb +1 -1
  93. data/lib/axlsx/drawing/title.rb +5 -12
  94. data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
  95. data/lib/axlsx/drawing/val_axis.rb +2 -2
  96. data/lib/axlsx/drawing/view_3D.rb +16 -9
  97. data/lib/axlsx/package.rb +25 -27
  98. data/lib/axlsx/rels/relationship.rb +4 -2
  99. data/lib/axlsx/stylesheet/border.rb +9 -4
  100. data/lib/axlsx/stylesheet/border_pr.rb +7 -4
  101. data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
  102. data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
  103. data/lib/axlsx/stylesheet/cell_style.rb +12 -7
  104. data/lib/axlsx/stylesheet/color.rb +8 -6
  105. data/lib/axlsx/stylesheet/fill.rb +2 -1
  106. data/lib/axlsx/stylesheet/font.rb +24 -13
  107. data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
  108. data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
  109. data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
  110. data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
  111. data/lib/axlsx/stylesheet/styles.rb +12 -12
  112. data/lib/axlsx/stylesheet/table_style.rb +6 -3
  113. data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
  114. data/lib/axlsx/stylesheet/table_styles.rb +4 -4
  115. data/lib/axlsx/stylesheet/xf.rb +52 -31
  116. data/lib/axlsx/util/validators.rb +3 -3
  117. data/lib/axlsx/version.rb +1 -1
  118. data/lib/axlsx/workbook/workbook.rb +8 -9
  119. data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
  120. data/lib/axlsx/workbook/worksheet/row.rb +2 -4
  121. data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
  122. data/test/drawing/tc_one_cell_anchor.rb +1 -1
  123. metadata +135 -165
  124. data/doc/Axlsx/SimpleTypedList.html +0 -1686
  125. data/lib/schema/dc.xsd~ +0 -118
  126. data/lib/schema/dcterms.xsd~ +0 -331
  127. data/lib/schema/opc-coreProperties.xsd~ +0 -50
  128. data/test/drawing/tc_line_series.tc~ +0 -34
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::NumFmt
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; 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'><p>
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
- <p>
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'><p>
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'><p>
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'><p>
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'><p>
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
- <p>
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='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>
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>
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
- <p>
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
  &mdash;
332
- <div class='inline'><p>
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='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>
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'><p>
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
- </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>
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
- <p>
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
  &mdash;
447
- <div class='inline'><p>
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='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>
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
- <p>
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
  &mdash;
523
- <div class='inline'><p>
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
- 58</pre>
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 58</span>
524
+ <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/num_fmt.rb', line 60</span>
543
525
 
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>
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 Wed Nov 23 21:47:46 2011 by
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.8.7).
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
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; 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'><p>
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
- <p>
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'><p>
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'><p>
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'><p>
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="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
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'><p>
233
- The index of this anchor in the drawing.
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="#object-instance_method" title="#object (instance method)">- (Pic) <strong>object</strong> </a>
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
- <span class="note title readonly">readonly</span>
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'><p>
260
- The object this anchor hosts.
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
- <li class="public ">
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="#width-instance_method" title="#width (instance method)">- (Integer) <strong>width</strong> </a>
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'><p>
287
- the width of the graphic object in pixels.
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'><p>
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'><p>
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
- <p>
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
  &mdash;
406
- <div class='inline'><p>
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
- &mdash; <div class='inline'><p>
430
- the col, row to start at
431
- </p>
414
+ &mdash; <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
- &mdash; <div class='inline'><p>
460
- the file location of the image you will render
461
- </p>
443
+ &mdash; <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
- &mdash; <div class='inline'><p>
472
- the name attribute for the rendered image
473
- </p>
454
+ &mdash; <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
- &mdash; <div class='inline'><p>
484
- the description of the image rendered
485
- </p>
465
+ &mdash; <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 44</span>
513
-
514
- <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>
515
- <span class='@drawing ivar id'>@drawing</span> <span class='assign token'>=</span> <span class='drawing identifier id'>drawing</span>
516
- <span class='@width ivar id'>@width</span> <span class='assign token'>=</span> <span class='integer val'>0</span>
517
- <span class='@height ivar id'>@height</span> <span class='assign token'>=</span> <span class='integer val'>0</span>
518
- <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>
519
- <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>
520
- <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>
521
- <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>
522
- <span class='end end kw'>end</span>
523
- <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>
524
- <span class='end end kw'>end</span>
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'>&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>
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
- <p>
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='def def kw'>def</span> <span class='drawing identifier id'>drawing</span>
585
- <span class='@drawing ivar id'>@drawing</span>
586
- <span class='end end kw'>end</span>
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
- <p>
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='def def kw'>def</span> <span class='from identifier id'>from</span>
643
- <span class='@from ivar id'>@from</span>
644
- <span class='end end kw'>end</span>
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
- <p>
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
- 33
694
- 34
695
- 35</pre>
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 33</span>
673
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 28</span>
699
674
 
700
- <span class='def def kw'>def</span> <span class='height identifier id'>height</span>
701
- <span class='@height ivar id'>@height</span>
702
- <span class='end end kw'>end</span>
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="index-instance_method"></span>
685
+ <span id="object-instance_method"></span>
712
686
  <div class="method_details ">
713
- <p class="signature " id="index-instance_method">
687
+ <p class="signature " id="object-instance_method">
714
688
 
715
- - (<tt>Integer</tt>) <strong>index</strong> <span class="extras">(readonly)</span>
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
- <p>
722
- The index of this anchor in the drawing
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>Integer</tt>)</span>
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
- 22
751
- 23
752
- 24</pre>
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 22</span>
728
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 14</span>
756
729
 
757
- <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
758
- <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>
759
- <span class='end end kw'>end</span>
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="object-instance_method"></span>
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="object-instance_method">
742
+ <p class="signature " id="width-instance_method">
771
743
 
772
- - (<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>
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
- <p>
779
- The object this anchor hosts
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><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>)</span>
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
- 14
808
- 15
809
- 16</pre>
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 14</span>
784
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 23</span>
813
785
 
814
- <span class='def def kw'>def</span> <span class='object identifier id'>object</span>
815
- <span class='@object ivar id'>@object</span>
816
- <span class='end end kw'>end</span>
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
- <span id="width=-instance_method"></span>
825
- <span id="width-instance_method"></span>
826
- <div class="method_details ">
827
- <p class="signature " id="width-instance_method">
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>width</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
- <p>
836
- the width of the graphic object in pixels. this is converted to EMU at a 92
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
- 28
866
- 29
867
- 30</pre>
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 28</span>
843
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 59</span>
871
844
 
872
- <span class='def def kw'>def</span> <span class='width identifier id'>width</span>
873
- <span class='@width ivar id'>@width</span>
874
- <span class='end end kw'>end</span>
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
- </div>
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
- <p>
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
  &mdash;
918
- <div class='inline'><p>
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='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>
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:oneCellAnchor'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
963
- <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>
964
- <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>
965
- <span class='rbrace token'>}</span>
966
- <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>
967
- <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>
968
- <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>
969
- <span class='rbrace token'>}</span>
970
- <span class='end end kw'>end</span>
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 Wed Nov 23 21:47:48 2011 by
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.8.7).
946
+ 0.7.3 (ruby-1.9.3).
985
947
  </div>
986
948
 
987
949
  </body>