Source code for ooodev.utils.partial.service_partial_t

from __future__ import annotations
from typing import Any, List, TYPE_CHECKING
import contextlib
import uno
from import XServiceInfo
from ooodev.loader.inst.lo_inst import LoInst
from ooodev.loader import lo as mLo

    from typing_extensions import Protocol
    Protocol = object

[docs]class ServicePartialT(Protocol): """Type for ServicePartial Class."""
[docs] def support_service(self, *service: str) -> bool: """ Gets if instance supports a service. Args: *service (str): Variable length argument list of UNO namespace strings such as ```` Returns: bool: ``True`` if instance supports any passed in service; Otherwise, ``False`` """ ...
[docs] def get_services(self) -> List[str]: """ Gets service names for the instance. Returns: List[str]: service names """ ...