ooodev.adapter.lang.service_info_t module

protocol ooodev.adapter.lang.service_info_t.ServiceInfoT[source]

Bases: Protocol

Protocol class for XServiceInfo.

Classes that implement this protocol must have the following methods / attributes:

__init__(*args, **kwargs)
getImplementationName()[source]

Provides the implementation name of the service implementation.

Return type:

str

getSupportedServiceNames()[source]

Provides the supported service names of the implementation, including also indirect service names.

Return type:

Tuple[str, ...]

supportsService(name)[source]

Tests whether any of the specified service(s) are supported.

Parameters:

name (str) – Service name to test such as com.sun.star.awt.MenuBar.

Returns:

True if specified service is supported; Otherwise, False.

Return type:

bool