pub struct WorkbookView {
pub show_sheet_tabs: bool,
pub show_horizontal_scroll: bool,
pub show_vertical_scroll: bool,
pub tab_ratio: u32,
}Expand description
The workbook window’s display settings from <workbookView> (Excel: File › Options ›
Advanced, “Display options for this workbook”): whether the window shows the sheet tabs
and the two scroll bars, and how much of the horizontal bar the tabs take (tabRatio,
thousandths of the bar; the format’s default is 600). XLSX I/O normalizes this
share to 0–1000, including values supplied directly through the model.
The values are modelled so an open + save keeps them — a workbook Excel saved with the tabs hidden must not come back with them shown and the settings gone. The app does not act on them yet and there is no Options control for them; that is the other half of storytold/gridcraft#3057.
Fields§
§show_sheet_tabs: bool§show_horizontal_scroll: bool§show_vertical_scroll: bool§tab_ratio: u32Implementations§
Source§impl WorkbookView
impl WorkbookView
Sourcepub const MAX_TAB_RATIO: u32 = 1000
pub const MAX_TAB_RATIO: u32 = 1000
The entire bar, in thousandths: the upper bound used by XLSX I/O.
Trait Implementations§
Source§impl Clone for WorkbookView
impl Clone for WorkbookView
Source§fn clone(&self) -> WorkbookView
fn clone(&self) -> WorkbookView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WorkbookView
Source§impl Debug for WorkbookView
impl Debug for WorkbookView
Source§impl Default for WorkbookView
impl Default for WorkbookView
Source§impl<'de> Deserialize<'de> for WorkbookView
impl<'de> Deserialize<'de> for WorkbookView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for WorkbookView
Source§impl PartialEq for WorkbookView
impl PartialEq for WorkbookView
Source§impl Serialize for WorkbookView
impl Serialize for WorkbookView
impl StructuralPartialEq for WorkbookView
Auto Trait Implementations§
impl Freeze for WorkbookView
impl RefUnwindSafe for WorkbookView
impl Send for WorkbookView
impl Sync for WorkbookView
impl Unpin for WorkbookView
impl UnsafeUnpin for WorkbookView
impl UnwindSafe for WorkbookView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.