pub struct PrintSettings {Show 25 fields
pub orientation: Orientation,
pub paper: String,
pub margins: [f32; 6],
pub print_area: Option<RangeRef>,
pub title_rows: Option<(u32, u32)>,
pub title_cols: Option<(u32, u32)>,
pub scale: u16,
pub fit_to: Option<(u16, u16)>,
pub gridlines: bool,
pub headings: bool,
pub center_h: bool,
pub center_v: bool,
pub header: String,
pub footer: String,
pub row_breaks: Vec<u32>,
pub col_breaks: Vec<u32>,
pub different_first: bool,
pub different_odd_even: bool,
pub first_header: String,
pub first_footer: String,
pub even_header: String,
pub even_footer: String,
pub hf_scale_with_doc: bool,
pub hf_align_with_margins: bool,
pub page_order: PageOrder,
}Fields§
§orientation: Orientation§paper: StringPaper size name (Letter, A4, Legal…).
margins: [f32; 6]Margins in inches: left, right, top, bottom, header, footer.
print_area: Option<RangeRef>§title_rows: Option<(u32, u32)>§title_cols: Option<(u32, u32)>§scale: u16Percent scale, or fit to pages (wide, tall).
fit_to: Option<(u16, u16)>§gridlines: bool§headings: bool§center_h: bool§center_v: bool§header: StringThe header and footer of odd pages, and of every page unless the variants below apply.
row_breaks: Vec<u32>§col_breaks: Vec<u32>§different_first: boolDifferent First Page: the sheet’s first printed page uses first_header/first_footer.
different_odd_even: boolDifferent Odd & Even Pages: even-numbered pages use even_header/even_footer.
first_header: String§even_header: String§hf_scale_with_doc: boolScale with Document / Align with Page Margins (both on unless a file turned them off).
hf_align_with_margins: bool§page_order: PageOrderPage Setup › Sheet › Page order: the sequence pages are numbered and printed in when the sheet is more than one page wide and tall.
Implementations§
Source§impl PrintSettings
impl PrintSettings
Sourcepub fn hf_page(&self, first: bool, number: usize) -> HfPage
pub fn hf_page(&self, first: bool, number: usize) -> HfPage
The pair used by page number (1-based, as &P prints it); first is the sheet’s first page.
Sourcepub fn hf(&self, page: HfPage, footer: bool) -> &String
pub fn hf(&self, page: HfPage, footer: bool) -> &String
The header (footer false) or footer of a page kind.
pub fn hf_mut(&mut self, page: HfPage, footer: bool) -> &mut String
Any header or footer text at all (on any kind of page).
Trait Implementations§
Source§impl Clone for PrintSettings
impl Clone for PrintSettings
Source§fn clone(&self) -> PrintSettings
fn clone(&self) -> PrintSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more