Source code for ooodev.adapter.graphic.graphic_comp

from __future__ import annotations
from typing import cast, TYPE_CHECKING

from ooodev.adapter.graphic.graphic_descriptor_comp import GraphicDescriptorComp
from ooodev.adapter.graphic.graphic_partial import GraphicPartial

    from import Graphic  # service

[docs]class GraphicComp(GraphicDescriptorComp, GraphicPartial): """ Class for managing Graphic Component. """ # pylint: disable=unused-argument
[docs] def __init__(self, component: Graphic) -> None: """ Constructor Args: component (Graphic): UNO Component that implements ```` service. """ GraphicDescriptorComp.__init__(self, component) # type: ignore GraphicPartial.__init__(self, component=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) -> Graphic: """Graphic Component""" # pylint: disable=no-member return cast("Graphic", self._ComponentBase__get_component()) # type: ignore
# endregion Properties