ooodev.adapter.lang.service_info_partial module
- class ooodev.adapter.lang.service_info_partial.ServiceInfoPartial(component, interface=com.sun.star.lang.XServiceInfo)[source]
Bases:
object
Partial class for
XServiceInfo
.- Parameters:
component (XServiceInfo) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.lang.XServiceInfo)[source]
Constructor
- Parameters:
component (XServiceInfo) – UNO Component that implements
com.sun.star.lang.XServiceInfo
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XServiceInfo
.
- Return type:
None
- get_implementation_name()[source]
Provides the implementation name of the service implementation.
- Return type:
str
- get_supported_service_names()[source]
Provides the supported service names of the implementation, including also indirect service names.
- Return type:
Tuple
[str
,...
]
- supports_all_services(*name)[source]
Tests whether all the specified services are supported, i.e.
- Parameters:
name (str) – One or more service name(s) to test such as
com.sun.star.awt.MenuBar
.- Raises:
ValueError – If no service name is provided.
- Returns:
True
if all the specified services are supported; Otherwise,False
.- Return type:
bool