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