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.
- data/CHANGELOG.md +14 -0
- data/README.md +22 -21
- data/Rakefile +1 -1
- data/axlsx.gemspec +36 -0
- data/doc/Axlsx.html +373 -559
- data/doc/Axlsx/App.html +257 -360
- data/doc/Axlsx/Axis.html +113 -144
- data/doc/Axlsx/Bar3DChart.html +122 -152
- data/doc/Axlsx/BarSeries.html +67 -81
- data/doc/Axlsx/Border.html +96 -119
- data/doc/Axlsx/BorderPr.html +89 -114
- data/doc/Axlsx/CatAxis.html +79 -104
- data/doc/Axlsx/CatAxisData.html +40 -54
- data/doc/Axlsx/Cell.html +193 -679
- data/doc/Axlsx/CellAlignment.html +116 -157
- data/doc/Axlsx/CellProtection.html +50 -68
- data/doc/Axlsx/CellStyle.html +78 -106
- data/doc/Axlsx/Chart.html +361 -432
- data/doc/Axlsx/Color.html +56 -78
- data/doc/Axlsx/ContentType.html +28 -41
- data/doc/Axlsx/Core.html +43 -55
- data/doc/Axlsx/DataTypeValidator.html +34 -43
- data/doc/Axlsx/Default.html +55 -81
- data/doc/Axlsx/Drawing.html +322 -412
- data/doc/Axlsx/Fill.html +34 -47
- data/doc/Axlsx/Font.html +157 -207
- data/doc/Axlsx/GradientFill.html +90 -122
- data/doc/Axlsx/GradientStop.html +36 -50
- data/doc/Axlsx/GraphicFrame.html +106 -130
- data/doc/Axlsx/Line3DChart.html +108 -134
- data/doc/Axlsx/LineSeries.html +58 -67
- data/doc/Axlsx/Marker.html +84 -111
- data/doc/Axlsx/NumFmt.html +83 -102
- data/doc/Axlsx/OneCellAnchor.html +158 -196
- data/doc/Axlsx/Override.html +60 -92
- data/doc/Axlsx/Package.html +190 -759
- data/doc/Axlsx/PatternFill.html +78 -99
- data/doc/Axlsx/Pic.html +451 -405
- data/doc/Axlsx/Pie3DChart.html +33 -42
- data/doc/Axlsx/PieSeries.html +68 -80
- data/doc/Axlsx/RegexValidator.html +15 -20
- data/doc/Axlsx/Relationship.html +49 -66
- data/doc/Axlsx/Relationships.html +28 -41
- data/doc/Axlsx/RestrictionValidator.html +23 -32
- data/doc/Axlsx/Row.html +132 -161
- data/doc/Axlsx/Scaling.html +71 -90
- data/doc/Axlsx/SerAxis.html +61 -79
- data/doc/Axlsx/Series.html +125 -201
- data/doc/Axlsx/SeriesTitle.html +26 -31
- data/doc/Axlsx/Styles.html +286 -355
- data/doc/Axlsx/TableStyle.html +62 -87
- data/doc/Axlsx/TableStyleElement.html +84 -104
- data/doc/Axlsx/TableStyles.html +59 -82
- data/doc/Axlsx/Title.html +58 -155
- data/doc/Axlsx/TwoCellAnchor.html +165 -204
- data/doc/Axlsx/ValAxis.html +39 -53
- data/doc/Axlsx/ValAxisData.html +29 -39
- data/doc/Axlsx/View3D.html +93 -122
- data/doc/Axlsx/Workbook.html +359 -362
- data/doc/Axlsx/Worksheet.html +471 -816
- data/doc/Axlsx/Xf.html +341 -296
- data/doc/_index.html +7 -11
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +86 -0
- data/doc/file.README.html +105 -107
- data/doc/file_list.html +3 -0
- data/doc/frames.html +1 -1
- data/doc/index.html +105 -107
- data/doc/method_list.html +426 -602
- data/doc/top-level-namespace.html +3 -3
- data/examples/example.rb +20 -1
- data/lib/axlsx.rb +20 -15
- data/lib/axlsx/content_type/default.rb +8 -3
- data/lib/axlsx/content_type/override.rb +11 -4
- data/lib/axlsx/doc_props/app.rb +53 -23
- data/lib/axlsx/drawing/axis.rb +16 -5
- data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
- data/lib/axlsx/drawing/bar_series.rb +7 -5
- data/lib/axlsx/drawing/cat_axis.rb +10 -3
- data/lib/axlsx/drawing/chart.rb +21 -15
- data/lib/axlsx/drawing/drawing.rb +16 -30
- data/lib/axlsx/drawing/graphic_frame.rb +2 -4
- data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
- data/lib/axlsx/drawing/line_series.rb +6 -5
- data/lib/axlsx/drawing/marker.rb +9 -5
- data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
- data/lib/axlsx/drawing/pic.rb +29 -37
- data/lib/axlsx/drawing/pie_series.rb +7 -5
- data/lib/axlsx/drawing/scaling.rb +11 -5
- data/lib/axlsx/drawing/ser_axis.rb +6 -2
- data/lib/axlsx/drawing/series.rb +11 -11
- data/lib/axlsx/drawing/series_title.rb +1 -1
- data/lib/axlsx/drawing/title.rb +5 -12
- data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
- data/lib/axlsx/drawing/val_axis.rb +2 -2
- data/lib/axlsx/drawing/view_3D.rb +16 -9
- data/lib/axlsx/package.rb +25 -27
- data/lib/axlsx/rels/relationship.rb +4 -2
- data/lib/axlsx/stylesheet/border.rb +9 -4
- data/lib/axlsx/stylesheet/border_pr.rb +7 -4
- data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
- data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
- data/lib/axlsx/stylesheet/cell_style.rb +12 -7
- data/lib/axlsx/stylesheet/color.rb +8 -6
- data/lib/axlsx/stylesheet/fill.rb +2 -1
- data/lib/axlsx/stylesheet/font.rb +24 -13
- data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
- data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
- data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
- data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
- data/lib/axlsx/stylesheet/styles.rb +12 -12
- data/lib/axlsx/stylesheet/table_style.rb +6 -3
- data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
- data/lib/axlsx/stylesheet/table_styles.rb +4 -4
- data/lib/axlsx/stylesheet/xf.rb +52 -31
- data/lib/axlsx/util/validators.rb +3 -3
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +8 -9
- data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
- data/lib/axlsx/workbook/worksheet/row.rb +2 -4
- data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
- data/test/drawing/tc_one_cell_anchor.rb +1 -1
- metadata +135 -165
- data/doc/Axlsx/SimpleTypedList.html +0 -1686
- data/lib/schema/dc.xsd~ +0 -118
- data/lib/schema/dcterms.xsd~ +0 -331
- data/lib/schema/opc-coreProperties.xsd~ +0 -50
- data/test/drawing/tc_line_series.tc~ +0 -34
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::TwoCellAnchor
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— 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'
|
|
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
|
-
|
|
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'
|
|
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'
|
|
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="#
|
|
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'
|
|
203
|
-
The
|
|
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="#
|
|
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'
|
|
230
|
-
|
|
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
|
-
|
|
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="#
|
|
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'
|
|
257
|
-
|
|
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="#
|
|
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'
|
|
294
|
-
|
|
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'
|
|
320
|
-
Creates a new TwoCellAnchor object and sets up a reference to the from and
|
|
321
|
-
to markers in the
|
|
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’s chart.
|
|
|
341
329
|
|
|
342
330
|
|
|
343
331
|
|
|
344
|
-
<span class="summary_desc"><div class='inline'
|
|
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'
|
|
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
|
-
|
|
377
|
-
Creates a new TwoCellAnchor object and sets up a reference to the from and
|
|
378
|
-
to markers in the
|
|
379
|
-
|
|
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
|
—
|
|
410
|
-
<div class='inline'
|
|
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
|
—
|
|
428
|
-
<div class='inline'
|
|
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
|
—
|
|
447
|
-
<div class='inline'
|
|
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
|
-
— <div class='inline'
|
|
471
|
-
the col, row to start at
|
|
472
|
-
</p>
|
|
452
|
+
— <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
|
-
— <div class='inline'
|
|
483
|
-
the col, row to end at
|
|
484
|
-
</p>
|
|
463
|
+
— <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
|
|
506
|
-
|
|
507
|
-
<span class='
|
|
508
|
-
<span class='
|
|
509
|
-
<span class='drawing
|
|
510
|
-
<span class='
|
|
511
|
-
<span class='
|
|
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'><<</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'>=></span> <span class='int'>5</span><span class='comma'>,</span> <span class='symbol'>:row</span><span class='op'>=></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
|
-
|
|
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='
|
|
572
|
-
<span class='
|
|
573
|
-
<span class='
|
|
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
|
-
|
|
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='
|
|
630
|
-
<span class='
|
|
631
|
-
<span class='
|
|
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="
|
|
615
|
+
<span id="object-instance_method"></span>
|
|
641
616
|
<div class="method_details ">
|
|
642
|
-
<p class="signature " id="
|
|
617
|
+
<p class="signature " id="object-instance_method">
|
|
643
618
|
|
|
644
|
-
- (<tt>
|
|
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
|
-
|
|
651
|
-
The
|
|
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>
|
|
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
|
-
|
|
680
|
-
|
|
681
|
-
|
|
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
|
|
658
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 21</span>
|
|
685
659
|
|
|
686
|
-
<span class='
|
|
687
|
-
<span class='
|
|
688
|
-
<span class='
|
|
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="
|
|
670
|
+
<span id="to-instance_method"></span>
|
|
698
671
|
<div class="method_details ">
|
|
699
|
-
<p class="signature " id="
|
|
672
|
+
<p class="signature " id="to-instance_method">
|
|
700
673
|
|
|
701
|
-
- (<tt><span class='object_link'><a href="
|
|
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
|
-
|
|
708
|
-
|
|
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="
|
|
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
|
-
|
|
737
|
-
|
|
738
|
-
|
|
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
|
|
714
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 12</span>
|
|
742
715
|
|
|
743
|
-
<span class='
|
|
744
|
-
<span class='
|
|
745
|
-
<span class='
|
|
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
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
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="
|
|
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
|
-
|
|
765
|
-
|
|
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="
|
|
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
|
-
|
|
795
|
-
|
|
796
|
-
|
|
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
|
|
774
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 46</span>
|
|
800
775
|
|
|
801
|
-
<span class='
|
|
802
|
-
<span class='
|
|
803
|
-
<span class='
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
827
|
-
|
|
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
|
|
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
|
-
|
|
856
|
-
|
|
857
|
-
|
|
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
|
|
827
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 53</span>
|
|
862
828
|
|
|
863
|
-
<span class='
|
|
864
|
-
<span class='
|
|
865
|
-
|
|
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
|
-
|
|
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
|
—
|
|
903
|
-
<div class='inline'
|
|
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
|
|
948
|
-
|
|
949
|
-
<span class='
|
|
950
|
-
<span class='comment
|
|
951
|
-
<span class='xml
|
|
952
|
-
<span class='xml
|
|
953
|
-
<span class='from
|
|
954
|
-
<span class='rbrace
|
|
955
|
-
<span class='xml
|
|
956
|
-
<span class='to
|
|
957
|
-
<span class='rbrace
|
|
958
|
-
<span class='
|
|
959
|
-
<span class='xml
|
|
960
|
-
<span class='rbrace
|
|
961
|
-
<span class='
|
|
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
|
|
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.
|
|
936
|
+
0.7.3 (ruby-1.9.3).
|
|
976
937
|
</div>
|
|
977
938
|
|
|
978
939
|
</body>
|