Source code for ooodev.adapter.awt.uno_control_edit_comp

from __future__ import annotations
from typing import cast, TYPE_CHECKING
import uno
from ooodev.adapter.awt.uno_control_comp import UnoControlComp
from ooodev.adapter.awt.text_component_partial import TextComponentPartial
from ooodev.adapter.awt.layout_constrains_partial import LayoutConstrainsPartial
from ooodev.adapter.awt.text_layout_constrains_partial import TextLayoutConstrainsPartial

if TYPE_CHECKING:
    from com.sun.star.awt import UnoControlEdit


[docs]class UnoControlEditComp(UnoControlComp, TextComponentPartial, LayoutConstrainsPartial, TextLayoutConstrainsPartial):
[docs] def __init__(self, component: UnoControlEdit): """ Constructor Args: component (Any): Component that implements ``com.sun.star.awt.UnoControlEdit`` service. """ UnoControlComp.__init__(self, component=component) TextComponentPartial.__init__(self, component=self.component, interface=None) LayoutConstrainsPartial.__init__(self, component=self.component, interface=None) TextLayoutConstrainsPartial.__init__(self, component=self.component, interface=None)
@property def component(self) -> UnoControlEdit: """UnoControlEdit Component""" # pylint: disable=no-member return cast("UnoControlEdit", self._ComponentBase__get_component()) # type: ignore