[−][src]Struct spreadsheet_ods::WorkBook
Book is the main structure for the Spreadsheet.
Implementations
impl WorkBook[src]
pub fn new() -> Self[src]
pub fn num_sheets(&self) -> usize[src]
Number of sheets.
pub fn sheet(&self, n: usize) -> &Sheet[src]
Returns a certain sheet.
Panics
Panics if n does not exist.
pub fn sheet_mut(&mut self, n: usize) -> &mut Sheet[src]
Returns a certain sheet.
Panic
Panics if n does not exist.
pub fn insert_sheet(&mut self, i: usize, sheet: Sheet)[src]
Inserts the sheet at the given position.
pub fn push_sheet(&mut self, sheet: Sheet)[src]
Appends a sheet.
pub fn remove_sheet(&mut self, n: usize) -> Sheet[src]
Removes a sheet from the table.
pub fn add_def_style(&mut self, value_type: ValueType, style: &str)[src]
Adds a default-style for all new values. This information is only used when writing the data to the ODS file.
pub fn def_style(&self, value_type: ValueType) -> Option<&String>[src]
Returns the default style name.
pub fn find_value_format(&self, style_name: &str) -> Option<&ValueFormat>[src]
Finds a ValueFormat starting with the stylename attached to a cell.
pub fn add_font(&mut self, font: FontFaceDecl)[src]
Adds a font.
pub fn remove_font(&mut self, name: &str) -> Option<FontFaceDecl>[src]
Removes a font.
pub fn font(&self, name: &str) -> Option<&FontFaceDecl>[src]
Returns the FontDecl.
pub fn font_mut(&mut self, name: &str) -> Option<&mut FontFaceDecl>[src]
Returns a mutable FontDecl.
pub fn add_style(&mut self, style: Style)[src]
Adds a style.
pub fn remove_style(&mut self, name: &str) -> Option<Style>[src]
Removes a style.
pub fn style(&self, name: &str) -> Option<&Style>[src]
Returns the style.
pub fn style_mut(&mut self, name: &str) -> Option<&mut Style>[src]
Returns the mutable style.
pub fn add_format(&mut self, vstyle: ValueFormat)[src]
Adds a value format.
pub fn remove_format(&mut self, name: &str) -> Option<ValueFormat>[src]
Removes the format.
pub fn format(&self, name: &str) -> Option<&ValueFormat>[src]
Returns the format.
pub fn format_mut(&mut self, name: &str) -> Option<&mut ValueFormat>[src]
Returns the mutable format.
pub fn add_pagelayout(&mut self, pagelayout: PageLayout)[src]
Pagelayout
pub fn remove_pagelayout(&mut self, name: &str) -> Option<PageLayout>[src]
pub fn pagelayout(&self, name: &str) -> Option<&PageLayout>[src]
Pagelayout
pub fn pagelayout_mut(&mut self, name: &str) -> Option<&mut PageLayout>[src]
Pagelayout
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WorkBook
impl Send for WorkBook
impl Sync for WorkBook
impl Unpin for WorkBook
impl UnwindSafe for WorkBook
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,