axlsx 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/README.md +22 -21
  3. data/Rakefile +1 -1
  4. data/axlsx.gemspec +36 -0
  5. data/doc/Axlsx.html +373 -559
  6. data/doc/Axlsx/App.html +257 -360
  7. data/doc/Axlsx/Axis.html +113 -144
  8. data/doc/Axlsx/Bar3DChart.html +122 -152
  9. data/doc/Axlsx/BarSeries.html +67 -81
  10. data/doc/Axlsx/Border.html +96 -119
  11. data/doc/Axlsx/BorderPr.html +89 -114
  12. data/doc/Axlsx/CatAxis.html +79 -104
  13. data/doc/Axlsx/CatAxisData.html +40 -54
  14. data/doc/Axlsx/Cell.html +193 -679
  15. data/doc/Axlsx/CellAlignment.html +116 -157
  16. data/doc/Axlsx/CellProtection.html +50 -68
  17. data/doc/Axlsx/CellStyle.html +78 -106
  18. data/doc/Axlsx/Chart.html +361 -432
  19. data/doc/Axlsx/Color.html +56 -78
  20. data/doc/Axlsx/ContentType.html +28 -41
  21. data/doc/Axlsx/Core.html +43 -55
  22. data/doc/Axlsx/DataTypeValidator.html +34 -43
  23. data/doc/Axlsx/Default.html +55 -81
  24. data/doc/Axlsx/Drawing.html +322 -412
  25. data/doc/Axlsx/Fill.html +34 -47
  26. data/doc/Axlsx/Font.html +157 -207
  27. data/doc/Axlsx/GradientFill.html +90 -122
  28. data/doc/Axlsx/GradientStop.html +36 -50
  29. data/doc/Axlsx/GraphicFrame.html +106 -130
  30. data/doc/Axlsx/Line3DChart.html +108 -134
  31. data/doc/Axlsx/LineSeries.html +58 -67
  32. data/doc/Axlsx/Marker.html +84 -111
  33. data/doc/Axlsx/NumFmt.html +83 -102
  34. data/doc/Axlsx/OneCellAnchor.html +158 -196
  35. data/doc/Axlsx/Override.html +60 -92
  36. data/doc/Axlsx/Package.html +190 -759
  37. data/doc/Axlsx/PatternFill.html +78 -99
  38. data/doc/Axlsx/Pic.html +451 -405
  39. data/doc/Axlsx/Pie3DChart.html +33 -42
  40. data/doc/Axlsx/PieSeries.html +68 -80
  41. data/doc/Axlsx/RegexValidator.html +15 -20
  42. data/doc/Axlsx/Relationship.html +49 -66
  43. data/doc/Axlsx/Relationships.html +28 -41
  44. data/doc/Axlsx/RestrictionValidator.html +23 -32
  45. data/doc/Axlsx/Row.html +132 -161
  46. data/doc/Axlsx/Scaling.html +71 -90
  47. data/doc/Axlsx/SerAxis.html +61 -79
  48. data/doc/Axlsx/Series.html +125 -201
  49. data/doc/Axlsx/SeriesTitle.html +26 -31
  50. data/doc/Axlsx/Styles.html +286 -355
  51. data/doc/Axlsx/TableStyle.html +62 -87
  52. data/doc/Axlsx/TableStyleElement.html +84 -104
  53. data/doc/Axlsx/TableStyles.html +59 -82
  54. data/doc/Axlsx/Title.html +58 -155
  55. data/doc/Axlsx/TwoCellAnchor.html +165 -204
  56. data/doc/Axlsx/ValAxis.html +39 -53
  57. data/doc/Axlsx/ValAxisData.html +29 -39
  58. data/doc/Axlsx/View3D.html +93 -122
  59. data/doc/Axlsx/Workbook.html +359 -362
  60. data/doc/Axlsx/Worksheet.html +471 -816
  61. data/doc/Axlsx/Xf.html +341 -296
  62. data/doc/_index.html +7 -11
  63. data/doc/class_list.html +1 -1
  64. data/doc/file.LICENSE.html +86 -0
  65. data/doc/file.README.html +105 -107
  66. data/doc/file_list.html +3 -0
  67. data/doc/frames.html +1 -1
  68. data/doc/index.html +105 -107
  69. data/doc/method_list.html +426 -602
  70. data/doc/top-level-namespace.html +3 -3
  71. data/examples/example.rb +20 -1
  72. data/lib/axlsx.rb +20 -15
  73. data/lib/axlsx/content_type/default.rb +8 -3
  74. data/lib/axlsx/content_type/override.rb +11 -4
  75. data/lib/axlsx/doc_props/app.rb +53 -23
  76. data/lib/axlsx/drawing/axis.rb +16 -5
  77. data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
  78. data/lib/axlsx/drawing/bar_series.rb +7 -5
  79. data/lib/axlsx/drawing/cat_axis.rb +10 -3
  80. data/lib/axlsx/drawing/chart.rb +21 -15
  81. data/lib/axlsx/drawing/drawing.rb +16 -30
  82. data/lib/axlsx/drawing/graphic_frame.rb +2 -4
  83. data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
  84. data/lib/axlsx/drawing/line_series.rb +6 -5
  85. data/lib/axlsx/drawing/marker.rb +9 -5
  86. data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
  87. data/lib/axlsx/drawing/pic.rb +29 -37
  88. data/lib/axlsx/drawing/pie_series.rb +7 -5
  89. data/lib/axlsx/drawing/scaling.rb +11 -5
  90. data/lib/axlsx/drawing/ser_axis.rb +6 -2
  91. data/lib/axlsx/drawing/series.rb +11 -11
  92. data/lib/axlsx/drawing/series_title.rb +1 -1
  93. data/lib/axlsx/drawing/title.rb +5 -12
  94. data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
  95. data/lib/axlsx/drawing/val_axis.rb +2 -2
  96. data/lib/axlsx/drawing/view_3D.rb +16 -9
  97. data/lib/axlsx/package.rb +25 -27
  98. data/lib/axlsx/rels/relationship.rb +4 -2
  99. data/lib/axlsx/stylesheet/border.rb +9 -4
  100. data/lib/axlsx/stylesheet/border_pr.rb +7 -4
  101. data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
  102. data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
  103. data/lib/axlsx/stylesheet/cell_style.rb +12 -7
  104. data/lib/axlsx/stylesheet/color.rb +8 -6
  105. data/lib/axlsx/stylesheet/fill.rb +2 -1
  106. data/lib/axlsx/stylesheet/font.rb +24 -13
  107. data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
  108. data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
  109. data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
  110. data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
  111. data/lib/axlsx/stylesheet/styles.rb +12 -12
  112. data/lib/axlsx/stylesheet/table_style.rb +6 -3
  113. data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
  114. data/lib/axlsx/stylesheet/table_styles.rb +4 -4
  115. data/lib/axlsx/stylesheet/xf.rb +52 -31
  116. data/lib/axlsx/util/validators.rb +3 -3
  117. data/lib/axlsx/version.rb +1 -1
  118. data/lib/axlsx/workbook/workbook.rb +8 -9
  119. data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
  120. data/lib/axlsx/workbook/worksheet/row.rb +2 -4
  121. data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
  122. data/test/drawing/tc_one_cell_anchor.rb +1 -1
  123. metadata +135 -165
  124. data/doc/Axlsx/SimpleTypedList.html +0 -1686
  125. data/lib/schema/dc.xsd~ +0 -118
  126. data/lib/schema/dcterms.xsd~ +0 -331
  127. data/lib/schema/opc-coreProperties.xsd~ +0 -50
  128. data/test/drawing/tc_line_series.tc~ +0 -34
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::TwoCellAnchor
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; AXLSX
10
10
 
11
11
  </title>
12
12
 
@@ -97,16 +97,14 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'><p>
101
- The recommended way to manage drawings and charts is Worksheet#add_chart.
102
- Anchors are specified by the :start_at and :end_at options to that method.
103
- </p>
100
+ <div class='inline'>
101
+ <p>The recommended way to manage drawings and charts is Worksheet#add_chart.
102
+ Anchors are specified by the :start_at and :end_at options to that method.</p>
104
103
  </div>
105
104
  </div>
106
105
 
107
- <p>
108
- This class details the anchor points for drawings.
109
- </p>
106
+
107
+ <p>This class details the anchor points for drawings.</p>
110
108
 
111
109
 
112
110
  </div>
@@ -145,9 +143,8 @@ This class details the anchor points for drawings.
145
143
 
146
144
 
147
145
 
148
- <span class="summary_desc"><div class='inline'><p>
149
- The drawing that holds this anchor.
150
- </p>
146
+ <span class="summary_desc"><div class='inline'>
147
+ <p>The drawing that holds this anchor.</p>
151
148
  </div></span>
152
149
 
153
150
  </li>
@@ -172,9 +169,8 @@ The drawing that holds this anchor.
172
169
 
173
170
 
174
171
 
175
- <span class="summary_desc"><div class='inline'><p>
176
- A marker that defines the from cell anchor.
177
- </p>
172
+ <span class="summary_desc"><div class='inline'>
173
+ <p>A marker that defines the from cell anchor.</p>
178
174
  </div></span>
179
175
 
180
176
  </li>
@@ -183,7 +179,7 @@ A marker that defines the from cell anchor.
183
179
  <li class="public ">
184
180
  <span class="summary_signature">
185
181
 
186
- <a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
182
+ <a href="#object-instance_method" title="#object (instance method)">- (Pic, GraphicFrame) <strong>object</strong> </a>
187
183
 
188
184
 
189
185
 
@@ -199,9 +195,8 @@ A marker that defines the from cell anchor.
199
195
 
200
196
 
201
197
 
202
- <span class="summary_desc"><div class='inline'><p>
203
- The index of this anchor in the drawing.
204
- </p>
198
+ <span class="summary_desc"><div class='inline'>
199
+ <p>The object this anchor hosts.</p>
205
200
  </div></span>
206
201
 
207
202
  </li>
@@ -210,7 +205,7 @@ The index of this anchor in the drawing.
210
205
  <li class="public ">
211
206
  <span class="summary_signature">
212
207
 
213
- <a href="#object-instance_method" title="#object (instance method)">- (Pic, GraphicFrame) <strong>object</strong> </a>
208
+ <a href="#to-instance_method" title="#to (instance method)">- (Marker) <strong>to</strong> </a>
214
209
 
215
210
 
216
211
 
@@ -226,58 +221,53 @@ The index of this anchor in the drawing.
226
221
 
227
222
 
228
223
 
229
- <span class="summary_desc"><div class='inline'><p>
230
- The object this anchor hosts.
231
- </p>
224
+ <span class="summary_desc"><div class='inline'>
225
+ <p>A marker that returns the to cell anchor.</p>
232
226
  </div></span>
233
227
 
234
228
  </li>
235
229
 
236
230
 
237
- <li class="public ">
231
+ </ul>
232
+
233
+
234
+
235
+
236
+
237
+ <h2>
238
+ Instance Method Summary
239
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
240
+ </h2>
241
+
242
+ <ul class="summary">
243
+
244
+ <li class="public ">
238
245
  <span class="summary_signature">
239
246
 
240
- <a href="#to-instance_method" title="#to (instance method)">- (Marker) <strong>to</strong> </a>
247
+ <a href="#add_chart-instance_method" title="#add_chart (instance method)">- (Chart) <strong>add_chart</strong>(chart_type, options) </a>
241
248
 
242
249
 
243
250
 
244
251
  </span>
245
252
 
246
253
 
247
- <span class="note title readonly">readonly</span>
248
-
249
-
250
254
 
251
255
 
252
256
 
253
257
 
254
258
 
255
259
 
256
- <span class="summary_desc"><div class='inline'><p>
257
- A marker that returns the to cell anchor.
258
- </p>
260
+ <span class="summary_desc"><div class='inline'>
261
+ <p>Creates a graphic frame and chart object associated with this anchor.</p>
259
262
  </div></span>
260
263
 
261
264
  </li>
262
265
 
263
-
264
- </ul>
265
-
266
-
267
-
268
-
269
-
270
- <h2>
271
- Instance Method Summary
272
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
273
- </h2>
274
-
275
- <ul class="summary">
276
266
 
277
267
  <li class="public ">
278
268
  <span class="summary_signature">
279
269
 
280
- <a href="#add_chart-instance_method" title="#add_chart (instance method)">- (Chart) <strong>add_chart</strong>(chart_type, options) </a>
270
+ <a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
281
271
 
282
272
 
283
273
 
@@ -290,9 +280,8 @@ A marker that returns the to cell anchor.
290
280
 
291
281
 
292
282
 
293
- <span class="summary_desc"><div class='inline'><p>
294
- Creates a graphic frame and chart object associated with this anchor.
295
- </p>
283
+ <span class="summary_desc"><div class='inline'>
284
+ <p>The index of this anchor in the drawing.</p>
296
285
  </div></span>
297
286
 
298
287
  </li>
@@ -316,10 +305,9 @@ Creates a graphic frame and chart object associated with this anchor.
316
305
 
317
306
 
318
307
 
319
- <span class="summary_desc"><div class='inline'><p>
320
- Creates a new TwoCellAnchor object and sets up a reference to the from and
321
- to markers in the graphic_frame&#8217;s chart.
322
- </p>
308
+ <span class="summary_desc"><div class='inline'>
309
+ <p>Creates a new TwoCellAnchor object and sets up a reference to the from and
310
+ to markers in the graphic_frame's chart.</p>
323
311
  </div></span>
324
312
 
325
313
  </li>
@@ -341,9 +329,8 @@ to markers in the graphic_frame&#8217;s chart.
341
329
 
342
330
 
343
331
 
344
- <span class="summary_desc"><div class='inline'><p>
345
- Serializes the two cell anchor.
346
- </p>
332
+ <span class="summary_desc"><div class='inline'>
333
+ <p>Serializes the two cell anchor.</p>
347
334
  </div></span>
348
335
 
349
336
  </li>
@@ -367,17 +354,15 @@ Serializes the two cell anchor.
367
354
 
368
355
  <div class="note notetag">
369
356
  <strong>Note:</strong>
370
- <div class='inline'><p>
371
- the chart_type parameter will be replaced with object in v. 2.0.0
372
- </p>
357
+ <div class='inline'>
358
+ <p>the chart_type parameter will be replaced with object in v. 2.0.0</p>
373
359
  </div>
374
360
  </div>
375
361
 
376
- <p>
377
- Creates a new TwoCellAnchor object and sets up a reference to the from and
378
- to markers in the graphic_frame&#8217;s chart. That means that you can do
379
- stuff like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9
380
- </p>
362
+
363
+ <p>Creates a new TwoCellAnchor object and sets up a reference to the from and
364
+ to markers in the graphic_frame's chart. That means that you can do stuff
365
+ like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9</p>
381
366
 
382
367
 
383
368
  </div>
@@ -407,10 +392,9 @@ stuff like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9
407
392
 
408
393
 
409
394
  &mdash;
410
- <div class='inline'><p>
411
- This is passed to the graphic frame for instantiation. must be Chart or a
412
- subclass of Chart
413
- </p>
395
+ <div class='inline'>
396
+ <p>This is passed to the graphic frame for instantiation. must be Chart or a
397
+ subclass of Chart</p>
414
398
  </div>
415
399
 
416
400
  </li>
@@ -425,9 +409,8 @@ subclass of Chart
425
409
 
426
410
 
427
411
  &mdash;
428
- <div class='inline'><p>
429
- The object this anchor holds.
430
- </p>
412
+ <div class='inline'>
413
+ <p>The object this anchor holds.</p>
431
414
  </div>
432
415
 
433
416
  </li>
@@ -444,9 +427,8 @@ The object this anchor holds.
444
427
 
445
428
 
446
429
  &mdash;
447
- <div class='inline'><p>
448
- a customizable set of options
449
- </p>
430
+ <div class='inline'>
431
+ <p>a customizable set of options</p>
450
432
  </div>
451
433
 
452
434
  </li>
@@ -467,9 +449,8 @@ a customizable set of options
467
449
  <span class="default">
468
450
 
469
451
  </span>
470
- &mdash; <div class='inline'><p>
471
- the col, row to start at
472
- </p>
452
+ &mdash; <div class='inline'>
453
+ <p>the col, row to start at</p>
473
454
  </div>
474
455
  </li>
475
456
 
@@ -479,9 +460,8 @@ the col, row to start at
479
460
  <span class="default">
480
461
 
481
462
  </span>
482
- &mdash; <div class='inline'><p>
483
- the col, row to end at
484
- </p>
463
+ &mdash; <div class='inline'>
464
+ <p>the col, row to end at</p>
485
465
  </div>
486
466
  </li>
487
467
 
@@ -495,21 +475,20 @@ the col, row to end at
495
475
  <pre class="lines">
496
476
 
497
477
 
478
+ 38
479
+ 39
480
+ 40
498
481
  41
499
- 42
500
- 43
501
- 44
502
- 45</pre>
482
+ 42</pre>
503
483
  </td>
504
484
  <td>
505
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 41</span>
506
-
507
- <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>
508
- <span class='@drawing ivar id'>@drawing</span> <span class='assign token'>=</span> <span class='drawing identifier id'>drawing</span>
509
- <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>
510
- <span class='@from ivar id'>@from</span><span class='comma token'>,</span> <span class='@to ivar id'>@to</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><span class='comma token'>,</span> <span class='Marker constant id'>Marker</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:col</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>5</span><span class='comma token'>,</span> <span class='symbol val'>:row=</span><span class='gt op'>&gt;</span><span class='integer val'>10</span><span class='rparen token'>)</span>
511
- <span class='end end kw'>end</span>
512
- </pre>
485
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 38</span>
486
+
487
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id drawing'>drawing</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
488
+ <span class='ivar'>@drawing</span> <span class='op'>=</span> <span class='id drawing'>drawing</span>
489
+ <span class='id drawing'>drawing</span><span class='period'>.</span><span class='id anchors'>anchors</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
490
+ <span class='ivar'>@from</span><span class='comma'>,</span> <span class='ivar'>@to</span> <span class='op'>=</span> <span class='const'>Marker</span><span class='period'>.</span><span class='id new'>new</span><span class='comma'>,</span> <span class='const'>Marker</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:col</span> <span class='op'>=&gt;</span> <span class='int'>5</span><span class='comma'>,</span> <span class='symbol'>:row</span><span class='op'>=&gt;</span><span class='int'>10</span><span class='rparen'>)</span>
491
+ <span class='kw'>end</span></pre>
513
492
  </td>
514
493
  </tr>
515
494
  </table>
@@ -532,9 +511,8 @@ the col, row to end at
532
511
 
533
512
  </p><div class="docstring">
534
513
  <div class="discussion">
535
- <p>
536
- The drawing that holds this anchor
537
- </p>
514
+
515
+ <p>The drawing that holds this anchor</p>
538
516
 
539
517
 
540
518
  </div>
@@ -568,10 +546,9 @@ The drawing that holds this anchor
568
546
  <td>
569
547
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 25</span>
570
548
 
571
- <span class='def def kw'>def</span> <span class='drawing identifier id'>drawing</span>
572
- <span class='@drawing ivar id'>@drawing</span>
573
- <span class='end end kw'>end</span>
574
- </pre>
549
+ <span class='kw'>def</span> <span class='id drawing'>drawing</span>
550
+ <span class='ivar'>@drawing</span>
551
+ <span class='kw'>end</span></pre>
575
552
  </td>
576
553
  </tr>
577
554
  </table>
@@ -589,10 +566,9 @@ The drawing that holds this anchor
589
566
 
590
567
  </p><div class="docstring">
591
568
  <div class="discussion">
592
- <p>
593
- A marker that defines the from cell anchor. The default from column and row
594
- are 0 and 0 respectively
595
- </p>
569
+
570
+ <p>A marker that defines the from cell anchor. The default from column and row
571
+ are 0 and 0 respectively</p>
596
572
 
597
573
 
598
574
  </div>
@@ -626,10 +602,9 @@ are 0 and 0 respectively
626
602
  <td>
627
603
  <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 9</span>
628
604
 
629
- <span class='def def kw'>def</span> <span class='from identifier id'>from</span>
630
- <span class='@from ivar id'>@from</span>
631
- <span class='end end kw'>end</span>
632
- </pre>
605
+ <span class='kw'>def</span> <span class='id from'>from</span>
606
+ <span class='ivar'>@from</span>
607
+ <span class='kw'>end</span></pre>
633
608
  </td>
634
609
  </tr>
635
610
  </table>
@@ -637,19 +612,18 @@ are 0 and 0 respectively
637
612
 
638
613
 
639
614
  <span id=""></span>
640
- <span id="index-instance_method"></span>
615
+ <span id="object-instance_method"></span>
641
616
  <div class="method_details ">
642
- <p class="signature " id="index-instance_method">
617
+ <p class="signature " id="object-instance_method">
643
618
 
644
- - (<tt>Integer</tt>) <strong>index</strong> <span class="extras">(readonly)</span>
619
+ - (<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>, <tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>) <strong>object</strong> <span class="extras">(readonly)</span>
645
620
 
646
621
 
647
622
 
648
623
  </p><div class="docstring">
649
624
  <div class="discussion">
650
- <p>
651
- The index of this anchor in the drawing
652
- </p>
625
+
626
+ <p>The object this anchor hosts</p>
653
627
 
654
628
 
655
629
  </div>
@@ -662,7 +636,7 @@ The index of this anchor in the drawing
662
636
  <li>
663
637
 
664
638
 
665
- <span class='type'>(<tt>Integer</tt>)</span>
639
+ <span class='type'>(<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>, <tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>)</span>
666
640
 
667
641
 
668
642
 
@@ -676,17 +650,16 @@ The index of this anchor in the drawing
676
650
  <pre class="lines">
677
651
 
678
652
 
679
- 29
680
- 30
681
- 31</pre>
653
+ 21
654
+ 22
655
+ 23</pre>
682
656
  </td>
683
657
  <td>
684
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 29</span>
658
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 21</span>
685
659
 
686
- <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
687
- <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>
688
- <span class='end end kw'>end</span>
689
- </pre>
660
+ <span class='kw'>def</span> <span class='id object'>object</span>
661
+ <span class='ivar'>@object</span>
662
+ <span class='kw'>end</span></pre>
690
663
  </td>
691
664
  </tr>
692
665
  </table>
@@ -694,19 +667,19 @@ The index of this anchor in the drawing
694
667
 
695
668
 
696
669
  <span id=""></span>
697
- <span id="object-instance_method"></span>
670
+ <span id="to-instance_method"></span>
698
671
  <div class="method_details ">
699
- <p class="signature " id="object-instance_method">
672
+ <p class="signature " id="to-instance_method">
700
673
 
701
- - (<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>, <tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>) <strong>object</strong> <span class="extras">(readonly)</span>
674
+ - (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>to</strong> <span class="extras">(readonly)</span>
702
675
 
703
676
 
704
677
 
705
678
  </p><div class="docstring">
706
679
  <div class="discussion">
707
- <p>
708
- The object this anchor hosts
709
- </p>
680
+
681
+ <p>A marker that returns the to cell anchor. The default to column and row are
682
+ 5 and 10 respectively</p>
710
683
 
711
684
 
712
685
  </div>
@@ -719,7 +692,7 @@ The object this anchor hosts
719
692
  <li>
720
693
 
721
694
 
722
- <span class='type'>(<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>, <tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>)</span>
695
+ <span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
723
696
 
724
697
 
725
698
 
@@ -733,38 +706,39 @@ The object this anchor hosts
733
706
  <pre class="lines">
734
707
 
735
708
 
736
- 21
737
- 22
738
- 23</pre>
709
+ 12
710
+ 13
711
+ 14</pre>
739
712
  </td>
740
713
  <td>
741
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 21</span>
714
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 12</span>
742
715
 
743
- <span class='def def kw'>def</span> <span class='object identifier id'>object</span>
744
- <span class='@object ivar id'>@object</span>
745
- <span class='end end kw'>end</span>
746
- </pre>
716
+ <span class='kw'>def</span> <span class='id to'>to</span>
717
+ <span class='ivar'>@to</span>
718
+ <span class='kw'>end</span></pre>
747
719
  </td>
748
720
  </tr>
749
721
  </table>
750
722
  </div>
751
723
 
752
-
753
- <span id=""></span>
754
- <span id="to-instance_method"></span>
755
- <div class="method_details ">
756
- <p class="signature " id="to-instance_method">
724
+ </div>
725
+
726
+
727
+ <div id="instance_method_details" class="method_details_list">
728
+ <h2>Instance Method Details</h2>
729
+
730
+
731
+ <div class="method_details first">
732
+ <p class="signature first" id="add_chart-instance_method">
757
733
 
758
- - (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>to</strong> <span class="extras">(readonly)</span>
734
+ - (<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>) <strong>add_chart</strong>(chart_type, options)
759
735
 
760
736
 
761
737
 
762
738
  </p><div class="docstring">
763
739
  <div class="discussion">
764
- <p>
765
- A marker that returns the to cell anchor. The default to column and row are
766
- 5 and 10 respectively
767
- </p>
740
+
741
+ <p>Creates a graphic frame and chart object associated with this anchor</p>
768
742
 
769
743
 
770
744
  </div>
@@ -777,7 +751,7 @@ A marker that returns the to cell anchor. The default to column and row are
777
751
  <li>
778
752
 
779
753
 
780
- <span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
754
+ <span class='type'>(<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>)</span>
781
755
 
782
756
 
783
757
 
@@ -791,41 +765,34 @@ A marker that returns the to cell anchor. The default to column and row are
791
765
  <pre class="lines">
792
766
 
793
767
 
794
- 12
795
- 13
796
- 14</pre>
768
+ 46
769
+ 47
770
+ 48
771
+ 49</pre>
797
772
  </td>
798
773
  <td>
799
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 12</span>
774
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 46</span>
800
775
 
801
- <span class='def def kw'>def</span> <span class='to identifier id'>to</span>
802
- <span class='@to ivar id'>@to</span>
803
- <span class='end end kw'>end</span>
804
- </pre>
776
+ <span class='kw'>def</span> <span class='id add_chart'>add_chart</span><span class='lparen'>(</span><span class='id chart_type'>chart_type</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
777
+ <span class='ivar'>@object</span> <span class='op'>=</span> <span class='const'>GraphicFrame</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id chart_type'>chart_type</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
778
+ <span class='ivar'>@object</span><span class='period'>.</span><span class='id chart'>chart</span>
779
+ <span class='kw'>end</span></pre>
805
780
  </td>
806
781
  </tr>
807
782
  </table>
808
783
  </div>
809
784
 
810
- </div>
811
-
812
-
813
- <div id="instance_method_details" class="method_details_list">
814
- <h2>Instance Method Details</h2>
815
-
816
-
817
- <div class="method_details first">
818
- <p class="signature first" id="add_chart-instance_method">
785
+ <div class="method_details ">
786
+ <p class="signature " id="index-instance_method">
819
787
 
820
- - (<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>) <strong>add_chart</strong>(chart_type, options)
788
+ - (<tt>Integer</tt>) <strong>index</strong>
821
789
 
822
790
 
823
791
 
824
792
  </p><div class="docstring">
825
793
  <div class="discussion">
826
- <p>
827
- Creates a graphic frame and chart object associated with this anchor
828
- </p>
794
+
795
+ <p>The index of this anchor in the drawing</p>
829
796
 
830
797
 
831
798
  </div>
@@ -838,7 +805,7 @@ Creates a graphic frame and chart object associated with this anchor
838
805
  <li>
839
806
 
840
807
 
841
- <span class='type'>(<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>)</span>
808
+ <span class='type'>(<tt>Integer</tt>)</span>
842
809
 
843
810
 
844
811
 
@@ -852,19 +819,16 @@ Creates a graphic frame and chart object associated with this anchor
852
819
  <pre class="lines">
853
820
 
854
821
 
855
- 49
856
- 50
857
- 51
858
- 52</pre>
822
+ 53
823
+ 54
824
+ 55</pre>
859
825
  </td>
860
826
  <td>
861
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 49</span>
827
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 53</span>
862
828
 
863
- <span class='def def kw'>def</span> <span class='add_chart identifier id'>add_chart</span><span class='lparen 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>
864
- <span class='@object ivar id'>@object</span> <span class='assign token'>=</span> <span class='GraphicFrame constant id'>GraphicFrame</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='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
865
- <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='chart identifier id'>chart</span>
866
- <span class='end end kw'>end</span>
867
- </pre>
829
+ <span class='kw'>def</span> <span class='id index'>index</span>
830
+ <span class='ivar'>@drawing</span><span class='period'>.</span><span class='id anchors'>anchors</span><span class='period'>.</span><span class='id index'>index</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
831
+ <span class='kw'>end</span></pre>
868
832
  </td>
869
833
  </tr>
870
834
  </table>
@@ -879,9 +843,8 @@ Creates a graphic frame and chart object associated with this anchor
879
843
 
880
844
  </p><div class="docstring">
881
845
  <div class="discussion">
882
- <p>
883
- Serializes the two cell anchor
884
- </p>
846
+
847
+ <p>Serializes the two cell anchor</p>
885
848
 
886
849
 
887
850
  </div>
@@ -900,9 +863,8 @@ Serializes the two cell anchor
900
863
 
901
864
 
902
865
  &mdash;
903
- <div class='inline'><p>
904
- The document builder instance this objects xml will be added to.
905
- </p>
866
+ <div class='inline'>
867
+ <p>The document builder instance this objects xml will be added to.</p>
906
868
  </div>
907
869
 
908
870
  </li>
@@ -929,6 +891,7 @@ The document builder instance this objects xml will be added to.
929
891
  <pre class="lines">
930
892
 
931
893
 
894
+ 59
932
895
  60
933
896
  61
934
897
  62
@@ -940,26 +903,24 @@ The document builder instance this objects xml will be added to.
940
903
  68
941
904
  69
942
905
  70
943
- 71
944
- 72</pre>
906
+ 71</pre>
945
907
  </td>
946
908
  <td>
947
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 60</span>
948
-
949
- <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>
950
- <span class='comment val'>#build it for now, break it down later!</span>
951
- <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:twoCellAnchor'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
952
- <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>
953
- <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>
954
- <span class='rbrace token'>}</span>
955
- <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:to'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
956
- <span class='to identifier id'>to</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>
957
- <span class='rbrace token'>}</span>
958
- <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>
959
- <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>
960
- <span class='rbrace token'>}</span>
961
- <span class='end end kw'>end</span>
962
- </pre>
909
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 59</span>
910
+
911
+ <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>
912
+ <span class='comment'>#build it for now, break it down later!
913
+ </span> <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:twoCellAnchor</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
914
+ <span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>xdr:from</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
915
+ <span class='id from'>from</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
916
+ <span class='rbrace'>}</span>
917
+ <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:to</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
918
+ <span class='id to'>to</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
919
+ <span class='rbrace'>}</span>
920
+ <span class='ivar'>@object</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
921
+ <span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>xdr:clientData</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
922
+ <span class='rbrace'>}</span>
923
+ <span class='kw'>end</span></pre>
963
924
  </td>
964
925
  </tr>
965
926
  </table>
@@ -970,9 +931,9 @@ The document builder instance this objects xml will be added to.
970
931
  </div>
971
932
 
972
933
  <div id="footer">
973
- Generated on Wed Nov 23 21:47:52 2011 by
934
+ Generated on Sat Nov 26 13:16:39 2011 by
974
935
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
975
- 0.7.3 (ruby-1.8.7).
936
+ 0.7.3 (ruby-1.9.3).
976
937
  </div>
977
938
 
978
939
  </body>