ooodev.adapter.uno.weak_partial module

class ooodev.adapter.uno.weak_partial.WeakPartial(component, interface=com.sun.star.uno.XWeak)[source]

Bases: object

Partial Class for XUIConfiguration.

Parameters:
  • component (XWeak) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.uno.XWeak)[source]

Constructor

Parameters:
  • component (XWeak) – UNO Component that implements com.sun.star.uno.XWeak.

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

Return type:

None

query_adapter()[source]

Queries the weak adapter.

It is important that the adapter must know, but not hold the adapted object. If the adapted object dies, all references to the adapter have to be notified to release the adapter.

Return type:

XAdapter

ooodev.adapter.uno.weak_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder