Class ServicePartial

class ooodev.utils.partial.service_partial.ServicePartial(component, lo_inst=None)[source]

Partial Class used for getting service information from a UNO component.

Parameters:
  • component (Any) –

  • lo_inst (LoInst | None) –

__init__(component, lo_inst=None)[source]

Constructor.

Parameters:
  • component (Any) – Any Uno Component that supports XServiceInfo interface.

  • lo_inst (LoInst, optional) – Lo instance.

Return type:

None

get_services()[source]

Gets service names for the instance.

Returns:

service names

Return type:

List[str]

support_service(*service)[source]

Gets if instance supports a service.

Parameters:

*service (str) – Variable length argument list of UNO namespace strings such as com.sun.star.configuration.GroupAccess

Returns:

True if instance supports any passed in service; Otherwise, False

Return type:

bool