ooodev.adapter.container.named_partial module

class ooodev.adapter.container.named_partial.NamedPartial(component, interface=com.sun.star.container.XNamed)[source]

Bases: object

Partial class for XNamed.

Parameters:
  • component (XNamed) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

get_name()[source]

Returns the name of the object.

Return type:

str

set_name(name)[source]

Sets the name of the object.

Return type:

None

Parameters:

name (str) –

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder