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
data/doc/Axlsx/Border.html
DELETED
@@ -1,779 +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::Border
|
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 (B)</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">Border</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::Border
|
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::Border</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/stylesheet/border.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
|
-
This class details a border used in Office Open XML spreadsheet styles.
|
99
|
-
</p>
|
100
|
-
|
101
|
-
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
<div class="tags">
|
105
|
-
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
110
|
-
<ul class="summary">
|
111
|
-
|
112
|
-
<li class="public ">
|
113
|
-
<span class="summary_signature">
|
114
|
-
|
115
|
-
<a href="#diagonalDown-instance_method" title="#diagonalDown (instance method)">- (Boolean) <strong>diagonalDown</strong> </a>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
</span>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<span class="summary_desc"><div class='inline'><p>
|
132
|
-
The diagonal down property for the border that indicates if the border
|
133
|
-
should include a diagonal line from the top left to the top right of the
|
134
|
-
cell.
|
135
|
-
</p>
|
136
|
-
</div></span>
|
137
|
-
|
138
|
-
</li>
|
139
|
-
|
140
|
-
|
141
|
-
<li class="public ">
|
142
|
-
<span class="summary_signature">
|
143
|
-
|
144
|
-
<a href="#diagonalUp-instance_method" title="#diagonalUp (instance method)">- (Boolean) <strong>diagonalUp</strong> </a>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</span>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
<span class="summary_desc"><div class='inline'><p>
|
161
|
-
The diagonal up property for the border that indicates if the border should
|
162
|
-
include a diagonal line from the bottom left to the top right of the cell.
|
163
|
-
</p>
|
164
|
-
</div></span>
|
165
|
-
|
166
|
-
</li>
|
167
|
-
|
168
|
-
|
169
|
-
<li class="public ">
|
170
|
-
<span class="summary_signature">
|
171
|
-
|
172
|
-
<a href="#outline-instance_method" title="#outline (instance method)">- (Boolean) <strong>outline</strong> </a>
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
</span>
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
<span class="summary_desc"><div class='inline'><p>
|
189
|
-
The outline property for the border indicating that top, left, right and
|
190
|
-
bottom borders should only be applied to the outside border of a range of
|
191
|
-
cells.
|
192
|
-
</p>
|
193
|
-
</div></span>
|
194
|
-
|
195
|
-
</li>
|
196
|
-
|
197
|
-
|
198
|
-
<li class="public ">
|
199
|
-
<span class="summary_signature">
|
200
|
-
|
201
|
-
<a href="#prs-instance_method" title="#prs (instance method)">- (SimpleTypedList) <strong>prs</strong> </a>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
</span>
|
206
|
-
|
207
|
-
|
208
|
-
<span class="note title readonly">readonly</span>
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
<span class="summary_desc"><div class='inline'><p>
|
218
|
-
A list of BorderPr objects for this border.
|
219
|
-
</p>
|
220
|
-
</div></span>
|
221
|
-
|
222
|
-
</li>
|
223
|
-
|
224
|
-
|
225
|
-
</ul>
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
<h2>
|
232
|
-
Instance Method Summary
|
233
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
234
|
-
</h2>
|
235
|
-
|
236
|
-
<ul class="summary">
|
237
|
-
|
238
|
-
<li class="public ">
|
239
|
-
<span class="summary_signature">
|
240
|
-
|
241
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Border) <strong>initialize</strong>(options = {}) </a>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
</span>
|
246
|
-
|
247
|
-
<span class="note title constructor">constructor</span>
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
<span class="summary_desc"><div class='inline'><p>
|
257
|
-
Creates a new Border object.
|
258
|
-
</p>
|
259
|
-
</div></span>
|
260
|
-
|
261
|
-
</li>
|
262
|
-
|
263
|
-
|
264
|
-
<li class="public ">
|
265
|
-
<span class="summary_signature">
|
266
|
-
|
267
|
-
<a href="#to_xml-instance_method" title="#to_xml (instance method)">- (Object) <strong>to_xml</strong>(xml) </a>
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
</span>
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
<span class="summary_desc"><div class='inline'><p>
|
281
|
-
Serializes the border element.
|
282
|
-
</p>
|
283
|
-
</div></span>
|
284
|
-
|
285
|
-
</li>
|
286
|
-
|
287
|
-
|
288
|
-
</ul>
|
289
|
-
|
290
|
-
|
291
|
-
<div id="constructor_details" class="method_details_list">
|
292
|
-
<h2>Constructor Details</h2>
|
293
|
-
|
294
|
-
<div class="method_details first">
|
295
|
-
<p class="signature first" id="initialize-instance_method">
|
296
|
-
|
297
|
-
- (<tt><span class='object_link'><a href="" title="Axlsx::Border (class)">Border</a></span></tt>) <strong>initialize</strong>(options = {})
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
</p><div class="docstring">
|
302
|
-
<div class="discussion">
|
303
|
-
<p>
|
304
|
-
Creates a new Border object
|
305
|
-
</p>
|
306
|
-
|
307
|
-
|
308
|
-
</div>
|
309
|
-
</div>
|
310
|
-
<div class="tags">
|
311
|
-
|
312
|
-
<div class="examples">
|
313
|
-
<h3>Examples:</h3>
|
314
|
-
|
315
|
-
<h4><div class='inline'><p>
|
316
|
-
Making a border
|
317
|
-
</p>
|
318
|
-
</div></h4>
|
319
|
-
<pre class="example code"><span class='p identifier id'>p</span> <span class='assign token'>=</span> <span class='Package constant id'>Package</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
320
|
-
<span class='red_border identifier id'>red_border</span> <span class='assign token'>=</span> <span class='Border constant id'>Border</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
321
|
-
<span class='lbrack token'>[</span><span class='symbol val'>:left</span><span class='comma token'>,</span> <span class='symbol val'>:right</span><span class='comma token'>,</span> <span class='symbol val'>:top</span><span class='comma token'>,</span> <span class='symbol val'>:bottom</span><span class='rbrack token'>]</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='item identifier id'>item</span><span class='bitor op'>|</span>
|
322
|
-
<span class='red_border identifier id'>red_border</span><span class='dot token'>.</span><span class='prs identifier id'>prs</span> <span class='lshft op'><<</span> <span class='BorderPr constant id'>BorderPr</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:name=</span><span class='gt op'>></span><span class='item identifier id'>item</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>></span><span class='symbol val'>:thin</span><span class='comma token'>,</span> <span class='symbol val'>:color=</span><span class='gt op'>></span><span class='Color constant id'>Color</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:rgb=</span><span class='gt op'>></span><span class='string val'>"FFFF0000"</span><span class='rparen token'>)</span><span class='rparen token'>)</span> <span class='comment val'># </span>
|
323
|
-
<span class='end end kw'>end</span>
|
324
|
-
<span class='comment val'># this sets red_border to be the index for the created border.</span>
|
325
|
-
<span class='red_border identifier id'>red_border</span> <span class='assign token'>=</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='styles identifier id'>styles</span><span class='dot token'>.</span><span class='@borders ivar id'>@borders</span> <span class='lshft op'><<</span> <span class='red_border identifier id'>red_border</span>
|
326
|
-
<span class='comment val'>#used in row creation as follows. This will add a red border to each of the cells in the row.</span>
|
327
|
-
<span class='p identifier id'>p</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='add_worksheet identifier id'>add_worksheet</span><span class='dot token'>.</span><span class='rows identifier id'>rows</span> <span class='lshft op'><<</span> <span class='symbol val'>:values=</span><span class='gt op'>></span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='comma token'>,</span><span class='integer val'>2</span><span class='comma token'>,</span><span class='integer val'>3</span><span class='rbrack token'>]</span> <span class='symbol val'>:style=</span><span class='gt op'>></span><span class='red_border identifier id'>red_border</span>
|
328
|
-
</pre>
|
329
|
-
|
330
|
-
</div>
|
331
|
-
<h3>Parameters:</h3>
|
332
|
-
<ul class="param">
|
333
|
-
|
334
|
-
<li>
|
335
|
-
|
336
|
-
<span class='name'>options</span>
|
337
|
-
|
338
|
-
|
339
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
340
|
-
|
341
|
-
|
342
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
343
|
-
|
344
|
-
|
345
|
-
—
|
346
|
-
<div class='inline'><p>
|
347
|
-
a customizable set of options
|
348
|
-
</p>
|
349
|
-
</div>
|
350
|
-
|
351
|
-
</li>
|
352
|
-
|
353
|
-
</ul>
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
<h3>Options Hash (<tt>options</tt>):</h3>
|
359
|
-
<ul class="option">
|
360
|
-
|
361
|
-
<li>
|
362
|
-
<span class="name">diagonalUp</span>
|
363
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
364
|
-
<span class="default">
|
365
|
-
|
366
|
-
</span>
|
367
|
-
|
368
|
-
</li>
|
369
|
-
|
370
|
-
<li>
|
371
|
-
<span class="name">diagonalDown</span>
|
372
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
373
|
-
<span class="default">
|
374
|
-
|
375
|
-
</span>
|
376
|
-
|
377
|
-
</li>
|
378
|
-
|
379
|
-
<li>
|
380
|
-
<span class="name">outline</span>
|
381
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
382
|
-
<span class="default">
|
383
|
-
|
384
|
-
</span>
|
385
|
-
|
386
|
-
</li>
|
387
|
-
|
388
|
-
</ul>
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
</div><table class="source_code">
|
393
|
-
<tr>
|
394
|
-
<td>
|
395
|
-
<pre class="lines">
|
396
|
-
|
397
|
-
|
398
|
-
31
|
399
|
-
32
|
400
|
-
33
|
401
|
-
34
|
402
|
-
35
|
403
|
-
36</pre>
|
404
|
-
</td>
|
405
|
-
<td>
|
406
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border.rb', line 31</span>
|
407
|
-
|
408
|
-
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
409
|
-
<span class='@prs ivar id'>@prs</span> <span class='assign token'>=</span> <span class='SimpleTypedList constant id'>SimpleTypedList</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='BorderPr constant id'>BorderPr</span>
|
410
|
-
<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>
|
411
|
-
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='dstring node'>"#{o[0]}="</span>
|
412
|
-
<span class='end end kw'>end</span>
|
413
|
-
<span class='end end kw'>end</span>
|
414
|
-
</pre>
|
415
|
-
</td>
|
416
|
-
</tr>
|
417
|
-
</table>
|
418
|
-
</div>
|
419
|
-
|
420
|
-
</div>
|
421
|
-
|
422
|
-
<div id="instance_attr_details" class="attr_details">
|
423
|
-
<h2>Instance Attribute Details</h2>
|
424
|
-
|
425
|
-
|
426
|
-
<span id="diagonalDown=-instance_method"></span>
|
427
|
-
<span id="diagonalDown-instance_method"></span>
|
428
|
-
<div class="method_details first">
|
429
|
-
<p class="signature first" id="diagonalDown-instance_method">
|
430
|
-
|
431
|
-
- (<tt>Boolean</tt>) <strong>diagonalDown</strong>
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
</p><div class="docstring">
|
436
|
-
<div class="discussion">
|
437
|
-
<p>
|
438
|
-
The diagonal down property for the border that indicates if the border
|
439
|
-
should include a diagonal line from the top left to the top right of the
|
440
|
-
cell.
|
441
|
-
</p>
|
442
|
-
|
443
|
-
|
444
|
-
</div>
|
445
|
-
</div>
|
446
|
-
<div class="tags">
|
447
|
-
|
448
|
-
<h3>Returns:</h3>
|
449
|
-
<ul class="return">
|
450
|
-
|
451
|
-
<li>
|
452
|
-
|
453
|
-
|
454
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
—
|
459
|
-
<div class='inline'><p>
|
460
|
-
The diagonal down property for the border that indicates if the border
|
461
|
-
should include a diagonal line from the top left to the top right of the
|
462
|
-
cell.
|
463
|
-
</p>
|
464
|
-
</div>
|
465
|
-
|
466
|
-
</li>
|
467
|
-
|
468
|
-
</ul>
|
469
|
-
|
470
|
-
</div><table class="source_code">
|
471
|
-
<tr>
|
472
|
-
<td>
|
473
|
-
<pre class="lines">
|
474
|
-
|
475
|
-
|
476
|
-
9
|
477
|
-
10
|
478
|
-
11</pre>
|
479
|
-
</td>
|
480
|
-
<td>
|
481
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border.rb', line 9</span>
|
482
|
-
|
483
|
-
<span class='def def kw'>def</span> <span class='diagonalDown identifier id'>diagonalDown</span>
|
484
|
-
<span class='@diagonalDown ivar id'>@diagonalDown</span>
|
485
|
-
<span class='end end kw'>end</span>
|
486
|
-
</pre>
|
487
|
-
</td>
|
488
|
-
</tr>
|
489
|
-
</table>
|
490
|
-
</div>
|
491
|
-
|
492
|
-
|
493
|
-
<span id="diagonalUp=-instance_method"></span>
|
494
|
-
<span id="diagonalUp-instance_method"></span>
|
495
|
-
<div class="method_details ">
|
496
|
-
<p class="signature " id="diagonalUp-instance_method">
|
497
|
-
|
498
|
-
- (<tt>Boolean</tt>) <strong>diagonalUp</strong>
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
</p><div class="docstring">
|
503
|
-
<div class="discussion">
|
504
|
-
<p>
|
505
|
-
The diagonal up property for the border that indicates if the border should
|
506
|
-
include a diagonal line from the bottom left to the top right of the cell.
|
507
|
-
</p>
|
508
|
-
|
509
|
-
|
510
|
-
</div>
|
511
|
-
</div>
|
512
|
-
<div class="tags">
|
513
|
-
|
514
|
-
<h3>Returns:</h3>
|
515
|
-
<ul class="return">
|
516
|
-
|
517
|
-
<li>
|
518
|
-
|
519
|
-
|
520
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
—
|
525
|
-
<div class='inline'><p>
|
526
|
-
The diagonal up property for the border that indicates if the border should
|
527
|
-
include a diagonal line from the bottom left to the top right of the cell.
|
528
|
-
</p>
|
529
|
-
</div>
|
530
|
-
|
531
|
-
</li>
|
532
|
-
|
533
|
-
</ul>
|
534
|
-
|
535
|
-
</div><table class="source_code">
|
536
|
-
<tr>
|
537
|
-
<td>
|
538
|
-
<pre class="lines">
|
539
|
-
|
540
|
-
|
541
|
-
6
|
542
|
-
7
|
543
|
-
8</pre>
|
544
|
-
</td>
|
545
|
-
<td>
|
546
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border.rb', line 6</span>
|
547
|
-
|
548
|
-
<span class='def def kw'>def</span> <span class='diagonalUp identifier id'>diagonalUp</span>
|
549
|
-
<span class='@diagonalUp ivar id'>@diagonalUp</span>
|
550
|
-
<span class='end end kw'>end</span>
|
551
|
-
</pre>
|
552
|
-
</td>
|
553
|
-
</tr>
|
554
|
-
</table>
|
555
|
-
</div>
|
556
|
-
|
557
|
-
|
558
|
-
<span id="outline=-instance_method"></span>
|
559
|
-
<span id="outline-instance_method"></span>
|
560
|
-
<div class="method_details ">
|
561
|
-
<p class="signature " id="outline-instance_method">
|
562
|
-
|
563
|
-
- (<tt>Boolean</tt>) <strong>outline</strong>
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
</p><div class="docstring">
|
568
|
-
<div class="discussion">
|
569
|
-
<p>
|
570
|
-
The outline property for the border indicating that top, left, right and
|
571
|
-
bottom borders should only be applied to the outside border of a range of
|
572
|
-
cells.
|
573
|
-
</p>
|
574
|
-
|
575
|
-
|
576
|
-
</div>
|
577
|
-
</div>
|
578
|
-
<div class="tags">
|
579
|
-
|
580
|
-
<h3>Returns:</h3>
|
581
|
-
<ul class="return">
|
582
|
-
|
583
|
-
<li>
|
584
|
-
|
585
|
-
|
586
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
—
|
591
|
-
<div class='inline'><p>
|
592
|
-
The outline property for the border indicating that top, left, right and
|
593
|
-
bottom borders should only be applied to the outside border of a range of
|
594
|
-
cells.
|
595
|
-
</p>
|
596
|
-
</div>
|
597
|
-
|
598
|
-
</li>
|
599
|
-
|
600
|
-
</ul>
|
601
|
-
|
602
|
-
</div><table class="source_code">
|
603
|
-
<tr>
|
604
|
-
<td>
|
605
|
-
<pre class="lines">
|
606
|
-
|
607
|
-
|
608
|
-
12
|
609
|
-
13
|
610
|
-
14</pre>
|
611
|
-
</td>
|
612
|
-
<td>
|
613
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border.rb', line 12</span>
|
614
|
-
|
615
|
-
<span class='def def kw'>def</span> <span class='outline identifier id'>outline</span>
|
616
|
-
<span class='@outline ivar id'>@outline</span>
|
617
|
-
<span class='end end kw'>end</span>
|
618
|
-
</pre>
|
619
|
-
</td>
|
620
|
-
</tr>
|
621
|
-
</table>
|
622
|
-
</div>
|
623
|
-
|
624
|
-
|
625
|
-
<span id=""></span>
|
626
|
-
<span id="prs-instance_method"></span>
|
627
|
-
<div class="method_details ">
|
628
|
-
<p class="signature " id="prs-instance_method">
|
629
|
-
|
630
|
-
- (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>prs</strong> <span class="extras">(readonly)</span>
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
</p><div class="docstring">
|
635
|
-
<div class="discussion">
|
636
|
-
<p>
|
637
|
-
A list of BorderPr objects for this border.
|
638
|
-
</p>
|
639
|
-
|
640
|
-
|
641
|
-
</div>
|
642
|
-
</div>
|
643
|
-
<div class="tags">
|
644
|
-
|
645
|
-
<h3>Returns:</h3>
|
646
|
-
<ul class="return">
|
647
|
-
|
648
|
-
<li>
|
649
|
-
|
650
|
-
|
651
|
-
<span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
—
|
656
|
-
<div class='inline'><p>
|
657
|
-
A list of BorderPr objects for this border.
|
658
|
-
</p>
|
659
|
-
</div>
|
660
|
-
|
661
|
-
</li>
|
662
|
-
|
663
|
-
</ul>
|
664
|
-
|
665
|
-
</div><table class="source_code">
|
666
|
-
<tr>
|
667
|
-
<td>
|
668
|
-
<pre class="lines">
|
669
|
-
|
670
|
-
|
671
|
-
15
|
672
|
-
16
|
673
|
-
17</pre>
|
674
|
-
</td>
|
675
|
-
<td>
|
676
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border.rb', line 15</span>
|
677
|
-
|
678
|
-
<span class='def def kw'>def</span> <span class='prs identifier id'>prs</span>
|
679
|
-
<span class='@prs ivar id'>@prs</span>
|
680
|
-
<span class='end end kw'>end</span>
|
681
|
-
</pre>
|
682
|
-
</td>
|
683
|
-
</tr>
|
684
|
-
</table>
|
685
|
-
</div>
|
686
|
-
|
687
|
-
</div>
|
688
|
-
|
689
|
-
|
690
|
-
<div id="instance_method_details" class="method_details_list">
|
691
|
-
<h2>Instance Method Details</h2>
|
692
|
-
|
693
|
-
|
694
|
-
<div class="method_details first">
|
695
|
-
<p class="signature first" id="to_xml-instance_method">
|
696
|
-
|
697
|
-
- (<tt>Object</tt>) <strong>to_xml</strong>(xml)
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
</p><div class="docstring">
|
702
|
-
<div class="discussion">
|
703
|
-
<p>
|
704
|
-
Serializes the border element
|
705
|
-
</p>
|
706
|
-
|
707
|
-
|
708
|
-
</div>
|
709
|
-
</div>
|
710
|
-
<div class="tags">
|
711
|
-
<h3>Parameters:</h3>
|
712
|
-
<ul class="param">
|
713
|
-
|
714
|
-
<li>
|
715
|
-
|
716
|
-
<span class='name'>xml</span>
|
717
|
-
|
718
|
-
|
719
|
-
<span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
—
|
724
|
-
<div class='inline'><p>
|
725
|
-
The document builder instance this objects xml will be added to.
|
726
|
-
</p>
|
727
|
-
</div>
|
728
|
-
|
729
|
-
</li>
|
730
|
-
|
731
|
-
</ul>
|
732
|
-
|
733
|
-
|
734
|
-
</div><table class="source_code">
|
735
|
-
<tr>
|
736
|
-
<td>
|
737
|
-
<pre class="lines">
|
738
|
-
|
739
|
-
|
740
|
-
47
|
741
|
-
48
|
742
|
-
49
|
743
|
-
50
|
744
|
-
51
|
745
|
-
52
|
746
|
-
53
|
747
|
-
54
|
748
|
-
55</pre>
|
749
|
-
</td>
|
750
|
-
<td>
|
751
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/border.rb', line 47</span>
|
752
|
-
|
753
|
-
<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>
|
754
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='border identifier id'>border</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='dot token'>.</span><span class='select identifier id'>select</span><span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span><span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='lbrack token'>[</span><span class='symbol val'>:diagonalUp</span><span class='comma token'>,</span> <span class='symbol val'>:diagonalDown</span><span class='comma token'>,</span> <span class='symbol val'>:outline</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span> <span class='k identifier id'>k</span> <span class='rbrace token'>}</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
755
|
-
<span class='lbrack token'>[</span><span class='symbol val'>:start</span><span class='comma token'>,</span> <span class='symbol val'>:end</span><span class='comma token'>,</span> <span class='symbol val'>:left</span><span class='comma token'>,</span> <span class='symbol val'>:right</span><span class='comma token'>,</span> <span class='symbol val'>:top</span><span class='comma token'>,</span> <span class='symbol val'>:bottom</span><span class='comma token'>,</span> <span class='symbol val'>:diagonal</span><span class='comma token'>,</span> <span class='symbol val'>:vertical</span><span class='comma token'>,</span> <span class='symbol val'>:horizontal</span><span class='rbrack token'>]</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='k identifier id'>k</span><span class='bitor op'>|</span>
|
756
|
-
<span class='@prs ivar id'>@prs</span><span class='dot token'>.</span><span class='select identifier id'>select</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='pr identifier id'>pr</span><span class='bitor op'>|</span> <span class='pr identifier id'>pr</span><span class='dot token'>.</span><span class='name identifier id'>name</span> <span class='eq op'>==</span> <span class='k identifier id'>k</span> <span class='rbrace token'>}</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='part identifier id'>part</span><span class='bitor op'>|</span>
|
757
|
-
<span class='part identifier id'>part</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>
|
758
|
-
<span class='end end kw'>end</span>
|
759
|
-
<span class='end end kw'>end</span>
|
760
|
-
<span class='rbrace token'>}</span>
|
761
|
-
<span class='end end kw'>end</span>
|
762
|
-
</pre>
|
763
|
-
</td>
|
764
|
-
</tr>
|
765
|
-
</table>
|
766
|
-
</div>
|
767
|
-
|
768
|
-
</div>
|
769
|
-
|
770
|
-
</div>
|
771
|
-
|
772
|
-
<div id="footer">
|
773
|
-
Generated on Mon Dec 5 14:21:21 2011 by
|
774
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
775
|
-
0.7.3 (ruby-1.8.7).
|
776
|
-
</div>
|
777
|
-
|
778
|
-
</body>
|
779
|
-
</html>
|