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,642 +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::GraphicFrame
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 (G)</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">GraphicFrame</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::GraphicFrame
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::GraphicFrame</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/graphic_frame.rb</dd>
91
-
92
- </dl>
93
- <div class="clear"></div>
94
-
95
- <h2>Overview</h2><div class="docstring">
96
- <div class="discussion">
97
-
98
- <div class="note notetag">
99
- <strong>Note:</strong>
100
- <div class='inline'><p>
101
- The recommended way to manage charts is Worksheet#add_chart
102
- </p>
103
- </div>
104
- </div>
105
-
106
- <p>
107
- A graphic frame defines a container for a chart object
108
- </p>
109
-
110
-
111
- </div>
112
- </div>
113
- <div class="tags">
114
-
115
-
116
- <h3>See Also:</h3>
117
- <ul class="see">
118
-
119
- <li><span class='object_link'><a href="Worksheet.html#add_chart-instance_method" title="Axlsx::Worksheet#add_chart (method)">Worksheet#add_chart</a></span></li>
120
-
121
- </ul>
122
-
123
- </div>
124
-
125
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
126
- <ul class="summary">
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#anchor-instance_method" title="#anchor (instance method)">- (TwoCellAnchor) <strong>anchor</strong> </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
- <span class="note title readonly">readonly</span>
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <span class="summary_desc"><div class='inline'><p>
148
- A anchor that holds this frame.
149
- </p>
150
- </div></span>
151
-
152
- </li>
153
-
154
-
155
- <li class="public ">
156
- <span class="summary_signature">
157
-
158
- <a href="#chart-instance_method" title="#chart (instance method)">- (Chart) <strong>chart</strong> </a>
159
-
160
-
161
-
162
- </span>
163
-
164
-
165
- <span class="note title readonly">readonly</span>
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
- <span class="summary_desc"><div class='inline'><p>
175
- A reference to the chart object associated with this frame.
176
- </p>
177
- </div></span>
178
-
179
- </li>
180
-
181
-
182
- </ul>
183
-
184
-
185
-
186
-
187
-
188
- <h2>
189
- Instance Method Summary
190
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
191
- </h2>
192
-
193
- <ul class="summary">
194
-
195
- <li class="public ">
196
- <span class="summary_signature">
197
-
198
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (GraphicFrame) <strong>initialize</strong>(anchor, chart_type, options) </a>
199
-
200
-
201
-
202
- </span>
203
-
204
- <span class="note title constructor">constructor</span>
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
- <span class="summary_desc"><div class='inline'><p>
214
- Creates a new GraphicFrame object.
215
- </p>
216
- </div></span>
217
-
218
- </li>
219
-
220
-
221
- <li class="public ">
222
- <span class="summary_signature">
223
-
224
- <a href="#rId-instance_method" title="#rId (instance method)">- (String) <strong>rId</strong> </a>
225
-
226
-
227
-
228
- </span>
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
- <span class="summary_desc"><div class='inline'><p>
238
- The relationship id for this graphic.
239
- </p>
240
- </div></span>
241
-
242
- </li>
243
-
244
-
245
- <li class="public ">
246
- <span class="summary_signature">
247
-
248
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
249
-
250
-
251
-
252
- </span>
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
- <span class="summary_desc"><div class='inline'><p>
262
- Serializes the graphic frame.
263
- </p>
264
- </div></span>
265
-
266
- </li>
267
-
268
-
269
- </ul>
270
-
271
-
272
- <div id="constructor_details" class="method_details_list">
273
- <h2>Constructor Details</h2>
274
-
275
- <div class="method_details first">
276
- <p class="signature first" id="initialize-instance_method">
277
-
278
- - (<tt><span class='object_link'><a href="" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>) <strong>initialize</strong>(anchor, chart_type, options)
279
-
280
-
281
-
282
- </p><div class="docstring">
283
- <div class="discussion">
284
- <p>
285
- Creates a new GraphicFrame object
286
- </p>
287
-
288
-
289
- </div>
290
- </div>
291
- <div class="tags">
292
- <h3>Parameters:</h3>
293
- <ul class="param">
294
-
295
- <li>
296
-
297
- <span class='name'>anchor</span>
298
-
299
-
300
- <span class='type'>(<tt><span class='object_link'><a href="TwoCellAnchor.html" title="Axlsx::TwoCellAnchor (class)">TwoCellAnchor</a></span></tt>)</span>
301
-
302
-
303
-
304
- </li>
305
-
306
- <li>
307
-
308
- <span class='name'>chart_type</span>
309
-
310
-
311
- <span class='type'>(<tt>Class</tt>)</span>
312
-
313
-
314
-
315
- </li>
316
-
317
- </ul>
318
-
319
-
320
- </div><table class="source_code">
321
- <tr>
322
- <td>
323
- <pre class="lines">
324
-
325
-
326
- 18
327
- 19
328
- 20
329
- 21
330
- 22</pre>
331
- </td>
332
- <td>
333
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 18</span>
334
-
335
- <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='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
336
- <span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='string val'>&quot;Drawing.chart_type&quot;</span><span class='comma token'>,</span> <span class='Chart constant id'>Chart</span><span class='comma token'>,</span> <span class='chart_type identifier id'>chart_type</span>
337
- <span class='@anchor ivar id'>@anchor</span> <span class='assign token'>=</span> <span class='anchor identifier id'>anchor</span>
338
- <span class='@chart ivar id'>@chart</span> <span class='assign token'>=</span> <span class='chart_type identifier id'>chart_type</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
339
- <span class='end end kw'>end</span>
340
- </pre>
341
- </td>
342
- </tr>
343
- </table>
344
- </div>
345
-
346
- </div>
347
-
348
- <div id="instance_attr_details" class="attr_details">
349
- <h2>Instance Attribute Details</h2>
350
-
351
-
352
- <span id=""></span>
353
- <span id="anchor-instance_method"></span>
354
- <div class="method_details first">
355
- <p class="signature first" id="anchor-instance_method">
356
-
357
- - (<tt><span class='object_link'><a href="TwoCellAnchor.html" title="Axlsx::TwoCellAnchor (class)">TwoCellAnchor</a></span></tt>) <strong>anchor</strong> <span class="extras">(readonly)</span>
358
-
359
-
360
-
361
- </p><div class="docstring">
362
- <div class="discussion">
363
- <p>
364
- A anchor that holds this frame
365
- </p>
366
-
367
-
368
- </div>
369
- </div>
370
- <div class="tags">
371
-
372
- <h3>Returns:</h3>
373
- <ul class="return">
374
-
375
- <li>
376
-
377
-
378
- <span class='type'>(<tt><span class='object_link'><a href="TwoCellAnchor.html" title="Axlsx::TwoCellAnchor (class)">TwoCellAnchor</a></span></tt>)</span>
379
-
380
-
381
-
382
- </li>
383
-
384
- </ul>
385
-
386
- </div><table class="source_code">
387
- <tr>
388
- <td>
389
- <pre class="lines">
390
-
391
-
392
- 13
393
- 14
394
- 15</pre>
395
- </td>
396
- <td>
397
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 13</span>
398
-
399
- <span class='def def kw'>def</span> <span class='anchor identifier id'>anchor</span>
400
- <span class='@anchor ivar id'>@anchor</span>
401
- <span class='end end kw'>end</span>
402
- </pre>
403
- </td>
404
- </tr>
405
- </table>
406
- </div>
407
-
408
-
409
- <span id=""></span>
410
- <span id="chart-instance_method"></span>
411
- <div class="method_details ">
412
- <p class="signature " id="chart-instance_method">
413
-
414
- - (<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>) <strong>chart</strong> <span class="extras">(readonly)</span>
415
-
416
-
417
-
418
- </p><div class="docstring">
419
- <div class="discussion">
420
- <p>
421
- A reference to the chart object associated with this frame
422
- </p>
423
-
424
-
425
- </div>
426
- </div>
427
- <div class="tags">
428
-
429
- <h3>Returns:</h3>
430
- <ul class="return">
431
-
432
- <li>
433
-
434
-
435
- <span class='type'>(<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>)</span>
436
-
437
-
438
-
439
- </li>
440
-
441
- </ul>
442
-
443
- </div><table class="source_code">
444
- <tr>
445
- <td>
446
- <pre class="lines">
447
-
448
-
449
- 9
450
- 10
451
- 11</pre>
452
- </td>
453
- <td>
454
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 9</span>
455
-
456
- <span class='def def kw'>def</span> <span class='chart identifier id'>chart</span>
457
- <span class='@chart ivar id'>@chart</span>
458
- <span class='end end kw'>end</span>
459
- </pre>
460
- </td>
461
- </tr>
462
- </table>
463
- </div>
464
-
465
- </div>
466
-
467
-
468
- <div id="instance_method_details" class="method_details_list">
469
- <h2>Instance Method Details</h2>
470
-
471
-
472
- <div class="method_details first">
473
- <p class="signature first" id="rId-instance_method">
474
-
475
- - (<tt>String</tt>) <strong>rId</strong>
476
-
477
-
478
-
479
- </p><div class="docstring">
480
- <div class="discussion">
481
- <p>
482
- The relationship id for this graphic
483
- </p>
484
-
485
-
486
- </div>
487
- </div>
488
- <div class="tags">
489
-
490
- <h3>Returns:</h3>
491
- <ul class="return">
492
-
493
- <li>
494
-
495
-
496
- <span class='type'>(<tt>String</tt>)</span>
497
-
498
-
499
-
500
- </li>
501
-
502
- </ul>
503
-
504
- </div><table class="source_code">
505
- <tr>
506
- <td>
507
- <pre class="lines">
508
-
509
-
510
- 26
511
- 27
512
- 28</pre>
513
- </td>
514
- <td>
515
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 26</span>
516
-
517
- <span class='def def kw'>def</span> <span class='rId identifier id'>rId</span>
518
- <span class='dstring node'>&quot;rId#{@anchor.index+1}&quot;</span>
519
- <span class='end end kw'>end</span>
520
- </pre>
521
- </td>
522
- </tr>
523
- </table>
524
- </div>
525
-
526
- <div class="method_details ">
527
- <p class="signature " id="to_xml-instance_method">
528
-
529
- - (<tt>String</tt>) <strong>to_xml</strong>(xml)
530
-
531
-
532
-
533
- </p><div class="docstring">
534
- <div class="discussion">
535
- <p>
536
- Serializes the graphic frame
537
- </p>
538
-
539
-
540
- </div>
541
- </div>
542
- <div class="tags">
543
- <h3>Parameters:</h3>
544
- <ul class="param">
545
-
546
- <li>
547
-
548
- <span class='name'>xml</span>
549
-
550
-
551
- <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
552
-
553
-
554
-
555
- &mdash;
556
- <div class='inline'><p>
557
- The document builder instance this objects xml will be added to.
558
- </p>
559
- </div>
560
-
561
- </li>
562
-
563
- </ul>
564
-
565
- <h3>Returns:</h3>
566
- <ul class="return">
567
-
568
- <li>
569
-
570
-
571
- <span class='type'>(<tt>String</tt>)</span>
572
-
573
-
574
-
575
- </li>
576
-
577
- </ul>
578
-
579
- </div><table class="source_code">
580
- <tr>
581
- <td>
582
- <pre class="lines">
583
-
584
-
585
- 33
586
- 34
587
- 35
588
- 36
589
- 37
590
- 38
591
- 39
592
- 40
593
- 41
594
- 42
595
- 43
596
- 44
597
- 45
598
- 46
599
- 47
600
- 48
601
- 49
602
- 50</pre>
603
- </td>
604
- <td>
605
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 33</span>
606
-
607
- <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>
608
- <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:graphicFrame'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
609
- <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:nvGraphicFramePr'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
610
- <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='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:name=</span><span class='gt op'>&gt;</span><span class='chart identifier id'>chart</span><span class='dot token'>.</span><span class='title identifier id'>title</span><span class='rparen token'>)</span>
611
- <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:cNvGraphicFramePr'</span><span class='rparen token'>)</span>
612
- <span class='rbrace token'>}</span>
613
- <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:xfrm'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
614
- <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>
615
- <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'>0</span><span class='comma token'>,</span> <span class='symbol val'>:cy=</span><span class='gt op'>&gt;</span><span class='integer val'>0</span><span class='rparen token'>)</span>
616
- <span class='rbrace token'>}</span>
617
- <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:graphic'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
618
- <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:graphicData'</span><span class='comma token'>,</span> <span class='symbol val'>:uri=</span><span class='gt op'>&gt;</span><span class='XML_NS_C constant id'>XML_NS_C</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
619
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:chart'</span><span class='comma token'>,</span> <span class='symbol val'>:'xmlns:c'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='XML_NS_C constant id'>XML_NS_C</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:id'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='rId identifier id'>rId</span><span class='rparen token'>)</span>
620
- <span class='rbrace token'>}</span>
621
- <span class='rbrace token'>}</span>
622
- <span class='rbrace token'>}</span>
623
-
624
- <span class='end end kw'>end</span>
625
- </pre>
626
- </td>
627
- </tr>
628
- </table>
629
- </div>
630
-
631
- </div>
632
-
633
- </div>
634
-
635
- <div id="footer">
636
- Generated on Mon Dec 5 14:21:07 2011 by
637
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
638
- 0.7.3 (ruby-1.8.7).
639
- </div>
640
-
641
- </body>
642
- </html>