diff --git a/src/book/mod.rs b/src/book/mod.rs
index f93a37d..a83f658 100644
--- a/src/book/mod.rs
+++ b/src/book/mod.rs
@@ -4,7 +4,7 @@ use anyhow::{anyhow, Result};
use ironcalc::{
base::{
expressions::types::Area,
- types::{Border, Col, Fill, Font, Row, SheetData, Style, Worksheet},
+ types::{SheetData, Style, Worksheet},
worksheet::WorksheetDimension,
Model, UserModel,
},
@@ -17,7 +17,12 @@ use crate::ui::Address;
#[cfg(test)]
mod test;
-const COL_PIXELS: f64 = 5.0;
+pub(crate) const COL_PIXELS: f64 = 5.0;
+// NOTE(zaphar): This is stolen from ironcalc but ironcalc doesn't expose it
+// publically.
+pub(crate) const LAST_COLUMN: i32 = 16_384;
+pub(crate) const LAST_ROW: i32 = 1_048_576;
+
#[derive(Debug, Clone)]
pub struct AddressRange<'book> {
@@ -281,82 +286,6 @@ impl Book {
}
}
- fn get_column(&self, sheet: u32, col: usize) -> Result