Source code for

from __future__ import annotations
from typing import cast, TYPE_CHECKING
from ooodev.adapter.component_base import ComponentBase
from ooodev.adapter.container.name_access_partial import NameAccessPartial

    from import StyleFamilies  # service
    from import XNameAccess

[docs]class StyleFamiliesComp(ComponentBase, NameAccessPartial): """ Class for managing StyleFamilies Component. """ # pylint: disable=unused-argument
[docs] def __init__(self, component: XNameAccess) -> None: """ Constructor Args: component (XNameAccess): UNO Component that support ```` service. """ ComponentBase.__init__(self, component) # no need to validate NameAccessPartial will be validated by ComponentBase NameAccessPartial.__init__(self, component=self.component, interface=None)
# region Overrides def _ComponentBase__get_supported_service_names(self) -> tuple[str, ...]: """Returns a tuple of supported service names.""" return ("",) # endregion Overrides # region Properties @property def component(self) -> StyleFamilies: """StyleFamilies Component""" # pylint: disable=no-member return cast("StyleFamilies", self._ComponentBase__get_component()) # type: ignore
# endregion Properties