Permalink
Browse files

add test files and update tests for 2003xml

  • Loading branch information...
Hugh McGowan
Hugh McGowan committed Dec 22, 2009
1 parent 4750e5b commit 2267dc6bb44071e0eb95d0eaec4aea4c9909103c
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -604,7 +604,7 @@ def one_cell_output(onecelltype,onecell,empty)
else
raise "unhandled onecell-class "+onecell.class.to_s
end
- when :date
+ when :date, :date
str << onecell.to_s
when :time
str << GenericSpreadsheet.integer_to_timestring(onecell)
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,152 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+ <LastAuthor>Licensed User</LastAuthor>
+ <Created>2009-12-22T17:36:10Z</Created>
+ <Version>12.00</Version>
+ </DocumentProperties>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+ <WindowHeight>8190</WindowHeight>
+ <WindowWidth>16380</WindowWidth>
+ <WindowTopX>0</WindowTopX>
+ <WindowTopY>0</WindowTopY>
+ <TabRatio>344</TabRatio>
+ <ActiveSheet>1</ActiveSheet>
+ <ProtectStructure>False</ProtectStructure>
+ <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+ <Style ss:ID="Default" ss:Name="Normal">
+ <Alignment ss:Vertical="Bottom"/>
+ <Borders/>
+ <Font ss:FontName="Arial" x:Family="Swiss"/>
+ <Interior/>
+ <NumberFormat/>
+ <Protection/>
+ </Style>
+ <Style ss:ID="s21">
+ <Font ss:FontName="Arial" x:Family="Swiss" ss:Bold="1"/>
+ </Style>
+ <Style ss:ID="s22">
+ <NumberFormat ss:Format="dd/mm/yy"/>
+ </Style>
+ <Style ss:ID="s23">
+ <NumberFormat/>
+ </Style>
+ </Styles>
+ <Worksheet ss:Name="2007_12">
+ <Table ss:ExpandedColumnCount="6" ss:ExpandedRowCount="4" x:FullColumns="1"
+ x:FullRows="1" ss:DefaultColumnWidth="60.75">
+ <Row ss:StyleID="s21">
+ <Cell><Data ss:Type="String">Datum</Data></Cell>
+ <Cell><Data ss:Type="String">von</Data></Cell>
+ <Cell><Data ss:Type="String">bis</Data></Cell>
+ <Cell><Data ss:Type="String">Pause</Data></Cell>
+ <Cell><Data ss:Type="String">total</Data></Cell>
+ <Cell><Data ss:Type="String">Bemerkung</Data></Cell>
+ </Row>
+ <Row>
+ <Cell ss:StyleID="s22"><Data ss:Type="DateTime">2007-12-17T00:00:00.000</Data></Cell>
+ <Cell><Data ss:Type="Number">10</Data></Cell>
+ <Cell><Data ss:Type="Number">14</Data></Cell>
+ <Cell><Data ss:Type="Number">0</Data></Cell>
+ <Cell ss:Formula="=RC[-2]-RC[-3]-RC[-1]"><Data ss:Type="Number">4</Data></Cell>
+ <Cell><Data ss:Type="String">so vereinbart, gilt als 8 h Tag</Data></Cell>
+ </Row>
+ <Row>
+ <Cell ss:StyleID="s22"><Data ss:Type="DateTime">2007-12-18T00:00:00.000</Data></Cell>
+ <Cell><Data ss:Type="Number">12</Data></Cell>
+ <Cell><Data ss:Type="Number">20</Data></Cell>
+ <Cell><Data ss:Type="Number">0</Data></Cell>
+ <Cell ss:Formula="=RC[-2]-RC[-3]-RC[-1]"><Data ss:Type="Number">8</Data></Cell>
+ <Cell><Data ss:Type="String">so vereinbart, gilt als 8 h Tag</Data></Cell>
+ </Row>
+ <Row>
+ <Cell ss:StyleID="s22"><Data ss:Type="DateTime">2007-12-19T00:00:00.000</Data></Cell>
+ <Cell><Data ss:Type="Number">10</Data></Cell>
+ <Cell ss:StyleID="s23"><Data ss:Type="Number">20.5</Data></Cell>
+ <Cell><Data ss:Type="Number">0</Data></Cell>
+ <Cell ss:Formula="=RC[-2]-RC[-3]-RC[-1]"><Data ss:Type="Number">10.5</Data></Cell>
+ </Row>
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Layout x:StartPageNumber="1"/>
+ <Header x:Margin="0.78749999999999998"
+ x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12&amp;A"/>
+ <Footer x:Margin="0.78749999999999998"
+ x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12Seite &amp;P"/>
+ <PageMargins x:Bottom="1.0527777777777778" x:Left="0.78749999999999998"
+ x:Right="0.78749999999999998" x:Top="1.0527777777777778"/>
+ </PageSetup>
+ <Print>
+ <ValidPrinterInfo/>
+ <PaperSizeIndex>9</PaperSizeIndex>
+ <HorizontalResolution>300</HorizontalResolution>
+ <VerticalResolution>300</VerticalResolution>
+ </Print>
+ <Panes>
+ <Pane>
+ <Number>3</Number>
+ <ActiveRow>3</ActiveRow>
+ <ActiveCol>5</ActiveCol>
+ </Pane>
+ </Panes>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Tabelle2">
+ <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+ x:FullRows="1" ss:DefaultColumnWidth="60.75">
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.78749999999999998"
+ x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12&amp;A"/>
+ <Footer x:Margin="0.78749999999999998"
+ x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12Seite &amp;P"/>
+ <PageMargins x:Bottom="1.0527777777777778" x:Left="0.78749999999999998"
+ x:Right="0.78749999999999998" x:Top="1.0527777777777778"/>
+ </PageSetup>
+ <Print>
+ <ValidPrinterInfo/>
+ <PaperSizeIndex>9</PaperSizeIndex>
+ <HorizontalResolution>300</HorizontalResolution>
+ <VerticalResolution>300</VerticalResolution>
+ </Print>
+ <Selected/>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Tabelle3">
+ <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+ x:FullRows="1" ss:DefaultColumnWidth="60.75">
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.78749999999999998"
+ x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12&amp;A"/>
+ <Footer x:Margin="0.78749999999999998"
+ x:Data="&amp;C&amp;&quot;Times New Roman,Standard&quot;&amp;12Seite &amp;P"/>
+ <PageMargins x:Bottom="1.0527777777777778" x:Left="0.78749999999999998"
+ x:Right="0.78749999999999998" x:Top="1.0527777777777778"/>
+ </PageSetup>
+ <Print>
+ <ValidPrinterInfo/>
+ <PaperSizeIndex>9</PaperSizeIndex>
+ <HorizontalResolution>300</HorizontalResolution>
+ <VerticalResolution>300</VerticalResolution>
+ </Print>
+ <PageBreakZoom>60</PageBreakZoom>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+</Workbook>
View
@@ -0,0 +1,112 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+ <LastAuthor>Licensed User</LastAuthor>
+ <Created>2009-12-22T17:37:13Z</Created>
+ <Version>12.00</Version>
+ </DocumentProperties>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+ <WindowHeight>8190</WindowHeight>
+ <WindowWidth>16380</WindowWidth>
+ <WindowTopX>0</WindowTopX>
+ <WindowTopY>0</WindowTopY>
+ <ProtectStructure>False</ProtectStructure>
+ <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+ <Style ss:ID="Default" ss:Name="Normal">
+ <Alignment ss:Vertical="Bottom"/>
+ <Borders/>
+ <Font ss:FontName="Arial" x:Family="Swiss"/>
+ <Interior/>
+ <NumberFormat/>
+ <Protection/>
+ </Style>
+ <Style ss:ID="s21">
+ <Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
+ </Style>
+ <Style ss:ID="s22">
+ <Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
+ <NumberFormat ss:Format="&quot;TRUE&quot;;&quot;TRUE&quot;;&quot;FALSE&quot;"/>
+ </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+ <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="2" x:FullColumns="1"
+ x:FullRows="1">
+ <Column ss:StyleID="s21" ss:AutoFitWidth="0" ss:Width="47.25"/>
+ <Row>
+ <Cell ss:StyleID="s22"><Data ss:Type="Boolean">1</Data></Cell>
+ </Row>
+ <Row>
+ <Cell ss:StyleID="s22"><Data ss:Type="Boolean">0</Data></Cell>
+ </Row>
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.51180555555555551"/>
+ <Footer x:Margin="0.51180555555555551"/>
+ <PageMargins x:Bottom="0.98402777777777772" x:Left="0.74791666666666667"
+ x:Right="0.74791666666666667" x:Top="0.98402777777777772"/>
+ </PageSetup>
+ <Print>
+ <ValidPrinterInfo/>
+ <HorizontalResolution>300</HorizontalResolution>
+ <VerticalResolution>300</VerticalResolution>
+ </Print>
+ <Selected/>
+ <Panes>
+ <Pane>
+ <Number>3</Number>
+ <ActiveRow>2</ActiveRow>
+ </Pane>
+ </Panes>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+ <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+ x:FullRows="1">
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.51180555555555551"/>
+ <Footer x:Margin="0.51180555555555551"/>
+ <PageMargins x:Bottom="0.98402777777777772" x:Left="0.74791666666666667"
+ x:Right="0.74791666666666667" x:Top="0.98402777777777772"/>
+ </PageSetup>
+ <Print>
+ <ValidPrinterInfo/>
+ <HorizontalResolution>300</HorizontalResolution>
+ <VerticalResolution>300</VerticalResolution>
+ </Print>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+ <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+ x:FullRows="1">
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.51180555555555551"/>
+ <Footer x:Margin="0.51180555555555551"/>
+ <PageMargins x:Bottom="0.98402777777777772" x:Left="0.74791666666666667"
+ x:Right="0.74791666666666667" x:Top="0.98402777777777772"/>
+ </PageSetup>
+ <Print>
+ <ValidPrinterInfo/>
+ <HorizontalResolution>300</HorizontalResolution>
+ <VerticalResolution>300</VerticalResolution>
+ </Print>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+</Workbook>
Oops, something went wrong.

0 comments on commit 2267dc6

Please sign in to comment.