Source code for ooodev.adapter.drawing.group_shape_comp

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

from ooodev.adapter.drawing.shape_comp import ShapeComp
from ooodev.adapter.drawing.shape_group_partial import ShapeGroupPartial
from ooodev.adapter.drawing.shapes_partial import ShapesPartial

    from import GroupShape  # service

[docs]class GroupShapeComp(ShapeComp, ShapeGroupPartial, ShapesPartial): """ Class for managing EllipseShape Component. """
[docs] def __init__(self, component: Any) -> None: """ Constructor Args: component (Any): UNO component that implements ```` service. """ ShapeComp.__init__(self, component) ShapeGroupPartial.__init__(self, component=component, interface=None) ShapesPartial.__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) -> GroupShape: """GroupShape Component""" return cast("GroupShape", super().component)
# return cast("GroupShape", super(ShapeComp, self).component) # type: ignore # endregion Properties