ooodev.adapter.container.name_replace_partial module

class ooodev.adapter.container.name_replace_partial.NameReplacePartial(component, interface=com.sun.star.container.XNameReplace)[source]

Bases: NameAccessPartial[T], Generic[T]

Partial Class for XNameReplace.

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

Constructor

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

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

Return type:

None

replace_by_name(name, element)[source]

Replaces the element with the specified name.

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

  • element (T) – The new element.

Return type:

None

ooodev.adapter.container.name_replace_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_replace_partial.T = TypeVar(T)

Type:    TypeVar

Invariant TypeVar.