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
@@ -97,14 +97,16 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'>
101
- <p>Using Styles#add_style is the recommended way to manage cell alignment.</p>
100
+ <div class='inline'><p>
101
+ Using Styles#add_style is the recommended way to manage cell alignment.
102
+ </p>
102
103
  </div>
103
104
  </div>
104
105
 
105
-
106
- <p>CellAlignment stores information about the cell alignment of a style Xf
107
- Object.</p>
106
+ <p>
107
+ CellAlignment stores information about the cell alignment of a style Xf
108
+ Object.
109
+ </p>
108
110
 
109
111
 
110
112
  </div>
@@ -143,8 +145,9 @@ Object.</p>
143
145
 
144
146
 
145
147
 
146
- <span class="summary_desc"><div class='inline'>
147
- <p>The horizontal alignment of the cell.</p>
148
+ <span class="summary_desc"><div class='inline'><p>
149
+ The horizontal alignment of the cell.
150
+ </p>
148
151
  </div></span>
149
152
 
150
153
  </li>
@@ -169,8 +172,9 @@ Object.</p>
169
172
 
170
173
 
171
174
 
172
- <span class="summary_desc"><div class='inline'>
173
- <p>The amount of indent.</p>
175
+ <span class="summary_desc"><div class='inline'><p>
176
+ The amount of indent.
177
+ </p>
174
178
  </div></span>
175
179
 
176
180
  </li>
@@ -195,8 +199,9 @@ Object.</p>
195
199
 
196
200
 
197
201
 
198
- <span class="summary_desc"><div class='inline'>
199
- <p>Indicate if the last line should be justified.</p>
202
+ <span class="summary_desc"><div class='inline'><p>
203
+ Indicate if the last line should be justified.
204
+ </p>
200
205
  </div></span>
201
206
 
202
207
  </li>
@@ -221,9 +226,10 @@ Object.</p>
221
226
 
222
227
 
223
228
 
224
- <span class="summary_desc"><div class='inline'>
225
- <p>The reading order of the text 0 Context Dependent 1 Left-to-Right 2
226
- Right-to-Left.</p>
229
+ <span class="summary_desc"><div class='inline'><p>
230
+ The reading order of the text 0 Context Dependent 1 Left-to-Right 2
231
+ Right-to-Left.
232
+ </p>
227
233
  </div></span>
228
234
 
229
235
  </li>
@@ -248,8 +254,9 @@ Right-to-Left.</p>
248
254
 
249
255
 
250
256
 
251
- <span class="summary_desc"><div class='inline'>
252
- <p>The amount of relativeIndent.</p>
257
+ <span class="summary_desc"><div class='inline'><p>
258
+ The amount of relativeIndent.
259
+ </p>
253
260
  </div></span>
254
261
 
255
262
  </li>
@@ -274,8 +281,9 @@ Right-to-Left.</p>
274
281
 
275
282
 
276
283
 
277
- <span class="summary_desc"><div class='inline'>
278
- <p>Indicate if the text should be shrunk to the fit in the cell.</p>
284
+ <span class="summary_desc"><div class='inline'><p>
285
+ Indicate if the text should be shrunk to the fit in the cell.
286
+ </p>
279
287
  </div></span>
280
288
 
281
289
  </li>
@@ -300,8 +308,9 @@ Right-to-Left.</p>
300
308
 
301
309
 
302
310
 
303
- <span class="summary_desc"><div class='inline'>
304
- <p>The textRotation of the cell.</p>
311
+ <span class="summary_desc"><div class='inline'><p>
312
+ The textRotation of the cell.
313
+ </p>
305
314
  </div></span>
306
315
 
307
316
  </li>
@@ -326,8 +335,9 @@ Right-to-Left.</p>
326
335
 
327
336
 
328
337
 
329
- <span class="summary_desc"><div class='inline'>
330
- <p>The vertical alignment of the cell.</p>
338
+ <span class="summary_desc"><div class='inline'><p>
339
+ The vertical alignment of the cell.
340
+ </p>
331
341
  </div></span>
332
342
 
333
343
  </li>
@@ -352,8 +362,9 @@ Right-to-Left.</p>
352
362
 
353
363
 
354
364
 
355
- <span class="summary_desc"><div class='inline'>
356
- <p>Indicate if the text of the cell should wrap.</p>
365
+ <span class="summary_desc"><div class='inline'><p>
366
+ Indicate if the text of the cell should wrap.
367
+ </p>
357
368
  </div></span>
358
369
 
359
370
  </li>
@@ -390,8 +401,9 @@ Right-to-Left.</p>
390
401
 
391
402
 
392
403
 
393
- <span class="summary_desc"><div class='inline'>
394
- <p>Create a new cell_alignment object.</p>
404
+ <span class="summary_desc"><div class='inline'><p>
405
+ Create a new cell_alignment object.
406
+ </p>
395
407
  </div></span>
396
408
 
397
409
  </li>
@@ -413,8 +425,9 @@ Right-to-Left.</p>
413
425
 
414
426
 
415
427
 
416
- <span class="summary_desc"><div class='inline'>
417
- <p>Serializes the cell alignment.</p>
428
+ <span class="summary_desc"><div class='inline'><p>
429
+ Serializes the cell alignment.
430
+ </p>
418
431
  </div></span>
419
432
 
420
433
  </li>
@@ -435,8 +448,9 @@ Right-to-Left.</p>
435
448
 
436
449
  </p><div class="docstring">
437
450
  <div class="discussion">
438
-
439
- <p>Create a new cell_alignment object</p>
451
+ <p>
452
+ Create a new cell_alignment object
453
+ </p>
440
454
 
441
455
 
442
456
  </div>
@@ -457,8 +471,9 @@ Right-to-Left.</p>
457
471
 
458
472
 
459
473
  &mdash;
460
- <div class='inline'>
461
- <p>a customizable set of options</p>
474
+ <div class='inline'><p>
475
+ a customizable set of options
476
+ </p>
462
477
  </div>
463
478
 
464
479
  </li>
@@ -602,23 +617,25 @@ Right-to-Left.</p>
602
617
 
603
618
  <div class="note notetag">
604
619
  <strong>Note:</strong>
605
- <div class='inline'>
606
- <p>The horizontal cell alignement style must be one of</p>
607
-
608
- <pre class="code"><span class='symbol val'>:general</span>
609
- <span class='symbol val'>:left</span>
610
- <span class='symbol val'>:center</span>
611
- <span class='symbol val'>:right</span>
612
- <span class='symbol val'>:fill</span>
613
- <span class='symbol val'>:justify</span>
614
- <span class='symbol val'>:centerContinuous</span>
615
- <span class='symbol val'>:distributed</span>
620
+ <div class='inline'><p>
621
+ The horizontal cell alignement style must be one of
622
+ </p>
623
+ <pre class="code">
624
+ <span class='symbol val'>:general</span>
625
+ <span class='symbol val'>:left</span>
626
+ <span class='symbol val'>:center</span>
627
+ <span class='symbol val'>:right</span>
628
+ <span class='symbol val'>:fill</span>
629
+ <span class='symbol val'>:justify</span>
630
+ <span class='symbol val'>:centerContinuous</span>
631
+ <span class='symbol val'>:distributed</span>
616
632
  </pre>
617
633
  </div>
618
634
  </div>
619
635
 
620
-
621
- <p>The horizontal alignment of the cell.</p>
636
+ <p>
637
+ The horizontal alignment of the cell.
638
+ </p>
622
639
 
623
640
 
624
641
  </div>
@@ -673,8 +690,9 @@ Right-to-Left.</p>
673
690
 
674
691
  </p><div class="docstring">
675
692
  <div class="discussion">
676
-
677
- <p>The amount of indent</p>
693
+ <p>
694
+ The amount of indent
695
+ </p>
678
696
 
679
697
 
680
698
  </div>
@@ -729,8 +747,9 @@ Right-to-Left.</p>
729
747
 
730
748
  </p><div class="docstring">
731
749
  <div class="discussion">
732
-
733
- <p>Indicate if the last line should be justified.</p>
750
+ <p>
751
+ Indicate if the last line should be justified.
752
+ </p>
734
753
 
735
754
 
736
755
  </div>
@@ -785,9 +804,10 @@ Right-to-Left.</p>
785
804
 
786
805
  </p><div class="docstring">
787
806
  <div class="discussion">
788
-
789
- <p>The reading order of the text 0 Context Dependent 1 Left-to-Right 2
790
- Right-to-Left</p>
807
+ <p>
808
+ The reading order of the text 0 Context Dependent 1 Left-to-Right 2
809
+ Right-to-Left
810
+ </p>
791
811
 
792
812
 
793
813
  </div>
@@ -842,8 +862,9 @@ Right-to-Left</p>
842
862
 
843
863
  </p><div class="docstring">
844
864
  <div class="discussion">
845
-
846
- <p>The amount of relativeIndent</p>
865
+ <p>
866
+ The amount of relativeIndent
867
+ </p>
847
868
 
848
869
 
849
870
  </div>
@@ -898,8 +919,9 @@ Right-to-Left</p>
898
919
 
899
920
  </p><div class="docstring">
900
921
  <div class="discussion">
901
-
902
- <p>Indicate if the text should be shrunk to the fit in the cell.</p>
922
+ <p>
923
+ Indicate if the text should be shrunk to the fit in the cell.
924
+ </p>
903
925
 
904
926
 
905
927
  </div>
@@ -954,8 +976,9 @@ Right-to-Left</p>
954
976
 
955
977
  </p><div class="docstring">
956
978
  <div class="discussion">
957
-
958
- <p>The textRotation of the cell.</p>
979
+ <p>
980
+ The textRotation of the cell.
981
+ </p>
959
982
 
960
983
 
961
984
  </div>
@@ -1013,20 +1036,22 @@ Right-to-Left</p>
1013
1036
 
1014
1037
  <div class="note notetag">
1015
1038
  <strong>Note:</strong>
1016
- <div class='inline'>
1017
- <p>The vertical cell allingment style must be one of the following:</p>
1018
-
1019
- <pre class="code"><span class='symbol val'>:top</span>
1020
- <span class='symbol val'>:center</span>
1021
- <span class='symbol val'>:bottom</span>
1022
- <span class='symbol val'>:justify</span>
1023
- <span class='symbol val'>:distributed</span>
1039
+ <div class='inline'><p>
1040
+ The vertical cell allingment style must be one of the following:
1041
+ </p>
1042
+ <pre class="code">
1043
+ <span class='symbol val'>:top</span>
1044
+ <span class='symbol val'>:center</span>
1045
+ <span class='symbol val'>:bottom</span>
1046
+ <span class='symbol val'>:justify</span>
1047
+ <span class='symbol val'>:distributed</span>
1024
1048
  </pre>
1025
1049
  </div>
1026
1050
  </div>
1027
1051
 
1028
-
1029
- <p>The vertical alignment of the cell.</p>
1052
+ <p>
1053
+ The vertical alignment of the cell.
1054
+ </p>
1030
1055
 
1031
1056
 
1032
1057
  </div>
@@ -1081,8 +1106,9 @@ Right-to-Left</p>
1081
1106
 
1082
1107
  </p><div class="docstring">
1083
1108
  <div class="discussion">
1084
-
1085
- <p>Indicate if the text of the cell should wrap</p>
1109
+ <p>
1110
+ Indicate if the text of the cell should wrap
1111
+ </p>
1086
1112
 
1087
1113
 
1088
1114
  </div>
@@ -1141,8 +1167,9 @@ Right-to-Left</p>
1141
1167
 
1142
1168
  </p><div class="docstring">
1143
1169
  <div class="discussion">
1144
-
1145
- <p>Serializes the cell alignment</p>
1170
+ <p>
1171
+ Serializes the cell alignment
1172
+ </p>
1146
1173
 
1147
1174
 
1148
1175
  </div>
@@ -1161,8 +1188,9 @@ Right-to-Left</p>
1161
1188
 
1162
1189
 
1163
1190
  &mdash;
1164
- <div class='inline'>
1165
- <p>The document builder instance this objects xml will be added to.</p>
1191
+ <div class='inline'><p>
1192
+ The document builder instance this objects xml will be added to.
1193
+ </p>
1166
1194
  </div>
1167
1195
 
1168
1196
  </li>
@@ -1210,7 +1238,7 @@ Right-to-Left</p>
1210
1238
  </div>
1211
1239
 
1212
1240
  <div id="footer">
1213
- Generated on Wed Nov 30 08:53:45 2011 by
1241
+ Generated on Mon Dec 5 14:21:10 2011 by
1214
1242
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1215
1243
  0.7.3 (ruby-1.8.7).
1216
1244
  </div>
@@ -97,14 +97,16 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'>
101
- <p>Using Styles#add_style is the recommended way to manage cell protection.</p>
100
+ <div class='inline'><p>
101
+ Using Styles#add_style is the recommended way to manage cell protection.
102
+ </p>
102
103
  </div>
103
104
  </div>
104
105
 
105
-
106
- <p>CellProtection stores information about locking or hiding cells in
107
- spreadsheet.</p>
106
+ <p>
107
+ CellProtection stores information about locking or hiding cells in
108
+ spreadsheet.
109
+ </p>
108
110
 
109
111
 
110
112
  </div>
@@ -143,8 +145,9 @@ spreadsheet.</p>
143
145
 
144
146
 
145
147
 
146
- <span class="summary_desc"><div class='inline'>
147
- <p>specifies locking for cells that have the style containing this protection.</p>
148
+ <span class="summary_desc"><div class='inline'><p>
149
+ specifies locking for cells that have the style containing this protection.
150
+ </p>
148
151
  </div></span>
149
152
 
150
153
  </li>
@@ -169,8 +172,9 @@ spreadsheet.</p>
169
172
 
170
173
 
171
174
 
172
- <span class="summary_desc"><div class='inline'>
173
- <p>specifies if the cells that have the style containing this protection.</p>
175
+ <span class="summary_desc"><div class='inline'><p>
176
+ specifies if the cells that have the style containing this protection.
177
+ </p>
174
178
  </div></span>
175
179
 
176
180
  </li>
@@ -207,8 +211,9 @@ spreadsheet.</p>
207
211
 
208
212
 
209
213
 
210
- <span class="summary_desc"><div class='inline'>
211
- <p>Creates a new CellProtection.</p>
214
+ <span class="summary_desc"><div class='inline'><p>
215
+ Creates a new CellProtection.
216
+ </p>
212
217
  </div></span>
213
218
 
214
219
  </li>
@@ -230,8 +235,9 @@ spreadsheet.</p>
230
235
 
231
236
 
232
237
 
233
- <span class="summary_desc"><div class='inline'>
234
- <p>Serializes the cell protection.</p>
238
+ <span class="summary_desc"><div class='inline'><p>
239
+ Serializes the cell protection.
240
+ </p>
235
241
  </div></span>
236
242
 
237
243
  </li>
@@ -252,8 +258,9 @@ spreadsheet.</p>
252
258
 
253
259
  </p><div class="docstring">
254
260
  <div class="discussion">
255
-
256
- <p>Creates a new CellProtection</p>
261
+ <p>
262
+ Creates a new CellProtection
263
+ </p>
257
264
 
258
265
 
259
266
  </div>
@@ -274,8 +281,9 @@ spreadsheet.</p>
274
281
 
275
282
 
276
283
  &mdash;
277
- <div class='inline'>
278
- <p>a customizable set of options</p>
284
+ <div class='inline'><p>
285
+ a customizable set of options
286
+ </p>
279
287
  </div>
280
288
 
281
289
  </li>
@@ -294,8 +302,9 @@ spreadsheet.</p>
294
302
  <span class="default">
295
303
 
296
304
  </span>
297
- &mdash; <div class='inline'>
298
- <p>value for hidden protection</p>
305
+ &mdash; <div class='inline'><p>
306
+ value for hidden protection
307
+ </p>
299
308
  </div>
300
309
  </li>
301
310
 
@@ -305,8 +314,9 @@ spreadsheet.</p>
305
314
  <span class="default">
306
315
 
307
316
  </span>
308
- &mdash; <div class='inline'>
309
- <p>value for locked protection</p>
317
+ &mdash; <div class='inline'><p>
318
+ value for locked protection
319
+ </p>
310
320
  </div>
311
321
  </li>
312
322
 
@@ -357,8 +367,9 @@ spreadsheet.</p>
357
367
 
358
368
  </p><div class="docstring">
359
369
  <div class="discussion">
360
-
361
- <p>specifies locking for cells that have the style containing this protection</p>
370
+ <p>
371
+ specifies locking for cells that have the style containing this protection
372
+ </p>
362
373
 
363
374
 
364
375
  </div>
@@ -413,8 +424,9 @@ spreadsheet.</p>
413
424
 
414
425
  </p><div class="docstring">
415
426
  <div class="discussion">
416
-
417
- <p>specifies if the cells that have the style containing this protection</p>
427
+ <p>
428
+ specifies if the cells that have the style containing this protection
429
+ </p>
418
430
 
419
431
 
420
432
  </div>
@@ -473,8 +485,9 @@ spreadsheet.</p>
473
485
 
474
486
  </p><div class="docstring">
475
487
  <div class="discussion">
476
-
477
- <p>Serializes the cell protection</p>
488
+ <p>
489
+ Serializes the cell protection
490
+ </p>
478
491
 
479
492
 
480
493
  </div>
@@ -493,8 +506,9 @@ spreadsheet.</p>
493
506
 
494
507
 
495
508
  &mdash;
496
- <div class='inline'>
497
- <p>The document builder instance this objects xml will be added to.</p>
509
+ <div class='inline'><p>
510
+ The document builder instance this objects xml will be added to.
511
+ </p>
498
512
  </div>
499
513
 
500
514
  </li>
@@ -542,7 +556,7 @@ spreadsheet.</p>
542
556
  </div>
543
557
 
544
558
  <div id="footer">
545
- Generated on Wed Nov 30 08:53:49 2011 by
559
+ Generated on Mon Dec 5 14:21:06 2011 by
546
560
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
547
561
  0.7.3 (ruby-1.8.7).
548
562
  </div>