Struct onenote_parser::contents::Outline
source · pub struct Outline { /* private fields */ }
Expand description
A content outline.
See [MS-ONE] 1.3.2.1 and [MS-ONE] 2.2.20.
Implementations
sourceimpl Outline
impl Outline
sourcepub fn items(&self) -> &[OutlineItem]
pub fn items(&self) -> &[OutlineItem]
Contents of this outline.
sourcepub fn child_level(&self) -> u8
pub fn child_level(&self) -> u8
The nesting level of this outline’s contents.
See [MS-ONE] 2.3.8.
sourcepub fn list_spacing(&self) -> Option<f32>
pub fn list_spacing(&self) -> Option<f32>
The horizontal distance between a list index number or bullet and the outline content.
See [MS-ONE] 2.3.45.
sourcepub fn indents(&self) -> &[f32]
pub fn indents(&self) -> &[f32]
The indentation of each level in the outline.
The contents are specified in [MS-ONE] 2.2.2 but the semantics described there don’t really match what the OneNote desktop and web applications seem to be doing.
sourcepub fn alignment_in_parent(&self) -> Option<LayoutAlignment>
pub fn alignment_in_parent(&self) -> Option<LayoutAlignment>
The outline’s alignment relative to the parent element (if present).
See [MS-ONE] 2.3.27.
sourcepub fn alignment_self(&self) -> Option<LayoutAlignment>
pub fn alignment_self(&self) -> Option<LayoutAlignment>
The outline’s alignment.
See [MS-ONE] 2.3.33.
sourcepub fn layout_max_height(&self) -> Option<f32>
pub fn layout_max_height(&self) -> Option<f32>
The outline’s max height in half-inch increments.
See [MS-ONE] 2.3.24.
sourcepub fn layout_max_width(&self) -> Option<f32>
pub fn layout_max_width(&self) -> Option<f32>
The outline’s max width in half-inch increments.
See [MS-ONE] 2.3.22.
sourcepub fn layout_reserved_width(&self) -> Option<f32>
pub fn layout_reserved_width(&self) -> Option<f32>
The outline’s minimum width before the text wraps in half-inch increments.
See [MS-ONE] 2.3.46.
sourcepub fn layout_minimum_outline_width(&self) -> Option<f32>
pub fn layout_minimum_outline_width(&self) -> Option<f32>
The outline’s minimum width in half-inch increments.
See [MS-ONE] 2.3.49.
sourcepub fn is_layout_size_set_by_user(&self) -> bool
pub fn is_layout_size_set_by_user(&self) -> bool
Whether the layout_max_width()
value is set by the user.
See [MS-ONE] 2.3.44.
sourcepub fn offset_horizontal(&self) -> Option<f32>
pub fn offset_horizontal(&self) -> Option<f32>
The horizontal offset from the page origin in half-inch increments.
See [MS-ONE] 2.3.18.
sourcepub fn offset_vertical(&self) -> Option<f32>
pub fn offset_vertical(&self) -> Option<f32>
The vertical offset from the page origin in half-inch increments.
See [MS-ONE] 2.3.19.