axlsx 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +4 -0
- data/README.md +7 -4
- data/examples/example.rb +6 -4
- data/examples/example.rb~ +112 -0
- data/lib/schema/dc.xsd~ +118 -0
- data/lib/schema/dcterms.xsd~ +331 -0
- data/lib/schema/opc-coreProperties.xsd~ +50 -0
- metadata +43 -193
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -29
- data/axlsx.gemspec +0 -42
- data/doc/Axlsx.html +0 -2718
- data/doc/Axlsx/App.html +0 -2640
- data/doc/Axlsx/Axis.html +0 -1075
- data/doc/Axlsx/Bar3DChart.html +0 -1182
- data/doc/Axlsx/BarSeries.html +0 -711
- data/doc/Axlsx/Border.html +0 -779
- data/doc/Axlsx/BorderPr.html +0 -709
- data/doc/Axlsx/CatAxis.html +0 -769
- data/doc/Axlsx/CatAxisData.html +0 -397
- data/doc/Axlsx/Cell.html +0 -3187
- data/doc/Axlsx/CellAlignment.html +0 -1247
- data/doc/Axlsx/CellProtection.html +0 -565
- data/doc/Axlsx/CellStyle.html +0 -949
- data/doc/Axlsx/Chart.html +0 -1692
- data/doc/Axlsx/Color.html +0 -670
- data/doc/Axlsx/ContentType.html +0 -335
- data/doc/Axlsx/Core.html +0 -465
- data/doc/Axlsx/DataTypeValidator.html +0 -324
- data/doc/Axlsx/Default.html +0 -565
- data/doc/Axlsx/Drawing.html +0 -1264
- data/doc/Axlsx/Fill.html +0 -460
- data/doc/Axlsx/Font.html +0 -1554
- data/doc/Axlsx/GradientFill.html +0 -1026
- data/doc/Axlsx/GradientStop.html +0 -526
- data/doc/Axlsx/GraphicFrame.html +0 -642
- data/doc/Axlsx/Line3DChart.html +0 -1004
- data/doc/Axlsx/LineSeries.html +0 -605
- data/doc/Axlsx/Marker.html +0 -857
- data/doc/Axlsx/NumFmt.html +0 -562
- data/doc/Axlsx/OneCellAnchor.html +0 -982
- data/doc/Axlsx/Override.html +0 -552
- data/doc/Axlsx/Package.html +0 -825
- data/doc/Axlsx/Parser.html +0 -549
- data/doc/Axlsx/PatternFill.html +0 -681
- data/doc/Axlsx/Pic.html +0 -1701
- data/doc/Axlsx/PictureLocking.html +0 -1159
- data/doc/Axlsx/Pie3DChart.html +0 -489
- data/doc/Axlsx/PieSeries.html +0 -710
- data/doc/Axlsx/RegexValidator.html +0 -268
- data/doc/Axlsx/Relationship.html +0 -554
- data/doc/Axlsx/Relationships.html +0 -338
- data/doc/Axlsx/RestrictionValidator.html +0 -300
- data/doc/Axlsx/Row.html +0 -916
- data/doc/Axlsx/Scaling.html +0 -742
- data/doc/Axlsx/SerAxis.html +0 -641
- data/doc/Axlsx/Series.html +0 -813
- data/doc/Axlsx/SeriesTitle.html +0 -290
- data/doc/Axlsx/Styles.html +0 -1754
- data/doc/Axlsx/TableStyle.html +0 -705
- data/doc/Axlsx/TableStyleElement.html +0 -677
- data/doc/Axlsx/TableStyles.html +0 -594
- data/doc/Axlsx/Title.html +0 -543
- data/doc/Axlsx/TwoCellAnchor.html +0 -973
- data/doc/Axlsx/ValAxis.html +0 -538
- data/doc/Axlsx/ValAxisData.html +0 -321
- data/doc/Axlsx/View3D.html +0 -973
- data/doc/Axlsx/Workbook.html +0 -1630
- data/doc/Axlsx/Worksheet.html +0 -2682
- data/doc/Axlsx/Xf.html +0 -1780
- data/doc/_index.html +0 -649
- data/doc/class_list.html +0 -47
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -55
- data/doc/css/style.css +0 -322
- data/doc/file.LICENSE.html +0 -91
- data/doc/file.README.html +0 -338
- data/doc/file_list.html +0 -52
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -338
- data/doc/js/app.js +0 -205
- data/doc/js/full_list.js +0 -167
- data/doc/js/jquery.js +0 -16
- data/doc/method_list.html +0 -3502
- data/doc/top-level-namespace.html +0 -103
- data/lib/axlsx.rb +0 -54
- data/lib/axlsx/content_type/content_type.rb +0 -23
- data/lib/axlsx/content_type/default.rb +0 -37
- data/lib/axlsx/content_type/override.rb +0 -37
- data/lib/axlsx/doc_props/app.rb +0 -178
- data/lib/axlsx/doc_props/core.rb +0 -34
- data/lib/axlsx/drawing/axis.rb +0 -90
- data/lib/axlsx/drawing/bar_3D_chart.rb +0 -128
- data/lib/axlsx/drawing/bar_series.rb +0 -64
- data/lib/axlsx/drawing/cat_axis.rb +0 -63
- data/lib/axlsx/drawing/cat_axis_data.rb +0 -35
- data/lib/axlsx/drawing/chart.rb +0 -179
- data/lib/axlsx/drawing/drawing.rb +0 -137
- data/lib/axlsx/drawing/graphic_frame.rb +0 -52
- data/lib/axlsx/drawing/line_3D_chart.rb +0 -106
- data/lib/axlsx/drawing/line_series.rb +0 -46
- data/lib/axlsx/drawing/marker.rb +0 -61
- data/lib/axlsx/drawing/one_cell_anchor.rb +0 -89
- data/lib/axlsx/drawing/pic.rb +0 -153
- data/lib/axlsx/drawing/picture_locking.rb +0 -72
- data/lib/axlsx/drawing/pie_3D_chart.rb +0 -41
- data/lib/axlsx/drawing/pie_series.rb +0 -56
- data/lib/axlsx/drawing/scaling.rb +0 -59
- data/lib/axlsx/drawing/ser_axis.rb +0 -45
- data/lib/axlsx/drawing/series.rb +0 -71
- data/lib/axlsx/drawing/series_title.rb +0 -22
- data/lib/axlsx/drawing/title.rb +0 -61
- data/lib/axlsx/drawing/two_cell_anchor.rb +0 -76
- data/lib/axlsx/drawing/val_axis.rb +0 -34
- data/lib/axlsx/drawing/val_axis_data.rb +0 -28
- data/lib/axlsx/drawing/view_3D.rb +0 -85
- data/lib/axlsx/package.rb +0 -214
- data/lib/axlsx/rels/relationship.rb +0 -44
- data/lib/axlsx/rels/relationships.rb +0 -25
- data/lib/axlsx/stylesheet/border.rb +0 -57
- data/lib/axlsx/stylesheet/border_pr.rb +0 -68
- data/lib/axlsx/stylesheet/cell_alignment.rb +0 -105
- data/lib/axlsx/stylesheet/cell_protection.rb +0 -36
- data/lib/axlsx/stylesheet/cell_style.rb +0 -65
- data/lib/axlsx/stylesheet/color.rb +0 -69
- data/lib/axlsx/stylesheet/fill.rb +0 -32
- data/lib/axlsx/stylesheet/font.rb +0 -139
- data/lib/axlsx/stylesheet/gradient_fill.rb +0 -76
- data/lib/axlsx/stylesheet/gradient_stop.rb +0 -33
- data/lib/axlsx/stylesheet/num_fmt.rb +0 -63
- data/lib/axlsx/stylesheet/pattern_fill.rb +0 -66
- data/lib/axlsx/stylesheet/styles.rb +0 -298
- data/lib/axlsx/stylesheet/table_style.rb +0 -47
- data/lib/axlsx/stylesheet/table_style_element.rb +0 -71
- data/lib/axlsx/stylesheet/table_styles.rb +0 -39
- data/lib/axlsx/stylesheet/xf.rb +0 -138
- data/lib/axlsx/util/constants.rb +0 -216
- data/lib/axlsx/util/parser.rb +0 -43
- data/lib/axlsx/util/simple_typed_list.rb +0 -160
- data/lib/axlsx/util/validators.rb +0 -132
- data/lib/axlsx/version.rb +0 -4
- data/lib/axlsx/workbook/workbook.rb +0 -160
- data/lib/axlsx/workbook/worksheet/cell.rb +0 -340
- data/lib/axlsx/workbook/worksheet/row.rb +0 -107
- data/lib/axlsx/workbook/worksheet/worksheet.rb +0 -278
@@ -1,973 +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::TwoCellAnchor
|
8
|
-
|
9
|
-
— 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 (T)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">TwoCellAnchor</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::TwoCellAnchor
|
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::TwoCellAnchor</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/two_cell_anchor.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 drawings and charts is Worksheet#add_chart.
|
102
|
-
Anchors are specified by the :start_at and :end_at options to that method.
|
103
|
-
</p>
|
104
|
-
</div>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
<p>
|
108
|
-
This class details the anchor points for drawings.
|
109
|
-
</p>
|
110
|
-
|
111
|
-
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="tags">
|
115
|
-
|
116
|
-
|
117
|
-
<h3>See Also:</h3>
|
118
|
-
<ul class="see">
|
119
|
-
|
120
|
-
<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>
|
121
|
-
|
122
|
-
</ul>
|
123
|
-
|
124
|
-
</div>
|
125
|
-
|
126
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
127
|
-
<ul class="summary">
|
128
|
-
|
129
|
-
<li class="public ">
|
130
|
-
<span class="summary_signature">
|
131
|
-
|
132
|
-
<a href="#drawing-instance_method" title="#drawing (instance method)">- (Drawing) <strong>drawing</strong> </a>
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
</span>
|
137
|
-
|
138
|
-
|
139
|
-
<span class="note title readonly">readonly</span>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<span class="summary_desc"><div class='inline'><p>
|
149
|
-
The drawing that holds this anchor.
|
150
|
-
</p>
|
151
|
-
</div></span>
|
152
|
-
|
153
|
-
</li>
|
154
|
-
|
155
|
-
|
156
|
-
<li class="public ">
|
157
|
-
<span class="summary_signature">
|
158
|
-
|
159
|
-
<a href="#from-instance_method" title="#from (instance method)">- (Marker) <strong>from</strong> </a>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
</span>
|
164
|
-
|
165
|
-
|
166
|
-
<span class="note title readonly">readonly</span>
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<span class="summary_desc"><div class='inline'><p>
|
176
|
-
A marker that defines the from cell anchor.
|
177
|
-
</p>
|
178
|
-
</div></span>
|
179
|
-
|
180
|
-
</li>
|
181
|
-
|
182
|
-
|
183
|
-
<li class="public ">
|
184
|
-
<span class="summary_signature">
|
185
|
-
|
186
|
-
<a href="#object-instance_method" title="#object (instance method)">- (Pic, GraphicFrame) <strong>object</strong> </a>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
</span>
|
191
|
-
|
192
|
-
|
193
|
-
<span class="note title readonly">readonly</span>
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
<span class="summary_desc"><div class='inline'><p>
|
203
|
-
The object this anchor hosts.
|
204
|
-
</p>
|
205
|
-
</div></span>
|
206
|
-
|
207
|
-
</li>
|
208
|
-
|
209
|
-
|
210
|
-
<li class="public ">
|
211
|
-
<span class="summary_signature">
|
212
|
-
|
213
|
-
<a href="#to-instance_method" title="#to (instance method)">- (Marker) <strong>to</strong> </a>
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
</span>
|
218
|
-
|
219
|
-
|
220
|
-
<span class="note title readonly">readonly</span>
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
<span class="summary_desc"><div class='inline'><p>
|
230
|
-
A marker that returns the to cell anchor.
|
231
|
-
</p>
|
232
|
-
</div></span>
|
233
|
-
|
234
|
-
</li>
|
235
|
-
|
236
|
-
|
237
|
-
</ul>
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
<h2>
|
244
|
-
Instance Method Summary
|
245
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
246
|
-
</h2>
|
247
|
-
|
248
|
-
<ul class="summary">
|
249
|
-
|
250
|
-
<li class="public ">
|
251
|
-
<span class="summary_signature">
|
252
|
-
|
253
|
-
<a href="#add_chart-instance_method" title="#add_chart (instance method)">- (Chart) <strong>add_chart</strong>(chart_type, options) </a>
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
</span>
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
<span class="summary_desc"><div class='inline'><p>
|
267
|
-
Creates a graphic frame and chart object associated with this anchor.
|
268
|
-
</p>
|
269
|
-
</div></span>
|
270
|
-
|
271
|
-
</li>
|
272
|
-
|
273
|
-
|
274
|
-
<li class="public ">
|
275
|
-
<span class="summary_signature">
|
276
|
-
|
277
|
-
<a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
</span>
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
<span class="summary_desc"><div class='inline'><p>
|
291
|
-
The index of this anchor in the drawing.
|
292
|
-
</p>
|
293
|
-
</div></span>
|
294
|
-
|
295
|
-
</li>
|
296
|
-
|
297
|
-
|
298
|
-
<li class="public ">
|
299
|
-
<span class="summary_signature">
|
300
|
-
|
301
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (TwoCellAnchor) <strong>initialize</strong>(drawing, options = {}) </a>
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
</span>
|
306
|
-
|
307
|
-
<span class="note title constructor">constructor</span>
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
<span class="summary_desc"><div class='inline'><p>
|
317
|
-
Creates a new TwoCellAnchor object and sets up a reference to the from and
|
318
|
-
to markers in the graphic_frame’s chart.
|
319
|
-
</p>
|
320
|
-
</div></span>
|
321
|
-
|
322
|
-
</li>
|
323
|
-
|
324
|
-
|
325
|
-
<li class="public ">
|
326
|
-
<span class="summary_signature">
|
327
|
-
|
328
|
-
<a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
</span>
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
<span class="summary_desc"><div class='inline'><p>
|
342
|
-
Serializes the two cell anchor.
|
343
|
-
</p>
|
344
|
-
</div></span>
|
345
|
-
|
346
|
-
</li>
|
347
|
-
|
348
|
-
|
349
|
-
</ul>
|
350
|
-
|
351
|
-
|
352
|
-
<div id="constructor_details" class="method_details_list">
|
353
|
-
<h2>Constructor Details</h2>
|
354
|
-
|
355
|
-
<div class="method_details first">
|
356
|
-
<p class="signature first" id="initialize-instance_method">
|
357
|
-
|
358
|
-
- (<tt><span class='object_link'><a href="" title="Axlsx::TwoCellAnchor (class)">TwoCellAnchor</a></span></tt>) <strong>initialize</strong>(drawing, options = {})
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
</p><div class="docstring">
|
363
|
-
<div class="discussion">
|
364
|
-
|
365
|
-
<div class="note notetag">
|
366
|
-
<strong>Note:</strong>
|
367
|
-
<div class='inline'><p>
|
368
|
-
the chart_type parameter will be replaced with object in v. 2.0.0
|
369
|
-
</p>
|
370
|
-
</div>
|
371
|
-
</div>
|
372
|
-
|
373
|
-
<p>
|
374
|
-
Creates a new TwoCellAnchor object and sets up a reference to the from and
|
375
|
-
to markers in the graphic_frame’s chart. That means that you can do
|
376
|
-
stuff like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9
|
377
|
-
</p>
|
378
|
-
|
379
|
-
|
380
|
-
</div>
|
381
|
-
</div>
|
382
|
-
<div class="tags">
|
383
|
-
<h3>Parameters:</h3>
|
384
|
-
<ul class="param">
|
385
|
-
|
386
|
-
<li>
|
387
|
-
|
388
|
-
<span class='name'>drawing</span>
|
389
|
-
|
390
|
-
|
391
|
-
<span class='type'>(<tt><span class='object_link'><a href="Drawing.html" title="Axlsx::Drawing (class)">Drawing</a></span></tt>)</span>
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
</li>
|
396
|
-
|
397
|
-
<li>
|
398
|
-
|
399
|
-
<span class='name'>chart_type</span>
|
400
|
-
|
401
|
-
|
402
|
-
<span class='type'>(<tt>Class</tt>)</span>
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
—
|
407
|
-
<div class='inline'><p>
|
408
|
-
This is passed to the graphic frame for instantiation. must be Chart or a
|
409
|
-
subclass of Chart
|
410
|
-
</p>
|
411
|
-
</div>
|
412
|
-
|
413
|
-
</li>
|
414
|
-
|
415
|
-
<li>
|
416
|
-
|
417
|
-
<span class='name'>object</span>
|
418
|
-
|
419
|
-
|
420
|
-
<span class='type'></span>
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
—
|
425
|
-
<div class='inline'><p>
|
426
|
-
The object this anchor holds.
|
427
|
-
</p>
|
428
|
-
</div>
|
429
|
-
|
430
|
-
</li>
|
431
|
-
|
432
|
-
<li>
|
433
|
-
|
434
|
-
<span class='name'>options</span>
|
435
|
-
|
436
|
-
|
437
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
438
|
-
|
439
|
-
|
440
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
441
|
-
|
442
|
-
|
443
|
-
—
|
444
|
-
<div class='inline'><p>
|
445
|
-
a customizable set of options
|
446
|
-
</p>
|
447
|
-
</div>
|
448
|
-
|
449
|
-
</li>
|
450
|
-
|
451
|
-
</ul>
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
<h3>Options Hash (<tt>options</tt>):</h3>
|
459
|
-
<ul class="option">
|
460
|
-
|
461
|
-
<li>
|
462
|
-
<span class="name">start_at</span>
|
463
|
-
<span class="type">(<tt>Array</tt>)</span>
|
464
|
-
<span class="default">
|
465
|
-
|
466
|
-
</span>
|
467
|
-
— <div class='inline'><p>
|
468
|
-
the col, row to start at
|
469
|
-
</p>
|
470
|
-
</div>
|
471
|
-
</li>
|
472
|
-
|
473
|
-
<li>
|
474
|
-
<span class="name">end_at</span>
|
475
|
-
<span class="type">(<tt>Array</tt>)</span>
|
476
|
-
<span class="default">
|
477
|
-
|
478
|
-
</span>
|
479
|
-
— <div class='inline'><p>
|
480
|
-
the col, row to end at
|
481
|
-
</p>
|
482
|
-
</div>
|
483
|
-
</li>
|
484
|
-
|
485
|
-
</ul>
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
</div><table class="source_code">
|
490
|
-
<tr>
|
491
|
-
<td>
|
492
|
-
<pre class="lines">
|
493
|
-
|
494
|
-
|
495
|
-
38
|
496
|
-
39
|
497
|
-
40
|
498
|
-
41
|
499
|
-
42</pre>
|
500
|
-
</td>
|
501
|
-
<td>
|
502
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 38</span>
|
503
|
-
|
504
|
-
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='drawing identifier id'>drawing</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
505
|
-
<span class='@drawing ivar id'>@drawing</span> <span class='assign token'>=</span> <span class='drawing identifier id'>drawing</span>
|
506
|
-
<span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='anchors identifier id'>anchors</span> <span class='lshft op'><<</span> <span class='self self kw'>self</span>
|
507
|
-
<span class='@from ivar id'>@from</span><span class='comma token'>,</span> <span class='@to ivar id'>@to</span> <span class='assign token'>=</span> <span class='Marker constant id'>Marker</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='comma token'>,</span> <span class='Marker constant id'>Marker</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:col</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>5</span><span class='comma token'>,</span> <span class='symbol val'>:row=</span><span class='gt op'>></span><span class='integer val'>10</span><span class='rparen token'>)</span>
|
508
|
-
<span class='end end kw'>end</span>
|
509
|
-
</pre>
|
510
|
-
</td>
|
511
|
-
</tr>
|
512
|
-
</table>
|
513
|
-
</div>
|
514
|
-
|
515
|
-
</div>
|
516
|
-
|
517
|
-
<div id="instance_attr_details" class="attr_details">
|
518
|
-
<h2>Instance Attribute Details</h2>
|
519
|
-
|
520
|
-
|
521
|
-
<span id=""></span>
|
522
|
-
<span id="drawing-instance_method"></span>
|
523
|
-
<div class="method_details first">
|
524
|
-
<p class="signature first" id="drawing-instance_method">
|
525
|
-
|
526
|
-
- (<tt><span class='object_link'><a href="Drawing.html" title="Axlsx::Drawing (class)">Drawing</a></span></tt>) <strong>drawing</strong> <span class="extras">(readonly)</span>
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
</p><div class="docstring">
|
531
|
-
<div class="discussion">
|
532
|
-
<p>
|
533
|
-
The drawing that holds this anchor
|
534
|
-
</p>
|
535
|
-
|
536
|
-
|
537
|
-
</div>
|
538
|
-
</div>
|
539
|
-
<div class="tags">
|
540
|
-
|
541
|
-
<h3>Returns:</h3>
|
542
|
-
<ul class="return">
|
543
|
-
|
544
|
-
<li>
|
545
|
-
|
546
|
-
|
547
|
-
<span class='type'>(<tt><span class='object_link'><a href="Drawing.html" title="Axlsx::Drawing (class)">Drawing</a></span></tt>)</span>
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
</li>
|
552
|
-
|
553
|
-
</ul>
|
554
|
-
|
555
|
-
</div><table class="source_code">
|
556
|
-
<tr>
|
557
|
-
<td>
|
558
|
-
<pre class="lines">
|
559
|
-
|
560
|
-
|
561
|
-
25
|
562
|
-
26
|
563
|
-
27</pre>
|
564
|
-
</td>
|
565
|
-
<td>
|
566
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 25</span>
|
567
|
-
|
568
|
-
<span class='def def kw'>def</span> <span class='drawing identifier id'>drawing</span>
|
569
|
-
<span class='@drawing ivar id'>@drawing</span>
|
570
|
-
<span class='end end kw'>end</span>
|
571
|
-
</pre>
|
572
|
-
</td>
|
573
|
-
</tr>
|
574
|
-
</table>
|
575
|
-
</div>
|
576
|
-
|
577
|
-
|
578
|
-
<span id=""></span>
|
579
|
-
<span id="from-instance_method"></span>
|
580
|
-
<div class="method_details ">
|
581
|
-
<p class="signature " id="from-instance_method">
|
582
|
-
|
583
|
-
- (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>from</strong> <span class="extras">(readonly)</span>
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
</p><div class="docstring">
|
588
|
-
<div class="discussion">
|
589
|
-
<p>
|
590
|
-
A marker that defines the from cell anchor. The default from column and row
|
591
|
-
are 0 and 0 respectively
|
592
|
-
</p>
|
593
|
-
|
594
|
-
|
595
|
-
</div>
|
596
|
-
</div>
|
597
|
-
<div class="tags">
|
598
|
-
|
599
|
-
<h3>Returns:</h3>
|
600
|
-
<ul class="return">
|
601
|
-
|
602
|
-
<li>
|
603
|
-
|
604
|
-
|
605
|
-
<span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
</li>
|
610
|
-
|
611
|
-
</ul>
|
612
|
-
|
613
|
-
</div><table class="source_code">
|
614
|
-
<tr>
|
615
|
-
<td>
|
616
|
-
<pre class="lines">
|
617
|
-
|
618
|
-
|
619
|
-
9
|
620
|
-
10
|
621
|
-
11</pre>
|
622
|
-
</td>
|
623
|
-
<td>
|
624
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 9</span>
|
625
|
-
|
626
|
-
<span class='def def kw'>def</span> <span class='from identifier id'>from</span>
|
627
|
-
<span class='@from ivar id'>@from</span>
|
628
|
-
<span class='end end kw'>end</span>
|
629
|
-
</pre>
|
630
|
-
</td>
|
631
|
-
</tr>
|
632
|
-
</table>
|
633
|
-
</div>
|
634
|
-
|
635
|
-
|
636
|
-
<span id=""></span>
|
637
|
-
<span id="object-instance_method"></span>
|
638
|
-
<div class="method_details ">
|
639
|
-
<p class="signature " id="object-instance_method">
|
640
|
-
|
641
|
-
- (<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>, <tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>) <strong>object</strong> <span class="extras">(readonly)</span>
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
</p><div class="docstring">
|
646
|
-
<div class="discussion">
|
647
|
-
<p>
|
648
|
-
The object this anchor hosts
|
649
|
-
</p>
|
650
|
-
|
651
|
-
|
652
|
-
</div>
|
653
|
-
</div>
|
654
|
-
<div class="tags">
|
655
|
-
|
656
|
-
<h3>Returns:</h3>
|
657
|
-
<ul class="return">
|
658
|
-
|
659
|
-
<li>
|
660
|
-
|
661
|
-
|
662
|
-
<span class='type'>(<tt><span class='object_link'><a href="Pic.html" title="Axlsx::Pic (class)">Pic</a></span></tt>, <tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>)</span>
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
</li>
|
667
|
-
|
668
|
-
</ul>
|
669
|
-
|
670
|
-
</div><table class="source_code">
|
671
|
-
<tr>
|
672
|
-
<td>
|
673
|
-
<pre class="lines">
|
674
|
-
|
675
|
-
|
676
|
-
21
|
677
|
-
22
|
678
|
-
23</pre>
|
679
|
-
</td>
|
680
|
-
<td>
|
681
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 21</span>
|
682
|
-
|
683
|
-
<span class='def def kw'>def</span> <span class='object identifier id'>object</span>
|
684
|
-
<span class='@object ivar id'>@object</span>
|
685
|
-
<span class='end end kw'>end</span>
|
686
|
-
</pre>
|
687
|
-
</td>
|
688
|
-
</tr>
|
689
|
-
</table>
|
690
|
-
</div>
|
691
|
-
|
692
|
-
|
693
|
-
<span id=""></span>
|
694
|
-
<span id="to-instance_method"></span>
|
695
|
-
<div class="method_details ">
|
696
|
-
<p class="signature " id="to-instance_method">
|
697
|
-
|
698
|
-
- (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>to</strong> <span class="extras">(readonly)</span>
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
</p><div class="docstring">
|
703
|
-
<div class="discussion">
|
704
|
-
<p>
|
705
|
-
A marker that returns the to cell anchor. The default to column and row are
|
706
|
-
5 and 10 respectively
|
707
|
-
</p>
|
708
|
-
|
709
|
-
|
710
|
-
</div>
|
711
|
-
</div>
|
712
|
-
<div class="tags">
|
713
|
-
|
714
|
-
<h3>Returns:</h3>
|
715
|
-
<ul class="return">
|
716
|
-
|
717
|
-
<li>
|
718
|
-
|
719
|
-
|
720
|
-
<span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
</li>
|
725
|
-
|
726
|
-
</ul>
|
727
|
-
|
728
|
-
</div><table class="source_code">
|
729
|
-
<tr>
|
730
|
-
<td>
|
731
|
-
<pre class="lines">
|
732
|
-
|
733
|
-
|
734
|
-
12
|
735
|
-
13
|
736
|
-
14</pre>
|
737
|
-
</td>
|
738
|
-
<td>
|
739
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 12</span>
|
740
|
-
|
741
|
-
<span class='def def kw'>def</span> <span class='to identifier id'>to</span>
|
742
|
-
<span class='@to ivar id'>@to</span>
|
743
|
-
<span class='end end kw'>end</span>
|
744
|
-
</pre>
|
745
|
-
</td>
|
746
|
-
</tr>
|
747
|
-
</table>
|
748
|
-
</div>
|
749
|
-
|
750
|
-
</div>
|
751
|
-
|
752
|
-
|
753
|
-
<div id="instance_method_details" class="method_details_list">
|
754
|
-
<h2>Instance Method Details</h2>
|
755
|
-
|
756
|
-
|
757
|
-
<div class="method_details first">
|
758
|
-
<p class="signature first" id="add_chart-instance_method">
|
759
|
-
|
760
|
-
- (<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>) <strong>add_chart</strong>(chart_type, options)
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
</p><div class="docstring">
|
765
|
-
<div class="discussion">
|
766
|
-
<p>
|
767
|
-
Creates a graphic frame and chart object associated with this anchor
|
768
|
-
</p>
|
769
|
-
|
770
|
-
|
771
|
-
</div>
|
772
|
-
</div>
|
773
|
-
<div class="tags">
|
774
|
-
|
775
|
-
<h3>Returns:</h3>
|
776
|
-
<ul class="return">
|
777
|
-
|
778
|
-
<li>
|
779
|
-
|
780
|
-
|
781
|
-
<span class='type'>(<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>)</span>
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
</li>
|
786
|
-
|
787
|
-
</ul>
|
788
|
-
|
789
|
-
</div><table class="source_code">
|
790
|
-
<tr>
|
791
|
-
<td>
|
792
|
-
<pre class="lines">
|
793
|
-
|
794
|
-
|
795
|
-
46
|
796
|
-
47
|
797
|
-
48
|
798
|
-
49</pre>
|
799
|
-
</td>
|
800
|
-
<td>
|
801
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 46</span>
|
802
|
-
|
803
|
-
<span class='def def kw'>def</span> <span class='add_chart identifier id'>add_chart</span><span class='lparen token'>(</span><span class='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
804
|
-
<span class='@object ivar id'>@object</span> <span class='assign token'>=</span> <span class='GraphicFrame constant id'>GraphicFrame</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
805
|
-
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='chart identifier id'>chart</span>
|
806
|
-
<span class='end end kw'>end</span>
|
807
|
-
</pre>
|
808
|
-
</td>
|
809
|
-
</tr>
|
810
|
-
</table>
|
811
|
-
</div>
|
812
|
-
|
813
|
-
<div class="method_details ">
|
814
|
-
<p class="signature " id="index-instance_method">
|
815
|
-
|
816
|
-
- (<tt>Integer</tt>) <strong>index</strong>
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
</p><div class="docstring">
|
821
|
-
<div class="discussion">
|
822
|
-
<p>
|
823
|
-
The index of this anchor in the drawing
|
824
|
-
</p>
|
825
|
-
|
826
|
-
|
827
|
-
</div>
|
828
|
-
</div>
|
829
|
-
<div class="tags">
|
830
|
-
|
831
|
-
<h3>Returns:</h3>
|
832
|
-
<ul class="return">
|
833
|
-
|
834
|
-
<li>
|
835
|
-
|
836
|
-
|
837
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
</li>
|
842
|
-
|
843
|
-
</ul>
|
844
|
-
|
845
|
-
</div><table class="source_code">
|
846
|
-
<tr>
|
847
|
-
<td>
|
848
|
-
<pre class="lines">
|
849
|
-
|
850
|
-
|
851
|
-
53
|
852
|
-
54
|
853
|
-
55</pre>
|
854
|
-
</td>
|
855
|
-
<td>
|
856
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 53</span>
|
857
|
-
|
858
|
-
<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
|
859
|
-
<span class='@drawing ivar id'>@drawing</span><span class='dot token'>.</span><span class='anchors identifier id'>anchors</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
|
860
|
-
<span class='end end kw'>end</span>
|
861
|
-
</pre>
|
862
|
-
</td>
|
863
|
-
</tr>
|
864
|
-
</table>
|
865
|
-
</div>
|
866
|
-
|
867
|
-
<div class="method_details ">
|
868
|
-
<p class="signature " id="to_xml-instance_method">
|
869
|
-
|
870
|
-
- (<tt>String</tt>) <strong>to_xml</strong>(xml)
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
</p><div class="docstring">
|
875
|
-
<div class="discussion">
|
876
|
-
<p>
|
877
|
-
Serializes the two cell anchor
|
878
|
-
</p>
|
879
|
-
|
880
|
-
|
881
|
-
</div>
|
882
|
-
</div>
|
883
|
-
<div class="tags">
|
884
|
-
<h3>Parameters:</h3>
|
885
|
-
<ul class="param">
|
886
|
-
|
887
|
-
<li>
|
888
|
-
|
889
|
-
<span class='name'>xml</span>
|
890
|
-
|
891
|
-
|
892
|
-
<span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
—
|
897
|
-
<div class='inline'><p>
|
898
|
-
The document builder instance this objects xml will be added to.
|
899
|
-
</p>
|
900
|
-
</div>
|
901
|
-
|
902
|
-
</li>
|
903
|
-
|
904
|
-
</ul>
|
905
|
-
|
906
|
-
<h3>Returns:</h3>
|
907
|
-
<ul class="return">
|
908
|
-
|
909
|
-
<li>
|
910
|
-
|
911
|
-
|
912
|
-
<span class='type'>(<tt>String</tt>)</span>
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
</li>
|
917
|
-
|
918
|
-
</ul>
|
919
|
-
|
920
|
-
</div><table class="source_code">
|
921
|
-
<tr>
|
922
|
-
<td>
|
923
|
-
<pre class="lines">
|
924
|
-
|
925
|
-
|
926
|
-
59
|
927
|
-
60
|
928
|
-
61
|
929
|
-
62
|
930
|
-
63
|
931
|
-
64
|
932
|
-
65
|
933
|
-
66
|
934
|
-
67
|
935
|
-
68
|
936
|
-
69
|
937
|
-
70
|
938
|
-
71</pre>
|
939
|
-
</td>
|
940
|
-
<td>
|
941
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/two_cell_anchor.rb', line 59</span>
|
942
|
-
|
943
|
-
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
944
|
-
<span class='comment val'>#build it for now, break it down later!</span>
|
945
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:twoCellAnchor'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
946
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:from'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
947
|
-
<span class='from identifier id'>from</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
948
|
-
<span class='rbrace token'>}</span>
|
949
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:to'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
950
|
-
<span class='to identifier id'>to</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
951
|
-
<span class='rbrace token'>}</span>
|
952
|
-
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
953
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:clientData'</span><span class='rparen token'>)</span>
|
954
|
-
<span class='rbrace token'>}</span>
|
955
|
-
<span class='end end kw'>end</span>
|
956
|
-
</pre>
|
957
|
-
</td>
|
958
|
-
</tr>
|
959
|
-
</table>
|
960
|
-
</div>
|
961
|
-
|
962
|
-
</div>
|
963
|
-
|
964
|
-
</div>
|
965
|
-
|
966
|
-
<div id="footer">
|
967
|
-
Generated on Mon Dec 5 14:21:13 2011 by
|
968
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
969
|
-
0.7.3 (ruby-1.8.7).
|
970
|
-
</div>
|
971
|
-
|
972
|
-
</body>
|
973
|
-
</html>
|