ooodev.adapter.text.text_section_partial module

class ooodev.adapter.text.text_section_partial.TextSectionPartial(component, interface=com.sun.star.text.XTextSection)[source]

Bases: TextContentPartial

Partial class for XTextSection.

Parameters:
  • component (XTextSection) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.text.XTextSection)[source]

Constructor

Parameters:
  • component (XTextSection) – UNO Component that implements com.sun.star.text.XTextSection interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XTextSection.

Return type:

None

get_child_sections()[source]

Gets all text sections that are children of this text section (recursive).

Return type:

Tuple[XTextSection, ...]

get_parent_section()[source]

If this instance is a child section, then this method returns the parent text section.

Return type:

XTextSection | None