writeexcel 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. data/.document +0 -0
  2. data/.gitattributes +0 -0
  3. data/README.rdoc +9 -35
  4. data/Rakefile +0 -0
  5. data/VERSION +1 -1
  6. data/charts/chartex.rb +0 -0
  7. data/charts/demo1.rb +0 -0
  8. data/charts/demo101.bin +0 -0
  9. data/charts/demo2.rb +0 -0
  10. data/charts/demo201.bin +0 -0
  11. data/charts/demo3.rb +0 -0
  12. data/charts/demo301.bin +0 -0
  13. data/charts/demo4.rb +0 -0
  14. data/charts/demo401.bin +0 -0
  15. data/charts/demo5.rb +0 -0
  16. data/charts/demo501.bin +0 -0
  17. data/examples/a_simple.rb +0 -0
  18. data/examples/autofilter.rb +0 -0
  19. data/examples/bigfile.rb +0 -0
  20. data/examples/chart_area.rb +0 -0
  21. data/examples/chart_bar.rb +0 -0
  22. data/examples/chart_column.rb +0 -0
  23. data/examples/chart_line.rb +0 -0
  24. data/examples/chart_pie.rb +0 -0
  25. data/examples/chart_scatter.rb +0 -0
  26. data/examples/chart_stock.rb +0 -0
  27. data/examples/chess.rb +0 -0
  28. data/examples/colors.rb +0 -0
  29. data/examples/comments1.rb +0 -0
  30. data/examples/comments2.rb +0 -0
  31. data/examples/copyformat.rb +0 -0
  32. data/examples/data_validate.rb +0 -0
  33. data/examples/date_time.rb +0 -0
  34. data/examples/defined_name.rb +0 -0
  35. data/examples/demo.rb +0 -0
  36. data/examples/diag_border.rb +0 -0
  37. data/examples/formats.rb +0 -0
  38. data/examples/formula_result.rb +0 -0
  39. data/examples/header.rb +0 -0
  40. data/examples/hide_sheet.rb +0 -0
  41. data/examples/hyperlink.rb +0 -0
  42. data/examples/images.rb +0 -0
  43. data/examples/indent.rb +0 -0
  44. data/examples/merge1.rb +0 -0
  45. data/examples/merge2.rb +0 -0
  46. data/examples/merge3.rb +0 -0
  47. data/examples/merge4.rb +0 -0
  48. data/examples/merge5.rb +0 -0
  49. data/examples/merge6.rb +0 -0
  50. data/examples/outline.rb +0 -0
  51. data/examples/outline_collapsed.rb +0 -0
  52. data/examples/panes.rb +0 -0
  53. data/examples/properties.rb +0 -0
  54. data/examples/properties_jp.rb +0 -0
  55. data/examples/protection.rb +0 -0
  56. data/examples/regions.rb +0 -0
  57. data/examples/repeat.rb +0 -0
  58. data/examples/republic.png +0 -0
  59. data/examples/right_to_left.rb +0 -0
  60. data/examples/row_wrap.rb +0 -0
  61. data/examples/set_first_sheet.rb +14 -0
  62. data/examples/stats.rb +0 -0
  63. data/examples/stocks.rb +0 -0
  64. data/examples/tab_colors.rb +0 -0
  65. data/examples/utf8.rb +0 -0
  66. data/examples/write_arrays.rb +0 -0
  67. data/html/en/doc_en.html +5941 -0
  68. data/html/images/a_simple.jpg +0 -0
  69. data/html/images/area1.jpg +0 -0
  70. data/html/images/bar1.jpg +0 -0
  71. data/html/images/chart_area.xls +0 -0
  72. data/html/images/column1.jpg +0 -0
  73. data/html/images/data_validation.jpg +0 -0
  74. data/html/images/line1.jpg +0 -0
  75. data/html/images/pie1.jpg +0 -0
  76. data/html/images/regions.jpg +0 -0
  77. data/html/images/scatter1.jpg +0 -0
  78. data/html/images/stats.jpg +0 -0
  79. data/html/images/stock1.jpg +0 -0
  80. data/html/images/stocks.jpg +0 -0
  81. data/html/index.html +16 -0
  82. data/html/style.css +433 -0
  83. data/lib/writeexcel/biffwriter.rb +5 -0
  84. data/lib/writeexcel/caller_info.rb +0 -0
  85. data/lib/writeexcel/chart.rb +8 -219
  86. data/lib/writeexcel/charts/area.rb +0 -0
  87. data/lib/writeexcel/charts/bar.rb +0 -0
  88. data/lib/writeexcel/charts/column.rb +0 -0
  89. data/lib/writeexcel/charts/external.rb +0 -0
  90. data/lib/writeexcel/charts/line.rb +0 -0
  91. data/lib/writeexcel/charts/pie.rb +0 -0
  92. data/lib/writeexcel/charts/scatter.rb +0 -0
  93. data/lib/writeexcel/charts/stock.rb +0 -0
  94. data/lib/writeexcel/colors.rb +4 -0
  95. data/lib/writeexcel/compatibility.rb +0 -0
  96. data/lib/writeexcel/debug_info.rb +0 -0
  97. data/lib/writeexcel/excelformula.y +0 -0
  98. data/lib/writeexcel/excelformulaparser.rb +0 -0
  99. data/lib/writeexcel/format.rb +2 -28
  100. data/lib/writeexcel/formula.rb +4 -70
  101. data/lib/writeexcel/helper.rb +0 -0
  102. data/lib/writeexcel/image.rb +158 -0
  103. data/lib/writeexcel/olewriter.rb +0 -0
  104. data/lib/writeexcel/properties.rb +0 -0
  105. data/lib/writeexcel/storage_lite.rb +0 -0
  106. data/lib/writeexcel/workbook.rb +434 -824
  107. data/lib/writeexcel/worksheet.rb +4194 -4718
  108. data/lib/writeexcel/write_file.rb +0 -0
  109. data/lib/writeexcel.rb +0 -0
  110. data/test/excelfile/Chart1.xls +0 -0
  111. data/test/excelfile/Chart2.xls +0 -0
  112. data/test/excelfile/Chart3.xls +0 -0
  113. data/test/excelfile/Chart4.xls +0 -0
  114. data/test/excelfile/Chart5.xls +0 -0
  115. data/test/helper.rb +0 -0
  116. data/test/perl_output/Chart1.xls.data +0 -0
  117. data/test/perl_output/Chart2.xls.data +0 -0
  118. data/test/perl_output/Chart3.xls.data +0 -0
  119. data/test/perl_output/Chart4.xls.data +0 -0
  120. data/test/perl_output/Chart5.xls.data +0 -0
  121. data/test/perl_output/README +0 -0
  122. data/test/perl_output/a_simple.xls +0 -0
  123. data/test/perl_output/autofilter.xls +0 -0
  124. data/test/perl_output/biff_add_continue_testdata +0 -0
  125. data/test/perl_output/chart_area.xls +0 -0
  126. data/test/perl_output/chart_bar.xls +0 -0
  127. data/test/perl_output/chart_column.xls +0 -0
  128. data/test/perl_output/chart_line.xls +0 -0
  129. data/test/perl_output/chess.xls +0 -0
  130. data/test/perl_output/colors.xls +0 -0
  131. data/test/perl_output/comments1.xls +0 -0
  132. data/test/perl_output/comments2.xls +0 -0
  133. data/test/perl_output/data_validate.xls +0 -0
  134. data/test/perl_output/date_time.xls +0 -0
  135. data/test/perl_output/defined_name.xls +0 -0
  136. data/test/perl_output/demo.xls +0 -0
  137. data/test/perl_output/demo101.bin +0 -0
  138. data/test/perl_output/demo201.bin +0 -0
  139. data/test/perl_output/demo301.bin +0 -0
  140. data/test/perl_output/demo401.bin +0 -0
  141. data/test/perl_output/demo501.bin +0 -0
  142. data/test/perl_output/diag_border.xls +0 -0
  143. data/test/perl_output/f_font_biff +0 -0
  144. data/test/perl_output/f_font_key +0 -0
  145. data/test/perl_output/f_xf_biff +0 -0
  146. data/test/perl_output/file_font_biff +0 -0
  147. data/test/perl_output/file_font_key +0 -0
  148. data/test/perl_output/file_xf_biff +0 -0
  149. data/test/perl_output/formula_result.xls +0 -0
  150. data/test/perl_output/headers.xls +0 -0
  151. data/test/perl_output/hidden.xls +0 -0
  152. data/test/perl_output/hide_zero.xls +0 -0
  153. data/test/perl_output/hyperlink.xls +0 -0
  154. data/test/perl_output/images.xls +0 -0
  155. data/test/perl_output/indent.xls +0 -0
  156. data/test/perl_output/merge1.xls +0 -0
  157. data/test/perl_output/merge2.xls +0 -0
  158. data/test/perl_output/merge3.xls +0 -0
  159. data/test/perl_output/merge4.xls +0 -0
  160. data/test/perl_output/merge5.xls +0 -0
  161. data/test/perl_output/merge6.xls +0 -0
  162. data/test/perl_output/ole_write_header +0 -0
  163. data/test/perl_output/outline.xls +0 -0
  164. data/test/perl_output/outline_collapsed.xls +0 -0
  165. data/test/perl_output/panes.xls +0 -0
  166. data/test/perl_output/protection.xls +0 -0
  167. data/test/perl_output/regions.xls +0 -0
  168. data/test/perl_output/right_to_left.xls +0 -0
  169. data/test/perl_output/set_first_sheet.xls +0 -0
  170. data/test/perl_output/stats.xls +0 -0
  171. data/test/perl_output/stocks.xls +0 -0
  172. data/test/perl_output/tab_colors.xls +0 -0
  173. data/test/perl_output/unicode_cyrillic.xls +0 -0
  174. data/test/perl_output/utf8.xls +0 -0
  175. data/test/perl_output/workbook1.xls +0 -0
  176. data/test/perl_output/workbook2.xls +0 -0
  177. data/test/perl_output/ws_colinfo +0 -0
  178. data/test/perl_output/ws_store_colinfo +0 -0
  179. data/test/perl_output/ws_store_dimensions +0 -0
  180. data/test/perl_output/ws_store_filtermode +0 -0
  181. data/test/perl_output/ws_store_filtermode_off +0 -0
  182. data/test/perl_output/ws_store_filtermode_on +0 -0
  183. data/test/perl_output/ws_store_selection +0 -0
  184. data/test/perl_output/ws_store_window2 +0 -0
  185. data/test/republic.png +0 -0
  186. data/test/test_00_IEEE_double.rb +0 -0
  187. data/test/test_01_add_worksheet.rb +0 -0
  188. data/test/test_02_merge_formats.rb +0 -0
  189. data/test/test_04_dimensions.rb +27 -27
  190. data/test/test_05_rows.rb +0 -0
  191. data/test/test_06_extsst.rb +1 -1
  192. data/test/test_11_date_time.rb +3 -3
  193. data/test/test_12_date_only.rb +7 -14
  194. data/test/test_13_date_seconds.rb +5 -5
  195. data/test/test_21_escher.rb +138 -138
  196. data/test/test_22_mso_drawing_group.rb +0 -0
  197. data/test/test_23_note.rb +4 -4
  198. data/test/test_24_txo.rb +3 -3
  199. data/test/test_25_position_object.rb +1 -1
  200. data/test/test_26_autofilter.rb +3 -3
  201. data/test/test_27_autofilter.rb +1 -1
  202. data/test/test_28_autofilter.rb +2 -2
  203. data/test/test_29_process_jpg.rb +16 -29
  204. data/test/test_30_validation_dval.rb +3 -3
  205. data/test/test_31_validation_dv_strings.rb +6 -6
  206. data/test/test_32_validation_dv_formula.rb +12 -12
  207. data/test/test_40_property_types.rb +0 -0
  208. data/test/test_41_properties.rb +0 -0
  209. data/test/test_42_set_properties.rb +0 -0
  210. data/test/test_50_name_stored.rb +8 -8
  211. data/test/test_51_name_print_area.rb +18 -18
  212. data/test/test_52_name_print_titles.rb +27 -27
  213. data/test/test_53_autofilter.rb +6 -6
  214. data/test/test_60_chart_generic.rb +1 -1
  215. data/test/test_61_chart_subclasses.rb +7 -14
  216. data/test/test_62_chart_formats.rb +0 -0
  217. data/test/test_63_chart_area_formats.rb +0 -0
  218. data/test/test_biff.rb +0 -0
  219. data/test/test_compatibility.rb +0 -0
  220. data/test/test_example_match.rb +31 -0
  221. data/test/test_format.rb +0 -0
  222. data/test/test_formula.rb +0 -0
  223. data/test/test_ole.rb +0 -0
  224. data/test/test_storage_lite.rb +0 -0
  225. data/test/test_workbook.rb +6 -0
  226. data/test/test_worksheet.rb +5 -5
  227. data/utils/add_magic_comment.rb +0 -0
  228. data/writeexcel.gemspec +263 -243
  229. data/writeexcel.rdoc +3 -3
  230. metadata +42 -39
@@ -54,9 +54,6 @@ module Writeexcel
54
54
  class Chart < Worksheet
55
55
  require 'writeexcel/helper'
56
56
 
57
- ###############################################################################
58
- #
59
- # factory()
60
57
  #
61
58
  # Factory method for returning chart objects based on their class type.
62
59
  #
@@ -82,7 +79,6 @@ class Chart < Worksheet
82
79
  klass.new(*args)
83
80
  end
84
81
 
85
- ###############################################################################
86
82
  #
87
83
  # :call-seq:
88
84
  # new(filename, name, index, encoding, activesheet, firstsheet, external_bin = nil)
@@ -92,7 +88,7 @@ class Chart < Worksheet
92
88
  def initialize(*args) #:nodoc:
93
89
  super
94
90
 
95
- @sheet_type = 0x0200
91
+ @type = 0x0200
96
92
  @orientation = 0x0
97
93
  @series = []
98
94
  @embedded = false
@@ -344,9 +340,6 @@ class Chart < Worksheet
344
340
  @title_formula = formula
345
341
  end
346
342
 
347
- ###############################################################################
348
- #
349
- # set_legend()
350
343
  #
351
344
  # Set the properties of the chart legend.
352
345
  #
@@ -358,9 +351,6 @@ class Chart < Worksheet
358
351
  end
359
352
  end
360
353
 
361
- ###############################################################################
362
- #
363
- # set_plotarea()
364
354
  #
365
355
  # Set the properties of the chart plotarea.
366
356
  #
@@ -411,9 +401,6 @@ class Chart < Worksheet
411
401
  end
412
402
  end
413
403
 
414
- ###############################################################################
415
- #
416
- # set_chartarea()
417
404
  #
418
405
  # Set the properties of the chart chartarea.
419
406
  #
@@ -489,9 +476,6 @@ class Chart < Worksheet
489
476
  @embedded = val
490
477
  end
491
478
 
492
- ###############################################################################
493
- #
494
- # _prepend(), overridden.
495
479
  #
496
480
  # The parent Worksheet class needs to store some data in memory and some in
497
481
  # temporary files for efficiency. The Chart* classes don't need to do this
@@ -504,9 +488,6 @@ class Chart < Worksheet
504
488
  append(*args)
505
489
  end
506
490
 
507
- ###############################################################################
508
- #
509
- # _close(), overridden.
510
491
  #
511
492
  # Create and store the Chart data structures.
512
493
  #
@@ -573,9 +554,6 @@ class Chart < Worksheet
573
554
  store_eof
574
555
  end
575
556
 
576
- ###############################################################################
577
- #
578
- # _store_window2(), overridden.
579
557
  #
580
558
  # Write BIFF record Window2. Note, this overrides the parent Worksheet
581
559
  # record because the Chart version of the record is smaller and is used
@@ -599,7 +577,7 @@ class Chart < Worksheet
599
577
  fArabic = 0 # 6
600
578
  fDspGuts = 0 # 7
601
579
  fFrozenNoSplit = 0 # 0 - bit
602
- fSelected = @selected # 1
580
+ fSelected = selected? ? 1 : 0 # 1
603
581
  fPaged = 0 # 2
604
582
  fBreakPreview = 0 # 3
605
583
 
@@ -624,9 +602,6 @@ class Chart < Worksheet
624
602
  append(header, data)
625
603
  end
626
604
 
627
- ###############################################################################
628
- #
629
- # _parse_series_formula()
630
605
  #
631
606
  # Parse the formula used to define a series. We also extract some range
632
607
  # information required for _store_series() and the SERIES record.
@@ -642,9 +617,6 @@ class Chart < Worksheet
642
617
  # Strip the = sign at the beginning of the formula string
643
618
  formula = formula.sub(/^=/, '')
644
619
 
645
- # Parse the formula using the parser in Formula.pm
646
- parser = @parser
647
-
648
620
  # In order to raise formula errors from the point of view of the calling
649
621
  # program we use an eval block and re-raise the error from here.
650
622
  #
@@ -672,9 +644,6 @@ class Chart < Worksheet
672
644
  [formula, count]
673
645
  end
674
646
 
675
- ###############################################################################
676
- #
677
- # _encode_utf16()
678
647
  #
679
648
  # Convert UTF8 strings used in the chart to UTF16.
680
649
  #
@@ -705,9 +674,6 @@ class Chart < Worksheet
705
674
  [string, encoding]
706
675
  end
707
676
 
708
- ###############################################################################
709
- #
710
- # _get_color_indices()
711
677
  #
712
678
  # Convert the user specified colour index or string to an colour index and
713
679
  # RGB colour number.
@@ -724,9 +690,6 @@ class Chart < Worksheet
724
690
  end
725
691
  end
726
692
 
727
- ###############################################################################
728
- #
729
- # _get_color_rbg()
730
693
  #
731
694
  # Get the RedGreenBlue number for the colour index from the Workbook palette.
732
695
  #
@@ -734,13 +697,15 @@ class Chart < Worksheet
734
697
  # Adjust colour index from 8-63 (user range) to 0-55 (Excel range).
735
698
  index -= 8
736
699
 
737
- red_green_blue = @palette[index]
700
+ red_green_blue = palette[index]
738
701
  red_green_blue.pack('C*').unpack('V')[0]
739
702
  end
740
703
 
741
- ###############################################################################
742
- #
743
- # _get_line_pattern()
704
+ def palette
705
+ @workbook.palette
706
+ end
707
+ private :palette
708
+
744
709
  #
745
710
  # Get the Excel chart index for line pattern that corresponds to the user
746
711
  # defined value.
@@ -777,9 +742,6 @@ class Chart < Worksheet
777
742
  end
778
743
  end
779
744
 
780
- ###############################################################################
781
- #
782
- # _get_line_weight()
783
745
  #
784
746
  # Get the Excel chart index for line weight that corresponds to the user
785
747
  # defined value.
@@ -806,9 +768,6 @@ class Chart < Worksheet
806
768
  end
807
769
  end
808
770
 
809
- ###############################################################################
810
- #
811
- # _store_chart_stream()
812
771
  #
813
772
  # Store the CHART record and it's substreams.
814
773
  #
@@ -865,9 +824,6 @@ class Chart < Worksheet
865
824
  end
866
825
  private :_formula_type_from_param
867
826
 
868
- ###############################################################################
869
- #
870
- # _store_series_stream()
871
827
  #
872
828
  # Write the SERIES chart substream.
873
829
  #
@@ -895,9 +851,6 @@ class Chart < Worksheet
895
851
  store_end
896
852
  end
897
853
 
898
- ###############################################################################
899
- #
900
- # _store_dataformat_stream()
901
854
  #
902
855
  # Write the DATAFORMAT chart substream.
903
856
  #
@@ -909,9 +862,6 @@ class Chart < Worksheet
909
862
  store_end
910
863
  end
911
864
 
912
- ###############################################################################
913
- #
914
- # _store_series_text_stream()
915
865
  #
916
866
  # Write the series TEXT substream.
917
867
  #
@@ -930,9 +880,6 @@ class Chart < Worksheet
930
880
  end
931
881
  private :_formula_type
932
882
 
933
- ###############################################################################
934
- #
935
- # _store_x_axis_text_stream()
936
883
  #
937
884
  # Write the X-axis TEXT substream.
938
885
  #
@@ -955,9 +902,6 @@ class Chart < Worksheet
955
902
  store_end
956
903
  end
957
904
 
958
- ###############################################################################
959
- #
960
- # _store_y_axis_text_stream()
961
905
  #
962
906
  # Write the Y-axis TEXT substream.
963
907
  #
@@ -980,9 +924,6 @@ class Chart < Worksheet
980
924
  store_end
981
925
  end
982
926
 
983
- ###############################################################################
984
- #
985
- # _store_legend_text_stream()
986
927
  #
987
928
  # Write the legend TEXT substream.
988
929
  #
@@ -996,9 +937,6 @@ class Chart < Worksheet
996
937
  store_end
997
938
  end
998
939
 
999
- ###############################################################################
1000
- #
1001
- # _store_title_text_stream()
1002
940
  #
1003
941
  # Write the title TEXT substream.
1004
942
  #
@@ -1021,9 +959,6 @@ class Chart < Worksheet
1021
959
  store_end
1022
960
  end
1023
961
 
1024
- ###############################################################################
1025
- #
1026
- # _store_axisparent_stream()
1027
962
  #
1028
963
  # Write the AXISPARENT chart substream.
1029
964
  #
@@ -1051,9 +986,6 @@ class Chart < Worksheet
1051
986
  store_end
1052
987
  end
1053
988
 
1054
- ###############################################################################
1055
- #
1056
- # _store_axis_category_stream()
1057
989
  #
1058
990
  # Write the AXIS chart substream for the chart category.
1059
991
  #
@@ -1067,9 +999,6 @@ class Chart < Worksheet
1067
999
  store_end
1068
1000
  end
1069
1001
 
1070
- ###############################################################################
1071
- #
1072
- # _store_axis_values_stream()
1073
1002
  #
1074
1003
  # Write the AXIS chart substream for the chart values.
1075
1004
  #
@@ -1084,9 +1013,6 @@ class Chart < Worksheet
1084
1013
  store_end
1085
1014
  end
1086
1015
 
1087
- ###############################################################################
1088
- #
1089
- # _store_plotarea_frame_stream()
1090
1016
  #
1091
1017
  # Write the FRAME chart substream.
1092
1018
  #
@@ -1094,9 +1020,6 @@ class Chart < Worksheet
1094
1020
  store_area_frame_stream_common(:plot)
1095
1021
  end
1096
1022
 
1097
- ###############################################################################
1098
- #
1099
- # _store_chartarea_frame_stream()
1100
1023
  #
1101
1024
  # Write the FRAME chart substream for and embedded chart.
1102
1025
  #
@@ -1132,9 +1055,6 @@ class Chart < Worksheet
1132
1055
  end
1133
1056
  private :store_area_frame_stream_common
1134
1057
 
1135
- ###############################################################################
1136
- #
1137
- # _store_chartformat_stream()
1138
1058
  #
1139
1059
  # Write the CHARTFORMAT chart substream.
1140
1060
  #
@@ -1157,9 +1077,6 @@ class Chart < Worksheet
1157
1077
  store_end
1158
1078
  end
1159
1079
 
1160
- ###############################################################################
1161
- #
1162
- # _store_chart_type()
1163
1080
  #
1164
1081
  # This is an abstract method that is overridden by the sub-classes to define
1165
1082
  # the chart types such as Column, Line, Pie, etc.
@@ -1168,9 +1085,6 @@ class Chart < Worksheet
1168
1085
 
1169
1086
  end
1170
1087
 
1171
- ###############################################################################
1172
- #
1173
- # _store_marker_dataformat_stream()
1174
1088
  #
1175
1089
  # This is an abstract method that is overridden by the sub-classes to define
1176
1090
  # properties of markers, linetypes, pie formats and other.
@@ -1179,9 +1093,6 @@ class Chart < Worksheet
1179
1093
 
1180
1094
  end
1181
1095
 
1182
- ###############################################################################
1183
- #
1184
- # _store_legend_stream()
1185
1096
  #
1186
1097
  # Write the LEGEND chart substream.
1187
1098
  #
@@ -1200,9 +1111,6 @@ class Chart < Worksheet
1200
1111
  #
1201
1112
  ###############################################################################
1202
1113
 
1203
- ###############################################################################
1204
- #
1205
- # _store_3dbarshape()
1206
1114
  #
1207
1115
  # Write the 3DBARSHAPE chart BIFF record.
1208
1116
  #
@@ -1219,9 +1127,6 @@ class Chart < Worksheet
1219
1127
  append(header, data)
1220
1128
  end
1221
1129
 
1222
- ###############################################################################
1223
- #
1224
- # _store_ai()
1225
1130
  #
1226
1131
  # Write the AI chart BIFF record.
1227
1132
  #
@@ -1260,9 +1165,6 @@ class Chart < Worksheet
1260
1165
  append(header, data)
1261
1166
  end
1262
1167
 
1263
- ###############################################################################
1264
- #
1265
- # _store_areaformat()
1266
1168
  #
1267
1169
  # Write the AREAFORMAT chart BIFF record. Contains the patterns and colours
1268
1170
  # of a chart area.
@@ -1288,9 +1190,6 @@ class Chart < Worksheet
1288
1190
  append(header, data)
1289
1191
  end
1290
1192
 
1291
- ###############################################################################
1292
- #
1293
- # _store_axcext()
1294
1193
  #
1295
1194
  # Write the AXCEXT chart BIFF record.
1296
1195
  #
@@ -1311,9 +1210,6 @@ class Chart < Worksheet
1311
1210
  catMinor, unitMinor, unitBase, catCrossDate, grbit)
1312
1211
  end
1313
1212
 
1314
- ###############################################################################
1315
- #
1316
- # _store_axesused()
1317
1213
  #
1318
1214
  # Write the AXESUSED chart BIFF record.
1319
1215
  #
@@ -1325,9 +1221,6 @@ class Chart < Worksheet
1325
1221
  store_simple(record, length, num_axes)
1326
1222
  end
1327
1223
 
1328
- ###############################################################################
1329
- #
1330
- # _store_axis()
1331
1224
  #
1332
1225
  # Write the AXIS chart BIFF record to define the axis type.
1333
1226
  #
@@ -1350,9 +1243,6 @@ class Chart < Worksheet
1350
1243
  append(header, data)
1351
1244
  end
1352
1245
 
1353
- ###############################################################################
1354
- #
1355
- # _store_axislineformat()
1356
1246
  #
1357
1247
  # Write the AXISLINEFORMAT chart BIFF record.
1358
1248
  #
@@ -1364,9 +1254,6 @@ class Chart < Worksheet
1364
1254
  store_simple(record, length, line_format)
1365
1255
  end
1366
1256
 
1367
- ###############################################################################
1368
- #
1369
- # _store_axisparent()
1370
1257
  #
1371
1258
  # Write the AXISPARENT chart BIFF record.
1372
1259
  #
@@ -1389,9 +1276,6 @@ class Chart < Worksheet
1389
1276
  append(header, data)
1390
1277
  end
1391
1278
 
1392
- ###############################################################################
1393
- #
1394
- # _store_begin()
1395
1279
  #
1396
1280
  # Write the BEGIN chart BIFF record to indicate the start of a sub stream.
1397
1281
  #
@@ -1402,9 +1286,6 @@ class Chart < Worksheet
1402
1286
  store_simple(record, length)
1403
1287
  end
1404
1288
 
1405
- ###############################################################################
1406
- #
1407
- # _store_catserrange()
1408
1289
  #
1409
1290
  # Write the CATSERRANGE chart BIFF record.
1410
1291
  #
@@ -1419,9 +1300,6 @@ class Chart < Worksheet
1419
1300
  store_simple(record, length, catCross, catLabel, catMark, grbit)
1420
1301
  end
1421
1302
 
1422
- ###############################################################################
1423
- #
1424
- # _store_chart()
1425
1303
  #
1426
1304
  # Write the CHART BIFF record. This indicates the start of the chart sub-stream
1427
1305
  # and contains dimensions of the chart on the display. Units are in 1/72 inch
@@ -1444,9 +1322,6 @@ class Chart < Worksheet
1444
1322
  append(header, data)
1445
1323
  end
1446
1324
 
1447
- ###############################################################################
1448
- #
1449
- # _store_chartformat()
1450
1325
  #
1451
1326
  # Write the CHARTFORMAT chart BIFF record. The parent record for formatting
1452
1327
  # of a chart group.
@@ -1472,9 +1347,6 @@ class Chart < Worksheet
1472
1347
  append(header, data)
1473
1348
  end
1474
1349
 
1475
- ###############################################################################
1476
- #
1477
- # _store_chartline()
1478
1350
  #
1479
1351
  # Write the CHARTLINE chart BIFF record.
1480
1352
  #
@@ -1486,9 +1358,6 @@ class Chart < Worksheet
1486
1358
  store_simple(record, length, type)
1487
1359
  end
1488
1360
 
1489
- ###############################################################################
1490
- #
1491
- # _store_charttext()
1492
1361
  #
1493
1362
  # Write the TEXT chart BIFF record.
1494
1363
  #
@@ -1525,9 +1394,6 @@ class Chart < Worksheet
1525
1394
  append(header, data)
1526
1395
  end
1527
1396
 
1528
- ###############################################################################
1529
- #
1530
- # _store_dataformat()
1531
1397
  #
1532
1398
  # Write the DATAFORMAT chart BIFF record. This record specifies the series
1533
1399
  # that the subsequent sub stream refers to.
@@ -1543,9 +1409,6 @@ class Chart < Worksheet
1543
1409
  store_simple(record, length, point_number, series_index, series_number, grbit)
1544
1410
  end
1545
1411
 
1546
- ###############################################################################
1547
- #
1548
- # _store_defaulttext()
1549
1412
  #
1550
1413
  # Write the DEFAULTTEXT chart BIFF record. Identifier for subsequent TEXT
1551
1414
  # record.
@@ -1558,9 +1421,6 @@ class Chart < Worksheet
1558
1421
  store_simple(record, length, type)
1559
1422
  end
1560
1423
 
1561
- ###############################################################################
1562
- #
1563
- # _store_dropbar()
1564
1424
  #
1565
1425
  # Write the DROPBAR chart BIFF record.
1566
1426
  #
@@ -1572,9 +1432,6 @@ class Chart < Worksheet
1572
1432
  store_simple(record, length, percent_gap)
1573
1433
  end
1574
1434
 
1575
- ###############################################################################
1576
- #
1577
- # _store_end()
1578
1435
  #
1579
1436
  # Write the END chart BIFF record to indicate the end of a sub stream.
1580
1437
  #
@@ -1585,8 +1442,6 @@ class Chart < Worksheet
1585
1442
  store_simple(record, length)
1586
1443
  end
1587
1444
 
1588
- ###############################################################################
1589
- # _store_fbi()
1590
1445
  #
1591
1446
  # Write the FBI chart BIFF record. Specifies the font information at the time
1592
1447
  # it was applied to the chart.
@@ -1603,9 +1458,6 @@ class Chart < Worksheet
1603
1458
  store_simple(record, length, width_basis, height_basis, height, scale_basis, index)
1604
1459
  end
1605
1460
 
1606
- ###############################################################################
1607
- #
1608
- # _store_fontx()
1609
1461
  #
1610
1462
  # Write the FONTX chart BIFF record which contains the index of the FONT
1611
1463
  # record in the Workbook.
@@ -1618,9 +1470,6 @@ class Chart < Worksheet
1618
1470
  store_simple(record, length, index)
1619
1471
  end
1620
1472
 
1621
- ###############################################################################
1622
- #
1623
- # _store_frame()
1624
1473
  #
1625
1474
  # Write the FRAME chart BIFF record.
1626
1475
  #
@@ -1633,9 +1482,6 @@ class Chart < Worksheet
1633
1482
  store_simple(record, length, frame_type, grbit)
1634
1483
  end
1635
1484
 
1636
- ###############################################################################
1637
- #
1638
- # _store_legend()
1639
1485
  #
1640
1486
  # Write the LEGEND chart BIFF record. The Marcus Horan method.
1641
1487
  #
@@ -1662,9 +1508,6 @@ class Chart < Worksheet
1662
1508
  append(header, data)
1663
1509
  end
1664
1510
 
1665
- ###############################################################################
1666
- #
1667
- # _store_lineformat()
1668
1511
  #
1669
1512
  # Write the LINEFORMAT chart BIFF record.
1670
1513
  #
@@ -1687,9 +1530,6 @@ class Chart < Worksheet
1687
1530
  append(header, data)
1688
1531
  end
1689
1532
 
1690
- ###############################################################################
1691
- #
1692
- # _store_markerformat()
1693
1533
  #
1694
1534
  # Write the MARKERFORMAT chart BIFF record.
1695
1535
  #
@@ -1716,9 +1556,6 @@ class Chart < Worksheet
1716
1556
  append(header, data)
1717
1557
  end
1718
1558
 
1719
- ###############################################################################
1720
- #
1721
- # _store_objectlink()
1722
1559
  #
1723
1560
  # Write the OBJECTLINK chart BIFF record.
1724
1561
  #
@@ -1732,9 +1569,6 @@ class Chart < Worksheet
1732
1569
  store_simple(record, length, link_type, link_index1, link_index2)
1733
1570
  end
1734
1571
 
1735
- ###############################################################################
1736
- #
1737
- # _store_pieformat()
1738
1572
  #
1739
1573
  # Write the PIEFORMAT chart BIFF record.
1740
1574
  #
@@ -1746,9 +1580,6 @@ class Chart < Worksheet
1746
1580
  store_simple(record, length, percent)
1747
1581
  end
1748
1582
 
1749
- ###############################################################################
1750
- #
1751
- # _store_plotarea()
1752
1583
  #
1753
1584
  # Write the PLOTAREA chart BIFF record. This indicates that the subsequent
1754
1585
  # FRAME record belongs to a plot area.
@@ -1760,9 +1591,6 @@ class Chart < Worksheet
1760
1591
  store_simple(record, length)
1761
1592
  end
1762
1593
 
1763
- ###############################################################################
1764
- #
1765
- # _store_plotgrowth()
1766
1594
  #
1767
1595
  # Write the PLOTGROWTH chart BIFF record.
1768
1596
  #
@@ -1779,9 +1607,6 @@ class Chart < Worksheet
1779
1607
  append(header, data)
1780
1608
  end
1781
1609
 
1782
- ###############################################################################
1783
- #
1784
- # _store_pos()
1785
1610
  #
1786
1611
  # Write the POS chart BIFF record. Generally not required when using
1787
1612
  # automatic positioning.
@@ -1807,9 +1632,6 @@ class Chart < Worksheet
1807
1632
  append(header, data)
1808
1633
  end
1809
1634
 
1810
- ###############################################################################
1811
- #
1812
- # _store_serauxtrend()
1813
1635
  #
1814
1636
  # Write the SERAUXTREND chart BIFF record.
1815
1637
  #
@@ -1842,9 +1664,6 @@ class Chart < Worksheet
1842
1664
  append(header, data)
1843
1665
  end
1844
1666
 
1845
- ###############################################################################
1846
- #
1847
- # _store_series()
1848
1667
  #
1849
1668
  # Write the SERIES chart BIFF record.
1850
1669
  #
@@ -1862,9 +1681,6 @@ class Chart < Worksheet
1862
1681
  category_count, value_count, bubble_type, bubble_count)
1863
1682
  end
1864
1683
 
1865
- ###############################################################################
1866
- #
1867
- # _store_seriestext()
1868
1684
  #
1869
1685
  # Write the SERIESTEXT chart BIFF record.
1870
1686
  #
@@ -1896,9 +1712,6 @@ class Chart < Worksheet
1896
1712
  append(header, data, str)
1897
1713
  end
1898
1714
 
1899
- ###############################################################################
1900
- #
1901
- # _store_serparent()
1902
1715
  #
1903
1716
  # Write the SERPARENT chart BIFF record.
1904
1717
  #
@@ -1910,9 +1723,6 @@ class Chart < Worksheet
1910
1723
  store_simple(record, length, series)
1911
1724
  end
1912
1725
 
1913
- ###############################################################################
1914
- #
1915
- # _store_sertocrt()
1916
1726
  #
1917
1727
  # Write the SERTOCRT chart BIFF record to indicate the chart group index.
1918
1728
  #
@@ -1924,9 +1734,6 @@ class Chart < Worksheet
1924
1734
  store_simple(record, length, chartgroup)
1925
1735
  end
1926
1736
 
1927
- ###############################################################################
1928
- #
1929
- # _store_shtprops()
1930
1737
  #
1931
1738
  # Write the SHTPROPS chart BIFF record.
1932
1739
  #
@@ -1941,9 +1748,6 @@ class Chart < Worksheet
1941
1748
  store_simple(record, length, grbit, empty_cells)
1942
1749
  end
1943
1750
 
1944
- ###############################################################################
1945
- #
1946
- # _store_text()
1947
1751
  #
1948
1752
  # Write the TEXT chart BIFF record.
1949
1753
  #
@@ -1980,9 +1784,6 @@ class Chart < Worksheet
1980
1784
  append(header, data)
1981
1785
  end
1982
1786
 
1983
- ###############################################################################
1984
- #
1985
- # _store_tick()
1986
1787
  #
1987
1788
  # Write the TICK chart BIFF record.
1988
1789
  #
@@ -2019,9 +1820,6 @@ class Chart < Worksheet
2019
1820
  append(header, data)
2020
1821
  end
2021
1822
 
2022
- ###############################################################################
2023
- #
2024
- # _store_valuerange()
2025
1823
  #
2026
1824
  # Write the VALUERANGE chart BIFF record.
2027
1825
  #
@@ -2055,9 +1853,6 @@ class Chart < Worksheet
2055
1853
  #
2056
1854
  ###############################################################################
2057
1855
 
2058
- ###############################################################################
2059
- #
2060
- # _set_default_properties()
2061
1856
  #
2062
1857
  # Setup the default properties for a chart.
2063
1858
  #
@@ -2099,9 +1894,6 @@ class Chart < Worksheet
2099
1894
  }
2100
1895
  end
2101
1896
 
2102
- ###############################################################################
2103
- #
2104
- # _set_default_config_data()
2105
1897
  #
2106
1898
  # Setup the default configuration data for a chart.
2107
1899
  #
@@ -2134,9 +1926,6 @@ class Chart < Worksheet
2134
1926
  end
2135
1927
  private :default_config_data
2136
1928
 
2137
- ###############################################################################
2138
- #
2139
- # _set_embedded_config_data()
2140
1929
  #
2141
1930
  # Setup the default configuration data for an embedded chart.
2142
1931
  #
File without changes