pub struct LayoutInput {Show 18 fields
pub document: CT_Document,
pub automatic_hyphenation: bool,
pub math_properties: Option<MathProperties>,
pub revision_view: RevisionView,
pub styles: CT_Styles,
pub numbering: Option<CT_Numbering>,
pub headers: HashMap<String, CT_HdrFtr>,
pub footers: HashMap<String, CT_HdrFtr>,
pub images: HashMap<String, ImageData>,
pub charts: HashMap<String, Result<Box<CT_ChartSpace>, String>>,
pub chart_theme: CT_OfficeStyleSheet,
pub chart_color_map: ColorMap,
pub core_properties: Option<CoreProperties>,
pub hyperlink_urls: HashMap<String, String>,
pub footnotes: Option<CT_Footnotes>,
pub endnotes: Option<CT_Footnotes>,
pub theme: Option<Theme>,
pub fonts: Vec<FontFile>,
}Expand description
All inputs needed to lay out a DOCX document.
Fields§
§document: CT_DocumentThe parsed document content.
automatic_hyphenation: boolWhether document settings enable automatic hyphenation.
math_properties: Option<MathProperties>Document-wide OfficeMath defaults from the settings part.
revision_view: RevisionViewThe tracked-revision projection to lay out.
styles: CT_StylesStyle definitions.
numbering: Option<CT_Numbering>Numbering definitions (optional).
headers: HashMap<String, CT_HdrFtr>Header parts keyed by relationship ID.
Footer parts keyed by relationship ID.
images: HashMap<String, ImageData>Images keyed by embed ID.
charts: HashMap<String, Result<Box<CT_ChartSpace>, String>>Parsed chart parts, or contextual relationship failures, keyed by ID.
chart_theme: CT_OfficeStyleSheetDrawingML theme used by the shared chart renderer.
chart_color_map: ColorMapStandard Word chart colour mapping.
core_properties: Option<CoreProperties>Document core properties (metadata).
hyperlink_urls: HashMap<String, String>Hyperlink URLs keyed by relationship ID.
footnotes: Option<CT_Footnotes>Footnote definitions.
endnotes: Option<CT_Footnotes>Endnote definitions.
theme: Option<Theme>Document theme (colors + fonts).
fonts: Vec<FontFile>User-provided or DOCX-embedded font files. These are loaded before system fonts, so they take priority.
Trait Implementations§
Source§impl Clone for LayoutInput
impl Clone for LayoutInput
Source§fn clone(&self) -> LayoutInput
fn clone(&self) -> LayoutInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more