axlsx 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/Gemfile +3 -7
  3. data/Gemfile.lock +17 -8
  4. data/README.md +88 -59
  5. data/axlsx.gemspec +9 -3
  6. data/doc/Axlsx.html +482 -248
  7. data/doc/Axlsx/App.html +237 -159
  8. data/doc/Axlsx/Axis.html +75 -51
  9. data/doc/Axlsx/Bar3DChart.html +75 -53
  10. data/doc/Axlsx/BarSeries.html +45 -31
  11. data/doc/Axlsx/Border.html +70 -50
  12. data/doc/Axlsx/BorderPr.html +80 -62
  13. data/doc/Axlsx/CatAxis.html +62 -43
  14. data/doc/Axlsx/CatAxisData.html +23 -16
  15. data/doc/Axlsx/Cell.html +2022 -393
  16. data/doc/Axlsx/CellAlignment.html +103 -75
  17. data/doc/Axlsx/CellProtection.html +44 -30
  18. data/doc/Axlsx/CellStyle.html +66 -46
  19. data/doc/Axlsx/Chart.html +159 -108
  20. data/doc/Axlsx/Color.html +73 -52
  21. data/doc/Axlsx/ContentType.html +20 -14
  22. data/doc/Axlsx/Core.html +29 -20
  23. data/doc/Axlsx/DataTypeValidator.html +27 -19
  24. data/doc/Axlsx/Default.html +39 -27
  25. data/doc/Axlsx/Drawing.html +104 -70
  26. data/doc/Axlsx/Fill.html +33 -23
  27. data/doc/Axlsx/Font.html +132 -98
  28. data/doc/Axlsx/GradientFill.html +70 -48
  29. data/doc/Axlsx/GradientStop.html +31 -21
  30. data/doc/Axlsx/GraphicFrame.html +40 -27
  31. data/doc/Axlsx/Line3DChart.html +62 -43
  32. data/doc/Axlsx/LineSeries.html +37 -25
  33. data/doc/Axlsx/Marker.html +63 -43
  34. data/doc/Axlsx/NumFmt.html +79 -65
  35. data/doc/Axlsx/OneCellAnchor.html +78 -54
  36. data/doc/Axlsx/Override.html +39 -27
  37. data/doc/Axlsx/Package.html +103 -163
  38. data/doc/Axlsx/Parser.html +549 -0
  39. data/doc/Axlsx/PatternFill.html +66 -51
  40. data/doc/Axlsx/Pic.html +230 -123
  41. data/doc/Axlsx/PictureLocking.html +1159 -0
  42. data/doc/Axlsx/Pie3DChart.html +23 -16
  43. data/doc/Axlsx/PieSeries.html +44 -30
  44. data/doc/Axlsx/RegexValidator.html +14 -10
  45. data/doc/Axlsx/Relationship.html +40 -27
  46. data/doc/Axlsx/Relationships.html +20 -14
  47. data/doc/Axlsx/RestrictionValidator.html +25 -17
  48. data/doc/Axlsx/Row.html +73 -53
  49. data/doc/Axlsx/Scaling.html +46 -31
  50. data/doc/Axlsx/SerAxis.html +49 -33
  51. data/doc/Axlsx/Series.html +51 -35
  52. data/doc/Axlsx/SeriesTitle.html +14 -10
  53. data/doc/Axlsx/Styles.html +210 -156
  54. data/doc/Axlsx/TableStyle.html +47 -32
  55. data/doc/Axlsx/TableStyleElement.html +75 -61
  56. data/doc/Axlsx/TableStyles.html +42 -28
  57. data/doc/Axlsx/Title.html +36 -25
  58. data/doc/Axlsx/TwoCellAnchor.html +83 -58
  59. data/doc/Axlsx/ValAxis.html +35 -24
  60. data/doc/Axlsx/ValAxisData.html +13 -9
  61. data/doc/Axlsx/View3D.html +64 -43
  62. data/doc/Axlsx/Workbook.html +305 -147
  63. data/doc/Axlsx/Worksheet.html +567 -271
  64. data/doc/Axlsx/Xf.html +114 -77
  65. data/doc/_index.html +15 -1
  66. data/doc/class_list.html +1 -1
  67. data/doc/css/style.css +1 -1
  68. data/doc/file.LICENSE.html +25 -21
  69. data/doc/file.README.html +89 -66
  70. data/doc/index.html +89 -66
  71. data/doc/js/app.js +4 -4
  72. data/doc/method_list.html +717 -413
  73. data/doc/top-level-namespace.html +1 -1
  74. data/examples/example.rb +52 -25
  75. data/examples/follow_20111202.xlsx +0 -0
  76. data/lib/axlsx.rb +14 -1
  77. data/lib/axlsx/drawing/chart.rb +20 -4
  78. data/lib/axlsx/drawing/drawing.rb +1 -1
  79. data/lib/axlsx/drawing/pic.rb +5 -2
  80. data/lib/axlsx/drawing/picture_locking.rb +72 -0
  81. data/lib/axlsx/package.rb +9 -7
  82. data/lib/axlsx/stylesheet/color.rb +19 -9
  83. data/lib/axlsx/stylesheet/styles.rb +2 -0
  84. data/lib/axlsx/util/constants.rb +6 -0
  85. data/lib/axlsx/util/parser.rb +43 -0
  86. data/lib/axlsx/version.rb +1 -1
  87. data/lib/axlsx/workbook/workbook.rb +21 -1
  88. data/lib/axlsx/workbook/worksheet/cell.rb +159 -7
  89. data/lib/axlsx/workbook/worksheet/row.rb +4 -2
  90. data/lib/axlsx/workbook/worksheet/worksheet.rb +38 -4
  91. data/test/drawing/tc_picture_locking.rb +73 -0
  92. data/test/rels/tc_relationships.rb +0 -1
  93. data/test/stylesheet/tc_styles.rb +0 -12
  94. data/test/tc_package.rb +5 -3
  95. data/test/workbook/tc_workbook.rb +7 -0
  96. data/test/workbook/worksheet/tc_cell.rb +102 -1
  97. data/test/workbook/worksheet/tc_worksheet.rb +17 -0
  98. metadata +79 -19
  99. data/doc/Axlsx/Ar.html +0 -196
  100. data/doc/Axlsx/Ar/ClassMethods.html +0 -188
  101. data/doc/Axlsx/Ar/InstanceMethods.html +0 -108
  102. data/doc/Axlsx/Ar/SingletonMethods.html +0 -312
@@ -94,8 +94,9 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
-
98
- <p>A GradientFill defines the color and positioning for gradiant cell fill.</p>
97
+ <p>
98
+ A GradientFill defines the color and positioning for gradiant cell fill.
99
+ </p>
99
100
 
100
101
 
101
102
  </div>
@@ -134,8 +135,9 @@
134
135
 
135
136
 
136
137
 
137
- <span class="summary_desc"><div class='inline'>
138
- <p>Percentage format bottom.</p>
138
+ <span class="summary_desc"><div class='inline'><p>
139
+ Percentage format bottom.
140
+ </p>
139
141
  </div></span>
140
142
 
141
143
  </li>
@@ -160,8 +162,9 @@
160
162
 
161
163
 
162
164
 
163
- <span class="summary_desc"><div class='inline'>
164
- <p>Angle of the linear gradient.</p>
165
+ <span class="summary_desc"><div class='inline'><p>
166
+ Angle of the linear gradient.
167
+ </p>
165
168
  </div></span>
166
169
 
167
170
  </li>
@@ -186,8 +189,9 @@
186
189
 
187
190
 
188
191
 
189
- <span class="summary_desc"><div class='inline'>
190
- <p>Percentage format left.</p>
192
+ <span class="summary_desc"><div class='inline'><p>
193
+ Percentage format left.
194
+ </p>
191
195
  </div></span>
192
196
 
193
197
  </li>
@@ -212,8 +216,9 @@
212
216
 
213
217
 
214
218
 
215
- <span class="summary_desc"><div class='inline'>
216
- <p>Percentage format right.</p>
219
+ <span class="summary_desc"><div class='inline'><p>
220
+ Percentage format right.
221
+ </p>
217
222
  </div></span>
218
223
 
219
224
  </li>
@@ -238,8 +243,9 @@
238
243
 
239
244
 
240
245
 
241
- <span class="summary_desc"><div class='inline'>
242
- <p>Collection of stop objects.</p>
246
+ <span class="summary_desc"><div class='inline'><p>
247
+ Collection of stop objects.
248
+ </p>
243
249
  </div></span>
244
250
 
245
251
  </li>
@@ -264,8 +270,9 @@
264
270
 
265
271
 
266
272
 
267
- <span class="summary_desc"><div class='inline'>
268
- <p>Percentage format top.</p>
273
+ <span class="summary_desc"><div class='inline'><p>
274
+ Percentage format top.
275
+ </p>
269
276
  </div></span>
270
277
 
271
278
  </li>
@@ -290,8 +297,9 @@
290
297
 
291
298
 
292
299
 
293
- <span class="summary_desc"><div class='inline'>
294
- <p>The type of gradient.</p>
300
+ <span class="summary_desc"><div class='inline'><p>
301
+ The type of gradient.
302
+ </p>
295
303
  </div></span>
296
304
 
297
305
  </li>
@@ -328,8 +336,9 @@
328
336
 
329
337
 
330
338
 
331
- <span class="summary_desc"><div class='inline'>
332
- <p>Creates a new GradientFill object.</p>
339
+ <span class="summary_desc"><div class='inline'><p>
340
+ Creates a new GradientFill object.
341
+ </p>
333
342
  </div></span>
334
343
 
335
344
  </li>
@@ -351,8 +360,9 @@
351
360
 
352
361
 
353
362
 
354
- <span class="summary_desc"><div class='inline'>
355
- <p>Serializes the gradientFill.</p>
363
+ <span class="summary_desc"><div class='inline'><p>
364
+ Serializes the gradientFill.
365
+ </p>
356
366
  </div></span>
357
367
 
358
368
  </li>
@@ -373,8 +383,9 @@
373
383
 
374
384
  </p><div class="docstring">
375
385
  <div class="discussion">
376
-
377
- <p>Creates a new GradientFill object</p>
386
+ <p>
387
+ Creates a new GradientFill object
388
+ </p>
378
389
 
379
390
 
380
391
  </div>
@@ -395,8 +406,9 @@
395
406
 
396
407
 
397
408
  &mdash;
398
- <div class='inline'>
399
- <p>a customizable set of options</p>
409
+ <div class='inline'><p>
410
+ a customizable set of options
411
+ </p>
400
412
  </div>
401
413
 
402
414
  </li>
@@ -514,8 +526,9 @@
514
526
 
515
527
  </p><div class="docstring">
516
528
  <div class="discussion">
517
-
518
- <p>Percentage format bottom</p>
529
+ <p>
530
+ Percentage format bottom
531
+ </p>
519
532
 
520
533
 
521
534
  </div>
@@ -570,8 +583,9 @@
570
583
 
571
584
  </p><div class="docstring">
572
585
  <div class="discussion">
573
-
574
- <p>Angle of the linear gradient</p>
586
+ <p>
587
+ Angle of the linear gradient
588
+ </p>
575
589
 
576
590
 
577
591
  </div>
@@ -626,8 +640,9 @@
626
640
 
627
641
  </p><div class="docstring">
628
642
  <div class="discussion">
629
-
630
- <p>Percentage format left</p>
643
+ <p>
644
+ Percentage format left
645
+ </p>
631
646
 
632
647
 
633
648
  </div>
@@ -682,8 +697,9 @@
682
697
 
683
698
  </p><div class="docstring">
684
699
  <div class="discussion">
685
-
686
- <p>Percentage format right</p>
700
+ <p>
701
+ Percentage format right
702
+ </p>
687
703
 
688
704
 
689
705
  </div>
@@ -738,8 +754,9 @@
738
754
 
739
755
  </p><div class="docstring">
740
756
  <div class="discussion">
741
-
742
- <p>Collection of stop objects</p>
757
+ <p>
758
+ Collection of stop objects
759
+ </p>
743
760
 
744
761
 
745
762
  </div>
@@ -794,8 +811,9 @@
794
811
 
795
812
  </p><div class="docstring">
796
813
  <div class="discussion">
797
-
798
- <p>Percentage format top</p>
814
+ <p>
815
+ Percentage format top
816
+ </p>
799
817
 
800
818
 
801
819
  </div>
@@ -853,17 +871,19 @@
853
871
 
854
872
  <div class="note notetag">
855
873
  <strong>Note:</strong>
856
- <div class='inline'>
857
- <p>valid options are</p>
858
-
859
- <pre class="code"><span class='symbol val'>:linear</span>
860
- <span class='symbol val'>:path</span>
874
+ <div class='inline'><p>
875
+ valid options are
876
+ </p>
877
+ <pre class="code">
878
+ <span class='symbol val'>:linear</span>
879
+ <span class='symbol val'>:path</span>
861
880
  </pre>
862
881
  </div>
863
882
  </div>
864
883
 
865
-
866
- <p>The type of gradient.</p>
884
+ <p>
885
+ The type of gradient.
886
+ </p>
867
887
 
868
888
 
869
889
  </div>
@@ -922,8 +942,9 @@
922
942
 
923
943
  </p><div class="docstring">
924
944
  <div class="discussion">
925
-
926
- <p>Serializes the gradientFill</p>
945
+ <p>
946
+ Serializes the gradientFill
947
+ </p>
927
948
 
928
949
 
929
950
  </div>
@@ -942,8 +963,9 @@
942
963
 
943
964
 
944
965
  &mdash;
945
- <div class='inline'>
946
- <p>The document builder instance this objects xml will be added to.</p>
966
+ <div class='inline'><p>
967
+ The document builder instance this objects xml will be added to.
968
+ </p>
947
969
  </div>
948
970
 
949
971
  </li>
@@ -995,7 +1017,7 @@
995
1017
  </div>
996
1018
 
997
1019
  <div id="footer">
998
- Generated on Wed Nov 30 08:53:42 2011 by
1020
+ Generated on Mon Dec 5 14:21:16 2011 by
999
1021
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1000
1022
  0.7.3 (ruby-1.8.7).
1001
1023
  </div>
@@ -94,8 +94,9 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
-
98
- <p>The GradientStop object represents a color point in a gradient.</p>
97
+ <p>
98
+ The GradientStop object represents a color point in a gradient.
99
+ </p>
99
100
 
100
101
 
101
102
  </div>
@@ -134,8 +135,9 @@
134
135
 
135
136
 
136
137
 
137
- <span class="summary_desc"><div class='inline'>
138
- <p>The color for this gradient stop.</p>
138
+ <span class="summary_desc"><div class='inline'><p>
139
+ The color for this gradient stop.
140
+ </p>
139
141
  </div></span>
140
142
 
141
143
  </li>
@@ -160,8 +162,9 @@
160
162
 
161
163
 
162
164
 
163
- <span class="summary_desc"><div class='inline'>
164
- <p>The position of the color.</p>
165
+ <span class="summary_desc"><div class='inline'><p>
166
+ The position of the color.
167
+ </p>
165
168
  </div></span>
166
169
 
167
170
  </li>
@@ -198,8 +201,9 @@
198
201
 
199
202
 
200
203
 
201
- <span class="summary_desc"><div class='inline'>
202
- <p>Creates a new GradientStop object.</p>
204
+ <span class="summary_desc"><div class='inline'><p>
205
+ Creates a new GradientStop object.
206
+ </p>
203
207
  </div></span>
204
208
 
205
209
  </li>
@@ -221,8 +225,9 @@
221
225
 
222
226
 
223
227
 
224
- <span class="summary_desc"><div class='inline'>
225
- <p>Serializes the gradientStop.</p>
228
+ <span class="summary_desc"><div class='inline'><p>
229
+ Serializes the gradientStop.
230
+ </p>
226
231
  </div></span>
227
232
 
228
233
  </li>
@@ -243,8 +248,9 @@
243
248
 
244
249
  </p><div class="docstring">
245
250
  <div class="discussion">
246
-
247
- <p>Creates a new GradientStop object</p>
251
+ <p>
252
+ Creates a new GradientStop object
253
+ </p>
248
254
 
249
255
 
250
256
  </div>
@@ -319,8 +325,9 @@
319
325
 
320
326
  </p><div class="docstring">
321
327
  <div class="discussion">
322
-
323
- <p>The color for this gradient stop</p>
328
+ <p>
329
+ The color for this gradient stop
330
+ </p>
324
331
 
325
332
 
326
333
  </div>
@@ -382,8 +389,9 @@
382
389
 
383
390
  </p><div class="docstring">
384
391
  <div class="discussion">
385
-
386
- <p>The position of the color</p>
392
+ <p>
393
+ The position of the color
394
+ </p>
387
395
 
388
396
 
389
397
  </div>
@@ -442,8 +450,9 @@
442
450
 
443
451
  </p><div class="docstring">
444
452
  <div class="discussion">
445
-
446
- <p>Serializes the gradientStop</p>
453
+ <p>
454
+ Serializes the gradientStop
455
+ </p>
447
456
 
448
457
 
449
458
  </div>
@@ -462,8 +471,9 @@
462
471
 
463
472
 
464
473
  &mdash;
465
- <div class='inline'>
466
- <p>The document builder instance this objects xml will be added to.</p>
474
+ <div class='inline'><p>
475
+ The document builder instance this objects xml will be added to.
476
+ </p>
467
477
  </div>
468
478
 
469
479
  </li>
@@ -507,7 +517,7 @@
507
517
  </div>
508
518
 
509
519
  <div id="footer">
510
- Generated on Wed Nov 30 08:53:51 2011 by
520
+ Generated on Mon Dec 5 14:21:18 2011 by
511
521
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
512
522
  0.7.3 (ruby-1.8.7).
513
523
  </div>
@@ -97,13 +97,15 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'>
101
- <p>The recommended way to manage charts is Worksheet#add_chart</p>
100
+ <div class='inline'><p>
101
+ The recommended way to manage charts is Worksheet#add_chart
102
+ </p>
102
103
  </div>
103
104
  </div>
104
105
 
105
-
106
- <p>A graphic frame defines a container for a chart object</p>
106
+ <p>
107
+ A graphic frame defines a container for a chart object
108
+ </p>
107
109
 
108
110
 
109
111
  </div>
@@ -142,8 +144,9 @@
142
144
 
143
145
 
144
146
 
145
- <span class="summary_desc"><div class='inline'>
146
- <p>A anchor that holds this frame.</p>
147
+ <span class="summary_desc"><div class='inline'><p>
148
+ A anchor that holds this frame.
149
+ </p>
147
150
  </div></span>
148
151
 
149
152
  </li>
@@ -168,8 +171,9 @@
168
171
 
169
172
 
170
173
 
171
- <span class="summary_desc"><div class='inline'>
172
- <p>A reference to the chart object associated with this frame.</p>
174
+ <span class="summary_desc"><div class='inline'><p>
175
+ A reference to the chart object associated with this frame.
176
+ </p>
173
177
  </div></span>
174
178
 
175
179
  </li>
@@ -206,8 +210,9 @@
206
210
 
207
211
 
208
212
 
209
- <span class="summary_desc"><div class='inline'>
210
- <p>Creates a new GraphicFrame object.</p>
213
+ <span class="summary_desc"><div class='inline'><p>
214
+ Creates a new GraphicFrame object.
215
+ </p>
211
216
  </div></span>
212
217
 
213
218
  </li>
@@ -229,8 +234,9 @@
229
234
 
230
235
 
231
236
 
232
- <span class="summary_desc"><div class='inline'>
233
- <p>The relationship id for this graphic.</p>
237
+ <span class="summary_desc"><div class='inline'><p>
238
+ The relationship id for this graphic.
239
+ </p>
234
240
  </div></span>
235
241
 
236
242
  </li>
@@ -252,8 +258,9 @@
252
258
 
253
259
 
254
260
 
255
- <span class="summary_desc"><div class='inline'>
256
- <p>Serializes the graphic frame.</p>
261
+ <span class="summary_desc"><div class='inline'><p>
262
+ Serializes the graphic frame.
263
+ </p>
257
264
  </div></span>
258
265
 
259
266
  </li>
@@ -274,8 +281,9 @@
274
281
 
275
282
  </p><div class="docstring">
276
283
  <div class="discussion">
277
-
278
- <p>Creates a new GraphicFrame object</p>
284
+ <p>
285
+ Creates a new GraphicFrame object
286
+ </p>
279
287
 
280
288
 
281
289
  </div>
@@ -352,8 +360,9 @@
352
360
 
353
361
  </p><div class="docstring">
354
362
  <div class="discussion">
355
-
356
- <p>A anchor that holds this frame</p>
363
+ <p>
364
+ A anchor that holds this frame
365
+ </p>
357
366
 
358
367
 
359
368
  </div>
@@ -408,8 +417,9 @@
408
417
 
409
418
  </p><div class="docstring">
410
419
  <div class="discussion">
411
-
412
- <p>A reference to the chart object associated with this frame</p>
420
+ <p>
421
+ A reference to the chart object associated with this frame
422
+ </p>
413
423
 
414
424
 
415
425
  </div>
@@ -468,8 +478,9 @@
468
478
 
469
479
  </p><div class="docstring">
470
480
  <div class="discussion">
471
-
472
- <p>The relationship id for this graphic</p>
481
+ <p>
482
+ The relationship id for this graphic
483
+ </p>
473
484
 
474
485
 
475
486
  </div>
@@ -521,8 +532,9 @@
521
532
 
522
533
  </p><div class="docstring">
523
534
  <div class="discussion">
524
-
525
- <p>Serializes the graphic frame</p>
535
+ <p>
536
+ Serializes the graphic frame
537
+ </p>
526
538
 
527
539
 
528
540
  </div>
@@ -541,8 +553,9 @@
541
553
 
542
554
 
543
555
  &mdash;
544
- <div class='inline'>
545
- <p>The document builder instance this objects xml will be added to.</p>
556
+ <div class='inline'><p>
557
+ The document builder instance this objects xml will be added to.
558
+ </p>
546
559
  </div>
547
560
 
548
561
  </li>
@@ -620,7 +633,7 @@
620
633
  </div>
621
634
 
622
635
  <div id="footer">
623
- Generated on Wed Nov 30 08:53:43 2011 by
636
+ Generated on Mon Dec 5 14:21:07 2011 by
624
637
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
625
638
  0.7.3 (ruby-1.8.7).
626
639
  </div>