Skip to main content

ravenrs_sheet/model/
mod.rs

1//! The GridCraft document model: workbooks, sheets, a copy-on-write cell store, interned
2//! styles, defined names, tables, conditional formats, validation, comments, charts and print
3//! settings. Pure data; calculation lives in `gridcraft-calc`.
4#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
5#![forbid(unsafe_code)]
6
7mod b64;
8pub mod cell;
9mod cellmap;
10pub mod features;
11pub mod macros;
12pub mod password;
13pub mod preserved;
14pub mod python;
15pub mod sheet;
16pub mod store;
17pub mod style;
18pub mod workbook;
19
20pub use cell::{Cell, CellPicture, Formula};
21pub use features::*;
22pub use macros::*;
23pub use password::PasswordHash;
24pub use preserved::{Preserved, PreservedPart, PreservedRel, PreservedSheet, PreservedXml};
25pub use python::{PyCode, PyOutput};
26pub use sheet::{DEFAULT_COL_WIDTH, DEFAULT_ROW_HEIGHT, LineIndex, Sheet, SheetUid, SheetViewMode, Visibility, points_to_chars};
27pub use store::CellStore;
28pub use style::{
29    Alignment, BorderLine, BorderStyle, Borders, Color, Fill, Font, HAlign, NumFmt, PatternType, Style, StyleId, StyleTable, Theme, Underline,
30    VAlign, VertAlign,
31};
32pub use workbook::{
33    CalcMode, CalcSettings, DefinedName, DocProps, EQUATION_BUDGET_MESSAGE, MAX_EQUATION_LAYOUT_BYTES, PhoneticProps, PhoneticRun, PhoneticString,
34    ShowObjects, Workbook, WorkbookView,
35};
36
37/// Font used for new workbooks. Only a name: renderers substitute an available open font
38/// (e.g. the metric-compatible Carlito) when it isn't installed.
39pub const DEFAULT_FONT: &str = "Calibri";
40pub const DEFAULT_FONT_SIZE: f32 = 11.0;