Expand description
Document sections.
A Section is a contiguous block of paragraphs sharing the same
PageSettings. Typical HWP documents have one section, but
complex reports may mix portrait and landscape sections.
§Examples
use hwpforge_core::section::Section;
use hwpforge_core::PageSettings;
use hwpforge_core::paragraph::Paragraph;
use hwpforge_core::run::Run;
use hwpforge_foundation::{CharShapeIndex, ParaShapeIndex};
let mut section = Section::new(PageSettings::a4());
section.add_paragraph(Paragraph::with_runs(
vec![Run::text("Hello", CharShapeIndex::new(0))],
ParaShapeIndex::new(0),
));
assert_eq!(section.paragraph_count(), 1);Structs§
- Begin
Num - Starting numbers for various auto-numbering sequences.
- Header
Footer - A header or footer region containing paragraphs.
- Line
Number Shape - Line numbering settings for a section.
- Master
Page - A master page (background/watermark page) for a section.
- Page
Border Fill Entry - A single page border/fill entry for the section.
- Page
Number - Page number display settings for a section.
- Section
- A document section: paragraphs + page geometry.
- Visibility
- Controls visibility of headers, footers, master pages, borders, and fills.