Source code for ooodev.adapter.container.name_container_comp

from __future__ import annotations
from typing import Any, cast, TYPE_CHECKING

from ooodev.adapter.component_prop import ComponentProp
from ooodev.adapter.container.name_container_partial import NameContainerPartial

    from import XNameContainer

[docs]class NameContainerComp(ComponentProp, NameContainerPartial[Any]): """ Class for managing XNameContainer Component. """ # pylint: disable=unused-argument
[docs] def __init__(self, component: XNameContainer) -> None: """ Constructor Args: component (XNameContainer): UNO Component that implements ````. """ ComponentProp.__init__(self, component) NameContainerPartial.__init__(self, component=self.component)
# 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) -> XNameContainer: """XNameContainer Component""" # overrides base property # pylint: disable=no-member return cast("XNameContainer", self._ComponentBase__get_component()) # type: ignore
# endregion Properties