UPDATE: Parses selected row/column/range and selected sheet (#67)

* FIX: Update to Rust 1.78.0

* UPDATE: Parses selected row/column/range and selected sheet
This commit is contained in:
Nicolás Hatcher Andrés
2024-05-09 11:46:26 +02:00
committed by GitHub
parent a78d5593f2
commit f752c90058
8 changed files with 184 additions and 24 deletions

View File

@@ -71,6 +71,14 @@ impl Display for SheetState {
}
}
#[derive(Encode, Decode, Debug, PartialEq, Clone)]
pub struct Selection {
pub is_selected: bool,
pub row: i32,
pub column: i32,
pub range: [i32; 4],
}
/// Internal representation of a worksheet Excel object
#[derive(Encode, Decode, Debug, PartialEq, Clone)]
pub struct Worksheet {
@@ -87,6 +95,7 @@ pub struct Worksheet {
pub comments: Vec<Comment>,
pub frozen_rows: i32,
pub frozen_columns: i32,
pub selection: Selection,
}
/// Internal representation of Excel's sheet_data