ooodev.adapter.configuration.template_container_partial module

class ooodev.adapter.configuration.template_container_partial.TemplateContainerPartial(component, interface=com.sun.star.configuration.XTemplateContainer)[source]

Bases: object

Partial class for XTemplateContainer.

Parameters:
  • component (XTemplateContainer) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.configuration.XTemplateContainer)[source]

Constructor

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

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

Return type:

None

get_element_template_name()[source]

Gets the name of the template

If instances of multiple templates are accepted by the container, this is the name of the basic or primary template.

Instances of the template must be created using an appropriate factory.

Return type:

str

ooodev.adapter.configuration.template_container_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder