axlsx 1.0.9 → 1.0.10a
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +24 -0
- data/README.md +86 -1
- data/axlsx.gemspec +6 -10
- data/doc/Axlsx.html +557 -360
- data/doc/Axlsx/App.html +347 -244
- data/doc/Axlsx/Ar.html +200 -0
- data/doc/Axlsx/Ar/ClassMethods.html +192 -0
- data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
- data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
- data/doc/Axlsx/Axis.html +131 -98
- data/doc/Axlsx/Bar3DChart.html +138 -106
- data/doc/Axlsx/BarSeries.html +73 -54
- data/doc/Axlsx/Border.html +114 -87
- data/doc/Axlsx/BorderPr.html +107 -82
- data/doc/Axlsx/CatAxis.html +93 -68
- data/doc/Axlsx/CatAxisData.html +47 -38
- data/doc/Axlsx/Cell.html +642 -148
- data/doc/Axlsx/CellAlignment.html +152 -111
- data/doc/Axlsx/CellProtection.html +63 -45
- data/doc/Axlsx/CellStyle.html +101 -73
- data/doc/Axlsx/Chart.html +238 -179
- data/doc/Axlsx/Color.html +75 -53
- data/doc/Axlsx/ContentType.html +34 -26
- data/doc/Axlsx/Core.html +54 -42
- data/doc/Axlsx/DataTypeValidator.html +39 -30
- data/doc/Axlsx/Default.html +59 -43
- data/doc/Axlsx/Drawing.html +176 -128
- data/doc/Axlsx/Fill.html +46 -33
- data/doc/Axlsx/Font.html +197 -147
- data/doc/Axlsx/GradientFill.html +114 -82
- data/doc/Axlsx/GradientStop.html +47 -33
- data/doc/Axlsx/GraphicFrame.html +78 -60
- data/doc/Axlsx/Line3DChart.html +125 -97
- data/doc/Axlsx/LineSeries.html +60 -44
- data/doc/Axlsx/Marker.html +98 -71
- data/doc/Axlsx/NumFmt.html +99 -80
- data/doc/Axlsx/OneCellAnchor.html +126 -94
- data/doc/Axlsx/Override.html +59 -43
- data/doc/Axlsx/Package.html +269 -134
- data/doc/Axlsx/PatternFill.html +93 -72
- data/doc/Axlsx/Pic.html +202 -152
- data/doc/Axlsx/Pie3DChart.html +39 -30
- data/doc/Axlsx/PieSeries.html +72 -53
- data/doc/Axlsx/RegexValidator.html +19 -14
- data/doc/Axlsx/Relationship.html +60 -43
- data/doc/Axlsx/Relationships.html +34 -26
- data/doc/Axlsx/RestrictionValidator.html +31 -22
- data/doc/Axlsx/Row.html +241 -67
- data/doc/Axlsx/Scaling.html +80 -59
- data/doc/Axlsx/SerAxis.html +71 -51
- data/doc/Axlsx/Series.html +179 -51
- data/doc/Axlsx/SeriesTitle.html +29 -24
- data/doc/Axlsx/Styles.html +354 -285
- data/doc/Axlsx/TableStyle.html +74 -54
- data/doc/Axlsx/TableStyleElement.html +99 -79
- data/doc/Axlsx/TableStyles.html +65 -47
- data/doc/Axlsx/Title.html +66 -51
- data/doc/Axlsx/TwoCellAnchor.html +129 -96
- data/doc/Axlsx/ValAxis.html +52 -38
- data/doc/Axlsx/ValAxisData.html +32 -27
- data/doc/Axlsx/View3D.html +111 -80
- data/doc/Axlsx/Workbook.html +333 -272
- data/doc/Axlsx/Worksheet.html +1018 -266
- data/doc/Axlsx/Xf.html +188 -134
- data/doc/_index.html +44 -8
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +28 -23
- data/doc/file.README.html +180 -91
- data/doc/index.html +180 -91
- data/doc/method_list.html +541 -421
- data/doc/top-level-namespace.html +2 -2
- data/examples/example.rb +70 -13
- data/lib/axlsx.rb +1 -0
- data/lib/axlsx/ar.rb +72 -0
- data/lib/axlsx/package.rb +8 -1
- data/lib/axlsx/util/simple_typed_list.rb +5 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +4 -2
- data/lib/axlsx/workbook/worksheet/row.rb +15 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
- data/test/workbook/worksheet/tc_row.rb +6 -0
- data/test/workbook/worksheet/tc_worksheet.rb +36 -0
- metadata +103 -59
data/doc/Axlsx/TableStyles.html
CHANGED
@@ -99,16 +99,18 @@
|
|
99
99
|
|
100
100
|
<div class="note notetag">
|
101
101
|
<strong>Note:</strong>
|
102
|
-
<div class='inline'>
|
103
|
-
|
102
|
+
<div class='inline'><p>
|
103
|
+
Support for custom table styles does not exist in this version. Many of the
|
104
104
|
classes required are defined in preparation for future release. Please do
|
105
|
-
not attempt to add custom table styles
|
105
|
+
not attempt to add custom table styles.
|
106
|
+
</p>
|
106
107
|
</div>
|
107
108
|
</div>
|
108
109
|
|
109
|
-
|
110
|
-
|
111
|
-
and pivot table styles
|
110
|
+
<p>
|
111
|
+
TableStyles represents a collection of style definitions for table styles
|
112
|
+
and pivot table styles.
|
113
|
+
</p>
|
112
114
|
|
113
115
|
|
114
116
|
</div>
|
@@ -144,8 +146,9 @@ and pivot table styles.</p>
|
|
144
146
|
|
145
147
|
|
146
148
|
|
147
|
-
<span class="summary_desc"><div class='inline'>
|
148
|
-
|
149
|
+
<span class="summary_desc"><div class='inline'><p>
|
150
|
+
The default pivot table style.
|
151
|
+
</p>
|
149
152
|
</div></span>
|
150
153
|
|
151
154
|
</li>
|
@@ -170,8 +173,9 @@ and pivot table styles.</p>
|
|
170
173
|
|
171
174
|
|
172
175
|
|
173
|
-
<span class="summary_desc"><div class='inline'>
|
174
|
-
|
176
|
+
<span class="summary_desc"><div class='inline'><p>
|
177
|
+
The default table style.
|
178
|
+
</p>
|
175
179
|
</div></span>
|
176
180
|
|
177
181
|
</li>
|
@@ -216,9 +220,10 @@ and pivot table styles.</p>
|
|
216
220
|
|
217
221
|
|
218
222
|
|
219
|
-
<span class="summary_desc"><div class='inline'>
|
220
|
-
|
221
|
-
objects
|
223
|
+
<span class="summary_desc"><div class='inline'><p>
|
224
|
+
Creates a new TableStyles object that is a container for TableStyle
|
225
|
+
objects.
|
226
|
+
</p>
|
222
227
|
</div></span>
|
223
228
|
|
224
229
|
</li>
|
@@ -240,8 +245,9 @@ objects.</p>
|
|
240
245
|
|
241
246
|
|
242
247
|
|
243
|
-
<span class="summary_desc"><div class='inline'>
|
244
|
-
|
248
|
+
<span class="summary_desc"><div class='inline'><p>
|
249
|
+
Serializes the table styles element.
|
250
|
+
</p>
|
245
251
|
</div></span>
|
246
252
|
|
247
253
|
</li>
|
@@ -267,8 +273,9 @@ objects.</p>
|
|
267
273
|
|
268
274
|
</p><div class="docstring">
|
269
275
|
<div class="discussion">
|
270
|
-
|
271
|
-
|
276
|
+
<p>
|
277
|
+
Creates a new TableStyles object that is a container for TableStyle objects
|
278
|
+
</p>
|
272
279
|
|
273
280
|
|
274
281
|
</div>
|
@@ -289,8 +296,9 @@ objects.</p>
|
|
289
296
|
|
290
297
|
|
291
298
|
—
|
292
|
-
<div class='inline'>
|
293
|
-
|
299
|
+
<div class='inline'><p>
|
300
|
+
a customizable set of options
|
301
|
+
</p>
|
294
302
|
</div>
|
295
303
|
|
296
304
|
</li>
|
@@ -340,11 +348,12 @@ objects.</p>
|
|
340
348
|
<td>
|
341
349
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 17</span>
|
342
350
|
|
343
|
-
<span class='kw'>def</span> <span class='id
|
344
|
-
<span class='ivar'>@defaultTableStyle</span> <span class='
|
345
|
-
<span class='ivar'>@defaultPivotStyle</span> <span class='
|
346
|
-
<span class='kw'>super</span> <span class='
|
347
|
-
<span class='kw'>end</span
|
351
|
+
<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>
|
352
|
+
<span class='@defaultTableStyle ivar id'>@defaultTableStyle</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:defaultTableStyle</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>"TableStyleMedium9"</span>
|
353
|
+
<span class='@defaultPivotStyle ivar id'>@defaultPivotStyle</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:defaultPivotStyle</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>"PivotStyleLight16"</span>
|
354
|
+
<span class='super super kw'>super</span> <span class='TableStyle constant id'>TableStyle</span>
|
355
|
+
<span class='end end kw'>end</span>
|
356
|
+
</pre>
|
348
357
|
</td>
|
349
358
|
</tr>
|
350
359
|
</table>
|
@@ -377,8 +386,10 @@ objects.</p>
|
|
377
386
|
|
378
387
|
</p><div class="docstring">
|
379
388
|
<div class="discussion">
|
380
|
-
|
381
|
-
|
389
|
+
<p>
|
390
|
+
The default pivot table style. The default value is
|
391
|
+
‘PivotStyleLight6’
|
392
|
+
</p>
|
382
393
|
|
383
394
|
|
384
395
|
</div>
|
@@ -412,9 +423,10 @@ objects.</p>
|
|
412
423
|
<td>
|
413
424
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 12</span>
|
414
425
|
|
415
|
-
<span class='kw'>def</span> <span class='id
|
416
|
-
<span class='ivar'>@defaultPivotStyle</span>
|
417
|
-
<span class='kw'>end</span
|
426
|
+
<span class='def def kw'>def</span> <span class='defaultPivotStyle identifier id'>defaultPivotStyle</span>
|
427
|
+
<span class='@defaultPivotStyle ivar id'>@defaultPivotStyle</span>
|
428
|
+
<span class='end end kw'>end</span>
|
429
|
+
</pre>
|
418
430
|
</td>
|
419
431
|
</tr>
|
420
432
|
</table>
|
@@ -432,8 +444,10 @@ objects.</p>
|
|
432
444
|
|
433
445
|
</p><div class="docstring">
|
434
446
|
<div class="discussion">
|
435
|
-
|
436
|
-
|
447
|
+
<p>
|
448
|
+
The default table style. The default value is
|
449
|
+
‘TableStyleMedium9’
|
450
|
+
</p>
|
437
451
|
|
438
452
|
|
439
453
|
</div>
|
@@ -467,9 +481,10 @@ objects.</p>
|
|
467
481
|
<td>
|
468
482
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 8</span>
|
469
483
|
|
470
|
-
<span class='kw'>def</span> <span class='id
|
471
|
-
<span class='ivar'>@defaultTableStyle</span>
|
472
|
-
<span class='kw'>end</span
|
484
|
+
<span class='def def kw'>def</span> <span class='defaultTableStyle identifier id'>defaultTableStyle</span>
|
485
|
+
<span class='@defaultTableStyle ivar id'>@defaultTableStyle</span>
|
486
|
+
<span class='end end kw'>end</span>
|
487
|
+
</pre>
|
473
488
|
</td>
|
474
489
|
</tr>
|
475
490
|
</table>
|
@@ -491,8 +506,9 @@ objects.</p>
|
|
491
506
|
|
492
507
|
</p><div class="docstring">
|
493
508
|
<div class="discussion">
|
494
|
-
|
495
|
-
|
509
|
+
<p>
|
510
|
+
Serializes the table styles element
|
511
|
+
</p>
|
496
512
|
|
497
513
|
|
498
514
|
</div>
|
@@ -511,8 +527,9 @@ objects.</p>
|
|
511
527
|
|
512
528
|
|
513
529
|
—
|
514
|
-
<div class='inline'>
|
515
|
-
|
530
|
+
<div class='inline'><p>
|
531
|
+
The document builder instance this objects xml will be added to.
|
532
|
+
</p>
|
516
533
|
</div>
|
517
534
|
|
518
535
|
</li>
|
@@ -550,13 +567,14 @@ objects.</p>
|
|
550
567
|
<td>
|
551
568
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_styles.rb', line 30</span>
|
552
569
|
|
553
|
-
<span class='kw'>def</span> <span class='id
|
554
|
-
<span class='id
|
555
|
-
<span class='id
|
556
|
-
<span class='id
|
557
|
-
<span class='kw'>self</span><span class='
|
558
|
-
<span class='rbrace'>}</span>
|
559
|
-
<span class='kw'>end</span
|
570
|
+
<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>
|
571
|
+
<span class='attr identifier id'>attr</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='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='notop op'>!</span><span class='lbrack token'>[</span><span class='symbol val'>:defaultTableStyle</span><span class='comma token'>,</span> <span class='symbol val'>:defaultPivotStyle</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='k identifier id'>k</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
572
|
+
<span class='attr identifier id'>attr</span><span class='lbrack token'>[</span><span class='symbol val'>:count</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='size identifier id'>size</span>
|
573
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='tableStyles identifier id'>tableStyles</span><span class='lparen token'>(</span><span class='attr identifier id'>attr</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
574
|
+
<span class='self self kw'>self</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='table_style identifier id'>table_style</span><span class='bitor op'>|</span> <span class='table_style identifier id'>table_style</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> <span class='rbrace token'>}</span>
|
575
|
+
<span class='rbrace token'>}</span>
|
576
|
+
<span class='end end kw'>end</span>
|
577
|
+
</pre>
|
560
578
|
</td>
|
561
579
|
</tr>
|
562
580
|
</table>
|
@@ -567,9 +585,9 @@ objects.</p>
|
|
567
585
|
</div>
|
568
586
|
|
569
587
|
<div id="footer">
|
570
|
-
Generated on
|
588
|
+
Generated on Sun Nov 27 21:54:25 2011 by
|
571
589
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
572
|
-
0.7.3 (ruby-1.
|
590
|
+
0.7.3 (ruby-1.8.7).
|
573
591
|
</div>
|
574
592
|
|
575
593
|
</body>
|
data/doc/Axlsx/Title.html
CHANGED
@@ -94,8 +94,9 @@
|
|
94
94
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
96
96
|
<div class="discussion">
|
97
|
-
|
98
|
-
|
97
|
+
<p>
|
98
|
+
A Title stores information about the title of a chart
|
99
|
+
</p>
|
99
100
|
|
100
101
|
|
101
102
|
</div>
|
@@ -131,8 +132,9 @@
|
|
131
132
|
|
132
133
|
|
133
134
|
|
134
|
-
<span class="summary_desc"><div class='inline'>
|
135
|
-
|
135
|
+
<span class="summary_desc"><div class='inline'><p>
|
136
|
+
The cell that holds the text for the title.
|
137
|
+
</p>
|
136
138
|
</div></span>
|
137
139
|
|
138
140
|
</li>
|
@@ -157,8 +159,9 @@
|
|
157
159
|
|
158
160
|
|
159
161
|
|
160
|
-
<span class="summary_desc"><div class='inline'>
|
161
|
-
|
162
|
+
<span class="summary_desc"><div class='inline'><p>
|
163
|
+
The text to be shown.
|
164
|
+
</p>
|
162
165
|
</div></span>
|
163
166
|
|
164
167
|
</li>
|
@@ -195,8 +198,9 @@
|
|
195
198
|
|
196
199
|
|
197
200
|
|
198
|
-
<span class="summary_desc"><div class='inline'>
|
199
|
-
|
201
|
+
<span class="summary_desc"><div class='inline'><p>
|
202
|
+
Creates a new Title object.
|
203
|
+
</p>
|
200
204
|
</div></span>
|
201
205
|
|
202
206
|
</li>
|
@@ -218,8 +222,9 @@
|
|
218
222
|
|
219
223
|
|
220
224
|
|
221
|
-
<span class="summary_desc"><div class='inline'>
|
222
|
-
|
225
|
+
<span class="summary_desc"><div class='inline'><p>
|
226
|
+
Serializes the chart title.
|
227
|
+
</p>
|
223
228
|
</div></span>
|
224
229
|
|
225
230
|
</li>
|
@@ -240,8 +245,9 @@
|
|
240
245
|
|
241
246
|
</p><div class="docstring">
|
242
247
|
<div class="discussion">
|
243
|
-
|
244
|
-
|
248
|
+
<p>
|
249
|
+
Creates a new Title object
|
250
|
+
</p>
|
245
251
|
|
246
252
|
|
247
253
|
</div>
|
@@ -262,8 +268,9 @@
|
|
262
268
|
|
263
269
|
|
264
270
|
—
|
265
|
-
<div class='inline'>
|
266
|
-
|
271
|
+
<div class='inline'><p>
|
272
|
+
The cell or string to be used for the chart’s title
|
273
|
+
</p>
|
267
274
|
</div>
|
268
275
|
|
269
276
|
</li>
|
@@ -285,10 +292,11 @@
|
|
285
292
|
<td>
|
286
293
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 15</span>
|
287
294
|
|
288
|
-
<span class='kw'>def</span> <span class='id
|
289
|
-
<span class='kw'>self</span><span class='
|
290
|
-
<span class='kw'>self</span><span class='
|
291
|
-
<span class='kw'>end</span
|
295
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='title identifier id'>title</span><span class='assign token'>=</span><span class='string val'>""</span><span class='rparen token'>)</span>
|
296
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='cell identifier id'>cell</span> <span class='assign token'>=</span> <span class='title identifier id'>title</span> <span class='if if_mod kw'>if</span> <span class='title identifier id'>title</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Cell constant id'>Cell</span><span class='rparen token'>)</span>
|
297
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='text identifier id'>text</span> <span class='assign token'>=</span> <span class='title identifier id'>title</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span> <span class='unless unless_mod kw'>unless</span> <span class='title identifier id'>title</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Cell constant id'>Cell</span><span class='rparen token'>)</span>
|
298
|
+
<span class='end end kw'>end</span>
|
299
|
+
</pre>
|
292
300
|
</td>
|
293
301
|
</tr>
|
294
302
|
</table>
|
@@ -311,9 +319,10 @@
|
|
311
319
|
|
312
320
|
</p><div class="docstring">
|
313
321
|
<div class="discussion">
|
314
|
-
|
315
|
-
|
316
|
-
automatically update the text attribute
|
322
|
+
<p>
|
323
|
+
The cell that holds the text for the title. Setting this property will
|
324
|
+
automatically update the text attribute.
|
325
|
+
</p>
|
317
326
|
|
318
327
|
|
319
328
|
</div>
|
@@ -347,9 +356,10 @@ automatically update the text attribute.</p>
|
|
347
356
|
<td>
|
348
357
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 11</span>
|
349
358
|
|
350
|
-
<span class='kw'>def</span> <span class='id
|
351
|
-
<span class='ivar'>@cell</span>
|
352
|
-
<span class='kw'>end</span
|
359
|
+
<span class='def def kw'>def</span> <span class='cell identifier id'>cell</span>
|
360
|
+
<span class='@cell ivar id'>@cell</span>
|
361
|
+
<span class='end end kw'>end</span>
|
362
|
+
</pre>
|
353
363
|
</td>
|
354
364
|
</tr>
|
355
365
|
</table>
|
@@ -367,9 +377,10 @@ automatically update the text attribute.</p>
|
|
367
377
|
|
368
378
|
</p><div class="docstring">
|
369
379
|
<div class="discussion">
|
370
|
-
|
371
|
-
|
372
|
-
remove the cell reference
|
380
|
+
<p>
|
381
|
+
The text to be shown. Setting this property directly with a string will
|
382
|
+
remove the cell reference.
|
383
|
+
</p>
|
373
384
|
|
374
385
|
|
375
386
|
</div>
|
@@ -403,9 +414,10 @@ remove the cell reference.</p>
|
|
403
414
|
<td>
|
404
415
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 7</span>
|
405
416
|
|
406
|
-
<span class='kw'>def</span> <span class='id
|
407
|
-
<span class='ivar'>@text</span>
|
408
|
-
<span class='kw'>end</span
|
417
|
+
<span class='def def kw'>def</span> <span class='text identifier id'>text</span>
|
418
|
+
<span class='@text ivar id'>@text</span>
|
419
|
+
<span class='end end kw'>end</span>
|
420
|
+
</pre>
|
409
421
|
</td>
|
410
422
|
</tr>
|
411
423
|
</table>
|
@@ -427,8 +439,9 @@ remove the cell reference.</p>
|
|
427
439
|
|
428
440
|
</p><div class="docstring">
|
429
441
|
<div class="discussion">
|
430
|
-
|
431
|
-
|
442
|
+
<p>
|
443
|
+
Serializes the chart title
|
444
|
+
</p>
|
432
445
|
|
433
446
|
|
434
447
|
</div>
|
@@ -447,8 +460,9 @@ remove the cell reference.</p>
|
|
447
460
|
|
448
461
|
|
449
462
|
—
|
450
|
-
<div class='inline'>
|
451
|
-
|
463
|
+
<div class='inline'><p>
|
464
|
+
The document builder instance this objects xml will be added to.
|
465
|
+
</p>
|
452
466
|
</div>
|
453
467
|
|
454
468
|
</li>
|
@@ -494,21 +508,22 @@ remove the cell reference.</p>
|
|
494
508
|
<td>
|
495
509
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/title.rb', line 44</span>
|
496
510
|
|
497
|
-
<span class='kw'>def</span> <span class='id
|
498
|
-
<span class='id
|
499
|
-
<span class='id
|
500
|
-
<span class='id
|
501
|
-
<span class='id
|
502
|
-
<span class='id
|
503
|
-
<span class='id
|
504
|
-
<span class='id
|
505
|
-
<span class='id
|
506
|
-
<span class='rbrace'>}</span>
|
507
|
-
<span class='rbrace'>}</span>
|
508
|
-
<span class='rbrace'>}</span>
|
509
|
-
<span class='rbrace'>}</span>
|
510
|
-
<span class='rbrace'>}</span>
|
511
|
-
<span class='kw'>end</span
|
511
|
+
<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>
|
512
|
+
<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'>'c:title'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
513
|
+
<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'>'c:tx'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
514
|
+
<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'>'c:strRef'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
515
|
+
<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'>'c:f'</span><span class='comma token'>,</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='cell_range identifier id'>cell_range</span><span class='lparen token'>(</span><span class='lbrack token'>[</span><span class='@cell ivar id'>@cell</span><span class='rbrack token'>]</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
516
|
+
<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'>'c:strCache'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
517
|
+
<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'>'c:ptCount'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>></span><span class='integer val'>1</span><span class='rparen token'>)</span>
|
518
|
+
<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'>'c:pt'</span><span class='comma token'>,</span> <span class='symbol val'>:idx=</span><span class='gt op'>></span><span class='integer val'>0</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
519
|
+
<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'>'c:v'</span><span class='comma token'>,</span> <span class='@text ivar id'>@text</span><span class='rparen token'>)</span>
|
520
|
+
<span class='rbrace token'>}</span>
|
521
|
+
<span class='rbrace token'>}</span>
|
522
|
+
<span class='rbrace token'>}</span>
|
523
|
+
<span class='rbrace token'>}</span>
|
524
|
+
<span class='rbrace token'>}</span>
|
525
|
+
<span class='end end kw'>end</span>
|
526
|
+
</pre>
|
512
527
|
</td>
|
513
528
|
</tr>
|
514
529
|
</table>
|
@@ -519,9 +534,9 @@ remove the cell reference.</p>
|
|
519
534
|
</div>
|
520
535
|
|
521
536
|
<div id="footer">
|
522
|
-
Generated on
|
537
|
+
Generated on Sun Nov 27 21:54:22 2011 by
|
523
538
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
524
|
-
0.7.3 (ruby-1.
|
539
|
+
0.7.3 (ruby-1.8.7).
|
525
540
|
</div>
|
526
541
|
|
527
542
|
</body>
|
@@ -97,14 +97,16 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
|
102
|
-
Anchors are specified by the :start_at and :end_at options to that method
|
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>
|
103
104
|
</div>
|
104
105
|
</div>
|
105
106
|
|
106
|
-
|
107
|
-
|
107
|
+
<p>
|
108
|
+
This class details the anchor points for drawings.
|
109
|
+
</p>
|
108
110
|
|
109
111
|
|
110
112
|
</div>
|
@@ -143,8 +145,9 @@ Anchors are specified by the :start_at and :end_at options to that method.</p>
|
|
143
145
|
|
144
146
|
|
145
147
|
|
146
|
-
<span class="summary_desc"><div class='inline'>
|
147
|
-
|
148
|
+
<span class="summary_desc"><div class='inline'><p>
|
149
|
+
The drawing that holds this anchor.
|
150
|
+
</p>
|
148
151
|
</div></span>
|
149
152
|
|
150
153
|
</li>
|
@@ -169,8 +172,9 @@ Anchors are specified by the :start_at and :end_at options to that method.</p>
|
|
169
172
|
|
170
173
|
|
171
174
|
|
172
|
-
<span class="summary_desc"><div class='inline'>
|
173
|
-
|
175
|
+
<span class="summary_desc"><div class='inline'><p>
|
176
|
+
A marker that defines the from cell anchor.
|
177
|
+
</p>
|
174
178
|
</div></span>
|
175
179
|
|
176
180
|
</li>
|
@@ -195,8 +199,9 @@ Anchors are specified by the :start_at and :end_at options to that method.</p>
|
|
195
199
|
|
196
200
|
|
197
201
|
|
198
|
-
<span class="summary_desc"><div class='inline'>
|
199
|
-
|
202
|
+
<span class="summary_desc"><div class='inline'><p>
|
203
|
+
The object this anchor hosts.
|
204
|
+
</p>
|
200
205
|
</div></span>
|
201
206
|
|
202
207
|
</li>
|
@@ -221,8 +226,9 @@ Anchors are specified by the :start_at and :end_at options to that method.</p>
|
|
221
226
|
|
222
227
|
|
223
228
|
|
224
|
-
<span class="summary_desc"><div class='inline'>
|
225
|
-
|
229
|
+
<span class="summary_desc"><div class='inline'><p>
|
230
|
+
A marker that returns the to cell anchor.
|
231
|
+
</p>
|
226
232
|
</div></span>
|
227
233
|
|
228
234
|
</li>
|
@@ -257,8 +263,9 @@ Anchors are specified by the :start_at and :end_at options to that method.</p>
|
|
257
263
|
|
258
264
|
|
259
265
|
|
260
|
-
<span class="summary_desc"><div class='inline'>
|
261
|
-
|
266
|
+
<span class="summary_desc"><div class='inline'><p>
|
267
|
+
Creates a graphic frame and chart object associated with this anchor.
|
268
|
+
</p>
|
262
269
|
</div></span>
|
263
270
|
|
264
271
|
</li>
|
@@ -280,8 +287,9 @@ Anchors are specified by the :start_at and :end_at options to that method.</p>
|
|
280
287
|
|
281
288
|
|
282
289
|
|
283
|
-
<span class="summary_desc"><div class='inline'>
|
284
|
-
|
290
|
+
<span class="summary_desc"><div class='inline'><p>
|
291
|
+
The index of this anchor in the drawing.
|
292
|
+
</p>
|
285
293
|
</div></span>
|
286
294
|
|
287
295
|
</li>
|
@@ -305,9 +313,10 @@ Anchors are specified by the :start_at and :end_at options to that method.</p>
|
|
305
313
|
|
306
314
|
|
307
315
|
|
308
|
-
<span class="summary_desc"><div class='inline'>
|
309
|
-
|
310
|
-
to markers in the
|
316
|
+
<span class="summary_desc"><div class='inline'><p>
|
317
|
+
Creates a new TwoCellAnchor object and sets up a reference to the from and
|
318
|
+
to markers in the graphic_frame’s chart.
|
319
|
+
</p>
|
311
320
|
</div></span>
|
312
321
|
|
313
322
|
</li>
|
@@ -329,8 +338,9 @@ to markers in the graphic_frame's chart.</p>
|
|
329
338
|
|
330
339
|
|
331
340
|
|
332
|
-
<span class="summary_desc"><div class='inline'>
|
333
|
-
|
341
|
+
<span class="summary_desc"><div class='inline'><p>
|
342
|
+
Serializes the two cell anchor.
|
343
|
+
</p>
|
334
344
|
</div></span>
|
335
345
|
|
336
346
|
</li>
|
@@ -354,15 +364,17 @@ to markers in the graphic_frame's chart.</p>
|
|
354
364
|
|
355
365
|
<div class="note notetag">
|
356
366
|
<strong>Note:</strong>
|
357
|
-
<div class='inline'>
|
358
|
-
|
367
|
+
<div class='inline'><p>
|
368
|
+
the chart_type parameter will be replaced with object in v. 2.0.0
|
369
|
+
</p>
|
359
370
|
</div>
|
360
371
|
</div>
|
361
372
|
|
362
|
-
|
363
|
-
|
364
|
-
to markers in the
|
365
|
-
like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9
|
373
|
+
<p>
|
374
|
+
Creates a new TwoCellAnchor object and sets up a reference to the from and
|
375
|
+
to markers in the graphic_frame’s chart. That means that you can do
|
376
|
+
stuff like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9
|
377
|
+
</p>
|
366
378
|
|
367
379
|
|
368
380
|
</div>
|
@@ -392,9 +404,10 @@ like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9</p>
|
|
392
404
|
|
393
405
|
|
394
406
|
—
|
395
|
-
<div class='inline'>
|
396
|
-
|
397
|
-
subclass of Chart
|
407
|
+
<div class='inline'><p>
|
408
|
+
This is passed to the graphic frame for instantiation. must be Chart or a
|
409
|
+
subclass of Chart
|
410
|
+
</p>
|
398
411
|
</div>
|
399
412
|
|
400
413
|
</li>
|
@@ -409,8 +422,9 @@ subclass of Chart</p>
|
|
409
422
|
|
410
423
|
|
411
424
|
—
|
412
|
-
<div class='inline'>
|
413
|
-
|
425
|
+
<div class='inline'><p>
|
426
|
+
The object this anchor holds.
|
427
|
+
</p>
|
414
428
|
</div>
|
415
429
|
|
416
430
|
</li>
|
@@ -427,8 +441,9 @@ subclass of Chart</p>
|
|
427
441
|
|
428
442
|
|
429
443
|
—
|
430
|
-
<div class='inline'>
|
431
|
-
|
444
|
+
<div class='inline'><p>
|
445
|
+
a customizable set of options
|
446
|
+
</p>
|
432
447
|
</div>
|
433
448
|
|
434
449
|
</li>
|
@@ -449,8 +464,9 @@ subclass of Chart</p>
|
|
449
464
|
<span class="default">
|
450
465
|
|
451
466
|
</span>
|
452
|
-
— <div class='inline'>
|
453
|
-
|
467
|
+
— <div class='inline'><p>
|
468
|
+
the col, row to start at
|
469
|
+
</p>
|
454
470
|
</div>
|
455
471
|
</li>
|
456
472
|
|
@@ -460,8 +476,9 @@ subclass of Chart</p>
|
|
460
476
|
<span class="default">
|
461
477
|
|
462
478
|
</span>
|
463
|
-
— <div class='inline'>
|
464
|
-
|
479
|
+
— <div class='inline'><p>
|
480
|
+
the col, row to end at
|
481
|
+
</p>
|
465
482
|
</div>
|
466
483
|
</li>
|
467
484
|
|
@@ -484,11 +501,12 @@ subclass of Chart</p>
|
|
484
501
|
<td>
|
485
502
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 38</span>
|
486
503
|
|
487
|
-
<span class='kw'>def</span> <span class='id
|
488
|
-
<span class='ivar'>@drawing</span> <span class='
|
489
|
-
<span class='id
|
490
|
-
<span class='ivar'>@from</span><span class='comma'>,</span> <span class='ivar'>@to</span> <span class='
|
491
|
-
<span class='kw'>end</span
|
504
|
+
<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>
|
505
|
+
<span class='@drawing ivar id'>@drawing</span> <span class='assign token'>=</span> <span class='drawing identifier id'>drawing</span>
|
506
|
+
<span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='anchors identifier id'>anchors</span> <span class='lshft op'><<</span> <span class='self self kw'>self</span>
|
507
|
+
<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'>></span> <span class='integer val'>5</span><span class='comma token'>,</span> <span class='symbol val'>:row=</span><span class='gt op'>></span><span class='integer val'>10</span><span class='rparen token'>)</span>
|
508
|
+
<span class='end end kw'>end</span>
|
509
|
+
</pre>
|
492
510
|
</td>
|
493
511
|
</tr>
|
494
512
|
</table>
|
@@ -511,8 +529,9 @@ subclass of Chart</p>
|
|
511
529
|
|
512
530
|
</p><div class="docstring">
|
513
531
|
<div class="discussion">
|
514
|
-
|
515
|
-
|
532
|
+
<p>
|
533
|
+
The drawing that holds this anchor
|
534
|
+
</p>
|
516
535
|
|
517
536
|
|
518
537
|
</div>
|
@@ -546,9 +565,10 @@ subclass of Chart</p>
|
|
546
565
|
<td>
|
547
566
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 25</span>
|
548
567
|
|
549
|
-
<span class='kw'>def</span> <span class='id
|
550
|
-
<span class='ivar'>@drawing</span>
|
551
|
-
<span class='kw'>end</span
|
568
|
+
<span class='def def kw'>def</span> <span class='drawing identifier id'>drawing</span>
|
569
|
+
<span class='@drawing ivar id'>@drawing</span>
|
570
|
+
<span class='end end kw'>end</span>
|
571
|
+
</pre>
|
552
572
|
</td>
|
553
573
|
</tr>
|
554
574
|
</table>
|
@@ -566,9 +586,10 @@ subclass of Chart</p>
|
|
566
586
|
|
567
587
|
</p><div class="docstring">
|
568
588
|
<div class="discussion">
|
569
|
-
|
570
|
-
|
571
|
-
are 0 and 0 respectively
|
589
|
+
<p>
|
590
|
+
A marker that defines the from cell anchor. The default from column and row
|
591
|
+
are 0 and 0 respectively
|
592
|
+
</p>
|
572
593
|
|
573
594
|
|
574
595
|
</div>
|
@@ -602,9 +623,10 @@ are 0 and 0 respectively</p>
|
|
602
623
|
<td>
|
603
624
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 9</span>
|
604
625
|
|
605
|
-
<span class='kw'>def</span> <span class='id
|
606
|
-
<span class='ivar'>@from</span>
|
607
|
-
<span class='kw'>end</span
|
626
|
+
<span class='def def kw'>def</span> <span class='from identifier id'>from</span>
|
627
|
+
<span class='@from ivar id'>@from</span>
|
628
|
+
<span class='end end kw'>end</span>
|
629
|
+
</pre>
|
608
630
|
</td>
|
609
631
|
</tr>
|
610
632
|
</table>
|
@@ -622,8 +644,9 @@ are 0 and 0 respectively</p>
|
|
622
644
|
|
623
645
|
</p><div class="docstring">
|
624
646
|
<div class="discussion">
|
625
|
-
|
626
|
-
|
647
|
+
<p>
|
648
|
+
The object this anchor hosts
|
649
|
+
</p>
|
627
650
|
|
628
651
|
|
629
652
|
</div>
|
@@ -657,9 +680,10 @@ are 0 and 0 respectively</p>
|
|
657
680
|
<td>
|
658
681
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 21</span>
|
659
682
|
|
660
|
-
<span class='kw'>def</span> <span class='id
|
661
|
-
<span class='ivar'>@object</span>
|
662
|
-
<span class='kw'>end</span
|
683
|
+
<span class='def def kw'>def</span> <span class='object identifier id'>object</span>
|
684
|
+
<span class='@object ivar id'>@object</span>
|
685
|
+
<span class='end end kw'>end</span>
|
686
|
+
</pre>
|
663
687
|
</td>
|
664
688
|
</tr>
|
665
689
|
</table>
|
@@ -677,9 +701,10 @@ are 0 and 0 respectively</p>
|
|
677
701
|
|
678
702
|
</p><div class="docstring">
|
679
703
|
<div class="discussion">
|
680
|
-
|
681
|
-
|
682
|
-
5 and 10 respectively
|
704
|
+
<p>
|
705
|
+
A marker that returns the to cell anchor. The default to column and row are
|
706
|
+
5 and 10 respectively
|
707
|
+
</p>
|
683
708
|
|
684
709
|
|
685
710
|
</div>
|
@@ -713,9 +738,10 @@ are 0 and 0 respectively</p>
|
|
713
738
|
<td>
|
714
739
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 12</span>
|
715
740
|
|
716
|
-
<span class='kw'>def</span> <span class='id
|
717
|
-
<span class='ivar'>@to</span>
|
718
|
-
<span class='kw'>end</span
|
741
|
+
<span class='def def kw'>def</span> <span class='to identifier id'>to</span>
|
742
|
+
<span class='@to ivar id'>@to</span>
|
743
|
+
<span class='end end kw'>end</span>
|
744
|
+
</pre>
|
719
745
|
</td>
|
720
746
|
</tr>
|
721
747
|
</table>
|
@@ -737,8 +763,9 @@ are 0 and 0 respectively</p>
|
|
737
763
|
|
738
764
|
</p><div class="docstring">
|
739
765
|
<div class="discussion">
|
740
|
-
|
741
|
-
|
766
|
+
<p>
|
767
|
+
Creates a graphic frame and chart object associated with this anchor
|
768
|
+
</p>
|
742
769
|
|
743
770
|
|
744
771
|
</div>
|
@@ -773,10 +800,11 @@ are 0 and 0 respectively</p>
|
|
773
800
|
<td>
|
774
801
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 46</span>
|
775
802
|
|
776
|
-
<span class='kw'>def</span> <span class='id
|
777
|
-
<span class='ivar'>@object</span> <span class='
|
778
|
-
<span class='ivar'>@object</span><span class='
|
779
|
-
<span class='kw'>end</span
|
803
|
+
<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>
|
804
|
+
<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>
|
805
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='chart identifier id'>chart</span>
|
806
|
+
<span class='end end kw'>end</span>
|
807
|
+
</pre>
|
780
808
|
</td>
|
781
809
|
</tr>
|
782
810
|
</table>
|
@@ -791,8 +819,9 @@ are 0 and 0 respectively</p>
|
|
791
819
|
|
792
820
|
</p><div class="docstring">
|
793
821
|
<div class="discussion">
|
794
|
-
|
795
|
-
|
822
|
+
<p>
|
823
|
+
The index of this anchor in the drawing
|
824
|
+
</p>
|
796
825
|
|
797
826
|
|
798
827
|
</div>
|
@@ -826,9 +855,10 @@ are 0 and 0 respectively</p>
|
|
826
855
|
<td>
|
827
856
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 53</span>
|
828
857
|
|
829
|
-
<span class='kw'>def</span> <span class='id
|
830
|
-
<span class='ivar'>@drawing</span><span class='
|
831
|
-
<span class='kw'>end</span
|
858
|
+
<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
|
859
|
+
<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>
|
860
|
+
<span class='end end kw'>end</span>
|
861
|
+
</pre>
|
832
862
|
</td>
|
833
863
|
</tr>
|
834
864
|
</table>
|
@@ -843,8 +873,9 @@ are 0 and 0 respectively</p>
|
|
843
873
|
|
844
874
|
</p><div class="docstring">
|
845
875
|
<div class="discussion">
|
846
|
-
|
847
|
-
|
876
|
+
<p>
|
877
|
+
Serializes the two cell anchor
|
878
|
+
</p>
|
848
879
|
|
849
880
|
|
850
881
|
</div>
|
@@ -863,8 +894,9 @@ are 0 and 0 respectively</p>
|
|
863
894
|
|
864
895
|
|
865
896
|
—
|
866
|
-
<div class='inline'>
|
867
|
-
|
897
|
+
<div class='inline'><p>
|
898
|
+
The document builder instance this objects xml will be added to.
|
899
|
+
</p>
|
868
900
|
</div>
|
869
901
|
|
870
902
|
</li>
|
@@ -908,19 +940,20 @@ are 0 and 0 respectively</p>
|
|
908
940
|
<td>
|
909
941
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 59</span>
|
910
942
|
|
911
|
-
<span class='kw'>def</span> <span class='id
|
912
|
-
<span class='comment'>#build it for now, break it down later
|
913
|
-
|
914
|
-
<span class='id
|
915
|
-
<span class='id
|
916
|
-
<span class='rbrace'>}</span>
|
917
|
-
<span class='id
|
918
|
-
<span class='id
|
919
|
-
<span class='rbrace'>}</span>
|
920
|
-
<span class='ivar'>@object</span><span class='
|
921
|
-
<span class='id
|
922
|
-
<span class='rbrace'>}</span>
|
923
|
-
<span class='kw'>end</span
|
943
|
+
<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>
|
944
|
+
<span class='comment val'>#build it for now, break it down later!</span>
|
945
|
+
<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>
|
946
|
+
<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>
|
947
|
+
<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>
|
948
|
+
<span class='rbrace token'>}</span>
|
949
|
+
<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>
|
950
|
+
<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>
|
951
|
+
<span class='rbrace token'>}</span>
|
952
|
+
<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>
|
953
|
+
<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>
|
954
|
+
<span class='rbrace token'>}</span>
|
955
|
+
<span class='end end kw'>end</span>
|
956
|
+
</pre>
|
924
957
|
</td>
|
925
958
|
</tr>
|
926
959
|
</table>
|
@@ -931,9 +964,9 @@ are 0 and 0 respectively</p>
|
|
931
964
|
</div>
|
932
965
|
|
933
966
|
<div id="footer">
|
934
|
-
Generated on
|
967
|
+
Generated on Sun Nov 27 21:54:27 2011 by
|
935
968
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
936
|
-
0.7.3 (ruby-1.
|
969
|
+
0.7.3 (ruby-1.8.7).
|
937
970
|
</div>
|
938
971
|
|
939
972
|
</body>
|