ooodev.adapter.container.name_container_partial module

class ooodev.adapter.container.name_container_partial.NameContainerPartial(component, interface=com.sun.star.container.XNameContainer)[source]

Bases: NameReplacePartial[T], Generic[T]

Partial Class for XNameContainer.

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

Constructor

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

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

Return type:

None

insert_by_name(name, element)[source]

Inserts the element with the specified name.

Parameters:
  • name (str) – The name of the element to be inserted.

  • element (T) – The new element.

Return type:

None

remove_by_name(name)[source]

Removes the element with the specified name.

Parameters:

name (str) – The name of the element to be removed.

Return type:

None

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder

ooodev.adapter.container.name_container_partial.T = TypeVar(T)

Type:    TypeVar

Invariant TypeVar.