roo 1.13.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +7 -0
  3. data/.simplecov +4 -0
  4. data/.travis.yml +13 -0
  5. data/CHANGELOG.md +500 -0
  6. data/Gemfile +16 -10
  7. data/Guardfile +24 -0
  8. data/LICENSE +3 -1
  9. data/README.md +254 -0
  10. data/Rakefile +23 -23
  11. data/examples/roo_soap_client.rb +28 -31
  12. data/examples/roo_soap_server.rb +4 -6
  13. data/examples/write_me.rb +9 -10
  14. data/lib/roo/base.rb +303 -388
  15. data/lib/roo/csv.rb +120 -113
  16. data/lib/roo/excelx/comments.rb +24 -0
  17. data/lib/roo/excelx/extractor.rb +20 -0
  18. data/lib/roo/excelx/relationships.rb +26 -0
  19. data/lib/roo/excelx/shared_strings.rb +40 -0
  20. data/lib/roo/excelx/sheet_doc.rb +202 -0
  21. data/lib/roo/excelx/styles.rb +62 -0
  22. data/lib/roo/excelx/workbook.rb +59 -0
  23. data/lib/roo/excelx.rb +452 -484
  24. data/lib/roo/font.rb +17 -0
  25. data/lib/roo/libre_office.rb +5 -0
  26. data/lib/roo/link.rb +15 -0
  27. data/lib/roo/{openoffice.rb → open_office.rb} +678 -496
  28. data/lib/roo/spreadsheet.rb +20 -23
  29. data/lib/roo/utils.rb +78 -0
  30. data/lib/roo/version.rb +3 -0
  31. data/lib/roo.rb +18 -24
  32. data/roo.gemspec +20 -204
  33. data/spec/lib/roo/base_spec.rb +1 -4
  34. data/spec/lib/roo/csv_spec.rb +21 -13
  35. data/spec/lib/roo/excelx/format_spec.rb +7 -6
  36. data/spec/lib/roo/excelx_spec.rb +388 -11
  37. data/spec/lib/roo/libreoffice_spec.rb +16 -6
  38. data/spec/lib/roo/openoffice_spec.rb +2 -8
  39. data/spec/lib/roo/spreadsheet_spec.rb +40 -12
  40. data/spec/lib/roo/utils_spec.rb +106 -0
  41. data/spec/spec_helper.rb +2 -1
  42. data/test/test_generic_spreadsheet.rb +19 -67
  43. data/test/test_helper.rb +9 -56
  44. data/test/test_roo.rb +252 -477
  45. metadata +63 -302
  46. data/CHANGELOG +0 -417
  47. data/Gemfile.lock +0 -78
  48. data/README.markdown +0 -126
  49. data/VERSION +0 -1
  50. data/lib/roo/excel.rb +0 -355
  51. data/lib/roo/excel2003xml.rb +0 -300
  52. data/lib/roo/google.rb +0 -292
  53. data/lib/roo/roo_rails_helper.rb +0 -83
  54. data/lib/roo/worksheet.rb +0 -18
  55. data/spec/lib/roo/excel2003xml_spec.rb +0 -15
  56. data/spec/lib/roo/excel_spec.rb +0 -17
  57. data/spec/lib/roo/google_spec.rb +0 -64
  58. data/test/files/1900_base.xls +0 -0
  59. data/test/files/1900_base.xlsx +0 -0
  60. data/test/files/1904_base.xls +0 -0
  61. data/test/files/1904_base.xlsx +0 -0
  62. data/test/files/Bibelbund.csv +0 -3741
  63. data/test/files/Bibelbund.ods +0 -0
  64. data/test/files/Bibelbund.xls +0 -0
  65. data/test/files/Bibelbund.xlsx +0 -0
  66. data/test/files/Bibelbund.xml +0 -62518
  67. data/test/files/Bibelbund1.ods +0 -0
  68. data/test/files/Pfand_from_windows_phone.xlsx +0 -0
  69. data/test/files/bad_excel_date.xls +0 -0
  70. data/test/files/bbu.ods +0 -0
  71. data/test/files/bbu.xls +0 -0
  72. data/test/files/bbu.xlsx +0 -0
  73. data/test/files/bbu.xml +0 -152
  74. data/test/files/bode-v1.ods.zip +0 -0
  75. data/test/files/bode-v1.xls.zip +0 -0
  76. data/test/files/boolean.csv +0 -2
  77. data/test/files/boolean.ods +0 -0
  78. data/test/files/boolean.xls +0 -0
  79. data/test/files/boolean.xlsx +0 -0
  80. data/test/files/boolean.xml +0 -112
  81. data/test/files/borders.ods +0 -0
  82. data/test/files/borders.xls +0 -0
  83. data/test/files/borders.xlsx +0 -0
  84. data/test/files/borders.xml +0 -144
  85. data/test/files/bug-numbered-sheet-names.xlsx +0 -0
  86. data/test/files/bug-row-column-fixnum-float.xls +0 -0
  87. data/test/files/bug-row-column-fixnum-float.xml +0 -127
  88. data/test/files/comments.ods +0 -0
  89. data/test/files/comments.xls +0 -0
  90. data/test/files/comments.xlsx +0 -0
  91. data/test/files/csvtypes.csv +0 -1
  92. data/test/files/datetime.ods +0 -0
  93. data/test/files/datetime.xls +0 -0
  94. data/test/files/datetime.xlsx +0 -0
  95. data/test/files/datetime.xml +0 -142
  96. data/test/files/datetime_floatconv.xls +0 -0
  97. data/test/files/datetime_floatconv.xml +0 -148
  98. data/test/files/dreimalvier.ods +0 -0
  99. data/test/files/emptysheets.ods +0 -0
  100. data/test/files/emptysheets.xls +0 -0
  101. data/test/files/emptysheets.xlsx +0 -0
  102. data/test/files/emptysheets.xml +0 -105
  103. data/test/files/excel2003.xml +0 -21140
  104. data/test/files/false_encoding.xls +0 -0
  105. data/test/files/false_encoding.xml +0 -132
  106. data/test/files/file_item_error.xlsx +0 -0
  107. data/test/files/formula.ods +0 -0
  108. data/test/files/formula.xls +0 -0
  109. data/test/files/formula.xlsx +0 -0
  110. data/test/files/formula.xml +0 -134
  111. data/test/files/formula_parse_error.xls +0 -0
  112. data/test/files/formula_parse_error.xml +0 -1833
  113. data/test/files/formula_string_error.xlsx +0 -0
  114. data/test/files/html-escape.ods +0 -0
  115. data/test/files/link.xls +0 -0
  116. data/test/files/link.xlsx +0 -0
  117. data/test/files/matrix.ods +0 -0
  118. data/test/files/matrix.xls +0 -0
  119. data/test/files/named_cells.ods +0 -0
  120. data/test/files/named_cells.xls +0 -0
  121. data/test/files/named_cells.xlsx +0 -0
  122. data/test/files/no_spreadsheet_file.txt +0 -1
  123. data/test/files/numbers1.csv +0 -18
  124. data/test/files/numbers1.ods +0 -0
  125. data/test/files/numbers1.xls +0 -0
  126. data/test/files/numbers1.xlsx +0 -0
  127. data/test/files/numbers1.xml +0 -312
  128. data/test/files/numeric-link.xlsx +0 -0
  129. data/test/files/only_one_sheet.ods +0 -0
  130. data/test/files/only_one_sheet.xls +0 -0
  131. data/test/files/only_one_sheet.xlsx +0 -0
  132. data/test/files/only_one_sheet.xml +0 -67
  133. data/test/files/paragraph.ods +0 -0
  134. data/test/files/paragraph.xls +0 -0
  135. data/test/files/paragraph.xlsx +0 -0
  136. data/test/files/paragraph.xml +0 -127
  137. data/test/files/prova.xls +0 -0
  138. data/test/files/ric.ods +0 -0
  139. data/test/files/simple_spreadsheet.ods +0 -0
  140. data/test/files/simple_spreadsheet.xls +0 -0
  141. data/test/files/simple_spreadsheet.xlsx +0 -0
  142. data/test/files/simple_spreadsheet.xml +0 -225
  143. data/test/files/simple_spreadsheet_from_italo.ods +0 -0
  144. data/test/files/simple_spreadsheet_from_italo.xls +0 -0
  145. data/test/files/simple_spreadsheet_from_italo.xml +0 -242
  146. data/test/files/so_datetime.csv +0 -7
  147. data/test/files/style.ods +0 -0
  148. data/test/files/style.xls +0 -0
  149. data/test/files/style.xlsx +0 -0
  150. data/test/files/style.xml +0 -154
  151. data/test/files/time-test.csv +0 -2
  152. data/test/files/time-test.ods +0 -0
  153. data/test/files/time-test.xls +0 -0
  154. data/test/files/time-test.xlsx +0 -0
  155. data/test/files/time-test.xml +0 -131
  156. data/test/files/type_excel.ods +0 -0
  157. data/test/files/type_excel.xlsx +0 -0
  158. data/test/files/type_excelx.ods +0 -0
  159. data/test/files/type_excelx.xls +0 -0
  160. data/test/files/type_openoffice.xls +0 -0
  161. data/test/files/type_openoffice.xlsx +0 -0
  162. data/test/files/whitespace.ods +0 -0
  163. data/test/files/whitespace.xls +0 -0
  164. data/test/files/whitespace.xlsx +0 -0
  165. data/test/files/whitespace.xml +0 -184
  166. data/test/rm_sub_test.rb +0 -12
  167. data/test/rm_test.rb +0 -7
  168. data/website/index.html +0 -385
  169. data/website/index.txt +0 -423
  170. data/website/javascripts/rounded_corners_lite.inc.js +0 -285
  171. data/website/stylesheets/screen.css +0 -130
  172. data/website/template.rhtml +0 -48
@@ -1,131 +0,0 @@
1
- <?xml version="1.0"?>
2
- <?mso-application progid="Excel.Sheet"?>
3
- <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
4
- xmlns:o="urn:schemas-microsoft-com:office:office"
5
- xmlns:x="urn:schemas-microsoft-com:office:excel"
6
- xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
7
- xmlns:html="http://www.w3.org/TR/REC-html40">
8
- <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
9
- <LastAuthor>Licensed User</LastAuthor>
10
- <Created>2009-12-22T17:41:04Z</Created>
11
- <Version>12.00</Version>
12
- </DocumentProperties>
13
- <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
14
- <WindowHeight>8190</WindowHeight>
15
- <WindowWidth>16380</WindowWidth>
16
- <WindowTopX>0</WindowTopX>
17
- <WindowTopY>0</WindowTopY>
18
- <TabRatio>344</TabRatio>
19
- <ProtectStructure>False</ProtectStructure>
20
- <ProtectWindows>False</ProtectWindows>
21
- </ExcelWorkbook>
22
- <Styles>
23
- <Style ss:ID="Default" ss:Name="Normal">
24
- <Alignment ss:Vertical="Bottom"/>
25
- <Borders/>
26
- <Font ss:FontName="Arial" x:Family="Swiss"/>
27
- <Interior/>
28
- <NumberFormat/>
29
- <Protection/>
30
- </Style>
31
- <Style ss:ID="s21">
32
- <NumberFormat ss:Format="hh:mm:ss"/>
33
- </Style>
34
- <Style ss:ID="s22">
35
- <NumberFormat ss:Format="dd/mm/yy"/>
36
- </Style>
37
- <Style ss:ID="s23">
38
- <NumberFormat ss:Format="Fixed"/>
39
- </Style>
40
- </Styles>
41
- <Worksheet ss:Name="Tabelle1">
42
- <Table ss:ExpandedColumnCount="4" ss:ExpandedRowCount="6" x:FullColumns="1"
43
- x:FullRows="1" ss:DefaultColumnWidth="60.75">
44
- <Row>
45
- <Cell><Data ss:Type="String">Mittags:</Data></Cell>
46
- <Cell ss:StyleID="s21"><Data ss:Type="DateTime">1899-12-31T12:13:14.000</Data></Cell>
47
- <Cell ss:StyleID="s21"><Data ss:Type="DateTime">1899-12-31T15:16:00.000</Data></Cell>
48
- <Cell ss:StyleID="s21"><Data ss:Type="DateTime">1899-12-31T23:00:00.000</Data></Cell>
49
- </Row>
50
- <Row>
51
- <Cell ss:StyleID="s22"><Data ss:Type="DateTime">2007-11-21T00:00:00.000</Data></Cell>
52
- </Row>
53
- <Row ss:Index="6">
54
- <Cell ss:Index="2" ss:StyleID="s23"/>
55
- </Row>
56
- </Table>
57
- <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
58
- <PageSetup>
59
- <Layout x:StartPageNumber="1"/>
60
- <Header x:Margin="0.78749999999999998"
61
- x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12&amp;A"/>
62
- <Footer x:Margin="0.78749999999999998"
63
- x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12Seite &amp;P"/>
64
- <PageMargins x:Bottom="1.0527777777777778" x:Left="0.78749999999999998"
65
- x:Right="0.78749999999999998" x:Top="1.0527777777777778"/>
66
- </PageSetup>
67
- <Print>
68
- <ValidPrinterInfo/>
69
- <PaperSizeIndex>9</PaperSizeIndex>
70
- <HorizontalResolution>300</HorizontalResolution>
71
- <VerticalResolution>300</VerticalResolution>
72
- </Print>
73
- <Selected/>
74
- <Panes>
75
- <Pane>
76
- <Number>3</Number>
77
- <ActiveRow>5</ActiveRow>
78
- <ActiveCol>1</ActiveCol>
79
- </Pane>
80
- </Panes>
81
- <ProtectObjects>False</ProtectObjects>
82
- <ProtectScenarios>False</ProtectScenarios>
83
- </WorksheetOptions>
84
- </Worksheet>
85
- <Worksheet ss:Name="Tabelle2">
86
- <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
87
- x:FullRows="1" ss:DefaultColumnWidth="60.75">
88
- </Table>
89
- <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
90
- <PageSetup>
91
- <Header x:Margin="0.78749999999999998"
92
- x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12&amp;A"/>
93
- <Footer x:Margin="0.78749999999999998"
94
- x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12Seite &amp;P"/>
95
- <PageMargins x:Bottom="1.0527777777777778" x:Left="0.78749999999999998"
96
- x:Right="0.78749999999999998" x:Top="1.0527777777777778"/>
97
- </PageSetup>
98
- <Print>
99
- <ValidPrinterInfo/>
100
- <PaperSizeIndex>9</PaperSizeIndex>
101
- <HorizontalResolution>300</HorizontalResolution>
102
- <VerticalResolution>300</VerticalResolution>
103
- </Print>
104
- <ProtectObjects>False</ProtectObjects>
105
- <ProtectScenarios>False</ProtectScenarios>
106
- </WorksheetOptions>
107
- </Worksheet>
108
- <Worksheet ss:Name="Tabelle3">
109
- <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
110
- x:FullRows="1" ss:DefaultColumnWidth="60.75">
111
- </Table>
112
- <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
113
- <PageSetup>
114
- <Header x:Margin="0.78749999999999998"
115
- x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12&amp;A"/>
116
- <Footer x:Margin="0.78749999999999998"
117
- x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12Seite &amp;P"/>
118
- <PageMargins x:Bottom="1.0527777777777778" x:Left="0.78749999999999998"
119
- x:Right="0.78749999999999998" x:Top="1.0527777777777778"/>
120
- </PageSetup>
121
- <Print>
122
- <ValidPrinterInfo/>
123
- <PaperSizeIndex>9</PaperSizeIndex>
124
- <HorizontalResolution>300</HorizontalResolution>
125
- <VerticalResolution>300</VerticalResolution>
126
- </Print>
127
- <ProtectObjects>False</ProtectObjects>
128
- <ProtectScenarios>False</ProtectScenarios>
129
- </WorksheetOptions>
130
- </Worksheet>
131
- </Workbook>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,184 +0,0 @@
1
- <?xml version="1.0"?>
2
- <?mso-application progid="Excel.Sheet"?>
3
- <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
4
- xmlns:o="urn:schemas-microsoft-com:office:office"
5
- xmlns:x="urn:schemas-microsoft-com:office:excel"
6
- xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
7
- xmlns:html="http://www.w3.org/TR/REC-html40">
8
- <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
9
- <LastAuthor>Licensed User</LastAuthor>
10
- <Created>2009-12-22T17:41:27Z</Created>
11
- <Version>12.00</Version>
12
- </DocumentProperties>
13
- <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
14
- <WindowHeight>8190</WindowHeight>
15
- <WindowWidth>16380</WindowWidth>
16
- <WindowTopX>0</WindowTopX>
17
- <WindowTopY>0</WindowTopY>
18
- <ProtectStructure>False</ProtectStructure>
19
- <ProtectWindows>False</ProtectWindows>
20
- </ExcelWorkbook>
21
- <Styles>
22
- <Style ss:ID="Default" ss:Name="Normal">
23
- <Alignment ss:Vertical="Bottom"/>
24
- <Borders/>
25
- <Font ss:FontName="Arial" x:Family="Swiss"/>
26
- <Interior/>
27
- <NumberFormat/>
28
- <Protection/>
29
- </Style>
30
- <Style ss:ID="s21">
31
- <Font ss:FontName="Arial" x:Family="Swiss" ss:Bold="1" ss:Underline="Single"/>
32
- <NumberFormat ss:Format="yyyy\-mm\-dd"/>
33
- </Style>
34
- <Style ss:ID="s22">
35
- <Font ss:FontName="Arial" x:Family="Swiss" ss:Bold="1" ss:Underline="Single"/>
36
- <NumberFormat ss:Format="Standard"/>
37
- </Style>
38
- <Style ss:ID="s23">
39
- <Font ss:FontName="Arial" x:Family="Swiss" ss:Bold="1" ss:Underline="Single"/>
40
- </Style>
41
- <Style ss:ID="s24">
42
- <NumberFormat ss:Format="yyyy\-mm\-dd"/>
43
- </Style>
44
- <Style ss:ID="s25">
45
- <NumberFormat ss:Format="Standard"/>
46
- </Style>
47
- </Styles>
48
- <Worksheet ss:Name="Sheet1">
49
- <Table ss:ExpandedColumnCount="6" ss:ExpandedRowCount="6" x:FullColumns="1"
50
- x:FullRows="1">
51
- <Column ss:AutoFitWidth="0" ss:Width="53.25"/>
52
- <Row>
53
- <Cell ss:StyleID="s21"/>
54
- <Cell ss:StyleID="s22"/>
55
- <Cell ss:StyleID="s22"/>
56
- <Cell ss:StyleID="s23"/>
57
- <Cell ss:StyleID="s23"/>
58
- <Cell ss:StyleID="s23"/>
59
- </Row>
60
- <Row>
61
- <Cell ss:StyleID="s21"/>
62
- <Cell ss:StyleID="s22"/>
63
- <Cell ss:StyleID="s22"/>
64
- <Cell ss:StyleID="s23"/>
65
- <Cell ss:StyleID="s23"/>
66
- <Cell ss:StyleID="s23"/>
67
- </Row>
68
- <Row>
69
- <Cell ss:StyleID="s21"><Data ss:Type="String">Date</Data></Cell>
70
- <Cell ss:StyleID="s22"><Data ss:Type="String">Start time</Data></Cell>
71
- <Cell ss:StyleID="s22"><Data ss:Type="String">End time</Data></Cell>
72
- <Cell ss:StyleID="s23"><Data ss:Type="String">Pause</Data></Cell>
73
- <Cell ss:StyleID="s23"><Data ss:Type="String">Sum</Data></Cell>
74
- <Cell ss:StyleID="s23"><Data ss:Type="String">Comment</Data></Cell>
75
- </Row>
76
- <Row>
77
- <Cell ss:StyleID="s24"><Data ss:Type="DateTime">2007-05-07T00:00:00.000</Data></Cell>
78
- <Cell ss:StyleID="s25"><Data ss:Type="Number">9.25</Data></Cell>
79
- <Cell ss:StyleID="s25"><Data ss:Type="Number">10.25</Data></Cell>
80
- <Cell><Data ss:Type="Number">0</Data></Cell>
81
- <Cell ss:Formula="=RC[-2]-RC[-3]-RC[-1]"><Data ss:Type="Number">1</Data></Cell>
82
- <Cell><Data ss:Type="String">Task 1</Data></Cell>
83
- </Row>
84
- <Row>
85
- <Cell ss:StyleID="s24"/>
86
- <Cell ss:StyleID="s25"/>
87
- <Cell ss:StyleID="s25"/>
88
- </Row>
89
- <Row>
90
- <Cell ss:StyleID="s24"><Data ss:Type="DateTime">2007-05-07T00:00:00.000</Data></Cell>
91
- <Cell ss:StyleID="s25"><Data ss:Type="Number">10.75</Data></Cell>
92
- <Cell ss:StyleID="s25"><Data ss:Type="Number">10.75</Data></Cell>
93
- <Cell><Data ss:Type="Number">0</Data></Cell>
94
- <Cell ss:Formula="=RC[-2]-RC[-3]-RC[-1]"><Data ss:Type="Number">0</Data></Cell>
95
- <Cell><Data ss:Type="String">Task 1</Data></Cell>
96
- </Row>
97
- </Table>
98
- <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
99
- <PageSetup>
100
- <Header x:Margin="0.51180555555555551"/>
101
- <Footer x:Margin="0.51180555555555551"/>
102
- <PageMargins x:Bottom="0.98402777777777772" x:Left="0.74791666666666667"
103
- x:Right="0.74791666666666667" x:Top="0.98402777777777772"/>
104
- </PageSetup>
105
- <Print>
106
- <ValidPrinterInfo/>
107
- <HorizontalResolution>300</HorizontalResolution>
108
- <VerticalResolution>300</VerticalResolution>
109
- </Print>
110
- <Selected/>
111
- <Panes>
112
- <Pane>
113
- <Number>3</Number>
114
- <ActiveRow>6</ActiveRow>
115
- </Pane>
116
- </Panes>
117
- <ProtectObjects>False</ProtectObjects>
118
- <ProtectScenarios>False</ProtectScenarios>
119
- </WorksheetOptions>
120
- </Worksheet>
121
- <Worksheet ss:Name="Sheet2">
122
- <Table ss:ExpandedColumnCount="5" ss:ExpandedRowCount="3" x:FullColumns="1"
123
- x:FullRows="1">
124
- <Column ss:Index="3" ss:AutoFitWidth="0" ss:Width="53.25"/>
125
- <Row>
126
- <Cell ss:Index="3" ss:StyleID="s21"><Data ss:Type="String">Date</Data></Cell>
127
- <Cell ss:StyleID="s21"/>
128
- <Cell ss:StyleID="s22"><Data ss:Type="String">Start time</Data></Cell>
129
- </Row>
130
- <Row>
131
- <Cell ss:Index="3" ss:StyleID="s24"><Data ss:Type="DateTime">2007-05-07T00:00:00.000</Data></Cell>
132
- <Cell ss:StyleID="s24"/>
133
- <Cell ss:StyleID="s25"><Data ss:Type="Number">9.25</Data></Cell>
134
- </Row>
135
- <Row>
136
- <Cell ss:Index="3" ss:StyleID="s24"><Data ss:Type="DateTime">2007-05-07T00:00:00.000</Data></Cell>
137
- <Cell ss:StyleID="s24"/>
138
- <Cell ss:StyleID="s25"><Data ss:Type="Number">10.75</Data></Cell>
139
- </Row>
140
- </Table>
141
- <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
142
- <PageSetup>
143
- <Header x:Margin="0.51180555555555551"/>
144
- <Footer x:Margin="0.51180555555555551"/>
145
- <PageMargins x:Bottom="0.98402777777777772" x:Left="0.74791666666666667"
146
- x:Right="0.74791666666666667" x:Top="0.98402777777777772"/>
147
- </PageSetup>
148
- <Print>
149
- <ValidPrinterInfo/>
150
- <HorizontalResolution>300</HorizontalResolution>
151
- <VerticalResolution>300</VerticalResolution>
152
- </Print>
153
- <Panes>
154
- <Pane>
155
- <Number>3</Number>
156
- <ActiveRow>10</ActiveRow>
157
- <ActiveCol>2</ActiveCol>
158
- </Pane>
159
- </Panes>
160
- <ProtectObjects>False</ProtectObjects>
161
- <ProtectScenarios>False</ProtectScenarios>
162
- </WorksheetOptions>
163
- </Worksheet>
164
- <Worksheet ss:Name="Sheet3">
165
- <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
166
- x:FullRows="1">
167
- </Table>
168
- <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
169
- <PageSetup>
170
- <Header x:Margin="0.51180555555555551"/>
171
- <Footer x:Margin="0.51180555555555551"/>
172
- <PageMargins x:Bottom="0.98402777777777772" x:Left="0.74791666666666667"
173
- x:Right="0.74791666666666667" x:Top="0.98402777777777772"/>
174
- </PageSetup>
175
- <Print>
176
- <ValidPrinterInfo/>
177
- <HorizontalResolution>300</HorizontalResolution>
178
- <VerticalResolution>300</VerticalResolution>
179
- </Print>
180
- <ProtectObjects>False</ProtectObjects>
181
- <ProtectScenarios>False</ProtectScenarios>
182
- </WorksheetOptions>
183
- </Worksheet>
184
- </Workbook>
data/test/rm_sub_test.rb DELETED
@@ -1,12 +0,0 @@
1
- # Loeschen von Dateien, wenn mit Excel geoeffnet
2
- require 'roo'
3
-
4
- oo = Excel.new("tmp.xls")
5
- #oo = OpenOffice.new("tmp.ods")
6
- oo.default_sheet = oo.sheets.first
7
- oo.first_row.upto(oo.last_row) do |row|
8
- oo.first_column.upto(oo.last_column) do |col|
9
- p oo.cell(row,col)
10
- end
11
- end
12
-
data/test/rm_test.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'spreadsheet'
2
-
3
- book = Spreadsheet.open 'tmp.xls'
4
- sheet = book.worksheet 0
5
- sheet.each do |row| puts row[0] end
6
-
7
- FileUtils.rm("tmp.xls")