axlsx 1.0.10a → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/Gemfile +6 -2
  2. data/Gemfile.lock +9 -13
  3. data/README.md +15 -57
  4. data/axlsx.gemspec +4 -0
  5. data/doc/Axlsx.html +247 -361
  6. data/doc/Axlsx/App.html +159 -237
  7. data/doc/Axlsx/Ar.html +11 -15
  8. data/doc/Axlsx/Ar/ClassMethods.html +12 -16
  9. data/doc/Axlsx/Ar/InstanceMethods.html +5 -6
  10. data/doc/Axlsx/Ar/SingletonMethods.html +58 -50
  11. data/doc/Axlsx/Axis.html +51 -75
  12. data/doc/Axlsx/Bar3DChart.html +53 -75
  13. data/doc/Axlsx/BarSeries.html +31 -45
  14. data/doc/Axlsx/Border.html +50 -70
  15. data/doc/Axlsx/BorderPr.html +62 -80
  16. data/doc/Axlsx/CatAxis.html +43 -62
  17. data/doc/Axlsx/CatAxisData.html +16 -23
  18. data/doc/Axlsx/Cell.html +142 -215
  19. data/doc/Axlsx/CellAlignment.html +75 -103
  20. data/doc/Axlsx/CellProtection.html +30 -44
  21. data/doc/Axlsx/CellStyle.html +46 -66
  22. data/doc/Axlsx/Chart.html +96 -139
  23. data/doc/Axlsx/Color.html +34 -50
  24. data/doc/Axlsx/ContentType.html +14 -20
  25. data/doc/Axlsx/Core.html +20 -29
  26. data/doc/Axlsx/DataTypeValidator.html +19 -27
  27. data/doc/Axlsx/Default.html +27 -39
  28. data/doc/Axlsx/Drawing.html +70 -104
  29. data/doc/Axlsx/Fill.html +23 -33
  30. data/doc/Axlsx/Font.html +98 -132
  31. data/doc/Axlsx/GradientFill.html +48 -70
  32. data/doc/Axlsx/GradientStop.html +21 -31
  33. data/doc/Axlsx/GraphicFrame.html +27 -40
  34. data/doc/Axlsx/Line3DChart.html +43 -62
  35. data/doc/Axlsx/LineSeries.html +25 -37
  36. data/doc/Axlsx/Marker.html +43 -63
  37. data/doc/Axlsx/NumFmt.html +65 -79
  38. data/doc/Axlsx/OneCellAnchor.html +54 -78
  39. data/doc/Axlsx/Override.html +27 -39
  40. data/doc/Axlsx/Package.html +70 -96
  41. data/doc/Axlsx/PatternFill.html +51 -66
  42. data/doc/Axlsx/Pic.html +76 -110
  43. data/doc/Axlsx/Pie3DChart.html +16 -23
  44. data/doc/Axlsx/PieSeries.html +30 -44
  45. data/doc/Axlsx/RegexValidator.html +10 -14
  46. data/doc/Axlsx/Relationship.html +27 -40
  47. data/doc/Axlsx/Relationships.html +14 -20
  48. data/doc/Axlsx/RestrictionValidator.html +17 -25
  49. data/doc/Axlsx/Row.html +53 -73
  50. data/doc/Axlsx/Scaling.html +31 -46
  51. data/doc/Axlsx/SerAxis.html +33 -49
  52. data/doc/Axlsx/Series.html +35 -51
  53. data/doc/Axlsx/SeriesTitle.html +10 -14
  54. data/doc/Axlsx/Styles.html +156 -210
  55. data/doc/Axlsx/TableStyle.html +32 -47
  56. data/doc/Axlsx/TableStyleElement.html +61 -75
  57. data/doc/Axlsx/TableStyles.html +28 -42
  58. data/doc/Axlsx/Title.html +25 -36
  59. data/doc/Axlsx/TwoCellAnchor.html +58 -83
  60. data/doc/Axlsx/ValAxis.html +24 -35
  61. data/doc/Axlsx/ValAxisData.html +9 -13
  62. data/doc/Axlsx/View3D.html +43 -64
  63. data/doc/Axlsx/Workbook.html +98 -135
  64. data/doc/Axlsx/Worksheet.html +143 -210
  65. data/doc/Axlsx/Xf.html +77 -114
  66. data/doc/_index.html +7 -43
  67. data/doc/class_list.html +1 -1
  68. data/doc/css/style.css +1 -1
  69. data/doc/file.LICENSE.html +21 -25
  70. data/doc/file.README.html +17 -57
  71. data/doc/index.html +17 -57
  72. data/doc/js/app.js +4 -4
  73. data/doc/method_list.html +446 -470
  74. data/doc/top-level-namespace.html +1 -1
  75. data/examples/example.rb +1 -1
  76. data/lib/axlsx.rb +3 -6
  77. data/lib/axlsx/stylesheet/styles.rb +1 -1
  78. data/lib/axlsx/version.rb +1 -1
  79. data/lib/axlsx/workbook/worksheet/cell.rb +8 -13
  80. data/test/rels/tc_relationships.rb +2 -6
  81. data/test/workbook/worksheet/tc_worksheet.rb +1 -1
  82. metadata +57 -17
  83. data/lib/axlsx/ar.rb +0 -72
@@ -94,10 +94,9 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
- <p>
98
- An default content part. These parts are automatically created by for you
99
- based on the content of your package.
100
- </p>
97
+
98
+ <p>An default content part. These parts are automatically created by for you
99
+ based on the content of your package.</p>
101
100
 
102
101
 
103
102
  </div>
@@ -129,9 +128,8 @@ based on the content of your package.
129
128
 
130
129
 
131
130
 
132
- <span class="summary_desc"><div class='inline'><p>
133
- The type of content.
134
- </p>
131
+ <span class="summary_desc"><div class='inline'>
132
+ <p>The type of content.</p>
135
133
  </div></span>
136
134
 
137
135
  </li>
@@ -156,9 +154,8 @@ The type of content.
156
154
 
157
155
 
158
156
 
159
- <span class="summary_desc"><div class='inline'><p>
160
- The extension of the content type.
161
- </p>
157
+ <span class="summary_desc"><div class='inline'>
158
+ <p>The extension of the content type.</p>
162
159
  </div></span>
163
160
 
164
161
  </li>
@@ -195,9 +192,8 @@ The extension of the content type.
195
192
 
196
193
 
197
194
 
198
- <span class="summary_desc"><div class='inline'><p>
199
- Creates a new Default object.
200
- </p>
195
+ <span class="summary_desc"><div class='inline'>
196
+ <p>Creates a new Default object.</p>
201
197
  </div></span>
202
198
 
203
199
  </li>
@@ -219,9 +215,8 @@ Creates a new Default object.
219
215
 
220
216
 
221
217
 
222
- <span class="summary_desc"><div class='inline'><p>
223
- Serializes the object to xml.
224
- </p>
218
+ <span class="summary_desc"><div class='inline'>
219
+ <p>Serializes the object to xml.</p>
225
220
  </div></span>
226
221
 
227
222
  </li>
@@ -242,9 +237,8 @@ Serializes the object to xml.
242
237
 
243
238
  </p><div class="docstring">
244
239
  <div class="discussion">
245
- <p>
246
- Creates a new Default object
247
- </p>
240
+
241
+ <p>Creates a new Default object</p>
248
242
 
249
243
 
250
244
  </div>
@@ -265,9 +259,8 @@ Creates a new Default object
265
259
 
266
260
 
267
261
  &mdash;
268
- <div class='inline'><p>
269
- a customizable set of options
270
- </p>
262
+ <div class='inline'>
263
+ <p>a customizable set of options</p>
271
264
  </div>
272
265
 
273
266
  </li>
@@ -312,10 +305,9 @@ a customizable set of options
312
305
 
313
306
 
314
307
  &mdash;
315
- <div class='inline'><p>
316
- An argument error is raised if both Extension and ContentType are not
317
- specified.
318
- </p>
308
+ <div class='inline'>
309
+ <p>An argument error is raised if both Extension and ContentType are not
310
+ specified.</p>
319
311
  </div>
320
312
 
321
313
  </li>
@@ -367,9 +359,8 @@ specified.
367
359
 
368
360
  </p><div class="docstring">
369
361
  <div class="discussion">
370
- <p>
371
- The type of content.
372
- </p>
362
+
363
+ <p>The type of content.</p>
373
364
 
374
365
 
375
366
  </div>
@@ -424,9 +415,8 @@ The type of content.
424
415
 
425
416
  </p><div class="docstring">
426
417
  <div class="discussion">
427
- <p>
428
- The extension of the content type.
429
- </p>
418
+
419
+ <p>The extension of the content type.</p>
430
420
 
431
421
 
432
422
  </div>
@@ -485,9 +475,8 @@ The extension of the content type.
485
475
 
486
476
  </p><div class="docstring">
487
477
  <div class="discussion">
488
- <p>
489
- Serializes the object to xml
490
- </p>
478
+
479
+ <p>Serializes the object to xml</p>
491
480
 
492
481
 
493
482
  </div>
@@ -506,9 +495,8 @@ Serializes the object to xml
506
495
 
507
496
 
508
497
  &mdash;
509
- <div class='inline'><p>
510
- The document builder instance this objects xml will be added to.
511
- </p>
498
+ <div class='inline'>
499
+ <p>The document builder instance this objects xml will be added to.</p>
512
500
  </div>
513
501
 
514
502
  </li>
@@ -556,7 +544,7 @@ The document builder instance this objects xml will be added to.
556
544
  </div>
557
545
 
558
546
  <div id="footer">
559
- Generated on Sun Nov 27 21:54:15 2011 by
547
+ Generated on Wed Nov 30 08:53:43 2011 by
560
548
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
561
549
  0.7.3 (ruby-1.8.7).
562
550
  </div>
@@ -97,19 +97,17 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'><p>
101
- The recommended way to manage drawings is to use the Worksheet.add_chart
102
- method.
103
- </p>
100
+ <div class='inline'>
101
+ <p>The recommended way to manage drawings is to use the Worksheet.add_chart
102
+ method.</p>
104
103
  </div>
105
104
  </div>
106
105
 
107
- <p>
108
- A Drawing is a canvas for charts. Each worksheet has a single drawing that
106
+
107
+ <p>A Drawing is a canvas for charts. Each worksheet has a single drawing that
109
108
  manages anchors. The anchors reference the charts via graphical frames.
110
109
  This is not a trivial relationship so please do follow the advice in the
111
- note. see README for an example of how to create a chart.
112
- </p>
110
+ note. see README for an example of how to create a chart.</p>
113
111
 
114
112
 
115
113
  </div>
@@ -150,10 +148,9 @@ note. see README for an example of how to create a chart.
150
148
 
151
149
 
152
150
 
153
- <span class="summary_desc"><div class='inline'><p>
154
- A collection of anchors for this drawing only TwoCellAnchors are supported
155
- in this version.
156
- </p>
151
+ <span class="summary_desc"><div class='inline'>
152
+ <p>A collection of anchors for this drawing only TwoCellAnchors are supported
153
+ in this version.</p>
157
154
  </div></span>
158
155
 
159
156
  </li>
@@ -178,9 +175,8 @@ in this version.
178
175
 
179
176
 
180
177
 
181
- <span class="summary_desc"><div class='inline'><p>
182
- The worksheet that owns the drawing.
183
- </p>
178
+ <span class="summary_desc"><div class='inline'>
179
+ <p>The worksheet that owns the drawing.</p>
184
180
  </div></span>
185
181
 
186
182
  </li>
@@ -215,9 +211,8 @@ The worksheet that owns the drawing.
215
211
 
216
212
 
217
213
 
218
- <span class="summary_desc"><div class='inline'><p>
219
- Adds a chart to the drawing.
220
- </p>
214
+ <span class="summary_desc"><div class='inline'>
215
+ <p>Adds a chart to the drawing.</p>
221
216
  </div></span>
222
217
 
223
218
  </li>
@@ -239,9 +234,8 @@ Adds a chart to the drawing.
239
234
 
240
235
 
241
236
 
242
- <span class="summary_desc"><div class='inline'><p>
243
- Adds an image to the chart.
244
- </p>
237
+ <span class="summary_desc"><div class='inline'>
238
+ <p>Adds an image to the chart.</p>
245
239
  </div></span>
246
240
 
247
241
  </li>
@@ -263,9 +257,8 @@ Adds an image to the chart.
263
257
 
264
258
 
265
259
 
266
- <span class="summary_desc"><div class='inline'><p>
267
- An array of charts that are associated with this drawing&#8217;s anchors.
268
- </p>
260
+ <span class="summary_desc"><div class='inline'>
261
+ <p>An array of charts that are associated with this drawings anchors.</p>
269
262
  </div></span>
270
263
 
271
264
  </li>
@@ -287,10 +280,9 @@ An array of charts that are associated with this drawing&#8217;s anchors.
287
280
 
288
281
 
289
282
 
290
- <span class="summary_desc"><div class='inline'><p>
291
- An array of image objects that are associated with this drawing&#8217;s
292
- anchors.
293
- </p>
283
+ <span class="summary_desc"><div class='inline'>
284
+ <p>An array of image objects that are associated with this drawings
285
+ anchors.</p>
294
286
  </div></span>
295
287
 
296
288
  </li>
@@ -312,10 +304,8 @@ anchors.
312
304
 
313
305
 
314
306
 
315
- <span class="summary_desc"><div class='inline'><p>
316
- The index of this drawing in the owning workbooks&#8217;s drawings
317
- collection.
318
- </p>
307
+ <span class="summary_desc"><div class='inline'>
308
+ <p>The index of this drawing in the owning workbookss drawings collection.</p>
319
309
  </div></span>
320
310
 
321
311
  </li>
@@ -339,9 +329,8 @@ collection.
339
329
 
340
330
 
341
331
 
342
- <span class="summary_desc"><div class='inline'><p>
343
- Creates a new Drawing object.
344
- </p>
332
+ <span class="summary_desc"><div class='inline'>
333
+ <p>Creates a new Drawing object.</p>
345
334
  </div></span>
346
335
 
347
336
  </li>
@@ -363,9 +352,8 @@ Creates a new Drawing object.
363
352
 
364
353
 
365
354
 
366
- <span class="summary_desc"><div class='inline'><p>
367
- The part name for this drawing.
368
- </p>
355
+ <span class="summary_desc"><div class='inline'>
356
+ <p>The part name for this drawing.</p>
369
357
  </div></span>
370
358
 
371
359
  </li>
@@ -387,9 +375,8 @@ The part name for this drawing.
387
375
 
388
376
 
389
377
 
390
- <span class="summary_desc"><div class='inline'><p>
391
- The drawing&#8217;s relationships.
392
- </p>
378
+ <span class="summary_desc"><div class='inline'>
379
+ <p>The drawings relationships.</p>
393
380
  </div></span>
394
381
 
395
382
  </li>
@@ -411,9 +398,8 @@ The drawing&#8217;s relationships.
411
398
 
412
399
 
413
400
 
414
- <span class="summary_desc"><div class='inline'><p>
415
- The relational part name for this drawing.
416
- </p>
401
+ <span class="summary_desc"><div class='inline'>
402
+ <p>The relational part name for this drawing.</p>
417
403
  </div></span>
418
404
 
419
405
  </li>
@@ -435,9 +421,8 @@ The relational part name for this drawing.
435
421
 
436
422
 
437
423
 
438
- <span class="summary_desc"><div class='inline'><p>
439
- The relation reference id for this drawing.
440
- </p>
424
+ <span class="summary_desc"><div class='inline'>
425
+ <p>The relation reference id for this drawing.</p>
441
426
  </div></span>
442
427
 
443
428
  </li>
@@ -459,9 +444,8 @@ The relation reference id for this drawing.
459
444
 
460
445
 
461
446
 
462
- <span class="summary_desc"><div class='inline'><p>
463
- Serializes the drawing.
464
- </p>
447
+ <span class="summary_desc"><div class='inline'>
448
+ <p>Serializes the drawing.</p>
465
449
  </div></span>
466
450
 
467
451
  </li>
@@ -482,9 +466,8 @@ Serializes the drawing.
482
466
 
483
467
  </p><div class="docstring">
484
468
  <div class="discussion">
485
- <p>
486
- Creates a new Drawing object
487
- </p>
469
+
470
+ <p>Creates a new Drawing object</p>
488
471
 
489
472
 
490
473
  </div>
@@ -503,9 +486,8 @@ Creates a new Drawing object
503
486
 
504
487
 
505
488
  &mdash;
506
- <div class='inline'><p>
507
- The worksheet that owns this drawing
508
- </p>
489
+ <div class='inline'>
490
+ <p>The worksheet that owns this drawing</p>
509
491
  </div>
510
492
 
511
493
  </li>
@@ -558,10 +540,9 @@ The worksheet that owns this drawing
558
540
 
559
541
  </p><div class="docstring">
560
542
  <div class="discussion">
561
- <p>
562
- A collection of anchors for this drawing only TwoCellAnchors are supported
563
- in this version
564
- </p>
543
+
544
+ <p>A collection of anchors for this drawing only TwoCellAnchors are supported
545
+ in this version</p>
565
546
 
566
547
 
567
548
  </div>
@@ -616,9 +597,8 @@ in this version
616
597
 
617
598
  </p><div class="docstring">
618
599
  <div class="discussion">
619
- <p>
620
- The worksheet that owns the drawing
621
- </p>
600
+
601
+ <p>The worksheet that owns the drawing</p>
622
602
 
623
603
 
624
604
  </div>
@@ -680,16 +660,14 @@ The worksheet that owns the drawing
680
660
 
681
661
  <div class="note notetag">
682
662
  <strong>Note:</strong>
683
- <div class='inline'><p>
684
- The recommended way to manage charts is to use Worksheet.add_chart. Please
685
- refer to that method for documentation.
686
- </p>
663
+ <div class='inline'>
664
+ <p>The recommended way to manage charts is to use Worksheet.add_chart. Please
665
+ refer to that method for documentation.</p>
687
666
  </div>
688
667
  </div>
689
668
 
690
- <p>
691
- Adds a chart to the drawing.
692
- </p>
669
+
670
+ <p>Adds a chart to the drawing.</p>
693
671
 
694
672
 
695
673
  </div>
@@ -740,16 +718,14 @@ Adds a chart to the drawing.
740
718
 
741
719
  <div class="note notetag">
742
720
  <strong>Note:</strong>
743
- <div class='inline'><p>
744
- The recommended way to manage images is to use Worksheet.add_image. Please
745
- refer to that method for documentation.
746
- </p>
721
+ <div class='inline'>
722
+ <p>The recommended way to manage images is to use Worksheet.add_image. Please
723
+ refer to that method for documentation.</p>
747
724
  </div>
748
725
  </div>
749
726
 
750
- <p>
751
- Adds an image to the chart
752
- </p>
727
+
728
+ <p>Adds an image to the chart</p>
753
729
 
754
730
 
755
731
  </div>
@@ -797,9 +773,8 @@ Adds an image to the chart
797
773
 
798
774
  </p><div class="docstring">
799
775
  <div class="discussion">
800
- <p>
801
- An array of charts that are associated with this drawing&#8217;s anchors
802
- </p>
776
+
777
+ <p>An array of charts that are associated with this drawings anchors</p>
803
778
 
804
779
 
805
780
  </div>
@@ -853,10 +828,8 @@ An array of charts that are associated with this drawing&#8217;s anchors
853
828
 
854
829
  </p><div class="docstring">
855
830
  <div class="discussion">
856
- <p>
857
- An array of image objects that are associated with this drawing&#8217;s
858
- anchors
859
- </p>
831
+
832
+ <p>An array of image objects that are associated with this drawings anchors</p>
860
833
 
861
834
 
862
835
  </div>
@@ -910,10 +883,8 @@ anchors
910
883
 
911
884
  </p><div class="docstring">
912
885
  <div class="discussion">
913
- <p>
914
- The index of this drawing in the owning workbooks&#8217;s drawings
915
- collection.
916
- </p>
886
+
887
+ <p>The index of this drawing in the owning workbookss drawings collection.</p>
917
888
 
918
889
 
919
890
  </div>
@@ -965,9 +936,8 @@ collection.
965
936
 
966
937
  </p><div class="docstring">
967
938
  <div class="discussion">
968
- <p>
969
- The part name for this drawing
970
- </p>
939
+
940
+ <p>The part name for this drawing</p>
971
941
 
972
942
 
973
943
  </div>
@@ -1019,9 +989,8 @@ The part name for this drawing
1019
989
 
1020
990
  </p><div class="docstring">
1021
991
  <div class="discussion">
1022
- <p>
1023
- The drawing&#8217;s relationships.
1024
- </p>
992
+
993
+ <p>The drawings relationships.</p>
1025
994
 
1026
995
 
1027
996
  </div>
@@ -1087,9 +1056,8 @@ The drawing&#8217;s relationships.
1087
1056
 
1088
1057
  </p><div class="docstring">
1089
1058
  <div class="discussion">
1090
- <p>
1091
- The relational part name for this drawing
1092
- </p>
1059
+
1060
+ <p>The relational part name for this drawing</p>
1093
1061
 
1094
1062
 
1095
1063
  </div>
@@ -1141,9 +1109,8 @@ The relational part name for this drawing
1141
1109
 
1142
1110
  </p><div class="docstring">
1143
1111
  <div class="discussion">
1144
- <p>
1145
- The relation reference id for this drawing
1146
- </p>
1112
+
1113
+ <p>The relation reference id for this drawing</p>
1147
1114
 
1148
1115
 
1149
1116
  </div>
@@ -1195,9 +1162,8 @@ The relation reference id for this drawing
1195
1162
 
1196
1163
  </p><div class="docstring">
1197
1164
  <div class="discussion">
1198
- <p>
1199
- Serializes the drawing
1200
- </p>
1165
+
1166
+ <p>Serializes the drawing</p>
1201
1167
 
1202
1168
 
1203
1169
  </div>
@@ -1255,7 +1221,7 @@ Serializes the drawing
1255
1221
  </div>
1256
1222
 
1257
1223
  <div id="footer">
1258
- Generated on Sun Nov 27 21:54:28 2011 by
1224
+ Generated on Wed Nov 30 08:53:37 2011 by
1259
1225
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1260
1226
  0.7.3 (ruby-1.8.7).
1261
1227
  </div>