from __future__ import annotations
from typing import Any, TYPE_CHECKING
try:
# python 3.12+
from typing import override # noqa # type: ignore
except ImportError:
from typing_extensions import override # noqa # type: ignore
from ooodev.adapter.drawing.generic_shape import GenericShapeComp
from ooodev.adapter.drawing.fill_properties_partial import FillPropertiesPartial
from ooodev.adapter.drawing.line_properties_partial import LinePropertiesPartial
from ooodev.adapter.drawing.shadow_properties_partial import ShadowPropertiesPartial
from ooodev.adapter.drawing.rotation_descriptor_properties_partial import RotationDescriptorPropertiesPartial
if TYPE_CHECKING:
from com.sun.star.drawing import ClosedBezierShape # service
else:
ClosedBezierShape = Any
[docs]class ClosedBezierShapeComp(
GenericShapeComp[ClosedBezierShape],
FillPropertiesPartial,
LinePropertiesPartial,
ShadowPropertiesPartial,
RotationDescriptorPropertiesPartial,
):
"""
Class for managing ClosedBezierShape Component.
"""
# pylint: disable=unused-argument
[docs] def __init__(self, component: Any) -> None:
"""
Constructor
Args:
component (Any): UNO component that implements ``com.sun.star.drawing.ClosedBezierShape`` service.
"""
GenericShapeComp.__init__(self, component)
FillPropertiesPartial.__init__(self, component=component)
LinePropertiesPartial.__init__(self, component=component)
ShadowPropertiesPartial.__init__(self, component=component)
RotationDescriptorPropertiesPartial.__init__(self, component=component)
# region Overrides
@override
def _ComponentBase__get_supported_service_names(self) -> tuple[str, ...]:
"""Returns a tuple of supported service names."""
return ("com.sun.star.drawing.ClosedBezierShape",)
# endregion Overrides