ooodev.adapter.configuration.template_instance_partial module

class ooodev.adapter.configuration.template_instance_partial.TemplateInstancePartial(component, interface=com.sun.star.configuration.XTemplateInstance)[source]

Bases: object

Partial class for XTemplateInstance.

Parameters:
  • component (XTemplateInstance) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

get_template_name()[source]

Gets the name of the template

Return type:

str

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder