ooodev.adapter.container.control_container_partial module

class ooodev.adapter.container.control_container_partial.ControlContainerPartial(component, interface=com.sun.star.awt.XControlContainer)[source]

Bases: object

Partial class for XControlContainer.

Parameters:
  • component (XControlContainer) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.awt.XControlContainer)[source]

Constructor

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

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

Return type:

None

get_control(name)[source]

Returns the control with the specified name.

Return type:

XControl

Parameters:

name (str) –

get_controls()[source]

Returns all controls.

Return type:

Tuple[XControl, ...]

remove_control(ctl)[source]

Removes the given control from the container.

Return type:

None

Parameters:

ctl (com.sun.star.awt.XControl) –

set_status_text(text)[source]

Sets the status text in the status bar of the container.

Return type:

None

Parameters:

text (str) –