Expand description
Section management utilities for UCM documents.
This module provides utilities for working with document sections, including clearing content, integrating blocks, and finding sections by path.
The module supports undo operations by preserving deleted content
in DeletedContent structures that can be used for restoration.
Structs§
- Clear
Result - Result of a section clear operation with undo support
- Deleted
Content - Represents deleted content that can be restored.
Functions§
- clear_
section_ content - Clear all children of a section, preparing it for new content.
- clear_
section_ content_ with_ undo - Clear all children of a section with undo support.
- find_
section_ by_ path - Find a section by path (e.g., “Section 1 > Subsection 2”).
- get_
all_ sections - Get all sections (heading blocks) in the document.
- get_
section_ depth - Get the depth of a section in the document hierarchy.
- integrate_
section_ blocks - Integrate blocks from a source document into a target section.
- restore_
deleted_ content - Restore previously deleted content to a document.