Source code for ooodev.uno_helper.base_class.base_service_info

from __future__ import annotations
from typing import Tuple

try:
    # python 3.12+
    from typing import override  # noqa # type: ignore
except ImportError:
    from typing_extensions import override  # noqa # type: ignore

from com.sun.star.lang import XServiceInfo


[docs]class BaseServiceInfo(XServiceInfo): """ Provides information regarding the implementation: which services are implemented and the name of the implementation. See Also: `API XServiceInfo <https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1lang_1_1XServiceInfo.html>`_ """ # region XServiceInfo
[docs] @override def getImplementationName(self) -> str: """ Provides the implementation name of the service implementation. """ raise NotImplementedError
[docs] @override def supportsService(self, ServiceName: str) -> bool: """ Tests whether the specified service is supported, i.e. implemented by the implementation. """ raise NotImplementedError
[docs] @override def getSupportedServiceNames(self) -> Tuple[str]: """ Provides the supported service names of the implementation, including also indirect service names. """ raise NotImplementedError
# endregion XServiceInfo