ooodev.adapter.container.set_partial module

class ooodev.adapter.container.set_partial.SetPartial(component, interface=com.sun.star.container.XSet)[source]

Bases: EnumerationAccessPartial

Partial Class for XSet.

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

Constructor

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

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

Return type:

None

has(element)[source]

Gets if element is in this container.

Return type:

bool

Parameters:

element (Any) –

insert(element)[source]

Inserts the given element into this container.

Raises:
  • com.sun.star.lang.IllegalArgumentExceptionIllegalArgumentException

  • com.sun.star.container.ElementExistExceptionElementExistException

Return type:

None

Parameters:

element (Any) –

remove(element)[source]

removes the given element from this container.

Raises:
  • com.sun.star.lang.IllegalArgumentExceptionIllegalArgumentException

  • com.sun.star.container.NoSuchElementExceptionNoSuchElementException

Return type:

None

Parameters:

element (Any) –

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder