ooodev.adapter.container.child_partial module

class ooodev.adapter.container.child_partial.ChildPartial(component, interface=com.sun.star.container.XChild)[source]

Bases: object

Partial class for XChild.

Parameters:
  • component (XChild) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.container.XChild)[source]

Constructor

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

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

Return type:

None

get_parent()[source]

Returns the parent of the object.

Return type:

XInterface

set_parent(parent)[source]

Sets the parent of the object.

Return type:

None

Parameters:

parent (com.sun.star.uno.XInterface) –

ooodev.adapter.container.child_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder