A very fast and lightweight (no dependency) library for creating ODS (Open Document Spreadsheet, mainly for Calc) files in Java. It's a Martin Schulz's SimpleODS fork
Then in content.xml:
<style:style style:name="tableHeadStyle-_-float-datastyle" style:family="table-cell" style:parent-style-name="tableHead2Style" style:data-style-name="float-datastyle"/>
Hi!
1. If:
Then in
content.xml
:Has ref
style:data-style-name="float-datastyle"
, but no<number:number-style style:name="float-datastyle"
incontent.xml
But if call
cell.setDataStyle(dsf)
, then<number:number-style style:name="float-datastyle"
is appears incontent.xml
2. If
Then in
content.xml
:<style:style style:name="tableHeadStyle-_-float-datastyle" style:family="table-cell" style:parent-style-name="tableHead2Style" style:data-style-name="float-datastyle"/>
But
tableHead2Style
is automatic-style (.hidden()
) and ignored by OpenOffice instyle:parent-style-name
attribute: "The style:parent-style-name attribute specifies the name of a parent style. The parent style cannot be an automatic style and shall exist." http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1417978_253892949I workaround it by set DataStyle to TableCellStyle and
cell.setDataStyle(dsf)
only in one not used empty cell.