ooodev.adapter.lang.uno_tunnel_partial module

class ooodev.adapter.lang.uno_tunnel_partial.UnoTunnelPartial(component, interface=com.sun.star.lang.XUnoTunnel)[source]

Bases: object

Partial class for XUnoTunnel.

See also

API XUnoTunnel

Parameters:
  • component (XUnoTunnel) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.lang.XUnoTunnel)[source]

Constructor

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

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

Return type:

None

get_something(identifier)[source]

Call this method to get something which is not specified in UNO, e.g.

an address to some C++ object.

Return type:

int

Parameters:

identifier (Tuple[int, ...]) –

ooodev.adapter.lang.uno_tunnel_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder