ooodev.adapter.text.text_partial module
- class ooodev.adapter.text.text_partial.TextPartial(component, interface=com.sun.star.text.XText)[source]
Bases:
SimpleTextPartialPartial class for XText.
- Parameters:
component (XText) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.text.XText)[source]
Constructor
- Parameters:
component (XText) – UNO Component that implements
com.sun.star.text.XTextinterface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XText.
- Return type:
None
- insert_text_content(rng, content, absorb)[source]
Inserts a content, such as a text table, text frame or text field.
- Parameters:
rng (XTextRange) – The position at which the content is inserted.
content (XTextContent) – The content to be inserted.
absorb (bool) – Specifies whether the text spanned by xRange will be replaced. If
Truethen the content of range will be replaced by content, otherwise content will be inserted at the end of xRange.
- Return type:
None