axlsx 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/.yardopts +4 -0
  2. data/README.md +7 -4
  3. data/examples/example.rb +6 -4
  4. data/examples/example.rb~ +112 -0
  5. data/lib/schema/dc.xsd~ +118 -0
  6. data/lib/schema/dcterms.xsd~ +331 -0
  7. data/lib/schema/opc-coreProperties.xsd~ +50 -0
  8. metadata +43 -193
  9. data/Gemfile +0 -3
  10. data/Gemfile.lock +0 -29
  11. data/axlsx.gemspec +0 -42
  12. data/doc/Axlsx.html +0 -2718
  13. data/doc/Axlsx/App.html +0 -2640
  14. data/doc/Axlsx/Axis.html +0 -1075
  15. data/doc/Axlsx/Bar3DChart.html +0 -1182
  16. data/doc/Axlsx/BarSeries.html +0 -711
  17. data/doc/Axlsx/Border.html +0 -779
  18. data/doc/Axlsx/BorderPr.html +0 -709
  19. data/doc/Axlsx/CatAxis.html +0 -769
  20. data/doc/Axlsx/CatAxisData.html +0 -397
  21. data/doc/Axlsx/Cell.html +0 -3187
  22. data/doc/Axlsx/CellAlignment.html +0 -1247
  23. data/doc/Axlsx/CellProtection.html +0 -565
  24. data/doc/Axlsx/CellStyle.html +0 -949
  25. data/doc/Axlsx/Chart.html +0 -1692
  26. data/doc/Axlsx/Color.html +0 -670
  27. data/doc/Axlsx/ContentType.html +0 -335
  28. data/doc/Axlsx/Core.html +0 -465
  29. data/doc/Axlsx/DataTypeValidator.html +0 -324
  30. data/doc/Axlsx/Default.html +0 -565
  31. data/doc/Axlsx/Drawing.html +0 -1264
  32. data/doc/Axlsx/Fill.html +0 -460
  33. data/doc/Axlsx/Font.html +0 -1554
  34. data/doc/Axlsx/GradientFill.html +0 -1026
  35. data/doc/Axlsx/GradientStop.html +0 -526
  36. data/doc/Axlsx/GraphicFrame.html +0 -642
  37. data/doc/Axlsx/Line3DChart.html +0 -1004
  38. data/doc/Axlsx/LineSeries.html +0 -605
  39. data/doc/Axlsx/Marker.html +0 -857
  40. data/doc/Axlsx/NumFmt.html +0 -562
  41. data/doc/Axlsx/OneCellAnchor.html +0 -982
  42. data/doc/Axlsx/Override.html +0 -552
  43. data/doc/Axlsx/Package.html +0 -825
  44. data/doc/Axlsx/Parser.html +0 -549
  45. data/doc/Axlsx/PatternFill.html +0 -681
  46. data/doc/Axlsx/Pic.html +0 -1701
  47. data/doc/Axlsx/PictureLocking.html +0 -1159
  48. data/doc/Axlsx/Pie3DChart.html +0 -489
  49. data/doc/Axlsx/PieSeries.html +0 -710
  50. data/doc/Axlsx/RegexValidator.html +0 -268
  51. data/doc/Axlsx/Relationship.html +0 -554
  52. data/doc/Axlsx/Relationships.html +0 -338
  53. data/doc/Axlsx/RestrictionValidator.html +0 -300
  54. data/doc/Axlsx/Row.html +0 -916
  55. data/doc/Axlsx/Scaling.html +0 -742
  56. data/doc/Axlsx/SerAxis.html +0 -641
  57. data/doc/Axlsx/Series.html +0 -813
  58. data/doc/Axlsx/SeriesTitle.html +0 -290
  59. data/doc/Axlsx/Styles.html +0 -1754
  60. data/doc/Axlsx/TableStyle.html +0 -705
  61. data/doc/Axlsx/TableStyleElement.html +0 -677
  62. data/doc/Axlsx/TableStyles.html +0 -594
  63. data/doc/Axlsx/Title.html +0 -543
  64. data/doc/Axlsx/TwoCellAnchor.html +0 -973
  65. data/doc/Axlsx/ValAxis.html +0 -538
  66. data/doc/Axlsx/ValAxisData.html +0 -321
  67. data/doc/Axlsx/View3D.html +0 -973
  68. data/doc/Axlsx/Workbook.html +0 -1630
  69. data/doc/Axlsx/Worksheet.html +0 -2682
  70. data/doc/Axlsx/Xf.html +0 -1780
  71. data/doc/_index.html +0 -649
  72. data/doc/class_list.html +0 -47
  73. data/doc/css/common.css +0 -1
  74. data/doc/css/full_list.css +0 -55
  75. data/doc/css/style.css +0 -322
  76. data/doc/file.LICENSE.html +0 -91
  77. data/doc/file.README.html +0 -338
  78. data/doc/file_list.html +0 -52
  79. data/doc/frames.html +0 -13
  80. data/doc/index.html +0 -338
  81. data/doc/js/app.js +0 -205
  82. data/doc/js/full_list.js +0 -167
  83. data/doc/js/jquery.js +0 -16
  84. data/doc/method_list.html +0 -3502
  85. data/doc/top-level-namespace.html +0 -103
  86. data/lib/axlsx.rb +0 -54
  87. data/lib/axlsx/content_type/content_type.rb +0 -23
  88. data/lib/axlsx/content_type/default.rb +0 -37
  89. data/lib/axlsx/content_type/override.rb +0 -37
  90. data/lib/axlsx/doc_props/app.rb +0 -178
  91. data/lib/axlsx/doc_props/core.rb +0 -34
  92. data/lib/axlsx/drawing/axis.rb +0 -90
  93. data/lib/axlsx/drawing/bar_3D_chart.rb +0 -128
  94. data/lib/axlsx/drawing/bar_series.rb +0 -64
  95. data/lib/axlsx/drawing/cat_axis.rb +0 -63
  96. data/lib/axlsx/drawing/cat_axis_data.rb +0 -35
  97. data/lib/axlsx/drawing/chart.rb +0 -179
  98. data/lib/axlsx/drawing/drawing.rb +0 -137
  99. data/lib/axlsx/drawing/graphic_frame.rb +0 -52
  100. data/lib/axlsx/drawing/line_3D_chart.rb +0 -106
  101. data/lib/axlsx/drawing/line_series.rb +0 -46
  102. data/lib/axlsx/drawing/marker.rb +0 -61
  103. data/lib/axlsx/drawing/one_cell_anchor.rb +0 -89
  104. data/lib/axlsx/drawing/pic.rb +0 -153
  105. data/lib/axlsx/drawing/picture_locking.rb +0 -72
  106. data/lib/axlsx/drawing/pie_3D_chart.rb +0 -41
  107. data/lib/axlsx/drawing/pie_series.rb +0 -56
  108. data/lib/axlsx/drawing/scaling.rb +0 -59
  109. data/lib/axlsx/drawing/ser_axis.rb +0 -45
  110. data/lib/axlsx/drawing/series.rb +0 -71
  111. data/lib/axlsx/drawing/series_title.rb +0 -22
  112. data/lib/axlsx/drawing/title.rb +0 -61
  113. data/lib/axlsx/drawing/two_cell_anchor.rb +0 -76
  114. data/lib/axlsx/drawing/val_axis.rb +0 -34
  115. data/lib/axlsx/drawing/val_axis_data.rb +0 -28
  116. data/lib/axlsx/drawing/view_3D.rb +0 -85
  117. data/lib/axlsx/package.rb +0 -214
  118. data/lib/axlsx/rels/relationship.rb +0 -44
  119. data/lib/axlsx/rels/relationships.rb +0 -25
  120. data/lib/axlsx/stylesheet/border.rb +0 -57
  121. data/lib/axlsx/stylesheet/border_pr.rb +0 -68
  122. data/lib/axlsx/stylesheet/cell_alignment.rb +0 -105
  123. data/lib/axlsx/stylesheet/cell_protection.rb +0 -36
  124. data/lib/axlsx/stylesheet/cell_style.rb +0 -65
  125. data/lib/axlsx/stylesheet/color.rb +0 -69
  126. data/lib/axlsx/stylesheet/fill.rb +0 -32
  127. data/lib/axlsx/stylesheet/font.rb +0 -139
  128. data/lib/axlsx/stylesheet/gradient_fill.rb +0 -76
  129. data/lib/axlsx/stylesheet/gradient_stop.rb +0 -33
  130. data/lib/axlsx/stylesheet/num_fmt.rb +0 -63
  131. data/lib/axlsx/stylesheet/pattern_fill.rb +0 -66
  132. data/lib/axlsx/stylesheet/styles.rb +0 -298
  133. data/lib/axlsx/stylesheet/table_style.rb +0 -47
  134. data/lib/axlsx/stylesheet/table_style_element.rb +0 -71
  135. data/lib/axlsx/stylesheet/table_styles.rb +0 -39
  136. data/lib/axlsx/stylesheet/xf.rb +0 -138
  137. data/lib/axlsx/util/constants.rb +0 -216
  138. data/lib/axlsx/util/parser.rb +0 -43
  139. data/lib/axlsx/util/simple_typed_list.rb +0 -160
  140. data/lib/axlsx/util/validators.rb +0 -132
  141. data/lib/axlsx/version.rb +0 -4
  142. data/lib/axlsx/workbook/workbook.rb +0 -160
  143. data/lib/axlsx/workbook/worksheet/cell.rb +0 -340
  144. data/lib/axlsx/workbook/worksheet/row.rb +0 -107
  145. data/lib/axlsx/workbook/worksheet/worksheet.rb +0 -278
@@ -1,1701 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Axlsx::Pic
8
-
9
- &mdash; AXLSX
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../_index.html">Index (P)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
38
- &raquo;
39
- <span class="title">Pic</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: Axlsx::Pic
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName">Object</span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next">Axlsx::Pic</li>
75
-
76
- </ul>
77
- <a href="#" class="inheritanceTree">show all</a>
78
-
79
- </dd>
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- <dt class="r2 last">Defined in:</dt>
90
- <dd class="r2 last">lib/axlsx/drawing/pic.rb</dd>
91
-
92
- </dl>
93
- <div class="clear"></div>
94
-
95
- <h2>Overview</h2><div class="docstring">
96
- <div class="discussion">
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>
101
-
102
-
103
- </div>
104
- </div>
105
- <div class="tags">
106
-
107
-
108
- <h3>See Also:</h3>
109
- <ul class="see">
110
-
111
- <li><span class='object_link'><a href="Worksheet.html#add_image-instance_method" title="Axlsx::Worksheet#add_image (method)">Worksheet#add_image</a></span></li>
112
-
113
- </ul>
114
-
115
- </div>
116
- <h2>Constant Summary</h2>
117
-
118
- <dl class="constants">
119
-
120
- <dt id="ALLOWED_EXTENSIONS-constant" class="">ALLOWED_EXTENSIONS =
121
- <div class="docstring">
122
- <div class="discussion">
123
- <p>
124
- allowed file extenstions
125
- </p>
126
-
127
-
128
- </div>
129
- </div>
130
- <div class="tags">
131
-
132
-
133
- </div>
134
- </dt>
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>
137
-
138
- </dl>
139
-
140
-
141
-
142
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
143
- <ul class="summary">
144
-
145
- <li class="public ">
146
- <span class="summary_signature">
147
-
148
- <a href="#anchor-instance_method" title="#anchor (instance method)">- (OneCellAnchor) <strong>anchor</strong> </a>
149
-
150
-
151
-
152
- </span>
153
-
154
-
155
- <span class="note title readonly">readonly</span>
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
- <span class="summary_desc"><div class='inline'><p>
165
- The anchor for this image.
166
- </p>
167
- </div></span>
168
-
169
- </li>
170
-
171
-
172
- <li class="public ">
173
- <span class="summary_signature">
174
-
175
- <a href="#descr-instance_method" title="#descr (instance method)">- (String) <strong>descr</strong> </a>
176
-
177
-
178
-
179
- </span>
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
- <span class="summary_desc"><div class='inline'><p>
192
- A description of the picture.
193
- </p>
194
- </div></span>
195
-
196
- </li>
197
-
198
-
199
- <li class="public ">
200
- <span class="summary_signature">
201
-
202
- <a href="#image_src-instance_method" title="#image_src (instance method)">- (String) <strong>image_src</strong> </a>
203
-
204
-
205
-
206
- </span>
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
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>
222
- </div></span>
223
-
224
- </li>
225
-
226
-
227
- <li class="public ">
228
- <span class="summary_signature">
229
-
230
- <a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
231
-
232
-
233
-
234
- </span>
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
- <span class="summary_desc"><div class='inline'><p>
247
- The name to use for this picture.
248
- </p>
249
- </div></span>
250
-
251
- </li>
252
-
253
-
254
- <li class="public ">
255
- <span class="summary_signature">
256
-
257
- <a href="#picture_locking-instance_method" title="#picture_locking (instance method)">- (Object) <strong>picture_locking</strong> </a>
258
-
259
-
260
-
261
- </span>
262
-
263
-
264
- <span class="note title readonly">readonly</span>
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
- <span class="summary_desc"><div class='inline'><p>
274
- The picture locking attributes for this picture.
275
- </p>
276
- </div></span>
277
-
278
- </li>
279
-
280
-
281
- </ul>
282
-
283
-
284
-
285
-
286
-
287
- <h2>
288
- Instance Method Summary
289
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
290
- </h2>
291
-
292
- <ul class="summary">
293
-
294
- <li class="public ">
295
- <span class="summary_signature">
296
-
297
- <a href="#extname-instance_method" title="#extname (instance method)">- (String) <strong>extname</strong> </a>
298
-
299
-
300
-
301
- </span>
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
- <span class="summary_desc"><div class='inline'><p>
311
- returns the extension of image_src without the preceeding &#8217;.&#8217;.
312
- </p>
313
- </div></span>
314
-
315
- </li>
316
-
317
-
318
- <li class="public ">
319
- <span class="summary_signature">
320
-
321
- <a href="#file_name-instance_method" title="#file_name (instance method)">- (String) <strong>file_name</strong> </a>
322
-
323
-
324
-
325
- </span>
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
- <span class="summary_desc"><div class='inline'><p>
335
- The file name of image_src without any path information.
336
- </p>
337
- </div></span>
338
-
339
- </li>
340
-
341
-
342
- <li class="public ">
343
- <span class="summary_signature">
344
-
345
- <a href="#height-instance_method" title="#height (instance method)">- (Object) <strong>height</strong> </a>
346
-
347
-
348
-
349
- </span>
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
- <span class="summary_desc"><div class='inline'><p>
359
- providing access to update the anchor&#8217;s height attribute.
360
- </p>
361
- </div></span>
362
-
363
- </li>
364
-
365
-
366
- <li class="public ">
367
- <span class="summary_signature">
368
-
369
- <a href="#height%3D-instance_method" title="#height= (instance method)">- (Object) <strong>height=</strong>(v) </a>
370
-
371
-
372
-
373
- </span>
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
- <span class="summary_desc"><div class='inline'></div></span>
383
-
384
- </li>
385
-
386
-
387
- <li class="public ">
388
- <span class="summary_signature">
389
-
390
- <a href="#index-instance_method" title="#index (instance method)">- (Index) <strong>index</strong> </a>
391
-
392
-
393
-
394
- </span>
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
- <span class="summary_desc"><div class='inline'><p>
404
- The index of this image in the workbooks images collections.
405
- </p>
406
- </div></span>
407
-
408
- </li>
409
-
410
-
411
- <li class="public ">
412
- <span class="summary_signature">
413
-
414
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Pic) <strong>initialize</strong>(anchor, options = {}) {|_self| ... }</a>
415
-
416
-
417
-
418
- </span>
419
-
420
- <span class="note title constructor">constructor</span>
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
- <span class="summary_desc"><div class='inline'><p>
430
- Creates a new Pic(ture) object.
431
- </p>
432
- </div></span>
433
-
434
- </li>
435
-
436
-
437
- <li class="public ">
438
- <span class="summary_signature">
439
-
440
- <a href="#pn-instance_method" title="#pn (instance method)">- (String) <strong>pn</strong> </a>
441
-
442
-
443
-
444
- </span>
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
- <span class="summary_desc"><div class='inline'><p>
454
- The part name for this image used in serialization and relationship
455
- building.
456
- </p>
457
- </div></span>
458
-
459
- </li>
460
-
461
-
462
- <li class="public ">
463
- <span class="summary_signature">
464
-
465
- <a href="#start_at-instance_method" title="#start_at (instance method)">- (Marker) <strong>start_at</strong>(x, y) </a>
466
-
467
-
468
-
469
- </span>
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
- <span class="summary_desc"><div class='inline'><p>
479
- This is a short cut method to set the start anchor position If you need
480
- finer granularity in positioning use graphic_frame.anchor.from.colOff /
481
- rowOff.
482
- </p>
483
- </div></span>
484
-
485
- </li>
486
-
487
-
488
- <li class="public ">
489
- <span class="summary_signature">
490
-
491
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
492
-
493
-
494
-
495
- </span>
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
- <span class="summary_desc"><div class='inline'><p>
505
- Serializes the picture.
506
- </p>
507
- </div></span>
508
-
509
- </li>
510
-
511
-
512
- <li class="public ">
513
- <span class="summary_signature">
514
-
515
- <a href="#width-instance_method" title="#width (instance method)">- (Object) <strong>width</strong> </a>
516
-
517
-
518
-
519
- </span>
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
- <span class="summary_desc"><div class='inline'><p>
529
- providing access to the anchor&#8217;s width attribute.
530
- </p>
531
- </div></span>
532
-
533
- </li>
534
-
535
-
536
- <li class="public ">
537
- <span class="summary_signature">
538
-
539
- <a href="#width%3D-instance_method" title="#width= (instance method)">- (Object) <strong>width=</strong>(v) </a>
540
-
541
-
542
-
543
- </span>
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
- <span class="summary_desc"><div class='inline'></div></span>
553
-
554
- </li>
555
-
556
-
557
- </ul>
558
-
559
-
560
- <div id="constructor_details" class="method_details_list">
561
- <h2>Constructor Details</h2>
562
-
563
- <div class="method_details first">
564
- <p class="signature first" id="initialize-instance_method">
565
-
566
- - (<tt><span class='object_link'><a href="" title="Axlsx::Pic (class)">Pic</a></span></tt>) <strong>initialize</strong>(anchor, options = {}) {|_self| ... }
567
-
568
-
569
-
570
- </p><div class="docstring">
571
- <div class="discussion">
572
- <p>
573
- Creates a new Pic(ture) object
574
- </p>
575
-
576
-
577
- </div>
578
- </div>
579
- <div class="tags">
580
- <h3>Parameters:</h3>
581
- <ul class="param">
582
-
583
- <li>
584
-
585
- <span class='name'>anchor</span>
586
-
587
-
588
- <span class='type'>(<tt>Anchor</tt>)</span>
589
-
590
-
591
-
592
- &mdash;
593
- <div class='inline'><p>
594
- the anchor that holds this image
595
- </p>
596
- </div>
597
-
598
- </li>
599
-
600
- <li>
601
-
602
- <span class='name'>options</span>
603
-
604
-
605
- <span class='type'>(<tt>Hash</tt>)</span>
606
-
607
-
608
- <em class="default">(defaults to: <tt>{}</tt>)</em>
609
-
610
-
611
- &mdash;
612
- <div class='inline'><p>
613
- a customizable set of options
614
- </p>
615
- </div>
616
-
617
- </li>
618
-
619
- </ul>
620
-
621
-
622
-
623
-
624
-
625
-
626
- <h3>Options Hash (<tt>options</tt>):</h3>
627
- <ul class="option">
628
-
629
- <li>
630
- <span class="name">name</span>
631
- <span class="type">(<tt>String</tt>)</span>
632
- <span class="default">
633
-
634
- </span>
635
-
636
- </li>
637
-
638
- <li>
639
- <span class="name">descr</span>
640
- <span class="type">(<tt>String</tt>)</span>
641
- <span class="default">
642
-
643
- </span>
644
-
645
- </li>
646
-
647
- <li>
648
- <span class="name">image_src</span>
649
- <span class="type">(<tt>String</tt>)</span>
650
- <span class="default">
651
-
652
- </span>
653
-
654
- </li>
655
-
656
- <li>
657
- <span class="name">start_at</span>
658
- <span class="type">(<tt>Array</tt>)</span>
659
- <span class="default">
660
-
661
- </span>
662
-
663
- </li>
664
-
665
- <li>
666
- <span class="name">width</span>
667
- <span class="type">(<tt>Intger</tt>)</span>
668
- <span class="default">
669
-
670
- </span>
671
-
672
- </li>
673
-
674
- <li>
675
- <span class="name">height</span>
676
- <span class="type">(<tt>Intger</tt>)</span>
677
- <span class="default">
678
-
679
- </span>
680
-
681
- </li>
682
-
683
- </ul>
684
-
685
-
686
- <h3>Yields:</h3>
687
- <ul class="yield">
688
-
689
- <li>
690
-
691
-
692
- <span class='type'>(<tt>_self</tt>)</span>
693
-
694
-
695
-
696
- </li>
697
-
698
- </ul>
699
- <h3>Yield Parameters:</h3>
700
- <ul class="yieldparam">
701
-
702
- <li>
703
-
704
- <span class='name'>_self</span>
705
-
706
-
707
- <span class='type'>(<tt><span class='object_link'><a href="" title="Axlsx::Pic (class)">Axlsx::Pic</a></span></tt>)</span>
708
-
709
-
710
-
711
- &mdash;
712
- <div class='inline'><p>
713
- the object that the method was called on
714
- </p>
715
- </div>
716
-
717
- </li>
718
-
719
- </ul>
720
-
721
- </div><table class="source_code">
722
- <tr>
723
- <td>
724
- <pre class="lines">
725
-
726
-
727
- 40
728
- 41
729
- 42
730
- 43
731
- 44
732
- 45
733
- 46
734
- 47
735
- 48
736
- 49</pre>
737
- </td>
738
- <td>
739
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 40</span>
740
-
741
- <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>
742
- <span class='@anchor ivar id'>@anchor</span> <span class='assign token'>=</span> <span class='anchor identifier id'>anchor</span>
743
- <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='images identifier id'>images</span> <span class='lshft op'>&lt;&lt;</span> <span class='self self kw'>self</span>
744
- <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>
745
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{o[0]}=&quot;</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='dstring node'>&quot;#{o[0]}=&quot;</span>
746
- <span class='end end kw'>end</span>
747
- <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>
748
- <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>
749
- <span class='@picture_locking ivar id'>@picture_locking</span> <span class='assign token'>=</span> <span class='PictureLocking constant id'>PictureLocking</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='rparen token'>)</span>
750
- <span class='end end kw'>end</span>
751
- </pre>
752
- </td>
753
- </tr>
754
- </table>
755
- </div>
756
-
757
- </div>
758
-
759
- <div id="instance_attr_details" class="attr_details">
760
- <h2>Instance Attribute Details</h2>
761
-
762
-
763
- <span id=""></span>
764
- <span id="anchor-instance_method"></span>
765
- <div class="method_details first">
766
- <p class="signature first" id="anchor-instance_method">
767
-
768
- - (<tt><span class='object_link'><a href="OneCellAnchor.html" title="Axlsx::OneCellAnchor (class)">OneCellAnchor</a></span></tt>) <strong>anchor</strong> <span class="extras">(readonly)</span>
769
-
770
-
771
-
772
- </p><div class="docstring">
773
- <div class="discussion">
774
- <p>
775
- The anchor for this image
776
- </p>
777
-
778
-
779
- </div>
780
- </div>
781
- <div class="tags">
782
-
783
- <h3>Returns:</h3>
784
- <ul class="return">
785
-
786
- <li>
787
-
788
-
789
- <span class='type'>(<tt><span class='object_link'><a href="OneCellAnchor.html" title="Axlsx::OneCellAnchor (class)">OneCellAnchor</a></span></tt>)</span>
790
-
791
-
792
-
793
- </li>
794
-
795
- </ul>
796
-
797
- </div><table class="source_code">
798
- <tr>
799
- <td>
800
- <pre class="lines">
801
-
802
-
803
- 27
804
- 28
805
- 29</pre>
806
- </td>
807
- <td>
808
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 27</span>
809
-
810
- <span class='def def kw'>def</span> <span class='anchor identifier id'>anchor</span>
811
- <span class='@anchor ivar id'>@anchor</span>
812
- <span class='end end kw'>end</span>
813
- </pre>
814
- </td>
815
- </tr>
816
- </table>
817
- </div>
818
-
819
-
820
- <span id="descr=-instance_method"></span>
821
- <span id="descr-instance_method"></span>
822
- <div class="method_details ">
823
- <p class="signature " id="descr-instance_method">
824
-
825
- - (<tt>String</tt>) <strong>descr</strong>
826
-
827
-
828
-
829
- </p><div class="docstring">
830
- <div class="discussion">
831
- <p>
832
- A description of the picture
833
- </p>
834
-
835
-
836
- </div>
837
- </div>
838
- <div class="tags">
839
-
840
- <h3>Returns:</h3>
841
- <ul class="return">
842
-
843
- <li>
844
-
845
-
846
- <span class='type'>(<tt>String</tt>)</span>
847
-
848
-
849
-
850
- </li>
851
-
852
- </ul>
853
-
854
- </div><table class="source_code">
855
- <tr>
856
- <td>
857
- <pre class="lines">
858
-
859
-
860
- 18
861
- 19
862
- 20</pre>
863
- </td>
864
- <td>
865
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 18</span>
866
-
867
- <span class='def def kw'>def</span> <span class='descr identifier id'>descr</span>
868
- <span class='@descr ivar id'>@descr</span>
869
- <span class='end end kw'>end</span>
870
- </pre>
871
- </td>
872
- </tr>
873
- </table>
874
- </div>
875
-
876
-
877
- <span id="image_src=-instance_method"></span>
878
- <span id="image_src-instance_method"></span>
879
- <div class="method_details ">
880
- <p class="signature " id="image_src-instance_method">
881
-
882
- - (<tt>String</tt>) <strong>image_src</strong>
883
-
884
-
885
-
886
- </p><div class="docstring">
887
- <div class="discussion">
888
- <p>
889
- The path to the image you want to include Only local images are supported
890
- at this time and only jpg support
891
- </p>
892
-
893
-
894
- </div>
895
- </div>
896
- <div class="tags">
897
-
898
- <h3>Returns:</h3>
899
- <ul class="return">
900
-
901
- <li>
902
-
903
-
904
- <span class='type'>(<tt>String</tt>)</span>
905
-
906
-
907
-
908
- </li>
909
-
910
- </ul>
911
-
912
- </div><table class="source_code">
913
- <tr>
914
- <td>
915
- <pre class="lines">
916
-
917
-
918
- 23
919
- 24
920
- 25</pre>
921
- </td>
922
- <td>
923
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 23</span>
924
-
925
- <span class='def def kw'>def</span> <span class='image_src identifier id'>image_src</span>
926
- <span class='@image_src ivar id'>@image_src</span>
927
- <span class='end end kw'>end</span>
928
- </pre>
929
- </td>
930
- </tr>
931
- </table>
932
- </div>
933
-
934
-
935
- <span id="name=-instance_method"></span>
936
- <span id="name-instance_method"></span>
937
- <div class="method_details ">
938
- <p class="signature " id="name-instance_method">
939
-
940
- - (<tt>String</tt>) <strong>name</strong>
941
-
942
-
943
-
944
- </p><div class="docstring">
945
- <div class="discussion">
946
- <p>
947
- The name to use for this picture
948
- </p>
949
-
950
-
951
- </div>
952
- </div>
953
- <div class="tags">
954
-
955
- <h3>Returns:</h3>
956
- <ul class="return">
957
-
958
- <li>
959
-
960
-
961
- <span class='type'>(<tt>String</tt>)</span>
962
-
963
-
964
-
965
- </li>
966
-
967
- </ul>
968
-
969
- </div><table class="source_code">
970
- <tr>
971
- <td>
972
- <pre class="lines">
973
-
974
-
975
- 13
976
- 14
977
- 15</pre>
978
- </td>
979
- <td>
980
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 13</span>
981
-
982
- <span class='def def kw'>def</span> <span class='name identifier id'>name</span>
983
- <span class='@name ivar id'>@name</span>
984
- <span class='end end kw'>end</span>
985
- </pre>
986
- </td>
987
- </tr>
988
- </table>
989
- </div>
990
-
991
-
992
- <span id=""></span>
993
- <span id="picture_locking-instance_method"></span>
994
- <div class="method_details ">
995
- <p class="signature " id="picture_locking-instance_method">
996
-
997
- - (<tt>Object</tt>) <strong>picture_locking</strong> <span class="extras">(readonly)</span>
998
-
999
-
1000
-
1001
- </p><div class="docstring">
1002
- <div class="discussion">
1003
- <p>
1004
- The picture locking attributes for this picture
1005
- </p>
1006
-
1007
-
1008
- </div>
1009
- </div>
1010
- <div class="tags">
1011
-
1012
-
1013
- </div><table class="source_code">
1014
- <tr>
1015
- <td>
1016
- <pre class="lines">
1017
-
1018
-
1019
- 30
1020
- 31
1021
- 32</pre>
1022
- </td>
1023
- <td>
1024
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 30</span>
1025
-
1026
- <span class='def def kw'>def</span> <span class='picture_locking identifier id'>picture_locking</span>
1027
- <span class='@picture_locking ivar id'>@picture_locking</span>
1028
- <span class='end end kw'>end</span>
1029
- </pre>
1030
- </td>
1031
- </tr>
1032
- </table>
1033
- </div>
1034
-
1035
- </div>
1036
-
1037
-
1038
- <div id="instance_method_details" class="method_details_list">
1039
- <h2>Instance Method Details</h2>
1040
-
1041
-
1042
- <div class="method_details first">
1043
- <p class="signature first" id="extname-instance_method">
1044
-
1045
- - (<tt>String</tt>) <strong>extname</strong>
1046
-
1047
-
1048
-
1049
- </p><div class="docstring">
1050
- <div class="discussion">
1051
- <p>
1052
- returns the extension of image_src without the preceeding &#8217;.&#8217;
1053
- </p>
1054
-
1055
-
1056
- </div>
1057
- </div>
1058
- <div class="tags">
1059
-
1060
- <h3>Returns:</h3>
1061
- <ul class="return">
1062
-
1063
- <li>
1064
-
1065
-
1066
- <span class='type'>(<tt>String</tt>)</span>
1067
-
1068
-
1069
-
1070
- </li>
1071
-
1072
- </ul>
1073
-
1074
- </div><table class="source_code">
1075
- <tr>
1076
- <td>
1077
- <pre class="lines">
1078
-
1079
-
1080
- 73
1081
- 74
1082
- 75</pre>
1083
- </td>
1084
- <td>
1085
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 73</span>
1086
-
1087
- <span class='def def kw'>def</span> <span class='extname identifier id'>extname</span>
1088
- <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>
1089
- <span class='end end kw'>end</span>
1090
- </pre>
1091
- </td>
1092
- </tr>
1093
- </table>
1094
- </div>
1095
-
1096
- <div class="method_details ">
1097
- <p class="signature " id="file_name-instance_method">
1098
-
1099
- - (<tt>String</tt>) <strong>file_name</strong>
1100
-
1101
-
1102
-
1103
- </p><div class="docstring">
1104
- <div class="discussion">
1105
- <p>
1106
- The file name of image_src without any path information
1107
- </p>
1108
-
1109
-
1110
- </div>
1111
- </div>
1112
- <div class="tags">
1113
-
1114
- <h3>Returns:</h3>
1115
- <ul class="return">
1116
-
1117
- <li>
1118
-
1119
-
1120
- <span class='type'>(<tt>String</tt>)</span>
1121
-
1122
-
1123
-
1124
- </li>
1125
-
1126
- </ul>
1127
-
1128
- </div><table class="source_code">
1129
- <tr>
1130
- <td>
1131
- <pre class="lines">
1132
-
1133
-
1134
- 67
1135
- 68
1136
- 69</pre>
1137
- </td>
1138
- <td>
1139
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 67</span>
1140
-
1141
- <span class='def def kw'>def</span> <span class='file_name identifier id'>file_name</span>
1142
- <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>
1143
- <span class='end end kw'>end</span>
1144
- </pre>
1145
- </td>
1146
- </tr>
1147
- </table>
1148
- </div>
1149
-
1150
- <div class="method_details ">
1151
- <p class="signature " id="height-instance_method">
1152
-
1153
- - (<tt>Object</tt>) <strong>height</strong>
1154
-
1155
-
1156
-
1157
- </p><div class="docstring">
1158
- <div class="discussion">
1159
- <p>
1160
- providing access to update the anchor&#8217;s height attribute
1161
- </p>
1162
-
1163
-
1164
- </div>
1165
- </div>
1166
- <div class="tags">
1167
- <h3>Parameters:</h3>
1168
- <ul class="param">
1169
-
1170
- <li>
1171
-
1172
- <span class='name'>v</span>
1173
-
1174
-
1175
- <span class='type'>(<tt>Integer</tt>)</span>
1176
-
1177
-
1178
-
1179
- </li>
1180
-
1181
- </ul>
1182
-
1183
-
1184
- <h3>See Also:</h3>
1185
- <ul class="see">
1186
-
1187
- <li>OneCellAnchor.width</li>
1188
-
1189
- </ul>
1190
-
1191
- </div><table class="source_code">
1192
- <tr>
1193
- <td>
1194
- <pre class="lines">
1195
-
1196
-
1197
- 104
1198
- 105
1199
- 106</pre>
1200
- </td>
1201
- <td>
1202
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 104</span>
1203
-
1204
- <span class='def def kw'>def</span> <span class='height identifier id'>height</span>
1205
- <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='height identifier id'>height</span>
1206
- <span class='end end kw'>end</span>
1207
- </pre>
1208
- </td>
1209
- </tr>
1210
- </table>
1211
- </div>
1212
-
1213
- <div class="method_details ">
1214
- <p class="signature " id="height=-instance_method">
1215
-
1216
- - (<tt>Object</tt>) <strong>height=</strong>(v)
1217
-
1218
-
1219
-
1220
- </p><div class="docstring">
1221
- <div class="discussion">
1222
-
1223
-
1224
- </div>
1225
- </div>
1226
- <div class="tags">
1227
-
1228
-
1229
- <h3>See Also:</h3>
1230
- <ul class="see">
1231
-
1232
- <li>height</li>
1233
-
1234
- </ul>
1235
-
1236
- </div><table class="source_code">
1237
- <tr>
1238
- <td>
1239
- <pre class="lines">
1240
-
1241
-
1242
- 109
1243
- 110
1244
- 111</pre>
1245
- </td>
1246
- <td>
1247
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 109</span>
1248
-
1249
- <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>
1250
- <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>
1251
- <span class='end end kw'>end</span>
1252
- </pre>
1253
- </td>
1254
- </tr>
1255
- </table>
1256
- </div>
1257
-
1258
- <div class="method_details ">
1259
- <p class="signature " id="index-instance_method">
1260
-
1261
- - (<tt>Index</tt>) <strong>index</strong>
1262
-
1263
-
1264
-
1265
- </p><div class="docstring">
1266
- <div class="discussion">
1267
- <p>
1268
- The index of this image in the workbooks images collections
1269
- </p>
1270
-
1271
-
1272
- </div>
1273
- </div>
1274
- <div class="tags">
1275
-
1276
- <h3>Returns:</h3>
1277
- <ul class="return">
1278
-
1279
- <li>
1280
-
1281
-
1282
- <span class='type'>(<tt>Index</tt>)</span>
1283
-
1284
-
1285
-
1286
- </li>
1287
-
1288
- </ul>
1289
-
1290
- </div><table class="source_code">
1291
- <tr>
1292
- <td>
1293
- <pre class="lines">
1294
-
1295
-
1296
- 79
1297
- 80
1298
- 81</pre>
1299
- </td>
1300
- <td>
1301
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 79</span>
1302
-
1303
- <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
1304
- <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>
1305
- <span class='end end kw'>end</span>
1306
- </pre>
1307
- </td>
1308
- </tr>
1309
- </table>
1310
- </div>
1311
-
1312
- <div class="method_details ">
1313
- <p class="signature " id="pn-instance_method">
1314
-
1315
- - (<tt>String</tt>) <strong>pn</strong>
1316
-
1317
-
1318
-
1319
- </p><div class="docstring">
1320
- <div class="discussion">
1321
- <p>
1322
- The part name for this image used in serialization and relationship
1323
- building
1324
- </p>
1325
-
1326
-
1327
- </div>
1328
- </div>
1329
- <div class="tags">
1330
-
1331
- <h3>Returns:</h3>
1332
- <ul class="return">
1333
-
1334
- <li>
1335
-
1336
-
1337
- <span class='type'>(<tt>String</tt>)</span>
1338
-
1339
-
1340
-
1341
- </li>
1342
-
1343
- </ul>
1344
-
1345
- </div><table class="source_code">
1346
- <tr>
1347
- <td>
1348
- <pre class="lines">
1349
-
1350
-
1351
- 85
1352
- 86
1353
- 87</pre>
1354
- </td>
1355
- <td>
1356
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 85</span>
1357
-
1358
- <span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
1359
- <span class='dstring node'>&quot;#{IMAGE_PN % [(index+1), extname]}&quot;</span>
1360
- <span class='end end kw'>end</span>
1361
- </pre>
1362
- </td>
1363
- </tr>
1364
- </table>
1365
- </div>
1366
-
1367
- <div class="method_details ">
1368
- <p class="signature " id="start_at-instance_method">
1369
-
1370
- - (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>start_at</strong>(x, y)
1371
-
1372
-
1373
-
1374
- </p><div class="docstring">
1375
- <div class="discussion">
1376
- <p>
1377
- This is a short cut method to set the start anchor position If you need
1378
- finer granularity in positioning use graphic_frame.anchor.from.colOff /
1379
- rowOff
1380
- </p>
1381
-
1382
-
1383
- </div>
1384
- </div>
1385
- <div class="tags">
1386
- <h3>Parameters:</h3>
1387
- <ul class="param">
1388
-
1389
- <li>
1390
-
1391
- <span class='name'>x</span>
1392
-
1393
-
1394
- <span class='type'>(<tt>Integer</tt>)</span>
1395
-
1396
-
1397
-
1398
- &mdash;
1399
- <div class='inline'><p>
1400
- The column
1401
- </p>
1402
- </div>
1403
-
1404
- </li>
1405
-
1406
- <li>
1407
-
1408
- <span class='name'>y</span>
1409
-
1410
-
1411
- <span class='type'>(<tt>Integer</tt>)</span>
1412
-
1413
-
1414
-
1415
- &mdash;
1416
- <div class='inline'><p>
1417
- The row
1418
- </p>
1419
- </div>
1420
-
1421
- </li>
1422
-
1423
- </ul>
1424
-
1425
- <h3>Returns:</h3>
1426
- <ul class="return">
1427
-
1428
- <li>
1429
-
1430
-
1431
- <span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
1432
-
1433
-
1434
-
1435
- </li>
1436
-
1437
- </ul>
1438
-
1439
- </div><table class="source_code">
1440
- <tr>
1441
- <td>
1442
- <pre class="lines">
1443
-
1444
-
1445
- 119
1446
- 120
1447
- 121
1448
- 122</pre>
1449
- </td>
1450
- <td>
1451
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 119</span>
1452
-
1453
- <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>
1454
- <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>
1455
- <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>
1456
- <span class='end end kw'>end</span>
1457
- </pre>
1458
- </td>
1459
- </tr>
1460
- </table>
1461
- </div>
1462
-
1463
- <div class="method_details ">
1464
- <p class="signature " id="to_xml-instance_method">
1465
-
1466
- - (<tt>String</tt>) <strong>to_xml</strong>(xml)
1467
-
1468
-
1469
-
1470
- </p><div class="docstring">
1471
- <div class="discussion">
1472
- <p>
1473
- Serializes the picture
1474
- </p>
1475
-
1476
-
1477
- </div>
1478
- </div>
1479
- <div class="tags">
1480
- <h3>Parameters:</h3>
1481
- <ul class="param">
1482
-
1483
- <li>
1484
-
1485
- <span class='name'>xml</span>
1486
-
1487
-
1488
- <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
1489
-
1490
-
1491
-
1492
- &mdash;
1493
- <div class='inline'><p>
1494
- The document builder instance this objects xml will be added to.
1495
- </p>
1496
- </div>
1497
-
1498
- </li>
1499
-
1500
- </ul>
1501
-
1502
- <h3>Returns:</h3>
1503
- <ul class="return">
1504
-
1505
- <li>
1506
-
1507
-
1508
- <span class='type'>(<tt>String</tt>)</span>
1509
-
1510
-
1511
-
1512
- </li>
1513
-
1514
- </ul>
1515
-
1516
- </div><table class="source_code">
1517
- <tr>
1518
- <td>
1519
- <pre class="lines">
1520
-
1521
-
1522
- 127
1523
- 128
1524
- 129
1525
- 130
1526
- 131
1527
- 132
1528
- 133
1529
- 134
1530
- 135
1531
- 136
1532
- 137
1533
- 138
1534
- 139
1535
- 140
1536
- 141
1537
- 142
1538
- 143
1539
- 144
1540
- 145
1541
- 146
1542
- 147
1543
- 148
1544
- 149
1545
- 150
1546
- 151</pre>
1547
- </td>
1548
- <td>
1549
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 127</span>
1550
-
1551
- <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>
1552
- <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>
1553
- <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>
1554
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:cNvPr'</span><span class='comma token'>,</span> <span class='symbol val'>:id=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;2&quot;</span><span class='comma token'>,</span> <span class='symbol val'>:name=</span><span class='gt op'>&gt;</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='symbol val'>:descr=</span><span class='gt op'>&gt;</span><span class='descr identifier id'>descr</span><span class='rparen token'>)</span>
1555
- <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>
1556
- <span class='picture_locking identifier id'>picture_locking</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>
1557
- <span class='rbrace token'>}</span>
1558
- <span class='rbrace token'>}</span>
1559
- <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>
1560
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'a:blip'</span><span class='comma token'>,</span> <span class='symbol val'>:'xmlns:r'</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='XML_NS_R constant id'>XML_NS_R</span><span class='comma token'>,</span> <span class='symbol val'>:'r:embed'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;rId1&quot;</span><span class='rparen token'>)</span>
1561
- <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>
1562
- <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>
1563
- <span class='rbrace token'>}</span>
1564
- <span class='rbrace token'>}</span>
1565
- <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>
1566
- <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>
1567
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'a:off'</span><span class='comma token'>,</span> <span class='symbol val'>:x=</span><span class='gt op'>&gt;</span><span class='integer val'>0</span><span class='comma token'>,</span> <span class='symbol val'>:y=</span><span class='gt op'>&gt;</span><span class='integer val'>0</span><span class='rparen token'>)</span>
1568
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'a:ext'</span><span class='comma token'>,</span> <span class='symbol val'>:cx=</span><span class='gt op'>&gt;</span><span class='integer val'>2336800</span><span class='comma token'>,</span> <span class='symbol val'>:cy=</span><span class='gt op'>&gt;</span><span class='integer val'>2161540</span><span class='rparen token'>)</span>
1569
- <span class='rbrace token'>}</span>
1570
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'a:prstGeom'</span><span class='comma token'>,</span> <span class='symbol val'>:prst=</span><span class='gt op'>&gt;</span><span class='symbol val'>:rect</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1571
- <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>
1572
- <span class='rbrace token'>}</span>
1573
- <span class='rbrace token'>}</span>
1574
- <span class='rbrace token'>}</span>
1575
- <span class='end end kw'>end</span>
1576
- </pre>
1577
- </td>
1578
- </tr>
1579
- </table>
1580
- </div>
1581
-
1582
- <div class="method_details ">
1583
- <p class="signature " id="width-instance_method">
1584
-
1585
- - (<tt>Object</tt>) <strong>width</strong>
1586
-
1587
-
1588
-
1589
- </p><div class="docstring">
1590
- <div class="discussion">
1591
- <p>
1592
- providing access to the anchor&#8217;s width attribute
1593
- </p>
1594
-
1595
-
1596
- </div>
1597
- </div>
1598
- <div class="tags">
1599
- <h3>Parameters:</h3>
1600
- <ul class="param">
1601
-
1602
- <li>
1603
-
1604
- <span class='name'>v</span>
1605
-
1606
-
1607
- <span class='type'>(<tt>Integer</tt>)</span>
1608
-
1609
-
1610
-
1611
- </li>
1612
-
1613
- </ul>
1614
-
1615
-
1616
- <h3>See Also:</h3>
1617
- <ul class="see">
1618
-
1619
- <li>OneCellAnchor.width</li>
1620
-
1621
- </ul>
1622
-
1623
- </div><table class="source_code">
1624
- <tr>
1625
- <td>
1626
- <pre class="lines">
1627
-
1628
-
1629
- 92
1630
- 93
1631
- 94</pre>
1632
- </td>
1633
- <td>
1634
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 92</span>
1635
-
1636
- <span class='def def kw'>def</span> <span class='width identifier id'>width</span>
1637
- <span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='width identifier id'>width</span>
1638
- <span class='end end kw'>end</span>
1639
- </pre>
1640
- </td>
1641
- </tr>
1642
- </table>
1643
- </div>
1644
-
1645
- <div class="method_details ">
1646
- <p class="signature " id="width=-instance_method">
1647
-
1648
- - (<tt>Object</tt>) <strong>width=</strong>(v)
1649
-
1650
-
1651
-
1652
- </p><div class="docstring">
1653
- <div class="discussion">
1654
-
1655
-
1656
- </div>
1657
- </div>
1658
- <div class="tags">
1659
-
1660
-
1661
- <h3>See Also:</h3>
1662
- <ul class="see">
1663
-
1664
- <li>width</li>
1665
-
1666
- </ul>
1667
-
1668
- </div><table class="source_code">
1669
- <tr>
1670
- <td>
1671
- <pre class="lines">
1672
-
1673
-
1674
- 97
1675
- 98
1676
- 99</pre>
1677
- </td>
1678
- <td>
1679
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 97</span>
1680
-
1681
- <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>
1682
- <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>
1683
- <span class='end end kw'>end</span>
1684
- </pre>
1685
- </td>
1686
- </tr>
1687
- </table>
1688
- </div>
1689
-
1690
- </div>
1691
-
1692
- </div>
1693
-
1694
- <div id="footer">
1695
- Generated on Mon Dec 5 14:21:19 2011 by
1696
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1697
- 0.7.3 (ruby-1.8.7).
1698
- </div>
1699
-
1700
- </body>
1701
- </html>