UPDATE: Ladies and gentlemen: conditional formatting!

(and everything in between)
This commit is contained in:
Nicolás Hatcher
2024-12-10 18:24:14 +01:00
parent 23814ec18c
commit e7ce9f5ec9
3 changed files with 81 additions and 11 deletions

View File

@@ -68,6 +68,7 @@ impl Model {
frozen_rows: 0,
show_grid_lines: true,
views,
conditional_formatting: vec![]
}
}

View File

@@ -117,6 +117,26 @@ pub struct Worksheet {
pub views: HashMap<u32, WorksheetView>,
/// Whether or not to show the grid lines in the worksheet
pub show_grid_lines: bool,
pub conditional_formatting: Vec<ConditionalFormatting>
}
#[derive(Encode, Decode, Debug, PartialEq, Clone)]
pub struct ColorScale {
}
#[derive(Encode, Decode, Debug, PartialEq, Clone)]
pub enum CfRule {
ColorScale {
priority: u32,
},
CellIs,
}
#[derive(Encode, Decode, Debug, PartialEq, Clone)]
pub struct ConditionalFormatting {
sqref: String,
cf_rule: Vec<CfRule>
}
/// Internal representation of Excel's sheet_data