Struct spreadsheet_ods::OdsOptions
source · pub struct OdsOptions { /* private fields */ }
Expand description
Read options for ods-files.
Implementations§
source§impl OdsOptions
impl OdsOptions
sourcepub fn content_only(self) -> Self
pub fn content_only(self) -> Self
Parse the content only.
Doesn’t buffer any extra files and ignores styles etc. This saves quite some time if only the cell-data is needed.
sourcepub fn read_styles(self) -> Self
pub fn read_styles(self) -> Self
Parse everything.
Reads styles and buffers extra files. This is the default. If the data will be written again this options should be used.
sourcepub fn use_repeat_for_cells(self) -> Self
pub fn use_repeat_for_cells(self) -> Self
The value of table:number-columns-repeated is stored as part of the cell-data, and the cell-data is not duplicated. The cell-data can only be found at the original row/col.
This can save a bit of time when reading, but makes working with the data harder. Keeping track of overlapping cells makes this tricky.
sourcepub fn use_clone_for_cells(self) -> Self
pub fn use_clone_for_cells(self) -> Self
Cells are cloned based on their table:number-columns-repeated.
This is the default behaviour. The cell-data can be found at each row/col that the repeat count includes.
Most of the time the repeat-count is used for empty cells to fill the required structure. These completely empty cells are always dumped.
See: ignore_empty_cells().
sourcepub fn ignore_empty_cells(self) -> Self
pub fn ignore_empty_cells(self) -> Self
Ignores cells without value and formula.
This can be useful, if only the data is needed. If you store such a spreadsheet you will loose cell-formating, spans etc.
sourcepub fn read_empty_cells(self) -> Self
pub fn read_empty_cells(self) -> Self
Reads cells without value and formula.
This is the default behaviour. As such cells can have a style, annotations etc it is recommended to use this option.
Cells without any information, that are only structural are always ignored.