axlsx 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. data/README.md +21 -3
  2. data/doc/Axlsx.html +150 -6
  3. data/doc/Axlsx/App.html +1 -1
  4. data/doc/Axlsx/Axis.html +1 -1
  5. data/doc/Axlsx/Bar3DChart.html +1 -1
  6. data/doc/Axlsx/BarSeries.html +1 -1
  7. data/doc/Axlsx/Border.html +1 -1
  8. data/doc/Axlsx/BorderPr.html +1 -1
  9. data/doc/Axlsx/CatAxis.html +1 -1
  10. data/doc/Axlsx/CatAxisData.html +7 -5
  11. data/doc/Axlsx/Cell.html +1 -1
  12. data/doc/Axlsx/CellAlignment.html +1 -1
  13. data/doc/Axlsx/CellProtection.html +1 -1
  14. data/doc/Axlsx/CellStyle.html +1 -1
  15. data/doc/Axlsx/Chart.html +16 -16
  16. data/doc/Axlsx/Color.html +1 -1
  17. data/doc/Axlsx/ContentType.html +1 -1
  18. data/doc/Axlsx/Core.html +1 -1
  19. data/doc/Axlsx/DataTypeValidator.html +1 -1
  20. data/doc/Axlsx/Default.html +1 -1
  21. data/doc/Axlsx/Drawing.html +243 -65
  22. data/doc/Axlsx/Fill.html +1 -1
  23. data/doc/Axlsx/Font.html +1 -1
  24. data/doc/Axlsx/GradientFill.html +1 -1
  25. data/doc/Axlsx/GradientStop.html +1 -1
  26. data/doc/Axlsx/GraphicFrame.html +21 -21
  27. data/doc/Axlsx/Line3DChart.html +1 -1
  28. data/doc/Axlsx/LineSeries.html +6 -8
  29. data/doc/Axlsx/Marker.html +1 -1
  30. data/doc/Axlsx/NumFmt.html +1 -1
  31. data/doc/Axlsx/OneCellAnchor.html +988 -0
  32. data/doc/Axlsx/Override.html +1 -1
  33. data/doc/Axlsx/Package.html +127 -75
  34. data/doc/Axlsx/PatternFill.html +1 -1
  35. data/doc/Axlsx/Pic.html +1532 -0
  36. data/doc/Axlsx/Pie3DChart.html +5 -7
  37. data/doc/Axlsx/PieSeries.html +1 -1
  38. data/doc/Axlsx/RegexValidator.html +1 -1
  39. data/doc/Axlsx/Relationship.html +6 -6
  40. data/doc/Axlsx/Relationships.html +1 -1
  41. data/doc/Axlsx/RestrictionValidator.html +1 -1
  42. data/doc/Axlsx/Row.html +1 -1
  43. data/doc/Axlsx/Scaling.html +1 -1
  44. data/doc/Axlsx/SerAxis.html +1 -1
  45. data/doc/Axlsx/Series.html +1 -1
  46. data/doc/Axlsx/SeriesTitle.html +1 -1
  47. data/doc/Axlsx/SimpleTypedList.html +1 -1
  48. data/doc/Axlsx/Styles.html +1 -1
  49. data/doc/Axlsx/TableStyle.html +1 -1
  50. data/doc/Axlsx/TableStyleElement.html +1 -1
  51. data/doc/Axlsx/TableStyles.html +1 -1
  52. data/doc/Axlsx/Title.html +1 -1
  53. data/doc/Axlsx/TwoCellAnchor.html +165 -61
  54. data/doc/Axlsx/ValAxis.html +1 -1
  55. data/doc/Axlsx/ValAxisData.html +1 -1
  56. data/doc/Axlsx/View3D.html +1 -1
  57. data/doc/Axlsx/Workbook.html +151 -47
  58. data/doc/Axlsx/Worksheet.html +172 -35
  59. data/doc/Axlsx/Xf.html +1 -1
  60. data/doc/_index.html +15 -1
  61. data/doc/class_list.html +1 -1
  62. data/doc/file.README.html +29 -4
  63. data/doc/index.html +29 -4
  64. data/doc/method_list.html +571 -363
  65. data/doc/top-level-namespace.html +1 -1
  66. data/examples/example.rb +13 -0
  67. data/examples/image1.gif +0 -0
  68. data/examples/image1.jpeg +0 -0
  69. data/examples/image1.jpg +0 -0
  70. data/examples/image1.png +0 -0
  71. data/lib/axlsx/drawing/bar_series.rb +0 -1
  72. data/lib/axlsx/drawing/cat_axis_data.rb +1 -0
  73. data/lib/axlsx/drawing/chart.rb +0 -1
  74. data/lib/axlsx/drawing/drawing.rb +31 -7
  75. data/lib/axlsx/drawing/graphic_frame.rb +0 -2
  76. data/lib/axlsx/drawing/line_series.rb +0 -1
  77. data/lib/axlsx/drawing/one_cell_anchor.rb +89 -0
  78. data/lib/axlsx/drawing/pic.rb +158 -0
  79. data/lib/axlsx/drawing/pie_3D_chart.rb +0 -1
  80. data/lib/axlsx/drawing/two_cell_anchor.rb +17 -4
  81. data/lib/axlsx/package.rb +31 -5
  82. data/lib/axlsx/rels/relationship.rb +1 -2
  83. data/lib/axlsx/util/constants.rb +24 -0
  84. data/lib/axlsx/util/validators.rb +2 -2
  85. data/lib/axlsx/version.rb +1 -1
  86. data/lib/axlsx/workbook/workbook.rb +8 -0
  87. data/lib/axlsx/workbook/worksheet/worksheet.rb +10 -1
  88. data/test/drawing/tc_drawing.rb +10 -1
  89. data/test/drawing/tc_one_cell_anchor.rb +67 -0
  90. data/test/drawing/tc_pic.rb +71 -0
  91. data/test/tc_package.rb +0 -2
  92. metadata +13 -118
  93. data/examples/#example.rb# +0 -87
  94. data/examples/example.rb~ +0 -79
  95. data/examples/multi_chart.xlsx +0 -0
  96. data/lib/axlsx.rb~ +0 -67
  97. data/lib/axlsx/content_type/content_type.rb~ +0 -20
  98. data/lib/axlsx/content_type/default.rb~ +0 -32
  99. data/lib/axlsx/content_type/override.rb~ +0 -30
  100. data/lib/axlsx/doc_props/app.rb~ +0 -127
  101. data/lib/axlsx/doc_props/core.rb~ +0 -25
  102. data/lib/axlsx/drawing/#bar_series.rb# +0 -62
  103. data/lib/axlsx/drawing/axis.rb~ +0 -0
  104. data/lib/axlsx/drawing/bar_3D_chart.rb~ +0 -64
  105. data/lib/axlsx/drawing/bar_series.rb~ +0 -92
  106. data/lib/axlsx/drawing/cat_axis.rb~ +0 -32
  107. data/lib/axlsx/drawing/cat_axis_data.rb~ +0 -28
  108. data/lib/axlsx/drawing/chart.rb~ +0 -0
  109. data/lib/axlsx/drawing/drawing.rb~ +0 -102
  110. data/lib/axlsx/drawing/graphic_frame.rb~ +0 -40
  111. data/lib/axlsx/drawing/line_3D_chart.rb~ +0 -138
  112. data/lib/axlsx/drawing/line_series.rb~ +0 -91
  113. data/lib/axlsx/drawing/marker.rb~ +0 -50
  114. data/lib/axlsx/drawing/pie_3D_chart.rb~ +0 -132
  115. data/lib/axlsx/drawing/pie_series.rb~ +0 -0
  116. data/lib/axlsx/drawing/scaling.rb~ +0 -0
  117. data/lib/axlsx/drawing/ser_axis.rb~ +0 -48
  118. data/lib/axlsx/drawing/series.rb~ +0 -114
  119. data/lib/axlsx/drawing/series_title.rb~ +0 -18
  120. data/lib/axlsx/drawing/title.rb~ +0 -69
  121. data/lib/axlsx/drawing/two_cell_anchor.rb~ +0 -70
  122. data/lib/axlsx/drawing/val_axis.rb~ +0 -34
  123. data/lib/axlsx/drawing/val_axis_data.rb~ +0 -29
  124. data/lib/axlsx/drawing/view_3D.rb~ +0 -21
  125. data/lib/axlsx/package.rb~ +0 -181
  126. data/lib/axlsx/rels/relationship.rb~ +0 -18
  127. data/lib/axlsx/rels/relationships.rb~ +0 -23
  128. data/lib/axlsx/stylesheet/border.rb~ +0 -24
  129. data/lib/axlsx/stylesheet/border_pr.rb~ +0 -64
  130. data/lib/axlsx/stylesheet/cell_alignment.rb~ +0 -93
  131. data/lib/axlsx/stylesheet/cell_protection.rb~ +0 -16
  132. data/lib/axlsx/stylesheet/cell_style.rb~ +0 -61
  133. data/lib/axlsx/stylesheet/color.rb~ +0 -56
  134. data/lib/axlsx/stylesheet/fill.rb~ +0 -31
  135. data/lib/axlsx/stylesheet/font.rb~ +0 -33
  136. data/lib/axlsx/stylesheet/gradient_fill.rb~ +0 -70
  137. data/lib/axlsx/stylesheet/gradient_stop.rb~ +0 -15
  138. data/lib/axlsx/stylesheet/num_fmt.rb~ +0 -60
  139. data/lib/axlsx/stylesheet/pattern_fill.rb~ +0 -63
  140. data/lib/axlsx/stylesheet/styles.rb~ +0 -279
  141. data/lib/axlsx/stylesheet/table_style.rb~ +0 -43
  142. data/lib/axlsx/stylesheet/table_style_element.rb~ +0 -66
  143. data/lib/axlsx/stylesheet/table_styles.rb~ +0 -36
  144. data/lib/axlsx/stylesheet/xf.rb~ +0 -37
  145. data/lib/axlsx/util/constants.rb~ +0 -187
  146. data/lib/axlsx/util/monkey_patches_for_true_zip_stream.rb~ +0 -61
  147. data/lib/axlsx/util/simple_typed_list.rb~ +0 -79
  148. data/lib/axlsx/util/validators.rb~ +0 -132
  149. data/lib/axlsx/util/xml_escape.rb~ +0 -6
  150. data/lib/axlsx/workbook/workbook.rb~ +0 -130
  151. data/lib/axlsx/workbook/worksheet/cell.rb~ +0 -185
  152. data/lib/axlsx/workbook/worksheet/row.rb~ +0 -92
  153. data/lib/axlsx/workbook/worksheet/worksheet.rb~ +0 -194
  154. data/test/content_type/tc_content_type.rb~ +0 -81
  155. data/test/content_type/tc_default.rb~ +0 -40
  156. data/test/content_type/tc_override.rb~ +0 -40
  157. data/test/doc_props/tc_app.rb~ +0 -19
  158. data/test/drawing/tc_axis.rb~ +0 -0
  159. data/test/drawing/tc_bar_3D_chart.rb~ +0 -66
  160. data/test/drawing/tc_bar_series.rb~ +0 -31
  161. data/test/drawing/tc_cat_axis.rb~ +0 -39
  162. data/test/drawing/tc_cat_axis_data.rb~ +0 -32
  163. data/test/drawing/tc_chart.rb~ +0 -59
  164. data/test/drawing/tc_graphic_frame.rb~ +0 -21
  165. data/test/drawing/tc_line_3d_chart.rb~ +0 -48
  166. data/test/drawing/tc_line_series.rb~ +0 -34
  167. data/test/drawing/tc_marker.rb~ +0 -26
  168. data/test/drawing/tc_pie_3D_chart.rb~ +0 -33
  169. data/test/drawing/tc_pie_series.rb~ +0 -26
  170. data/test/drawing/tc_scaling.rb~ +0 -45
  171. data/test/drawing/tc_ser_axis.rb~ +0 -20
  172. data/test/drawing/tc_series.rb~ +0 -31
  173. data/test/drawing/tc_series_title.rb~ +0 -34
  174. data/test/drawing/tc_title.rb~ +0 -34
  175. data/test/drawing/tc_two_cell_anchor.rb~ +0 -37
  176. data/test/drawing/tc_val_axis.rb~ +0 -32
  177. data/test/drawing/tc_val_axis_data.rb~ +0 -18
  178. data/test/drawing/tc_view_3D.rb~ +0 -37
  179. data/test/rels/tc_relationship.rb~ +0 -39
  180. data/test/rels/tc_relationships.rb~ +0 -37
  181. data/test/stylesheet/tc_border.rb~ +0 -31
  182. data/test/stylesheet/tc_border_pr.rb~ +0 -31
  183. data/test/stylesheet/tc_cell_alignment.rb~ +0 -38
  184. data/test/stylesheet/tc_cell_protection.rb~ +0 -77
  185. data/test/stylesheet/tc_cell_style.rb~ +0 -30
  186. data/test/stylesheet/tc_color.rb~ +0 -38
  187. data/test/stylesheet/tc_fill.rb~ +0 -19
  188. data/test/stylesheet/tc_font.rb~ +0 -19
  189. data/test/stylesheet/tc_gradient_fill.rb~ +0 -114
  190. data/test/stylesheet/tc_gradient_stop.rb~ +0 -65
  191. data/test/stylesheet/tc_num_fmt.rb~ +0 -32
  192. data/test/stylesheet/tc_pattern_fill.rb~ +0 -31
  193. data/test/stylesheet/tc_table_style.rb~ +0 -38
  194. data/test/stylesheet/tc_table_style_element.rb~ +0 -37
  195. data/test/stylesheet/tc_table_styles.rb~ +0 -37
  196. data/test/stylesheet/tc_xf.rb~ +0 -30
  197. data/test/tc_app.rb~ +0 -19
  198. data/test/tc_border_pr.rb~ +0 -21
  199. data/test/tc_package.rb~ +0 -64
  200. data/test/tc_pie_3D_chart.rb~ +0 -66
  201. data/test/tc_relationships.rb~ +0 -37
  202. data/test/tc_series.rb~ +0 -31
  203. data/test/tc_styles.rb~ +0 -64
  204. data/test/tc_validators.rb~ +0 -77
  205. data/test/tc_worksheet.rb~ +0 -85
  206. data/test/workbook/worksheet/tc_row.rb~ +0 -30
  207. data/test/workbook/worksheet/tc_worksheet.rb~ +0 -85
@@ -451,7 +451,7 @@ The document builder instance this objects xml will be added to.
451
451
  </div>
452
452
 
453
453
  <div id="footer">
454
- Generated on Wed Nov 23 12:30:27 2011 by
454
+ Generated on Wed Nov 23 21:47:59 2011 by
455
455
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
456
456
  0.7.3 (ruby-1.8.7).
457
457
  </div>
@@ -1545,7 +1545,7 @@ The document builder instance this objects xml will be added to.
1545
1545
  </div>
1546
1546
 
1547
1547
  <div id="footer">
1548
- Generated on Wed Nov 23 12:30:12 2011 by
1548
+ Generated on Wed Nov 23 21:47:52 2011 by
1549
1549
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1550
1550
  0.7.3 (ruby-1.8.7).
1551
1551
  </div>
@@ -1017,7 +1017,7 @@ The document builder instance this objects xml will be added to.
1017
1017
  </div>
1018
1018
 
1019
1019
  <div id="footer">
1020
- Generated on Wed Nov 23 12:30:33 2011 by
1020
+ Generated on Wed Nov 23 21:47:54 2011 by
1021
1021
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1022
1022
  0.7.3 (ruby-1.8.7).
1023
1023
  </div>
@@ -517,7 +517,7 @@ The document builder instance this objects xml will be added to.
517
517
  </div>
518
518
 
519
519
  <div id="footer">
520
- Generated on Wed Nov 23 12:30:17 2011 by
520
+ Generated on Wed Nov 23 21:48:04 2011 by
521
521
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
522
522
  0.7.3 (ruby-1.8.7).
523
523
  </div>
@@ -326,14 +326,14 @@ Creates a new GraphicFrame object
326
326
  <pre class="lines">
327
327
 
328
328
 
329
+ 22
330
+ 23
329
331
  24
330
332
  25
331
- 26
332
- 27
333
- 28</pre>
333
+ 26</pre>
334
334
  </td>
335
335
  <td>
336
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 24</span>
336
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 22</span>
337
337
 
338
338
  <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='anchor identifier id'>anchor</span><span class='comma token'>,</span> <span class='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
339
339
  <span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='string val'>&quot;Drawing.chart_type&quot;</span><span class='comma token'>,</span> <span class='Chart constant id'>Chart</span><span class='comma token'>,</span> <span class='chart_type identifier id'>chart_type</span>
@@ -392,12 +392,12 @@ A anchor that holds this frame
392
392
  <pre class="lines">
393
393
 
394
394
 
395
- 15
396
- 16
397
- 17</pre>
395
+ 13
396
+ 14
397
+ 15</pre>
398
398
  </td>
399
399
  <td>
400
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 15</span>
400
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 13</span>
401
401
 
402
402
  <span class='def def kw'>def</span> <span class='anchor identifier id'>anchor</span>
403
403
  <span class='@anchor ivar id'>@anchor</span>
@@ -449,12 +449,12 @@ A reference to the chart object associated with this frame
449
449
  <pre class="lines">
450
450
 
451
451
 
452
- 11
453
- 12
454
- 13</pre>
452
+ 9
453
+ 10
454
+ 11</pre>
455
455
  </td>
456
456
  <td>
457
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 11</span>
457
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 9</span>
458
458
 
459
459
  <span class='def def kw'>def</span> <span class='chart identifier id'>chart</span>
460
460
  <span class='@chart ivar id'>@chart</span>
@@ -506,12 +506,12 @@ The relationship id for this graphic
506
506
  <pre class="lines">
507
507
 
508
508
 
509
- 19
510
- 20
511
- 21</pre>
509
+ 17
510
+ 18
511
+ 19</pre>
512
512
  </td>
513
513
  <td>
514
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 19</span>
514
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 17</span>
515
515
 
516
516
  <span class='def def kw'>def</span> <span class='rId identifier id'>rId</span>
517
517
  <span class='dstring node'>&quot;rId#{@anchor.index+1}&quot;</span>
@@ -588,6 +588,8 @@ The document builder instance this objects xml will be added to.
588
588
  <pre class="lines">
589
589
 
590
590
 
591
+ 35
592
+ 36
591
593
  37
592
594
  38
593
595
  39
@@ -603,12 +605,10 @@ The document builder instance this objects xml will be added to.
603
605
  49
604
606
  50
605
607
  51
606
- 52
607
- 53
608
- 54</pre>
608
+ 52</pre>
609
609
  </td>
610
610
  <td>
611
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 37</span>
611
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 35</span>
612
612
 
613
613
  <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>
614
614
  <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:graphicFrame'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
@@ -639,7 +639,7 @@ The document builder instance this objects xml will be added to.
639
639
  </div>
640
640
 
641
641
  <div id="footer">
642
- Generated on Wed Nov 23 12:30:18 2011 by
642
+ Generated on Wed Nov 23 21:47:53 2011 by
643
643
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
644
644
  0.7.3 (ruby-1.8.7).
645
645
  </div>
@@ -993,7 +993,7 @@ Serializes the bar chart
993
993
  </div>
994
994
 
995
995
  <div id="footer">
996
- Generated on Wed Nov 23 12:30:32 2011 by
996
+ Generated on Wed Nov 23 21:48:00 2011 by
997
997
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
998
998
  0.7.3 (ruby-1.8.7).
999
999
  </div>
@@ -251,8 +251,7 @@ Creates a new series.
251
251
 
252
252
 
253
253
  <span class="summary_desc"><div class='inline'><p>
254
- Serializes the series TODO create series_cat and series_val classes as this
255
- serialization is duplicated.
254
+ Serializes the series.
256
255
  </p>
257
256
  </div></span>
258
257
 
@@ -514,8 +513,7 @@ The labels for this series.
514
513
  </p><div class="docstring">
515
514
  <div class="discussion">
516
515
  <p>
517
- Serializes the series TODO create series_cat and series_val classes as this
518
- serialization is duplicated
516
+ Serializes the series
519
517
  </p>
520
518
 
521
519
 
@@ -564,15 +562,15 @@ The document builder instance this objects xml will be added to.
564
562
  <pre class="lines">
565
563
 
566
564
 
565
+ 29
567
566
  30
568
567
  31
569
568
  32
570
569
  33
571
- 34
572
- 35</pre>
570
+ 34</pre>
573
571
  </td>
574
572
  <td>
575
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_series.rb', line 30</span>
573
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_series.rb', line 29</span>
576
574
 
577
575
  <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>
578
576
  <span class='super super kw'>super</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
@@ -591,7 +589,7 @@ The document builder instance this objects xml will be added to.
591
589
  </div>
592
590
 
593
591
  <div id="footer">
594
- Generated on Wed Nov 23 12:30:29 2011 by
592
+ Generated on Wed Nov 23 21:47:59 2011 by
595
593
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
596
594
  0.7.3 (ruby-1.8.7).
597
595
  </div>
@@ -848,7 +848,7 @@ The document builder instance this objects xml will be added to.
848
848
  </div>
849
849
 
850
850
  <div id="footer">
851
- Generated on Wed Nov 23 12:30:29 2011 by
851
+ Generated on Wed Nov 23 21:48:04 2011 by
852
852
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
853
853
  0.7.3 (ruby-1.8.7).
854
854
  </div>
@@ -553,7 +553,7 @@ The document builder instance this objects xml will be added to.
553
553
  </div>
554
554
 
555
555
  <div id="footer">
556
- Generated on Wed Nov 23 12:30:20 2011 by
556
+ Generated on Wed Nov 23 21:47:46 2011 by
557
557
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
558
558
  0.7.3 (ruby-1.8.7).
559
559
  </div>
@@ -0,0 +1,988 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Axlsx::OneCellAnchor
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (O)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
38
+ &raquo;
39
+ <span class="title">OneCellAnchor</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Axlsx::OneCellAnchor
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Axlsx::OneCellAnchor</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/axlsx/drawing/one_cell_anchor.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+
98
+ <div class="note notetag">
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>
104
+ </div>
105
+ </div>
106
+
107
+ <p>
108
+ This class details a single cell anchor for drawings.
109
+ </p>
110
+
111
+
112
+ </div>
113
+ </div>
114
+ <div class="tags">
115
+
116
+
117
+ <h3>See Also:</h3>
118
+ <ul class="see">
119
+
120
+ <li><span class='object_link'><a href="Worksheet.html#add_chart-instance_method" title="Axlsx::Worksheet#add_chart (method)">Worksheet#add_chart</a></span></li>
121
+
122
+ <li><span class='object_link'><a href="Worksheet.html#add_image-instance_method" title="Axlsx::Worksheet#add_image (method)">Worksheet#add_image</a></span></li>
123
+
124
+ </ul>
125
+
126
+ </div>
127
+
128
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
129
+ <ul class="summary">
130
+
131
+ <li class="public ">
132
+ <span class="summary_signature">
133
+
134
+ <a href="#drawing-instance_method" title="#drawing (instance method)">- (Drawing) <strong>drawing</strong> </a>
135
+
136
+
137
+
138
+ </span>
139
+
140
+
141
+ <span class="note title readonly">readonly</span>
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+ <span class="summary_desc"><div class='inline'><p>
151
+ The drawing that holds this anchor.
152
+ </p>
153
+ </div></span>
154
+
155
+ </li>
156
+
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#from-instance_method" title="#from (instance method)">- (Marker) <strong>from</strong> </a>
162
+
163
+
164
+
165
+ </span>
166
+
167
+
168
+ <span class="note title readonly">readonly</span>
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ <span class="summary_desc"><div class='inline'><p>
178
+ A marker that defines the from cell anchor.
179
+ </p>
180
+ </div></span>
181
+
182
+ </li>
183
+
184
+
185
+ <li class="public ">
186
+ <span class="summary_signature">
187
+
188
+ <a href="#height-instance_method" title="#height (instance method)">- (Integer) <strong>height</strong> </a>
189
+
190
+
191
+
192
+ </span>
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
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>
208
+ </div></span>
209
+
210
+ </li>
211
+
212
+
213
+ <li class="public ">
214
+ <span class="summary_signature">
215
+
216
+ <a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
217
+
218
+
219
+
220
+ </span>
221
+
222
+
223
+ <span class="note title readonly">readonly</span>
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <span class="summary_desc"><div class='inline'><p>
233
+ The index of this anchor in the drawing.
234
+ </p>
235
+ </div></span>
236
+
237
+ </li>
238
+
239
+
240
+ <li class="public ">
241
+ <span class="summary_signature">
242
+
243
+ <a href="#object-instance_method" title="#object (instance method)">- (Pic) <strong>object</strong> </a>
244
+
245
+
246
+
247
+ </span>
248
+
249
+
250
+ <span class="note title readonly">readonly</span>
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ <span class="summary_desc"><div class='inline'><p>
260
+ The object this anchor hosts.
261
+ </p>
262
+ </div></span>
263
+
264
+ </li>
265
+
266
+
267
+ <li class="public ">
268
+ <span class="summary_signature">
269
+
270
+ <a href="#width-instance_method" title="#width (instance method)">- (Integer) <strong>width</strong> </a>
271
+
272
+
273
+
274
+ </span>
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <span class="summary_desc"><div class='inline'><p>
287
+ the width of the graphic object in pixels.
288
+ </p>
289
+ </div></span>
290
+
291
+ </li>
292
+
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
+
307
+ <li class="public ">
308
+ <span class="summary_signature">
309
+
310
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (OneCellAnchor) <strong>initialize</strong>(drawing, options = {}) </a>
311
+
312
+
313
+
314
+ </span>
315
+
316
+ <span class="note title constructor">constructor</span>
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+ <span class="summary_desc"><div class='inline'><p>
326
+ Creates a new OneCellAnchor object and an Pic associated with it.
327
+ </p>
328
+ </div></span>
329
+
330
+ </li>
331
+
332
+
333
+ <li class="public ">
334
+ <span class="summary_signature">
335
+
336
+ <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
337
+
338
+
339
+
340
+ </span>
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+ <span class="summary_desc"><div class='inline'><p>
350
+ Serializes the anchor.
351
+ </p>
352
+ </div></span>
353
+
354
+ </li>
355
+
356
+
357
+ </ul>
358
+
359
+
360
+ <div id="constructor_details" class="method_details_list">
361
+ <h2>Constructor Details</h2>
362
+
363
+ <div class="method_details first">
364
+ <p class="signature first" id="initialize-instance_method">
365
+
366
+ - (<tt><span class='object_link'><a href="" title="Axlsx::OneCellAnchor (class)">OneCellAnchor</a></span></tt>) <strong>initialize</strong>(drawing, options = {})
367
+
368
+
369
+
370
+ </p><div class="docstring">
371
+ <div class="discussion">
372
+ <p>
373
+ Creates a new OneCellAnchor object and an Pic associated with it.
374
+ </p>
375
+
376
+
377
+ </div>
378
+ </div>
379
+ <div class="tags">
380
+ <h3>Parameters:</h3>
381
+ <ul class="param">
382
+
383
+ <li>
384
+
385
+ <span class='name'>drawing</span>
386
+
387
+
388
+ <span class='type'>(<tt><span class='object_link'><a href="Drawing.html" title="Axlsx::Drawing (class)">Drawing</a></span></tt>)</span>
389
+
390
+
391
+
392
+ </li>
393
+
394
+ <li>
395
+
396
+ <span class='name'>options</span>
397
+
398
+
399
+ <span class='type'>(<tt>Hash</tt>)</span>
400
+
401
+
402
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
403
+
404
+
405
+ &mdash;
406
+ <div class='inline'><p>
407
+ a customizable set of options
408
+ </p>
409
+ </div>
410
+
411
+ </li>
412
+
413
+ </ul>
414
+
415
+
416
+
417
+
418
+
419
+
420
+ <h3>Options Hash (<tt>options</tt>):</h3>
421
+ <ul class="option">
422
+
423
+ <li>
424
+ <span class="name">start_at</span>
425
+ <span class="type">(<tt>Array</tt>)</span>
426
+ <span class="default">
427
+
428
+ </span>
429
+ &mdash; <div class='inline'><p>
430
+ the col, row to start at
431
+ </p>
432
+ </div>
433
+ </li>
434
+
435
+ <li>
436
+ <span class="name">width</span>
437
+ <span class="type">(<tt>Integer</tt>)</span>
438
+ <span class="default">
439
+
440
+ </span>
441
+
442
+ </li>
443
+
444
+ <li>
445
+ <span class="name">height</span>
446
+ <span class="type">(<tt>Integer</tt>)</span>
447
+ <span class="default">
448
+
449
+ </span>
450
+
451
+ </li>
452
+
453
+ <li>
454
+ <span class="name">image_src</span>
455
+ <span class="type">(<tt>String</tt>)</span>
456
+ <span class="default">
457
+
458
+ </span>
459
+ &mdash; <div class='inline'><p>
460
+ the file location of the image you will render
461
+ </p>
462
+ </div>
463
+ </li>
464
+
465
+ <li>
466
+ <span class="name">name</span>
467
+ <span class="type">(<tt>String</tt>)</span>
468
+ <span class="default">
469
+
470
+ </span>
471
+ &mdash; <div class='inline'><p>
472
+ the name attribute for the rendered image
473
+ </p>
474
+ </div>
475
+ </li>
476
+
477
+ <li>
478
+ <span class="name">descr</span>
479
+ <span class="type">(<tt>String</tt>)</span>
480
+ <span class="default">
481
+
482
+ </span>
483
+ &mdash; <div class='inline'><p>
484
+ the description of the image rendered
485
+ </p>
486
+ </div>
487
+ </li>
488
+
489
+ </ul>
490
+
491
+
492
+
493
+ </div><table class="source_code">
494
+ <tr>
495
+ <td>
496
+ <pre class="lines">
497
+
498
+
499
+ 44
500
+ 45
501
+ 46
502
+ 47
503
+ 48
504
+ 49
505
+ 50
506
+ 51
507
+ 52
508
+ 53
509
+ 54</pre>
510
+ </td>
511
+ <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>
526
+ </td>
527
+ </tr>
528
+ </table>
529
+ </div>
530
+
531
+ </div>
532
+
533
+ <div id="instance_attr_details" class="attr_details">
534
+ <h2>Instance Attribute Details</h2>
535
+
536
+
537
+ <span id=""></span>
538
+ <span id="drawing-instance_method"></span>
539
+ <div class="method_details first">
540
+ <p class="signature first" id="drawing-instance_method">
541
+
542
+ - (<tt><span class='object_link'><a href="Drawing.html" title="Axlsx::Drawing (class)">Drawing</a></span></tt>) <strong>drawing</strong> <span class="extras">(readonly)</span>
543
+
544
+
545
+
546
+ </p><div class="docstring">
547
+ <div class="discussion">
548
+ <p>
549
+ The drawing that holds this anchor
550
+ </p>
551
+
552
+
553
+ </div>
554
+ </div>
555
+ <div class="tags">
556
+
557
+ <h3>Returns:</h3>
558
+ <ul class="return">
559
+
560
+ <li>
561
+
562
+
563
+ <span class='type'>(<tt><span class='object_link'><a href="Drawing.html" title="Axlsx::Drawing (class)">Drawing</a></span></tt>)</span>
564
+
565
+
566
+
567
+ </li>
568
+
569
+ </ul>
570
+
571
+ </div><table class="source_code">
572
+ <tr>
573
+ <td>
574
+ <pre class="lines">
575
+
576
+
577
+ 18
578
+ 19
579
+ 20</pre>
580
+ </td>
581
+ <td>
582
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 18</span>
583
+
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>
588
+ </td>
589
+ </tr>
590
+ </table>
591
+ </div>
592
+
593
+
594
+ <span id=""></span>
595
+ <span id="from-instance_method"></span>
596
+ <div class="method_details ">
597
+ <p class="signature " id="from-instance_method">
598
+
599
+ - (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>from</strong> <span class="extras">(readonly)</span>
600
+
601
+
602
+
603
+ </p><div class="docstring">
604
+ <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>
609
+
610
+
611
+ </div>
612
+ </div>
613
+ <div class="tags">
614
+
615
+ <h3>Returns:</h3>
616
+ <ul class="return">
617
+
618
+ <li>
619
+
620
+
621
+ <span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
622
+
623
+
624
+
625
+ </li>
626
+
627
+ </ul>
628
+
629
+ </div><table class="source_code">
630
+ <tr>
631
+ <td>
632
+ <pre class="lines">
633
+
634
+
635
+ 10
636
+ 11
637
+ 12</pre>
638
+ </td>
639
+ <td>
640
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 10</span>
641
+
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>
646
+ </td>
647
+ </tr>
648
+ </table>
649
+ </div>
650
+
651
+
652
+ <span id="height=-instance_method"></span>
653
+ <span id="height-instance_method"></span>
654
+ <div class="method_details ">
655
+ <p class="signature " id="height-instance_method">
656
+
657
+ - (<tt>Integer</tt>) <strong>height</strong>
658
+
659
+
660
+
661
+ </p><div class="docstring">
662
+ <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>
667
+
668
+
669
+ </div>
670
+ </div>
671
+ <div class="tags">
672
+
673
+ <h3>Returns:</h3>
674
+ <ul class="return">
675
+
676
+ <li>
677
+
678
+
679
+ <span class='type'>(<tt>Integer</tt>)</span>
680
+
681
+
682
+
683
+ </li>
684
+
685
+ </ul>
686
+
687
+ </div><table class="source_code">
688
+ <tr>
689
+ <td>
690
+ <pre class="lines">
691
+
692
+
693
+ 33
694
+ 34
695
+ 35</pre>
696
+ </td>
697
+ <td>
698
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 33</span>
699
+
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>
704
+ </td>
705
+ </tr>
706
+ </table>
707
+ </div>
708
+
709
+
710
+ <span id=""></span>
711
+ <span id="index-instance_method"></span>
712
+ <div class="method_details ">
713
+ <p class="signature " id="index-instance_method">
714
+
715
+ - (<tt>Integer</tt>) <strong>index</strong> <span class="extras">(readonly)</span>
716
+
717
+
718
+
719
+ </p><div class="docstring">
720
+ <div class="discussion">
721
+ <p>
722
+ The index of this anchor in the drawing
723
+ </p>
724
+
725
+
726
+ </div>
727
+ </div>
728
+ <div class="tags">
729
+
730
+ <h3>Returns:</h3>
731
+ <ul class="return">
732
+
733
+ <li>
734
+
735
+
736
+ <span class='type'>(<tt>Integer</tt>)</span>
737
+
738
+
739
+
740
+ </li>
741
+
742
+ </ul>
743
+
744
+ </div><table class="source_code">
745
+ <tr>
746
+ <td>
747
+ <pre class="lines">
748
+
749
+
750
+ 22
751
+ 23
752
+ 24</pre>
753
+ </td>
754
+ <td>
755
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 22</span>
756
+
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>
761
+ </td>
762
+ </tr>
763
+ </table>
764
+ </div>
765
+
766
+
767
+ <span id=""></span>
768
+ <span id="object-instance_method"></span>
769
+ <div class="method_details ">
770
+ <p class="signature " id="object-instance_method">
771
+
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>
773
+
774
+
775
+
776
+ </p><div class="docstring">
777
+ <div class="discussion">
778
+ <p>
779
+ The object this anchor hosts
780
+ </p>
781
+
782
+
783
+ </div>
784
+ </div>
785
+ <div class="tags">
786
+
787
+ <h3>Returns:</h3>
788
+ <ul class="return">
789
+
790
+ <li>
791
+
792
+
793
+ <span class='type'>(<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>)</span>
794
+
795
+
796
+
797
+ </li>
798
+
799
+ </ul>
800
+
801
+ </div><table class="source_code">
802
+ <tr>
803
+ <td>
804
+ <pre class="lines">
805
+
806
+
807
+ 14
808
+ 15
809
+ 16</pre>
810
+ </td>
811
+ <td>
812
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 14</span>
813
+
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>
818
+ </td>
819
+ </tr>
820
+ </table>
821
+ </div>
822
+
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">
828
+
829
+ - (<tt>Integer</tt>) <strong>width</strong>
830
+
831
+
832
+
833
+ </p><div class="docstring">
834
+ <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>
839
+
840
+
841
+ </div>
842
+ </div>
843
+ <div class="tags">
844
+
845
+ <h3>Returns:</h3>
846
+ <ul class="return">
847
+
848
+ <li>
849
+
850
+
851
+ <span class='type'>(<tt>Integer</tt>)</span>
852
+
853
+
854
+
855
+ </li>
856
+
857
+ </ul>
858
+
859
+ </div><table class="source_code">
860
+ <tr>
861
+ <td>
862
+ <pre class="lines">
863
+
864
+
865
+ 28
866
+ 29
867
+ 30</pre>
868
+ </td>
869
+ <td>
870
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 28</span>
871
+
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>
876
+ </td>
877
+ </tr>
878
+ </table>
879
+ </div>
880
+
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">
890
+
891
+ - (<tt>String</tt>) <strong>to_xml</strong>(xml)
892
+
893
+
894
+
895
+ </p><div class="docstring">
896
+ <div class="discussion">
897
+ <p>
898
+ Serializes the anchor
899
+ </p>
900
+
901
+
902
+ </div>
903
+ </div>
904
+ <div class="tags">
905
+ <h3>Parameters:</h3>
906
+ <ul class="param">
907
+
908
+ <li>
909
+
910
+ <span class='name'>xml</span>
911
+
912
+
913
+ <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
914
+
915
+
916
+
917
+ &mdash;
918
+ <div class='inline'><p>
919
+ The document builder instance this objects xml will be added to.
920
+ </p>
921
+ </div>
922
+
923
+ </li>
924
+
925
+ </ul>
926
+
927
+ <h3>Returns:</h3>
928
+ <ul class="return">
929
+
930
+ <li>
931
+
932
+
933
+ <span class='type'>(<tt>String</tt>)</span>
934
+
935
+
936
+
937
+ </li>
938
+
939
+ </ul>
940
+
941
+ </div><table class="source_code">
942
+ <tr>
943
+ <td>
944
+ <pre class="lines">
945
+
946
+
947
+ 66
948
+ 67
949
+ 68
950
+ 69
951
+ 70
952
+ 71
953
+ 72
954
+ 73
955
+ 74
956
+ 75</pre>
957
+ </td>
958
+ <td>
959
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/one_cell_anchor.rb', line 66</span>
960
+
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>
972
+ </td>
973
+ </tr>
974
+ </table>
975
+ </div>
976
+
977
+ </div>
978
+
979
+ </div>
980
+
981
+ <div id="footer">
982
+ Generated on Wed Nov 23 21:47:48 2011 by
983
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
984
+ 0.7.3 (ruby-1.8.7).
985
+ </div>
986
+
987
+ </body>
988
+ </html>