summaryrefslogtreecommitdiffstats
path: root/test/xls-xml/styles
diff options
context:
space:
mode:
Diffstat (limited to 'test/xls-xml/styles')
-rw-r--r--test/xls-xml/styles/column-styles.xml175
-rw-r--r--test/xls-xml/styles/data-offset.xml28
-rw-r--r--test/xls-xml/styles/direct-format.xml97
3 files changed, 300 insertions, 0 deletions
diff --git a/test/xls-xml/styles/column-styles.xml b/test/xls-xml/styles/column-styles.xml
new file mode 100644
index 0000000..eab62f5
--- /dev/null
+++ b/test/xls-xml/styles/column-styles.xml
@@ -0,0 +1,175 @@
+<?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">
+ <Author>Kohei Yoshida</Author>
+ <LastAuthor>Kohei Yoshida</LastAuthor>
+ <Created>2022-09-20T00:22:37Z</Created>
+ <LastSaved>2022-09-20T01:16:51Z</LastSaved>
+ <Version>16.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+ <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+ <WindowHeight>12315</WindowHeight>
+ <WindowWidth>28800</WindowWidth>
+ <WindowTopX>32767</WindowTopX>
+ <WindowTopY>32767</WindowTopY>
+ <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="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
+ <Interior/>
+ <NumberFormat/>
+ <Protection/>
+ </Style>
+ <Style ss:ID="s27" ss:Name="Bad">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#800000"/>
+ <Interior ss:Color="#FFC7CE" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s26" ss:Name="Good">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#008000"/>
+ <Interior ss:Color="#C6EFCE" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s28" ss:Name="Neutral">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#993300"/>
+ <Interior ss:Color="#FFEB9C" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s35" ss:Name="Note">
+ <Borders>
+ <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"
+ ss:Color="#B2B2B2"/>
+ <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"
+ ss:Color="#B2B2B2"/>
+ <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"
+ ss:Color="#B2B2B2"/>
+ <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"
+ ss:Color="#B2B2B2"/>
+ </Borders>
+ <Interior ss:Color="#FFFFCC" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s69" ss:Parent="s35">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
+ </Style>
+ <Style ss:ID="s70">
+ <Interior ss:Color="#92D050" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s71" ss:Parent="s27">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#800000"/>
+ <Interior ss:Color="#92D050" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s72" ss:Parent="s26">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#008000"/>
+ <Interior ss:Color="#92D050" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s73" ss:Parent="s28">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#993300"/>
+ <Interior ss:Color="#92D050" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s74" ss:Parent="s35">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
+ <Interior ss:Color="#92D050" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s75">
+ <Interior ss:Color="#FFC000" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s76" ss:Parent="s27">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#800000"/>
+ <Interior ss:Color="#FFC000" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s77" ss:Parent="s26">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#008000"/>
+ <Interior ss:Color="#FFC000" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s78" ss:Parent="s28">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#993300"/>
+ <Interior ss:Color="#FFC000" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s79" ss:Parent="s35">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
+ <Interior ss:Color="#FFC000" ss:Pattern="Solid"/>
+ </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+ <Table ss:ExpandedColumnCount="6" ss:ExpandedRowCount="11" x:FullColumns="1"
+ x:FullRows="1" ss:DefaultRowHeight="15">
+ <Column ss:Index="2" ss:StyleID="s27"/>
+ <Column ss:StyleID="s26"/>
+ <Column ss:StyleID="s28"/>
+ <Column ss:Index="6" ss:StyleID="s69"/>
+ <Row ss:AutoFitHeight="0">
+ <Cell><Data ss:Type="String">Normal</Data></Cell>
+ <Cell><Data ss:Type="String">Bad</Data></Cell>
+ <Cell><Data ss:Type="String">Good</Data></Cell>
+ <Cell><Data ss:Type="String">Neutral</Data></Cell>
+ <Cell><Data ss:Type="String">Normal</Data></Cell>
+ <Cell><Data ss:Type="String">Note</Data></Cell>
+ </Row>
+ <Row ss:Index="10" ss:AutoFitHeight="0" ss:StyleID="s70">
+ <Cell><Data ss:Type="String">Green background on row 10</Data></Cell>
+ <Cell ss:StyleID="s71"/>
+ <Cell ss:StyleID="s72"/>
+ <Cell ss:StyleID="s73"/>
+ <Cell ss:Index="6" ss:StyleID="s74"/>
+ </Row>
+ <Row ss:AutoFitHeight="0" ss:StyleID="s75">
+ <Cell><Data ss:Type="String">Orange background on row 11</Data></Cell>
+ <Cell ss:StyleID="s76"/>
+ <Cell ss:StyleID="s77"/>
+ <Cell ss:StyleID="s78"/>
+ <Cell ss:Index="6" ss:StyleID="s79"/>
+ </Row>
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.3"/>
+ <Footer x:Margin="0.3"/>
+ <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+ </PageSetup>
+ <Unsynced/>
+ <Panes>
+ <Pane>
+ <Number>3</Number>
+ <ActiveRow>10</ActiveRow>
+ </Pane>
+ </Panes>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+ <Table ss:ExpandedColumnCount="4" ss:ExpandedRowCount="1" x:FullColumns="1"
+ x:FullRows="1" ss:DefaultRowHeight="15">
+ <Column ss:Index="2" ss:StyleID="s26" ss:Span="2"/>
+ <Row>
+ <Cell ss:Index="2"><Data ss:Type="String">Good style on columns B:D</Data></Cell>
+ </Row>
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.3"/>
+ <Footer x:Margin="0.3"/>
+ <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+ </PageSetup>
+ <Selected/>
+ <Panes>
+ <Pane>
+ <Number>3</Number>
+ <ActiveCol>1</ActiveCol>
+ </Pane>
+ </Panes>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+</Workbook>
diff --git a/test/xls-xml/styles/data-offset.xml b/test/xls-xml/styles/data-offset.xml
new file mode 100644
index 0000000..60ff78f
--- /dev/null
+++ b/test/xls-xml/styles/data-offset.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+<Styles>
+<Style ss:ID="s1"><Font ss:Bold="1" ss:Color="#008000"/><NumberFormat ss:Format="0.00_ ;[Red]\-0.00\ "/></Style>
+<Style ss:ID="s2"><Font ss:Color="red"/></Style>
+<Style ss:ID="s3"><Font ss:Color="blue"/><NumberFormat ss:Format="yyyy/mm\-dd;@"/></Style>
+</Styles>
+<Worksheet ss:Name="Sheet1">
+<Table ss:TopCell="2" ss:LeftCell="2" ss:DefaultColumnWidth="20" ss:ExpandedColumnCount="3">
+<Column ss:StyleID="s1" ss:AutoFitWidth="1"/>
+<Column ss:StyleID="s2"/>
+<Column ss:StyleID="s3" ss:Index="3" ss:AutoFitWidth="1"/>
+<Row ss:StyleID="s1">
+<Cell ss:Index="2"><Data ss:Type="String">Title</Data></Cell>
+</Row>
+<Row>
+<Cell><Data ss:Type="Number">111</Data></Cell>
+<Cell><Data ss:Type="String">aaaa</Data></Cell>
+<Cell><Data ss:Type="DateTime">1999-04-01</Data></Cell>
+</Row>
+<Row>
+<Cell><Data ss:Type="Number">2222</Data></Cell>
+<Cell><Data ss:Type="String">bbbb</Data></Cell>
+<Cell><Data ss:Type="DateTime">1999-04-02T00:00:00.000</Data></Cell>
+</Row>
+</Table>
+</Worksheet>
+</Workbook> \ No newline at end of file
diff --git a/test/xls-xml/styles/direct-format.xml b/test/xls-xml/styles/direct-format.xml
new file mode 100644
index 0000000..4a45a94
--- /dev/null
+++ b/test/xls-xml/styles/direct-format.xml
@@ -0,0 +1,97 @@
+<?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">
+ <Author>Kohei Yoshida</Author>
+ <LastAuthor>Kohei Yoshida</LastAuthor>
+ <Created>2022-09-20T21:06:33Z</Created>
+ <Version>16.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+ <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+ <WindowHeight>12315</WindowHeight>
+ <WindowWidth>28800</WindowWidth>
+ <WindowTopX>32767</WindowTopX>
+ <WindowTopY>32767</WindowTopY>
+ <ProtectStructure>False</ProtectStructure>
+ <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+ <Style ss:ID="Default" ss:Name="Normal">
+ <Alignment ss:Vertical="Bottom"/>
+ <Borders/>
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
+ <Interior/>
+ <NumberFormat/>
+ <Protection/>
+ </Style>
+ <Style ss:ID="s26" ss:Name="Good">
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#006100"/>
+ <Interior ss:Color="#C6EFCE" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s65">
+ <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
+ <Borders>
+ <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
+ </Borders>
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"
+ ss:Bold="1"/>
+ </Style>
+ <Style ss:ID="s70">
+ <Alignment ss:Horizontal="Right" ss:Vertical="Bottom" ss:WrapText="1"/>
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="14" ss:Color="#375623"/>
+ <Interior ss:Color="#FFFF00" ss:Pattern="Solid"/>
+ </Style>
+ <Style ss:ID="s74" ss:Parent="s26">
+ <Alignment ss:Horizontal="Center" ss:Vertical="Bottom" ss:WrapText="1"/>
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#006100"
+ ss:Bold="1"/>
+ </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+ <Table ss:ExpandedColumnCount="4" ss:ExpandedRowCount="8" x:FullColumns="1"
+ x:FullRows="1" ss:DefaultRowHeight="15">
+ <Column ss:Index="2" ss:AutoFitWidth="0" ss:Width="178.5"/>
+ <Column ss:Index="4" ss:AutoFitWidth="0" ss:Width="122.25"/>
+ <Row ss:Index="2">
+ <Cell ss:Index="2" ss:StyleID="s65"><Data ss:Type="String">Bold and underlined</Data></Cell>
+ </Row>
+ <Row ss:Index="4" ss:Height="56.25">
+ <Cell ss:Index="2" ss:StyleID="s70"><Data ss:Type="String">Yellow background&#10;and&#10;right aligned</Data></Cell>
+ </Row>
+ <Row ss:Index="6" ss:AutoFitHeight="0" ss:Height="33">
+ <Cell ss:Index="4" ss:StyleID="s26"><Data ss:Type="String">Named Format (Good)</Data></Cell>
+ </Row>
+ <Row ss:Index="8" ss:Height="30">
+ <Cell ss:Index="4" ss:StyleID="s74"><Data ss:Type="String">Named Format (Good) plus direct format on top</Data></Cell>
+ </Row>
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.3"/>
+ <Footer x:Margin="0.3"/>
+ <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+ </PageSetup>
+ <Print>
+ <ValidPrinterInfo/>
+ <VerticalResolution>0</VerticalResolution>
+ </Print>
+ <Selected/>
+ <Panes>
+ <Pane>
+ <Number>3</Number>
+ <ActiveRow>10</ActiveRow>
+ <ActiveCol>3</ActiveCol>
+ </Pane>
+ </Panes>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+</Workbook>