pub struct Sheet {
pub name: String,
pub cells: BTreeMap<(u32, u32), Cell>,
pub columns: Vec<Column>,
pub rows: BTreeMap<u32, RowSettings>,
pub looks: Vec<(String, u32)>,
pub visibility: Visibility,
pub gridlines: bool,
pub active_cell: (u32, u32),
pub shared_formulas: u32,
pub sentences: BTreeMap<(u32, u32), u32>,
}Expand description
One sheet: its cells by (row, column), both 1-based.
Fields§
§name: String§cells: BTreeMap<(u32, u32), Cell>§columns: Vec<Column>§rows: BTreeMap<u32, RowSettings>The rows with settings of their own, by number (KERNEL.22), printed
as the view record’s row rows; empty for a sheet the writer built.
looks: Vec<(String, u32)>The look map (KERNEL.22; Alonzo/SPEC.md decision 19): a value as a
cell row spells it, and the format a cell holding that value draws
with in place of its own, in the order declared; printed as the view
record’s look rows.
visibility: VisibilityWhether the sheet has a tab (KERNEL.22): the reader’s three words. Every sheet the writer builds is visible; an engine’s twins are hidden.
gridlines: bool§active_cell: (u32, u32)The selected cell when the sheet opens, (row, column).
How many shared formulas the sheet holds; the next one’s index.
sentences: BTreeMap<(u32, u32), u32>The row of the sentence that wrote each cell, by (row, column): the
program line, which is the row of the Frazaro sheet that holds the
sentence (KERNEL.4, the view record). Filled by the build’s walker;
empty for a sheet nothing wrote by sentence.
Implementations§
Source§impl Sheet
impl Sheet
pub fn new(name: &str) -> Sheet
Sourcepub fn wrote(&mut self, range: A1Range, row_of_sentence: u32)
pub fn wrote(&mut self, range: A1Range, row_of_sentence: u32)
Record that the sentence on program row row_of_sentence wrote every
cell of range, after the cells are set.
pub fn set(&mut self, row: u32, col: u32, cell: Cell)
Sourcepub fn set_formula_dynamic(&mut self, range: A1Range, text: &str, style: u32)
pub fn set_formula_dynamic(&mut self, range: A1Range, text: &str, style: u32)
A formula’s text (without its =) into every cell of a range: one
plain formula for one cell, a shared formula for more.
A formula whose function can return an array, into every cell of a
range as Excel stores a Formula2 entry of it: a dynamic-array
formula per cell (a dynamic-array formula cannot be shared), its
references moved by the cell’s distance from the top-left one, as
Excel moves them when a formula is filled (the mover is
crate::refers::shift_a1_references since PORT.8, slice 8b).