spreadsheet_ods/
lib.rs

1#![doc = include_str!("../crate.md")]
2
3pub use color;
4pub use zip::CompressionMethod;
5
6pub use crate::cell_::{CellContent, CellContentRef};
7pub use crate::error::{OdsError, OdsResult};
8pub use crate::format::{
9    ValueFormatBoolean, ValueFormatCurrency, ValueFormatDateTime, ValueFormatNumber,
10    ValueFormatPercentage, ValueFormatRef, ValueFormatText, ValueFormatTimeDuration,
11};
12pub use crate::io::read::{
13    read_fods, read_fods_buf, read_fods_from, read_ods, read_ods_buf, read_ods_from, OdsOptions,
14};
15pub use crate::io::write::{
16    write_fods, write_fods_buf, write_fods_to, write_ods, write_ods_buf,
17    write_ods_buf_uncompressed, write_ods_to, OdsWriteOptions,
18};
19pub use crate::refs::{CCol, CRow, CellRange, CellRef, ColRange, RowRange};
20pub use crate::sheet_::Sheet;
21pub use crate::style::units::{Angle, Length};
22pub use crate::style::{CellStyle, CellStyleRef};
23pub use crate::value_::{Value, ValueType};
24pub use crate::workbook_::WorkBook;
25
26#[macro_use]
27mod macro_attr_draw;
28#[macro_use]
29mod macro_attr_style;
30#[macro_use]
31mod macro_attr_fo;
32#[macro_use]
33mod macro_attr_svg;
34#[macro_use]
35mod macro_attr_text;
36#[macro_use]
37mod macro_attr_number;
38#[macro_use]
39mod macro_attr_table;
40#[macro_use]
41mod macro_attr_xlink;
42#[macro_use]
43mod macro_units;
44#[macro_use]
45mod macro_format;
46#[macro_use]
47mod macro_style;
48#[macro_use]
49mod macro_text;
50
51mod attrmap2;
52mod cell_;
53mod config;
54mod ds;
55mod error;
56mod io;
57mod locale;
58mod sheet_;
59#[macro_use]
60mod value_;
61mod workbook_;
62
63pub mod cell {
64    //! Detail structs for a Cell.
65    pub use crate::cell_::CellSpan;
66}
67pub mod condition;
68pub mod defaultstyles;
69pub mod draw;
70pub mod format;
71#[macro_use]
72pub mod formula;
73pub mod manifest;
74pub mod metadata;
75pub mod refs;
76pub mod sheet {
77    //! Detail structs for a Sheet.
78    pub use crate::sheet_::{CellIter, Grouped, Range, SheetConfig, SplitMode, Visibility};
79}
80pub mod style;
81pub mod text;
82pub mod validation;
83pub mod workbook {
84    //! Detail structs for the WorkBook.
85    pub use crate::workbook_::{EventListener, Script, WorkBookConfig};
86}
87pub mod xlink;
88pub mod xmltree;
89
90// Use the IndexMap for debugging, makes diffing much easier.
91// Otherwise the std::HashMap is good.
92// pub(crate) type HashMap<K, V> = indexmap::IndexMap<K, V>;
93// pub(crate) type HashMapIter<'a, K, V> = indexmap::map::Iter<'a, K, V>;
94pub(crate) type HashMap<K, V> = std::collections::HashMap<K, V>;
95// pub(crate) type HashMapIter<'a, K, V> = std::collections::hash_map::Iter<'a, K, V>;