axlsx 1.0.9 → 1.0.10a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/Gemfile +3 -0
  2. data/Gemfile.lock +24 -0
  3. data/README.md +86 -1
  4. data/axlsx.gemspec +6 -10
  5. data/doc/Axlsx.html +557 -360
  6. data/doc/Axlsx/App.html +347 -244
  7. data/doc/Axlsx/Ar.html +200 -0
  8. data/doc/Axlsx/Ar/ClassMethods.html +192 -0
  9. data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
  10. data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
  11. data/doc/Axlsx/Axis.html +131 -98
  12. data/doc/Axlsx/Bar3DChart.html +138 -106
  13. data/doc/Axlsx/BarSeries.html +73 -54
  14. data/doc/Axlsx/Border.html +114 -87
  15. data/doc/Axlsx/BorderPr.html +107 -82
  16. data/doc/Axlsx/CatAxis.html +93 -68
  17. data/doc/Axlsx/CatAxisData.html +47 -38
  18. data/doc/Axlsx/Cell.html +642 -148
  19. data/doc/Axlsx/CellAlignment.html +152 -111
  20. data/doc/Axlsx/CellProtection.html +63 -45
  21. data/doc/Axlsx/CellStyle.html +101 -73
  22. data/doc/Axlsx/Chart.html +238 -179
  23. data/doc/Axlsx/Color.html +75 -53
  24. data/doc/Axlsx/ContentType.html +34 -26
  25. data/doc/Axlsx/Core.html +54 -42
  26. data/doc/Axlsx/DataTypeValidator.html +39 -30
  27. data/doc/Axlsx/Default.html +59 -43
  28. data/doc/Axlsx/Drawing.html +176 -128
  29. data/doc/Axlsx/Fill.html +46 -33
  30. data/doc/Axlsx/Font.html +197 -147
  31. data/doc/Axlsx/GradientFill.html +114 -82
  32. data/doc/Axlsx/GradientStop.html +47 -33
  33. data/doc/Axlsx/GraphicFrame.html +78 -60
  34. data/doc/Axlsx/Line3DChart.html +125 -97
  35. data/doc/Axlsx/LineSeries.html +60 -44
  36. data/doc/Axlsx/Marker.html +98 -71
  37. data/doc/Axlsx/NumFmt.html +99 -80
  38. data/doc/Axlsx/OneCellAnchor.html +126 -94
  39. data/doc/Axlsx/Override.html +59 -43
  40. data/doc/Axlsx/Package.html +269 -134
  41. data/doc/Axlsx/PatternFill.html +93 -72
  42. data/doc/Axlsx/Pic.html +202 -152
  43. data/doc/Axlsx/Pie3DChart.html +39 -30
  44. data/doc/Axlsx/PieSeries.html +72 -53
  45. data/doc/Axlsx/RegexValidator.html +19 -14
  46. data/doc/Axlsx/Relationship.html +60 -43
  47. data/doc/Axlsx/Relationships.html +34 -26
  48. data/doc/Axlsx/RestrictionValidator.html +31 -22
  49. data/doc/Axlsx/Row.html +241 -67
  50. data/doc/Axlsx/Scaling.html +80 -59
  51. data/doc/Axlsx/SerAxis.html +71 -51
  52. data/doc/Axlsx/Series.html +179 -51
  53. data/doc/Axlsx/SeriesTitle.html +29 -24
  54. data/doc/Axlsx/Styles.html +354 -285
  55. data/doc/Axlsx/TableStyle.html +74 -54
  56. data/doc/Axlsx/TableStyleElement.html +99 -79
  57. data/doc/Axlsx/TableStyles.html +65 -47
  58. data/doc/Axlsx/Title.html +66 -51
  59. data/doc/Axlsx/TwoCellAnchor.html +129 -96
  60. data/doc/Axlsx/ValAxis.html +52 -38
  61. data/doc/Axlsx/ValAxisData.html +32 -27
  62. data/doc/Axlsx/View3D.html +111 -80
  63. data/doc/Axlsx/Workbook.html +333 -272
  64. data/doc/Axlsx/Worksheet.html +1018 -266
  65. data/doc/Axlsx/Xf.html +188 -134
  66. data/doc/_index.html +44 -8
  67. data/doc/class_list.html +1 -1
  68. data/doc/file.LICENSE.html +28 -23
  69. data/doc/file.README.html +180 -91
  70. data/doc/index.html +180 -91
  71. data/doc/method_list.html +541 -421
  72. data/doc/top-level-namespace.html +2 -2
  73. data/examples/example.rb +70 -13
  74. data/lib/axlsx.rb +1 -0
  75. data/lib/axlsx/ar.rb +72 -0
  76. data/lib/axlsx/package.rb +8 -1
  77. data/lib/axlsx/util/simple_typed_list.rb +5 -0
  78. data/lib/axlsx/version.rb +1 -1
  79. data/lib/axlsx/workbook/workbook.rb +4 -2
  80. data/lib/axlsx/workbook/worksheet/row.rb +15 -0
  81. data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
  82. data/test/workbook/worksheet/tc_row.rb +6 -0
  83. data/test/workbook/worksheet/tc_worksheet.rb +36 -0
  84. metadata +103 -59
@@ -97,13 +97,15 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'>
101
- <p>The recommended way to manage styles is with Styles#add_style</p>
100
+ <div class='inline'><p>
101
+ The recommended way to manage styles is with Styles#add_style
102
+ </p>
102
103
  </div>
103
104
  </div>
104
105
 
105
-
106
- <p>A PatternFill is the pattern and solid fill styling for a cell.</p>
106
+ <p>
107
+ A PatternFill is the pattern and solid fill styling for a cell.
108
+ </p>
107
109
 
108
110
 
109
111
  </div>
@@ -142,8 +144,9 @@
142
144
 
143
145
 
144
146
 
145
- <span class="summary_desc"><div class='inline'>
146
- <p>The color to use for the background of the fill when the type is not solid.</p>
147
+ <span class="summary_desc"><div class='inline'><p>
148
+ The color to use for the background of the fill when the type is not solid.
149
+ </p>
147
150
  </div></span>
148
151
 
149
152
  </li>
@@ -168,8 +171,9 @@
168
171
 
169
172
 
170
173
 
171
- <span class="summary_desc"><div class='inline'>
172
- <p>The color to use for the the background in solid fills.</p>
174
+ <span class="summary_desc"><div class='inline'><p>
175
+ The color to use for the the background in solid fills.
176
+ </p>
173
177
  </div></span>
174
178
 
175
179
  </li>
@@ -194,8 +198,9 @@
194
198
 
195
199
 
196
200
 
197
- <span class="summary_desc"><div class='inline'>
198
- <p>The pattern type to use.</p>
201
+ <span class="summary_desc"><div class='inline'><p>
202
+ The pattern type to use.
203
+ </p>
199
204
  </div></span>
200
205
 
201
206
  </li>
@@ -232,8 +237,9 @@
232
237
 
233
238
 
234
239
 
235
- <span class="summary_desc"><div class='inline'>
236
- <p>Creates a new PatternFill Object.</p>
240
+ <span class="summary_desc"><div class='inline'><p>
241
+ Creates a new PatternFill Object.
242
+ </p>
237
243
  </div></span>
238
244
 
239
245
  </li>
@@ -255,8 +261,9 @@
255
261
 
256
262
 
257
263
 
258
- <span class="summary_desc"><div class='inline'>
259
- <p>Serializes the pattern fill.</p>
264
+ <span class="summary_desc"><div class='inline'><p>
265
+ Serializes the pattern fill.
266
+ </p>
260
267
  </div></span>
261
268
 
262
269
  </li>
@@ -277,8 +284,9 @@
277
284
 
278
285
  </p><div class="docstring">
279
286
  <div class="discussion">
280
-
281
- <p>Creates a new PatternFill Object</p>
287
+ <p>
288
+ Creates a new PatternFill Object
289
+ </p>
282
290
 
283
291
 
284
292
  </div>
@@ -299,8 +307,9 @@
299
307
 
300
308
 
301
309
  &mdash;
302
- <div class='inline'>
303
- <p>a customizable set of options</p>
310
+ <div class='inline'><p>
311
+ a customizable set of options
312
+ </p>
304
313
  </div>
305
314
 
306
315
  </li>
@@ -360,12 +369,13 @@
360
369
  <td>
361
370
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/pattern_fill.rb', line 44</span>
362
371
 
363
- <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>
364
- <span class='ivar'>@patternType</span> <span class='op'>=</span> <span class='symbol'>:none</span>
365
- <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>
366
- <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>
367
- <span class='kw'>end</span>
368
- <span class='kw'>end</span></pre>
372
+ <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>
373
+ <span class='@patternType ivar id'>@patternType</span> <span class='assign token'>=</span> <span class='symbol val'>:none</span>
374
+ <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>
375
+ <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>
376
+ <span class='end end kw'>end</span>
377
+ <span class='end end kw'>end</span>
378
+ </pre>
369
379
  </td>
370
380
  </tr>
371
381
  </table>
@@ -388,8 +398,9 @@
388
398
 
389
399
  </p><div class="docstring">
390
400
  <div class="discussion">
391
-
392
- <p>The color to use for the background of the fill when the type is not solid.</p>
401
+ <p>
402
+ The color to use for the background of the fill when the type is not solid.
403
+ </p>
393
404
 
394
405
 
395
406
  </div>
@@ -423,9 +434,10 @@
423
434
  <td>
424
435
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/pattern_fill.rb', line 13</span>
425
436
 
426
- <span class='kw'>def</span> <span class='id bgColor'>bgColor</span>
427
- <span class='ivar'>@bgColor</span>
428
- <span class='kw'>end</span></pre>
437
+ <span class='def def kw'>def</span> <span class='bgColor identifier id'>bgColor</span>
438
+ <span class='@bgColor ivar id'>@bgColor</span>
439
+ <span class='end end kw'>end</span>
440
+ </pre>
429
441
  </td>
430
442
  </tr>
431
443
  </table>
@@ -443,8 +455,9 @@
443
455
 
444
456
  </p><div class="docstring">
445
457
  <div class="discussion">
446
-
447
- <p>The color to use for the the background in solid fills.</p>
458
+ <p>
459
+ The color to use for the the background in solid fills.
460
+ </p>
448
461
 
449
462
 
450
463
  </div>
@@ -478,9 +491,10 @@
478
491
  <td>
479
492
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/pattern_fill.rb', line 9</span>
480
493
 
481
- <span class='kw'>def</span> <span class='id fgColor'>fgColor</span>
482
- <span class='ivar'>@fgColor</span>
483
- <span class='kw'>end</span></pre>
494
+ <span class='def def kw'>def</span> <span class='fgColor identifier id'>fgColor</span>
495
+ <span class='@fgColor ivar id'>@fgColor</span>
496
+ <span class='end end kw'>end</span>
497
+ </pre>
484
498
  </td>
485
499
  </tr>
486
500
  </table>
@@ -501,33 +515,36 @@
501
515
 
502
516
  <div class="note notetag">
503
517
  <strong>Note:</strong>
504
- <div class='inline'>
505
- <p>patternType must be one of</p>
506
-
507
- <pre class="code"><span class='symbol'>:none</span>
508
- <span class='symbol'>:solid</span>
509
- <span class='symbol'>:mediumGray</span>
510
- <span class='symbol'>:darkGray</span>
511
- <span class='symbol'>:lightGray</span>
512
- <span class='symbol'>:darkHorizontal</span>
513
- <span class='symbol'>:darkVertical</span>
514
- <span class='symbol'>:darkDown</span>
515
- <span class='symbol'>:darkUp</span>
516
- <span class='symbol'>:darkGrid</span>
517
- <span class='symbol'>:darkTrellis</span>
518
- <span class='symbol'>:lightHorizontal</span>
519
- <span class='symbol'>:lightVertical</span>
520
- <span class='symbol'>:lightDown</span>
521
- <span class='symbol'>:lightUp</span>
522
- <span class='symbol'>:lightGrid</span>
523
- <span class='symbol'>:lightTrellis</span>
524
- <span class='symbol'>:gray125</span>
525
- <span class='symbol'>:gray0625</span></pre>
518
+ <div class='inline'><p>
519
+ patternType must be one of
520
+ </p>
521
+ <pre class="code">
522
+ <span class='symbol val'>:none</span>
523
+ <span class='symbol val'>:solid</span>
524
+ <span class='symbol val'>:mediumGray</span>
525
+ <span class='symbol val'>:darkGray</span>
526
+ <span class='symbol val'>:lightGray</span>
527
+ <span class='symbol val'>:darkHorizontal</span>
528
+ <span class='symbol val'>:darkVertical</span>
529
+ <span class='symbol val'>:darkDown</span>
530
+ <span class='symbol val'>:darkUp</span>
531
+ <span class='symbol val'>:darkGrid</span>
532
+ <span class='symbol val'>:darkTrellis</span>
533
+ <span class='symbol val'>:lightHorizontal</span>
534
+ <span class='symbol val'>:lightVertical</span>
535
+ <span class='symbol val'>:lightDown</span>
536
+ <span class='symbol val'>:lightUp</span>
537
+ <span class='symbol val'>:lightGrid</span>
538
+ <span class='symbol val'>:lightTrellis</span>
539
+ <span class='symbol val'>:gray125</span>
540
+ <span class='symbol val'>:gray0625</span>
541
+ </pre>
526
542
  </div>
527
543
  </div>
528
544
 
529
-
530
- <p>The pattern type to use</p>
545
+ <p>
546
+ The pattern type to use
547
+ </p>
531
548
 
532
549
 
533
550
  </div>
@@ -555,9 +572,10 @@
555
572
  <td>
556
573
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/pattern_fill.rb', line 38</span>
557
574
 
558
- <span class='kw'>def</span> <span class='id patternType'>patternType</span>
559
- <span class='ivar'>@patternType</span>
560
- <span class='kw'>end</span></pre>
575
+ <span class='def def kw'>def</span> <span class='patternType identifier id'>patternType</span>
576
+ <span class='@patternType ivar id'>@patternType</span>
577
+ <span class='end end kw'>end</span>
578
+ </pre>
561
579
  </td>
562
580
  </tr>
563
581
  </table>
@@ -579,8 +597,9 @@
579
597
 
580
598
  </p><div class="docstring">
581
599
  <div class="discussion">
582
-
583
- <p>Serializes the pattern fill</p>
600
+ <p>
601
+ Serializes the pattern fill
602
+ </p>
584
603
 
585
604
 
586
605
  </div>
@@ -599,8 +618,9 @@
599
618
 
600
619
 
601
620
  &mdash;
602
- <div class='inline'>
603
- <p>The document builder instance this objects xml will be added to.</p>
621
+ <div class='inline'><p>
622
+ The document builder instance this objects xml will be added to.
623
+ </p>
604
624
  </div>
605
625
 
606
626
  </li>
@@ -636,11 +656,12 @@
636
656
  <td>
637
657
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/pattern_fill.rb', line 60</span>
638
658
 
639
- <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>
640
- <span class='id xml'>xml</span><span class='period'>.</span><span class='id patternFill'>patternFill</span><span class='lparen'>(</span><span class='symbol'>:patternType</span> <span class='op'>=&gt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id patternType'>patternType</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
641
- <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='period'>.</span><span class='id reject'>reject</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span><span class='id v'>v</span><span class='op'>|</span> <span class='id k'>k</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> <span class='op'>==</span> <span class='symbol'>:patternType</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span><span class='id v'>v</span><span class='op'>|</span> <span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='id k'>k</span><span class='comma'>,</span> <span class='id v'>v</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
642
- <span class='rbrace'>}</span>
643
- <span class='kw'>end</span></pre>
659
+ <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>
660
+ <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='patternFill identifier id'>patternFill</span><span class='lparen token'>(</span><span class='symbol val'>:patternType</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='patternType identifier id'>patternType</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
661
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='dot token'>.</span><span class='reject identifier id'>reject</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span><span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='k identifier id'>k</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span> <span class='eq op'>==</span> <span class='symbol val'>:patternType</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span><span class='v identifier id'>v</span><span class='bitor op'>|</span> <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='k identifier id'>k</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
662
+ <span class='rbrace token'>}</span>
663
+ <span class='end end kw'>end</span>
664
+ </pre>
644
665
  </td>
645
666
  </tr>
646
667
  </table>
@@ -651,9 +672,9 @@
651
672
  </div>
652
673
 
653
674
  <div id="footer">
654
- Generated on Sat Nov 26 13:16:39 2011 by
675
+ Generated on Sun Nov 27 21:54:15 2011 by
655
676
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
656
- 0.7.3 (ruby-1.9.3).
677
+ 0.7.3 (ruby-1.8.7).
657
678
  </div>
658
679
 
659
680
  </body>
@@ -94,9 +94,10 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
-
98
- <p>a Pic object represents an image in your worksheet Worksheet#add_image is
99
- the recommended way to manage images in your sheets</p>
97
+ <p>
98
+ a Pic object represents an image in your worksheet Worksheet#add_image is
99
+ the recommended way to manage images in your sheets
100
+ </p>
100
101
 
101
102
 
102
103
  </div>
@@ -119,8 +120,9 @@ the recommended way to manage images in your sheets</p>
119
120
  <dt id="ALLOWED_EXTENSIONS-constant" class="">ALLOWED_EXTENSIONS =
120
121
  <div class="docstring">
121
122
  <div class="discussion">
122
-
123
- <p>allowed file extenstions</p>
123
+ <p>
124
+ allowed file extenstions
125
+ </p>
124
126
 
125
127
 
126
128
  </div>
@@ -130,7 +132,8 @@ the recommended way to manage images in your sheets</p>
130
132
 
131
133
  </div>
132
134
  </dt>
133
- <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>gif</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>jpeg</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>png</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>jpg</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span></pre></dd>
135
+ <dd><pre class="code"><span class='lbrack token'>[</span><span class='string val'>'gif'</span><span class='comma token'>,</span> <span class='string val'>'jpeg'</span><span class='comma token'>,</span> <span class='string val'>'png'</span><span class='comma token'>,</span> <span class='string val'>'jpg'</span><span class='rbrack token'>]</span>
136
+ </pre></dd>
134
137
 
135
138
  </dl>
136
139
 
@@ -158,8 +161,9 @@ the recommended way to manage images in your sheets</p>
158
161
 
159
162
 
160
163
 
161
- <span class="summary_desc"><div class='inline'>
162
- <p>The anchor for this image.</p>
164
+ <span class="summary_desc"><div class='inline'><p>
165
+ The anchor for this image.
166
+ </p>
163
167
  </div></span>
164
168
 
165
169
  </li>
@@ -184,8 +188,9 @@ the recommended way to manage images in your sheets</p>
184
188
 
185
189
 
186
190
 
187
- <span class="summary_desc"><div class='inline'>
188
- <p>A description of the picture.</p>
191
+ <span class="summary_desc"><div class='inline'><p>
192
+ A description of the picture.
193
+ </p>
189
194
  </div></span>
190
195
 
191
196
  </li>
@@ -210,9 +215,10 @@ the recommended way to manage images in your sheets</p>
210
215
 
211
216
 
212
217
 
213
- <span class="summary_desc"><div class='inline'>
214
- <p>The path to the image you want to include Only local images are supported
215
- at this time and only jpg support.</p>
218
+ <span class="summary_desc"><div class='inline'><p>
219
+ The path to the image you want to include Only local images are supported
220
+ at this time and only jpg support.
221
+ </p>
216
222
  </div></span>
217
223
 
218
224
  </li>
@@ -237,8 +243,9 @@ at this time and only jpg support.</p>
237
243
 
238
244
 
239
245
 
240
- <span class="summary_desc"><div class='inline'>
241
- <p>The name to use for this picture.</p>
246
+ <span class="summary_desc"><div class='inline'><p>
247
+ The name to use for this picture.
248
+ </p>
242
249
  </div></span>
243
250
 
244
251
  </li>
@@ -273,8 +280,9 @@ at this time and only jpg support.</p>
273
280
 
274
281
 
275
282
 
276
- <span class="summary_desc"><div class='inline'>
277
- <p>returns the extension of image_src without the preceeding '.'.</p>
283
+ <span class="summary_desc"><div class='inline'><p>
284
+ returns the extension of image_src without the preceeding &#8217;.&#8217;.
285
+ </p>
278
286
  </div></span>
279
287
 
280
288
  </li>
@@ -296,8 +304,9 @@ at this time and only jpg support.</p>
296
304
 
297
305
 
298
306
 
299
- <span class="summary_desc"><div class='inline'>
300
- <p>The file name of image_src without any path information.</p>
307
+ <span class="summary_desc"><div class='inline'><p>
308
+ The file name of image_src without any path information.
309
+ </p>
301
310
  </div></span>
302
311
 
303
312
  </li>
@@ -319,8 +328,9 @@ at this time and only jpg support.</p>
319
328
 
320
329
 
321
330
 
322
- <span class="summary_desc"><div class='inline'>
323
- <p>providing access to update the anchor's height attribute.</p>
331
+ <span class="summary_desc"><div class='inline'><p>
332
+ providing access to update the anchor&#8217;s height attribute.
333
+ </p>
324
334
  </div></span>
325
335
 
326
336
  </li>
@@ -363,8 +373,9 @@ at this time and only jpg support.</p>
363
373
 
364
374
 
365
375
 
366
- <span class="summary_desc"><div class='inline'>
367
- <p>The index of this image in the workbooks images collections.</p>
376
+ <span class="summary_desc"><div class='inline'><p>
377
+ The index of this image in the workbooks images collections.
378
+ </p>
368
379
  </div></span>
369
380
 
370
381
  </li>
@@ -388,8 +399,9 @@ at this time and only jpg support.</p>
388
399
 
389
400
 
390
401
 
391
- <span class="summary_desc"><div class='inline'>
392
- <p>Creates a new Pic(ture) object.</p>
402
+ <span class="summary_desc"><div class='inline'><p>
403
+ Creates a new Pic(ture) object.
404
+ </p>
393
405
  </div></span>
394
406
 
395
407
  </li>
@@ -411,9 +423,10 @@ at this time and only jpg support.</p>
411
423
 
412
424
 
413
425
 
414
- <span class="summary_desc"><div class='inline'>
415
- <p>The part name for this image used in serialization and relationship
416
- building.</p>
426
+ <span class="summary_desc"><div class='inline'><p>
427
+ The part name for this image used in serialization and relationship
428
+ building.
429
+ </p>
417
430
  </div></span>
418
431
 
419
432
  </li>
@@ -435,10 +448,11 @@ building.</p>
435
448
 
436
449
 
437
450
 
438
- <span class="summary_desc"><div class='inline'>
439
- <p>This is a short cut method to set the start anchor position If you need
451
+ <span class="summary_desc"><div class='inline'><p>
452
+ This is a short cut method to set the start anchor position If you need
440
453
  finer granularity in positioning use graphic_frame.anchor.from.colOff /
441
- rowOff.</p>
454
+ rowOff.
455
+ </p>
442
456
  </div></span>
443
457
 
444
458
  </li>
@@ -460,8 +474,9 @@ rowOff.</p>
460
474
 
461
475
 
462
476
 
463
- <span class="summary_desc"><div class='inline'>
464
- <p>Serializes the picture.</p>
477
+ <span class="summary_desc"><div class='inline'><p>
478
+ Serializes the picture.
479
+ </p>
465
480
  </div></span>
466
481
 
467
482
  </li>
@@ -483,8 +498,9 @@ rowOff.</p>
483
498
 
484
499
 
485
500
 
486
- <span class="summary_desc"><div class='inline'>
487
- <p>providing access to the anchor's width attribute.</p>
501
+ <span class="summary_desc"><div class='inline'><p>
502
+ providing access to the anchor&#8217;s width attribute.
503
+ </p>
488
504
  </div></span>
489
505
 
490
506
  </li>
@@ -526,8 +542,9 @@ rowOff.</p>
526
542
 
527
543
  </p><div class="docstring">
528
544
  <div class="discussion">
529
-
530
- <p>Creates a new Pic(ture) object</p>
545
+ <p>
546
+ Creates a new Pic(ture) object
547
+ </p>
531
548
 
532
549
 
533
550
  </div>
@@ -546,8 +563,9 @@ rowOff.</p>
546
563
 
547
564
 
548
565
  &mdash;
549
- <div class='inline'>
550
- <p>the anchor that holds this image</p>
566
+ <div class='inline'><p>
567
+ the anchor that holds this image
568
+ </p>
551
569
  </div>
552
570
 
553
571
  </li>
@@ -564,8 +582,9 @@ rowOff.</p>
564
582
 
565
583
 
566
584
  &mdash;
567
- <div class='inline'>
568
- <p>a customizable set of options</p>
585
+ <div class='inline'><p>
586
+ a customizable set of options
587
+ </p>
569
588
  </div>
570
589
 
571
590
  </li>
@@ -663,8 +682,9 @@ rowOff.</p>
663
682
 
664
683
 
665
684
  &mdash;
666
- <div class='inline'>
667
- <p>the object that the method was called on</p>
685
+ <div class='inline'><p>
686
+ the object that the method was called on
687
+ </p>
668
688
  </div>
669
689
 
670
690
  </li>
@@ -690,15 +710,16 @@ rowOff.</p>
690
710
  <td>
691
711
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 38</span>
692
712
 
693
- <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id anchor'>anchor</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>
694
- <span class='ivar'>@anchor</span> <span class='op'>=</span> <span class='id anchor'>anchor</span>
695
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id drawing'>drawing</span><span class='period'>.</span><span class='id worksheet'>worksheet</span><span class='period'>.</span><span class='id workbook'>workbook</span><span class='period'>.</span><span class='id images'>images</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
696
- <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>
697
- <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>
698
- <span class='kw'>end</span>
699
- <span class='id start_at'>start_at</span><span class='lparen'>(</span><span class='op'>*</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:start_at</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:start_at</span><span class='rbracket'>]</span>
700
- <span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
701
- <span class='kw'>end</span></pre>
713
+ <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='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>
714
+ <span class='@anchor ivar id'>@anchor</span> <span class='assign token'>=</span> <span class='anchor identifier id'>anchor</span>
715
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='images identifier id'>images</span> <span class='lshft op'>&lt;&lt;</span> <span class='self self kw'>self</span>
716
+ <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>
717
+ <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>
718
+ <span class='end end kw'>end</span>
719
+ <span class='start_at identifier id'>start_at</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:start_at</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:start_at</span><span class='rbrack token'>]</span>
720
+ <span class='yield yield kw'>yield</span> <span class='self self kw'>self</span> <span class='if if_mod kw'>if</span> <span class='block_given? fid id'>block_given?</span>
721
+ <span class='end end kw'>end</span>
722
+ </pre>
702
723
  </td>
703
724
  </tr>
704
725
  </table>
@@ -721,8 +742,9 @@ rowOff.</p>
721
742
 
722
743
  </p><div class="docstring">
723
744
  <div class="discussion">
724
-
725
- <p>The anchor for this image</p>
745
+ <p>
746
+ The anchor for this image
747
+ </p>
726
748
 
727
749
 
728
750
  </div>
@@ -756,9 +778,10 @@ rowOff.</p>
756
778
  <td>
757
779
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 27</span>
758
780
 
759
- <span class='kw'>def</span> <span class='id anchor'>anchor</span>
760
- <span class='ivar'>@anchor</span>
761
- <span class='kw'>end</span></pre>
781
+ <span class='def def kw'>def</span> <span class='anchor identifier id'>anchor</span>
782
+ <span class='@anchor ivar id'>@anchor</span>
783
+ <span class='end end kw'>end</span>
784
+ </pre>
762
785
  </td>
763
786
  </tr>
764
787
  </table>
@@ -776,8 +799,9 @@ rowOff.</p>
776
799
 
777
800
  </p><div class="docstring">
778
801
  <div class="discussion">
779
-
780
- <p>A description of the picture</p>
802
+ <p>
803
+ A description of the picture
804
+ </p>
781
805
 
782
806
 
783
807
  </div>
@@ -811,9 +835,10 @@ rowOff.</p>
811
835
  <td>
812
836
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 18</span>
813
837
 
814
- <span class='kw'>def</span> <span class='id descr'>descr</span>
815
- <span class='ivar'>@descr</span>
816
- <span class='kw'>end</span></pre>
838
+ <span class='def def kw'>def</span> <span class='descr identifier id'>descr</span>
839
+ <span class='@descr ivar id'>@descr</span>
840
+ <span class='end end kw'>end</span>
841
+ </pre>
817
842
  </td>
818
843
  </tr>
819
844
  </table>
@@ -831,9 +856,10 @@ rowOff.</p>
831
856
 
832
857
  </p><div class="docstring">
833
858
  <div class="discussion">
834
-
835
- <p>The path to the image you want to include Only local images are supported
836
- at this time and only jpg support</p>
859
+ <p>
860
+ The path to the image you want to include Only local images are supported
861
+ at this time and only jpg support
862
+ </p>
837
863
 
838
864
 
839
865
  </div>
@@ -867,9 +893,10 @@ at this time and only jpg support</p>
867
893
  <td>
868
894
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 23</span>
869
895
 
870
- <span class='kw'>def</span> <span class='id image_src'>image_src</span>
871
- <span class='ivar'>@image_src</span>
872
- <span class='kw'>end</span></pre>
896
+ <span class='def def kw'>def</span> <span class='image_src identifier id'>image_src</span>
897
+ <span class='@image_src ivar id'>@image_src</span>
898
+ <span class='end end kw'>end</span>
899
+ </pre>
873
900
  </td>
874
901
  </tr>
875
902
  </table>
@@ -887,8 +914,9 @@ at this time and only jpg support</p>
887
914
 
888
915
  </p><div class="docstring">
889
916
  <div class="discussion">
890
-
891
- <p>The name to use for this picture</p>
917
+ <p>
918
+ The name to use for this picture
919
+ </p>
892
920
 
893
921
 
894
922
  </div>
@@ -922,9 +950,10 @@ at this time and only jpg support</p>
922
950
  <td>
923
951
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 13</span>
924
952
 
925
- <span class='kw'>def</span> <span class='id name'>name</span>
926
- <span class='ivar'>@name</span>
927
- <span class='kw'>end</span></pre>
953
+ <span class='def def kw'>def</span> <span class='name identifier id'>name</span>
954
+ <span class='@name ivar id'>@name</span>
955
+ <span class='end end kw'>end</span>
956
+ </pre>
928
957
  </td>
929
958
  </tr>
930
959
  </table>
@@ -946,8 +975,9 @@ at this time and only jpg support</p>
946
975
 
947
976
  </p><div class="docstring">
948
977
  <div class="discussion">
949
-
950
- <p>returns the extension of image_src without the preceeding '.'</p>
978
+ <p>
979
+ returns the extension of image_src without the preceeding &#8217;.&#8217;
980
+ </p>
951
981
 
952
982
 
953
983
  </div>
@@ -981,9 +1011,10 @@ at this time and only jpg support</p>
981
1011
  <td>
982
1012
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 70</span>
983
1013
 
984
- <span class='kw'>def</span> <span class='id extname'>extname</span>
985
- <span class='const'>File</span><span class='period'>.</span><span class='id extname'>extname</span><span class='lparen'>(</span><span class='id image_src'>image_src</span><span class='rparen'>)</span><span class='period'>.</span><span class='id delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id image_src'>image_src</span><span class='period'>.</span><span class='id nil?'>nil?</span>
986
- <span class='kw'>end</span></pre>
1014
+ <span class='def def kw'>def</span> <span class='extname identifier id'>extname</span>
1015
+ <span class='File constant id'>File</span><span class='dot token'>.</span><span class='extname identifier id'>extname</span><span class='lparen token'>(</span><span class='image_src identifier id'>image_src</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='string val'>'.'</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='image_src identifier id'>image_src</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
1016
+ <span class='end end kw'>end</span>
1017
+ </pre>
987
1018
  </td>
988
1019
  </tr>
989
1020
  </table>
@@ -998,8 +1029,9 @@ at this time and only jpg support</p>
998
1029
 
999
1030
  </p><div class="docstring">
1000
1031
  <div class="discussion">
1001
-
1002
- <p>The file name of image_src without any path information</p>
1032
+ <p>
1033
+ The file name of image_src without any path information
1034
+ </p>
1003
1035
 
1004
1036
 
1005
1037
  </div>
@@ -1033,9 +1065,10 @@ at this time and only jpg support</p>
1033
1065
  <td>
1034
1066
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 64</span>
1035
1067
 
1036
- <span class='kw'>def</span> <span class='id file_name'>file_name</span>
1037
- <span class='const'>File</span><span class='period'>.</span><span class='id basename'>basename</span><span class='lparen'>(</span><span class='id image_src'>image_src</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id image_src'>image_src</span><span class='period'>.</span><span class='id nil?'>nil?</span>
1038
- <span class='kw'>end</span></pre>
1068
+ <span class='def def kw'>def</span> <span class='file_name identifier id'>file_name</span>
1069
+ <span class='File constant id'>File</span><span class='dot token'>.</span><span class='basename identifier id'>basename</span><span class='lparen token'>(</span><span class='image_src identifier id'>image_src</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='image_src identifier id'>image_src</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
1070
+ <span class='end end kw'>end</span>
1071
+ </pre>
1039
1072
  </td>
1040
1073
  </tr>
1041
1074
  </table>
@@ -1050,8 +1083,9 @@ at this time and only jpg support</p>
1050
1083
 
1051
1084
  </p><div class="docstring">
1052
1085
  <div class="discussion">
1053
-
1054
- <p>providing access to update the anchor's height attribute</p>
1086
+ <p>
1087
+ providing access to update the anchor&#8217;s height attribute
1088
+ </p>
1055
1089
 
1056
1090
 
1057
1091
  </div>
@@ -1094,9 +1128,10 @@ at this time and only jpg support</p>
1094
1128
  <td>
1095
1129
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 101</span>
1096
1130
 
1097
- <span class='kw'>def</span> <span class='id height'>height</span>
1098
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id height'>height</span>
1099
- <span class='kw'>end</span></pre>
1131
+ <span class='def def kw'>def</span> <span class='height identifier id'>height</span>
1132
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='height identifier id'>height</span>
1133
+ <span class='end end kw'>end</span>
1134
+ </pre>
1100
1135
  </td>
1101
1136
  </tr>
1102
1137
  </table>
@@ -1138,9 +1173,10 @@ at this time and only jpg support</p>
1138
1173
  <td>
1139
1174
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 106</span>
1140
1175
 
1141
- <span class='kw'>def</span> <span class='id height='>height=</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span>
1142
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id height'>height</span> <span class='op'>=</span> <span class='id v'>v</span>
1143
- <span class='kw'>end</span></pre>
1176
+ <span class='def def kw'>def</span> <span class='height= identifier id'>height=</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
1177
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='height identifier id'>height</span> <span class='assign token'>=</span> <span class='v identifier id'>v</span>
1178
+ <span class='end end kw'>end</span>
1179
+ </pre>
1144
1180
  </td>
1145
1181
  </tr>
1146
1182
  </table>
@@ -1155,8 +1191,9 @@ at this time and only jpg support</p>
1155
1191
 
1156
1192
  </p><div class="docstring">
1157
1193
  <div class="discussion">
1158
-
1159
- <p>The index of this image in the workbooks images collections</p>
1194
+ <p>
1195
+ The index of this image in the workbooks images collections
1196
+ </p>
1160
1197
 
1161
1198
 
1162
1199
  </div>
@@ -1190,9 +1227,10 @@ at this time and only jpg support</p>
1190
1227
  <td>
1191
1228
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 76</span>
1192
1229
 
1193
- <span class='kw'>def</span> <span class='id index'>index</span>
1194
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id drawing'>drawing</span><span class='period'>.</span><span class='id worksheet'>worksheet</span><span class='period'>.</span><span class='id workbook'>workbook</span><span class='period'>.</span><span class='id images'>images</span><span class='period'>.</span><span class='id index'>index</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
1195
- <span class='kw'>end</span></pre>
1230
+ <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
1231
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='images identifier id'>images</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>
1232
+ <span class='end end kw'>end</span>
1233
+ </pre>
1196
1234
  </td>
1197
1235
  </tr>
1198
1236
  </table>
@@ -1207,9 +1245,10 @@ at this time and only jpg support</p>
1207
1245
 
1208
1246
  </p><div class="docstring">
1209
1247
  <div class="discussion">
1210
-
1211
- <p>The part name for this image used in serialization and relationship
1212
- building</p>
1248
+ <p>
1249
+ The part name for this image used in serialization and relationship
1250
+ building
1251
+ </p>
1213
1252
 
1214
1253
 
1215
1254
  </div>
@@ -1243,9 +1282,10 @@ building</p>
1243
1282
  <td>
1244
1283
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 82</span>
1245
1284
 
1246
- <span class='kw'>def</span> <span class='id pn'>pn</span>
1247
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>IMAGE_PN</span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='lparen'>(</span><span class='id index'>index</span><span class='op'>+</span><span class='int'>1</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id extname'>extname</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1248
- <span class='kw'>end</span></pre>
1285
+ <span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
1286
+ <span class='dstring node'>&quot;#{IMAGE_PN % [(index+1), extname]}&quot;</span>
1287
+ <span class='end end kw'>end</span>
1288
+ </pre>
1249
1289
  </td>
1250
1290
  </tr>
1251
1291
  </table>
@@ -1260,10 +1300,11 @@ building</p>
1260
1300
 
1261
1301
  </p><div class="docstring">
1262
1302
  <div class="discussion">
1263
-
1264
- <p>This is a short cut method to set the start anchor position If you need
1303
+ <p>
1304
+ This is a short cut method to set the start anchor position If you need
1265
1305
  finer granularity in positioning use graphic_frame.anchor.from.colOff /
1266
- rowOff</p>
1306
+ rowOff
1307
+ </p>
1267
1308
 
1268
1309
 
1269
1310
  </div>
@@ -1282,8 +1323,9 @@ rowOff</p>
1282
1323
 
1283
1324
 
1284
1325
  &mdash;
1285
- <div class='inline'>
1286
- <p>The column</p>
1326
+ <div class='inline'><p>
1327
+ The column
1328
+ </p>
1287
1329
  </div>
1288
1330
 
1289
1331
  </li>
@@ -1298,8 +1340,9 @@ rowOff</p>
1298
1340
 
1299
1341
 
1300
1342
  &mdash;
1301
- <div class='inline'>
1302
- <p>The row</p>
1343
+ <div class='inline'><p>
1344
+ The row
1345
+ </p>
1303
1346
  </div>
1304
1347
 
1305
1348
  </li>
@@ -1334,10 +1377,11 @@ rowOff</p>
1334
1377
  <td>
1335
1378
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 116</span>
1336
1379
 
1337
- <span class='kw'>def</span> <span class='id start_at'>start_at</span><span class='lparen'>(</span><span class='id x'>x</span><span class='comma'>,</span> <span class='id y'>y</span><span class='rparen'>)</span>
1338
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id from'>from</span><span class='period'>.</span><span class='id col'>col</span> <span class='op'>=</span> <span class='id x'>x</span>
1339
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id from'>from</span><span class='period'>.</span><span class='id row'>row</span> <span class='op'>=</span> <span class='id y'>y</span>
1340
- <span class='kw'>end</span></pre>
1380
+ <span class='def def kw'>def</span> <span class='start_at identifier id'>start_at</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span>
1381
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='from identifier id'>from</span><span class='dot token'>.</span><span class='col identifier id'>col</span> <span class='assign token'>=</span> <span class='x identifier id'>x</span>
1382
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='from identifier id'>from</span><span class='dot token'>.</span><span class='row identifier id'>row</span> <span class='assign token'>=</span> <span class='y identifier id'>y</span>
1383
+ <span class='end end kw'>end</span>
1384
+ </pre>
1341
1385
  </td>
1342
1386
  </tr>
1343
1387
  </table>
@@ -1352,8 +1396,9 @@ rowOff</p>
1352
1396
 
1353
1397
  </p><div class="docstring">
1354
1398
  <div class="discussion">
1355
-
1356
- <p>Serializes the picture</p>
1399
+ <p>
1400
+ Serializes the picture
1401
+ </p>
1357
1402
 
1358
1403
 
1359
1404
  </div>
@@ -1372,8 +1417,9 @@ rowOff</p>
1372
1417
 
1373
1418
 
1374
1419
  &mdash;
1375
- <div class='inline'>
1376
- <p>The document builder instance this objects xml will be added to.</p>
1420
+ <div class='inline'><p>
1421
+ The document builder instance this objects xml will be added to.
1422
+ </p>
1377
1423
  </div>
1378
1424
 
1379
1425
  </li>
@@ -1429,31 +1475,32 @@ rowOff</p>
1429
1475
  <td>
1430
1476
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 124</span>
1431
1477
 
1432
- <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>
1433
- <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:pic</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1434
- <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:nvPicPr</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1435
- <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:cNvPr</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:id</span><span class='op'>=&gt;</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:name</span><span class='op'>=&gt;</span><span class='id name'>name</span><span class='comma'>,</span> <span class='symbol'>:descr</span><span class='op'>=&gt;</span><span class='id descr'>descr</span><span class='rparen'>)</span>
1436
- <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:cNvPicPr</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1437
- <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'>a:picLocks</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:noChangeAspect</span><span class='op'>=&gt;</span><span class='int'>1</span><span class='rparen'>)</span>
1438
- <span class='rbrace'>}</span>
1439
- <span class='rbrace'>}</span>
1440
- <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:blipFill</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1441
- <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'>a:blip</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:xmlns:r</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='const'>XML_NS_R</span><span class='comma'>,</span> <span class='symbol'>:r:embed</span><span class='tstring_end'>'</span></span><span class='op'>=&gt;</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>rId1</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1442
- <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'>a:stretch</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1443
- <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'>a:fillRect</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1444
- <span class='rbrace'>}</span>
1445
- <span class='rbrace'>}</span>
1446
- <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:spPr</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1447
- <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'>a:xfrm</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1448
- <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'>a:off</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:x</span><span class='op'>=&gt;</span><span class='int'>0</span><span class='comma'>,</span> <span class='symbol'>:y</span><span class='op'>=&gt;</span><span class='int'>0</span><span class='rparen'>)</span>
1449
- <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'>a:ext</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:cx</span><span class='op'>=&gt;</span><span class='int'>2336800</span><span class='comma'>,</span> <span class='symbol'>:cy</span><span class='op'>=&gt;</span><span class='int'>2161540</span><span class='rparen'>)</span>
1450
- <span class='rbrace'>}</span>
1451
- <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'>a:prstGeom</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:prst</span><span class='op'>=&gt;</span><span class='symbol'>:rect</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
1452
- <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'>a:avLst</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1453
- <span class='rbrace'>}</span>
1454
- <span class='rbrace'>}</span>
1455
- <span class='rbrace'>}</span>
1456
- <span class='kw'>end</span></pre>
1478
+ <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>
1479
+ <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:pic'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1480
+ <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:nvPicPr'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1481
+ <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:cNvPr'</span><span class='comma token'>,</span> <span class='symbol val'>:id=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;2&quot;</span><span class='comma token'>,</span> <span class='symbol val'>:name=</span><span class='gt op'>&gt;</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='symbol val'>:descr=</span><span class='gt op'>&gt;</span><span class='descr identifier id'>descr</span><span class='rparen token'>)</span>
1482
+ <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:cNvPicPr'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1483
+ <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'>'a:picLocks'</span><span class='comma token'>,</span> <span class='symbol val'>:noChangeAspect=</span><span class='gt op'>&gt;</span><span class='integer val'>1</span><span class='rparen token'>)</span>
1484
+ <span class='rbrace token'>}</span>
1485
+ <span class='rbrace token'>}</span>
1486
+ <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:blipFill'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1487
+ <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'>'a:blip'</span><span class='comma token'>,</span> <span class='symbol val'>:'xmlns:r'</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='XML_NS_R constant id'>XML_NS_R</span><span class='comma token'>,</span> <span class='symbol val'>:'r:embed'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;rId1&quot;</span><span class='rparen token'>)</span>
1488
+ <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'>'a:stretch'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1489
+ <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'>'a:fillRect'</span><span class='rparen token'>)</span>
1490
+ <span class='rbrace token'>}</span>
1491
+ <span class='rbrace token'>}</span>
1492
+ <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:spPr'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1493
+ <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'>'a:xfrm'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1494
+ <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'>'a:off'</span><span class='comma token'>,</span> <span class='symbol val'>:x=</span><span class='gt op'>&gt;</span><span class='integer val'>0</span><span class='comma token'>,</span> <span class='symbol val'>:y=</span><span class='gt op'>&gt;</span><span class='integer val'>0</span><span class='rparen token'>)</span>
1495
+ <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'>'a:ext'</span><span class='comma token'>,</span> <span class='symbol val'>:cx=</span><span class='gt op'>&gt;</span><span class='integer val'>2336800</span><span class='comma token'>,</span> <span class='symbol val'>:cy=</span><span class='gt op'>&gt;</span><span class='integer val'>2161540</span><span class='rparen token'>)</span>
1496
+ <span class='rbrace token'>}</span>
1497
+ <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'>'a:prstGeom'</span><span class='comma token'>,</span> <span class='symbol val'>:prst=</span><span class='gt op'>&gt;</span><span class='symbol val'>:rect</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1498
+ <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'>'a:avLst'</span><span class='rparen token'>)</span>
1499
+ <span class='rbrace token'>}</span>
1500
+ <span class='rbrace token'>}</span>
1501
+ <span class='rbrace token'>}</span>
1502
+ <span class='end end kw'>end</span>
1503
+ </pre>
1457
1504
  </td>
1458
1505
  </tr>
1459
1506
  </table>
@@ -1468,8 +1515,9 @@ rowOff</p>
1468
1515
 
1469
1516
  </p><div class="docstring">
1470
1517
  <div class="discussion">
1471
-
1472
- <p>providing access to the anchor's width attribute</p>
1518
+ <p>
1519
+ providing access to the anchor&#8217;s width attribute
1520
+ </p>
1473
1521
 
1474
1522
 
1475
1523
  </div>
@@ -1512,9 +1560,10 @@ rowOff</p>
1512
1560
  <td>
1513
1561
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 89</span>
1514
1562
 
1515
- <span class='kw'>def</span> <span class='id width'>width</span>
1516
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id width'>width</span>
1517
- <span class='kw'>end</span></pre>
1563
+ <span class='def def kw'>def</span> <span class='width identifier id'>width</span>
1564
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='width identifier id'>width</span>
1565
+ <span class='end end kw'>end</span>
1566
+ </pre>
1518
1567
  </td>
1519
1568
  </tr>
1520
1569
  </table>
@@ -1556,9 +1605,10 @@ rowOff</p>
1556
1605
  <td>
1557
1606
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 94</span>
1558
1607
 
1559
- <span class='kw'>def</span> <span class='id width='>width=</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span>
1560
- <span class='ivar'>@anchor</span><span class='period'>.</span><span class='id width'>width</span> <span class='op'>=</span> <span class='id v'>v</span>
1561
- <span class='kw'>end</span></pre>
1608
+ <span class='def def kw'>def</span> <span class='width= identifier id'>width=</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
1609
+ <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='width identifier id'>width</span> <span class='assign token'>=</span> <span class='v identifier id'>v</span>
1610
+ <span class='end end kw'>end</span>
1611
+ </pre>
1562
1612
  </td>
1563
1613
  </tr>
1564
1614
  </table>
@@ -1569,9 +1619,9 @@ rowOff</p>
1569
1619
  </div>
1570
1620
 
1571
1621
  <div id="footer">
1572
- Generated on Sat Nov 26 13:16:36 2011 by
1622
+ Generated on Sun Nov 27 21:54:28 2011 by
1573
1623
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1574
- 0.7.3 (ruby-1.9.3).
1624
+ 0.7.3 (ruby-1.8.7).
1575
1625
  </div>
1576
1626
 
1577
1627
  </body>