[][src]Struct spreadsheet_ods::WorkBook

pub struct WorkBook { /* fields omitted */ }

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

impl Clone for WorkBook[src]

impl Debug for WorkBook[src]

impl Default for WorkBook[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.