ooodev.adapter.text.relative_text_content_insert_partial module
- class ooodev.adapter.text.relative_text_content_insert_partial.RelativeTextContentInsertPartial(component, interface=com.sun.star.text.XRelativeTextContentInsert)[source]
Bases:
object
Partial class for XTextRange.
- Parameters:
component (XRelativeTextContentInsert) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.text.XRelativeTextContentInsert)[source]
Constructor
- Parameters:
component (XRelativeTextContentInsert) – UNO Component that implements
com.sun.star.text.XRelativeTextContentInsert
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XTextRange
.
- Return type:
None
- insert_text_content_after(new_content, predecessor)[source]
Inserts text the new text content after the predecessor argument.
This is helpful to insert paragraphs after text tables especially in headers, footers or text frames.
- Parameters:
new_content (XTextContent) – The new text content.
predecessor (XTextContent) – The predecessor text content.
- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentException
- Return type:
None
- insert_text_content_before(new_content, successor)[source]
inserts text the new text content before of the successor argument.
This is helpful to insert paragraphs before of text tables.
- Parameters:
new_content (XTextContent) – The new text content.
successor (XTextContent) – The successor text content.
- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentException
- Return type:
None