axlsx 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +14 -0
- data/Gemfile +3 -7
- data/Gemfile.lock +17 -8
- data/README.md +88 -59
- data/axlsx.gemspec +9 -3
- data/doc/Axlsx.html +482 -248
- data/doc/Axlsx/App.html +237 -159
- data/doc/Axlsx/Axis.html +75 -51
- data/doc/Axlsx/Bar3DChart.html +75 -53
- data/doc/Axlsx/BarSeries.html +45 -31
- data/doc/Axlsx/Border.html +70 -50
- data/doc/Axlsx/BorderPr.html +80 -62
- data/doc/Axlsx/CatAxis.html +62 -43
- data/doc/Axlsx/CatAxisData.html +23 -16
- data/doc/Axlsx/Cell.html +2022 -393
- data/doc/Axlsx/CellAlignment.html +103 -75
- data/doc/Axlsx/CellProtection.html +44 -30
- data/doc/Axlsx/CellStyle.html +66 -46
- data/doc/Axlsx/Chart.html +159 -108
- data/doc/Axlsx/Color.html +73 -52
- data/doc/Axlsx/ContentType.html +20 -14
- data/doc/Axlsx/Core.html +29 -20
- data/doc/Axlsx/DataTypeValidator.html +27 -19
- data/doc/Axlsx/Default.html +39 -27
- data/doc/Axlsx/Drawing.html +104 -70
- data/doc/Axlsx/Fill.html +33 -23
- data/doc/Axlsx/Font.html +132 -98
- data/doc/Axlsx/GradientFill.html +70 -48
- data/doc/Axlsx/GradientStop.html +31 -21
- data/doc/Axlsx/GraphicFrame.html +40 -27
- data/doc/Axlsx/Line3DChart.html +62 -43
- data/doc/Axlsx/LineSeries.html +37 -25
- data/doc/Axlsx/Marker.html +63 -43
- data/doc/Axlsx/NumFmt.html +79 -65
- data/doc/Axlsx/OneCellAnchor.html +78 -54
- data/doc/Axlsx/Override.html +39 -27
- data/doc/Axlsx/Package.html +103 -163
- data/doc/Axlsx/Parser.html +549 -0
- data/doc/Axlsx/PatternFill.html +66 -51
- data/doc/Axlsx/Pic.html +230 -123
- data/doc/Axlsx/PictureLocking.html +1159 -0
- data/doc/Axlsx/Pie3DChart.html +23 -16
- data/doc/Axlsx/PieSeries.html +44 -30
- data/doc/Axlsx/RegexValidator.html +14 -10
- data/doc/Axlsx/Relationship.html +40 -27
- data/doc/Axlsx/Relationships.html +20 -14
- data/doc/Axlsx/RestrictionValidator.html +25 -17
- data/doc/Axlsx/Row.html +73 -53
- data/doc/Axlsx/Scaling.html +46 -31
- data/doc/Axlsx/SerAxis.html +49 -33
- data/doc/Axlsx/Series.html +51 -35
- data/doc/Axlsx/SeriesTitle.html +14 -10
- data/doc/Axlsx/Styles.html +210 -156
- data/doc/Axlsx/TableStyle.html +47 -32
- data/doc/Axlsx/TableStyleElement.html +75 -61
- data/doc/Axlsx/TableStyles.html +42 -28
- data/doc/Axlsx/Title.html +36 -25
- data/doc/Axlsx/TwoCellAnchor.html +83 -58
- data/doc/Axlsx/ValAxis.html +35 -24
- data/doc/Axlsx/ValAxisData.html +13 -9
- data/doc/Axlsx/View3D.html +64 -43
- data/doc/Axlsx/Workbook.html +305 -147
- data/doc/Axlsx/Worksheet.html +567 -271
- data/doc/Axlsx/Xf.html +114 -77
- data/doc/_index.html +15 -1
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +1 -1
- data/doc/file.LICENSE.html +25 -21
- data/doc/file.README.html +89 -66
- data/doc/index.html +89 -66
- data/doc/js/app.js +4 -4
- data/doc/method_list.html +717 -413
- data/doc/top-level-namespace.html +1 -1
- data/examples/example.rb +52 -25
- data/examples/follow_20111202.xlsx +0 -0
- data/lib/axlsx.rb +14 -1
- data/lib/axlsx/drawing/chart.rb +20 -4
- data/lib/axlsx/drawing/drawing.rb +1 -1
- data/lib/axlsx/drawing/pic.rb +5 -2
- data/lib/axlsx/drawing/picture_locking.rb +72 -0
- data/lib/axlsx/package.rb +9 -7
- data/lib/axlsx/stylesheet/color.rb +19 -9
- data/lib/axlsx/stylesheet/styles.rb +2 -0
- data/lib/axlsx/util/constants.rb +6 -0
- data/lib/axlsx/util/parser.rb +43 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +21 -1
- data/lib/axlsx/workbook/worksheet/cell.rb +159 -7
- data/lib/axlsx/workbook/worksheet/row.rb +4 -2
- data/lib/axlsx/workbook/worksheet/worksheet.rb +38 -4
- data/test/drawing/tc_picture_locking.rb +73 -0
- data/test/rels/tc_relationships.rb +0 -1
- data/test/stylesheet/tc_styles.rb +0 -12
- data/test/tc_package.rb +5 -3
- data/test/workbook/tc_workbook.rb +7 -0
- data/test/workbook/worksheet/tc_cell.rb +102 -1
- data/test/workbook/worksheet/tc_worksheet.rb +17 -0
- metadata +79 -19
- data/doc/Axlsx/Ar.html +0 -196
- data/doc/Axlsx/Ar/ClassMethods.html +0 -188
- data/doc/Axlsx/Ar/InstanceMethods.html +0 -108
- data/doc/Axlsx/Ar/SingletonMethods.html +0 -312
data/doc/Axlsx/Pie3DChart.html
CHANGED
@@ -96,9 +96,10 @@
|
|
96
96
|
|
97
97
|
<h2>Overview</h2><div class="docstring">
|
98
98
|
<div class="discussion">
|
99
|
-
|
100
|
-
|
101
|
-
that you can add to your worksheet
|
99
|
+
<p>
|
100
|
+
The Pie3DChart is a three dimentional piechart (who would have guessed?)
|
101
|
+
that you can add to your worksheet.
|
102
|
+
</p>
|
102
103
|
|
103
104
|
|
104
105
|
</div>
|
@@ -160,8 +161,9 @@ that you can add to your worksheet.</p>
|
|
160
161
|
|
161
162
|
|
162
163
|
|
163
|
-
<span class="summary_desc"><div class='inline'>
|
164
|
-
|
164
|
+
<span class="summary_desc"><div class='inline'><p>
|
165
|
+
Creates a new pie chart object.
|
166
|
+
</p>
|
165
167
|
</div></span>
|
166
168
|
|
167
169
|
</li>
|
@@ -183,8 +185,9 @@ that you can add to your worksheet.</p>
|
|
183
185
|
|
184
186
|
|
185
187
|
|
186
|
-
<span class="summary_desc"><div class='inline'>
|
187
|
-
|
188
|
+
<span class="summary_desc"><div class='inline'><p>
|
189
|
+
Serializes the pie chart.
|
190
|
+
</p>
|
188
191
|
</div></span>
|
189
192
|
|
190
193
|
</li>
|
@@ -215,8 +218,9 @@ that you can add to your worksheet.</p>
|
|
215
218
|
|
216
219
|
</p><div class="docstring">
|
217
220
|
<div class="discussion">
|
218
|
-
|
219
|
-
|
221
|
+
<p>
|
222
|
+
Creates a new pie chart object
|
223
|
+
</p>
|
220
224
|
|
221
225
|
|
222
226
|
</div>
|
@@ -235,8 +239,9 @@ that you can add to your worksheet.</p>
|
|
235
239
|
|
236
240
|
|
237
241
|
—
|
238
|
-
<div class='inline'>
|
239
|
-
|
242
|
+
<div class='inline'><p>
|
243
|
+
The workbook that owns this chart.
|
244
|
+
</p>
|
240
245
|
</div>
|
241
246
|
|
242
247
|
</li>
|
@@ -253,8 +258,9 @@ that you can add to your worksheet.</p>
|
|
253
258
|
|
254
259
|
|
255
260
|
—
|
256
|
-
<div class='inline'>
|
257
|
-
|
261
|
+
<div class='inline'><p>
|
262
|
+
a customizable set of options
|
263
|
+
</p>
|
258
264
|
</div>
|
259
265
|
|
260
266
|
</li>
|
@@ -414,8 +420,9 @@ that you can add to your worksheet.</p>
|
|
414
420
|
|
415
421
|
</p><div class="docstring">
|
416
422
|
<div class="discussion">
|
417
|
-
|
418
|
-
|
423
|
+
<p>
|
424
|
+
Serializes the pie chart
|
425
|
+
</p>
|
419
426
|
|
420
427
|
|
421
428
|
</div>
|
@@ -473,7 +480,7 @@ that you can add to your worksheet.</p>
|
|
473
480
|
</div>
|
474
481
|
|
475
482
|
<div id="footer">
|
476
|
-
Generated on
|
483
|
+
Generated on Mon Dec 5 14:21:06 2011 by
|
477
484
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
478
485
|
0.7.3 (ruby-1.8.7).
|
479
486
|
</div>
|
data/doc/Axlsx/PieSeries.html
CHANGED
@@ -99,14 +99,16 @@
|
|
99
99
|
|
100
100
|
<div class="note notetag">
|
101
101
|
<strong>Note:</strong>
|
102
|
-
<div class='inline'>
|
103
|
-
|
102
|
+
<div class='inline'><p>
|
103
|
+
The recommended way to manage series is to use Chart#add_series
|
104
|
+
</p>
|
104
105
|
</div>
|
105
106
|
</div>
|
106
107
|
|
107
|
-
|
108
|
-
|
109
|
-
series
|
108
|
+
<p>
|
109
|
+
A PieSeries defines the data and labels and explosion for pie charts
|
110
|
+
series.
|
111
|
+
</p>
|
110
112
|
|
111
113
|
|
112
114
|
</div>
|
@@ -151,8 +153,9 @@ series.</p>
|
|
151
153
|
|
152
154
|
|
153
155
|
|
154
|
-
<span class="summary_desc"><div class='inline'>
|
155
|
-
|
156
|
+
<span class="summary_desc"><div class='inline'><p>
|
157
|
+
The data for this series.
|
158
|
+
</p>
|
156
159
|
</div></span>
|
157
160
|
|
158
161
|
</li>
|
@@ -177,8 +180,9 @@ series.</p>
|
|
177
180
|
|
178
181
|
|
179
182
|
|
180
|
-
<span class="summary_desc"><div class='inline'>
|
181
|
-
|
183
|
+
<span class="summary_desc"><div class='inline'><p>
|
184
|
+
The explosion for this series.
|
185
|
+
</p>
|
182
186
|
</div></span>
|
183
187
|
|
184
188
|
</li>
|
@@ -203,8 +207,9 @@ series.</p>
|
|
203
207
|
|
204
208
|
|
205
209
|
|
206
|
-
<span class="summary_desc"><div class='inline'>
|
207
|
-
|
210
|
+
<span class="summary_desc"><div class='inline'><p>
|
211
|
+
The labels for this series.
|
212
|
+
</p>
|
208
213
|
</div></span>
|
209
214
|
|
210
215
|
</li>
|
@@ -249,8 +254,9 @@ series.</p>
|
|
249
254
|
|
250
255
|
|
251
256
|
|
252
|
-
<span class="summary_desc"><div class='inline'>
|
253
|
-
|
257
|
+
<span class="summary_desc"><div class='inline'><p>
|
258
|
+
Creates a new series.
|
259
|
+
</p>
|
254
260
|
</div></span>
|
255
261
|
|
256
262
|
</li>
|
@@ -272,8 +278,9 @@ series.</p>
|
|
272
278
|
|
273
279
|
|
274
280
|
|
275
|
-
<span class="summary_desc"><div class='inline'>
|
276
|
-
|
281
|
+
<span class="summary_desc"><div class='inline'><p>
|
282
|
+
Serializes the series.
|
283
|
+
</p>
|
277
284
|
</div></span>
|
278
285
|
|
279
286
|
</li>
|
@@ -304,8 +311,9 @@ series.</p>
|
|
304
311
|
|
305
312
|
</p><div class="docstring">
|
306
313
|
<div class="discussion">
|
307
|
-
|
308
|
-
|
314
|
+
<p>
|
315
|
+
Creates a new series
|
316
|
+
</p>
|
309
317
|
|
310
318
|
|
311
319
|
</div>
|
@@ -337,8 +345,9 @@ series.</p>
|
|
337
345
|
|
338
346
|
|
339
347
|
—
|
340
|
-
<div class='inline'>
|
341
|
-
|
348
|
+
<div class='inline'><p>
|
349
|
+
a customizable set of options
|
350
|
+
</p>
|
342
351
|
</div>
|
343
352
|
|
344
353
|
</li>
|
@@ -438,8 +447,9 @@ series.</p>
|
|
438
447
|
|
439
448
|
</p><div class="docstring">
|
440
449
|
<div class="discussion">
|
441
|
-
|
442
|
-
|
450
|
+
<p>
|
451
|
+
The data for this series.
|
452
|
+
</p>
|
443
453
|
|
444
454
|
|
445
455
|
</div>
|
@@ -494,8 +504,9 @@ series.</p>
|
|
494
504
|
|
495
505
|
</p><div class="docstring">
|
496
506
|
<div class="discussion">
|
497
|
-
|
498
|
-
|
507
|
+
<p>
|
508
|
+
The explosion for this series
|
509
|
+
</p>
|
499
510
|
|
500
511
|
|
501
512
|
</div>
|
@@ -550,8 +561,9 @@ series.</p>
|
|
550
561
|
|
551
562
|
</p><div class="docstring">
|
552
563
|
<div class="discussion">
|
553
|
-
|
554
|
-
|
564
|
+
<p>
|
565
|
+
The labels for this series.
|
566
|
+
</p>
|
555
567
|
|
556
568
|
|
557
569
|
</div>
|
@@ -610,8 +622,9 @@ series.</p>
|
|
610
622
|
|
611
623
|
</p><div class="docstring">
|
612
624
|
<div class="discussion">
|
613
|
-
|
614
|
-
|
625
|
+
<p>
|
626
|
+
Serializes the series
|
627
|
+
</p>
|
615
628
|
|
616
629
|
|
617
630
|
</div>
|
@@ -630,8 +643,9 @@ series.</p>
|
|
630
643
|
|
631
644
|
|
632
645
|
—
|
633
|
-
<div class='inline'>
|
634
|
-
|
646
|
+
<div class='inline'><p>
|
647
|
+
The document builder instance this objects xml will be added to.
|
648
|
+
</p>
|
635
649
|
</div>
|
636
650
|
|
637
651
|
</li>
|
@@ -687,7 +701,7 @@ series.</p>
|
|
687
701
|
</div>
|
688
702
|
|
689
703
|
<div id="footer">
|
690
|
-
Generated on
|
704
|
+
Generated on Mon Dec 5 14:21:07 2011 by
|
691
705
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
692
706
|
0.7.3 (ruby-1.8.7).
|
693
707
|
</div>
|
@@ -94,8 +94,9 @@
|
|
94
94
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
96
96
|
<div class="discussion">
|
97
|
-
|
98
|
-
|
97
|
+
<p>
|
98
|
+
Validates the value against the regular expression provided.
|
99
|
+
</p>
|
99
100
|
|
100
101
|
|
101
102
|
</div>
|
@@ -173,9 +174,10 @@
|
|
173
174
|
|
174
175
|
|
175
176
|
—
|
176
|
-
<div class='inline'>
|
177
|
-
|
178
|
-
the value is invalid
|
177
|
+
<div class='inline'><p>
|
178
|
+
The name of what is being validated. This is included in the output when
|
179
|
+
the value is invalid
|
180
|
+
</p>
|
179
181
|
</div>
|
180
182
|
|
181
183
|
</li>
|
@@ -190,8 +192,9 @@ the value is invalid</p>
|
|
190
192
|
|
191
193
|
|
192
194
|
—
|
193
|
-
<div class='inline'>
|
194
|
-
|
195
|
+
<div class='inline'><p>
|
196
|
+
The regular expression to evaluate
|
197
|
+
</p>
|
195
198
|
</div>
|
196
199
|
|
197
200
|
</li>
|
@@ -206,8 +209,9 @@ the value is invalid</p>
|
|
206
209
|
|
207
210
|
|
208
211
|
—
|
209
|
-
<div class='inline'>
|
210
|
-
|
212
|
+
<div class='inline'><p>
|
213
|
+
The value to validate.
|
214
|
+
</p>
|
211
215
|
</div>
|
212
216
|
|
213
217
|
</li>
|
@@ -255,7 +259,7 @@ the value is invalid</p>
|
|
255
259
|
</div>
|
256
260
|
|
257
261
|
<div id="footer">
|
258
|
-
Generated on
|
262
|
+
Generated on Mon Dec 5 14:21:07 2011 by
|
259
263
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
260
264
|
0.7.3 (ruby-1.8.7).
|
261
265
|
</div>
|
data/doc/Axlsx/Relationship.html
CHANGED
@@ -97,13 +97,15 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
|
100
|
+
<div class='inline'><p>
|
101
|
+
Packages automatcially manage relationships.
|
102
|
+
</p>
|
102
103
|
</div>
|
103
104
|
</div>
|
104
105
|
|
105
|
-
|
106
|
-
|
106
|
+
<p>
|
107
|
+
A relationship defines a reference between package parts.
|
108
|
+
</p>
|
107
109
|
|
108
110
|
|
109
111
|
</div>
|
@@ -135,8 +137,9 @@
|
|
135
137
|
|
136
138
|
|
137
139
|
|
138
|
-
<span class="summary_desc"><div class='inline'>
|
139
|
-
|
140
|
+
<span class="summary_desc"><div class='inline'><p>
|
141
|
+
The location of the relationship target.
|
142
|
+
</p>
|
140
143
|
</div></span>
|
141
144
|
|
142
145
|
</li>
|
@@ -161,8 +164,9 @@
|
|
161
164
|
|
162
165
|
|
163
166
|
|
164
|
-
<span class="summary_desc"><div class='inline'>
|
165
|
-
|
167
|
+
<span class="summary_desc"><div class='inline'><p>
|
168
|
+
The type of relationship.
|
169
|
+
</p>
|
166
170
|
</div></span>
|
167
171
|
|
168
172
|
</li>
|
@@ -199,8 +203,9 @@
|
|
199
203
|
|
200
204
|
|
201
205
|
|
202
|
-
<span class="summary_desc"><div class='inline'>
|
203
|
-
|
206
|
+
<span class="summary_desc"><div class='inline'><p>
|
207
|
+
A new instance of Relationship.
|
208
|
+
</p>
|
204
209
|
</div></span>
|
205
210
|
|
206
211
|
</li>
|
@@ -222,8 +227,9 @@
|
|
222
227
|
|
223
228
|
|
224
229
|
|
225
|
-
<span class="summary_desc"><div class='inline'>
|
226
|
-
|
230
|
+
<span class="summary_desc"><div class='inline'><p>
|
231
|
+
Serializes the relationship.
|
232
|
+
</p>
|
227
233
|
</div></span>
|
228
234
|
|
229
235
|
</li>
|
@@ -244,8 +250,9 @@
|
|
244
250
|
|
245
251
|
</p><div class="docstring">
|
246
252
|
<div class="discussion">
|
247
|
-
|
248
|
-
|
253
|
+
<p>
|
254
|
+
A new instance of Relationship
|
255
|
+
</p>
|
249
256
|
|
250
257
|
|
251
258
|
</div>
|
@@ -294,8 +301,9 @@
|
|
294
301
|
|
295
302
|
</p><div class="docstring">
|
296
303
|
<div class="discussion">
|
297
|
-
|
298
|
-
|
304
|
+
<p>
|
305
|
+
The location of the relationship target
|
306
|
+
</p>
|
299
307
|
|
300
308
|
|
301
309
|
</div>
|
@@ -353,13 +361,15 @@
|
|
353
361
|
|
354
362
|
<div class="note notetag">
|
355
363
|
<strong>Note:</strong>
|
356
|
-
<div class='inline'>
|
357
|
-
|
364
|
+
<div class='inline'><p>
|
365
|
+
Supported types are defined as constants in Axlsx:
|
366
|
+
</p>
|
358
367
|
</div>
|
359
368
|
</div>
|
360
369
|
|
361
|
-
|
362
|
-
|
370
|
+
<p>
|
371
|
+
The type of relationship
|
372
|
+
</p>
|
363
373
|
|
364
374
|
|
365
375
|
</div>
|
@@ -443,8 +453,9 @@
|
|
443
453
|
|
444
454
|
</p><div class="docstring">
|
445
455
|
<div class="discussion">
|
446
|
-
|
447
|
-
|
456
|
+
<p>
|
457
|
+
Serializes the relationship
|
458
|
+
</p>
|
448
459
|
|
449
460
|
|
450
461
|
</div>
|
@@ -463,8 +474,9 @@
|
|
463
474
|
|
464
475
|
|
465
476
|
—
|
466
|
-
<div class='inline'>
|
467
|
-
|
477
|
+
<div class='inline'><p>
|
478
|
+
The document builder instance this objects xml will be added to.
|
479
|
+
</p>
|
468
480
|
</div>
|
469
481
|
|
470
482
|
</li>
|
@@ -479,8 +491,9 @@
|
|
479
491
|
|
480
492
|
|
481
493
|
—
|
482
|
-
<div class='inline'>
|
483
|
-
|
494
|
+
<div class='inline'><p>
|
495
|
+
the reference id of the object.
|
496
|
+
</p>
|
484
497
|
</div>
|
485
498
|
|
486
499
|
</li>
|
@@ -532,7 +545,7 @@
|
|
532
545
|
</div>
|
533
546
|
|
534
547
|
<div id="footer">
|
535
|
-
Generated on
|
548
|
+
Generated on Mon Dec 5 14:21:09 2011 by
|
536
549
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
537
550
|
0.7.3 (ruby-1.8.7).
|
538
551
|
</div>
|