Source code for ooodev.adapter.drawing.homogen_matrix_line3_struct_comp

from __future__ import annotations
from typing import TYPE_CHECKING
import uno
from ooo.dyn.drawing.homogen_matrix_line3 import HomogenMatrixLine3

from ooodev.adapter.struct_base import StructBase

if TYPE_CHECKING:
    from ooodev.events.events_t import EventsT


[docs]class HomogenMatrixLine3StructComp(StructBase[HomogenMatrixLine3]): """ HomogenMatrixLine3 Struct This class raises an event before and after a property is changed if it has been passed an event provider. The event raised before the property is changed is called ``com_sun_star_drawing_HomogenMatrixLine3_changing``. The event raised after the property is changed is called ``com_sun_star_drawing_HomogenMatrixLine3_changed``. The event args for before the property is changed is of type ``KeyValCancelArgs``. The event args for after the property is changed is of type ``KeyValArgs``. """
[docs] def __init__(self, component: HomogenMatrixLine3, prop_name: str, event_provider: EventsT | None = None) -> None: """ Constructor Args: component (HomogenMatrixLine3): Homogen Matrix Line 3. prop_name (str): Property Name. This value is assigned to the ``prop_name`` of ``event_data``. event_provider (EventsT, optional): Event Provider. """ super().__init__(component=component, prop_name=prop_name, event_provider=event_provider)
# region Overrides def _get_on_changing_event_name(self) -> str: return "com_sun_star_drawing_HomogenMatrixLine3_changing" def _get_on_changed_event_name(self) -> str: return "com_sun_star_drawing_HomogenMatrixLine3_changed" def _copy(self, src: HomogenMatrixLine3 | None = None) -> HomogenMatrixLine3: if src is None: src = self.component return HomogenMatrixLine3( Column1=src.Column1, Column2=src.Column2, Column3=src.Column3, ) # endregion Overrides # region Properties @property def column1(self) -> float: """ Gets/Sets the number of Column1 in this HomogenMatrixLine3. """ return self.component.Column1 @column1.setter def column1(self, value: float) -> None: old_value = self.component.Column1 if old_value != value: event_args = self._trigger_cancel_event("Column1", old_value, value) _ = self._trigger_done_event(event_args) @property def column2(self) -> float: """ Gets/Sets the number of Column2 in this HomogenMatrixLine3. """ return self.component.Column2 @column2.setter def column2(self, value: float) -> None: old_value = self.component.Column2 if old_value != value: event_args = self._trigger_cancel_event("Column2", old_value, value) _ = self._trigger_done_event(event_args) @property def column3(self) -> float: """ Gets/Sets the number of Column3 in this HomogenMatrixLine3. """ return self.component.Column3 @column3.setter def column3(self, value: float) -> None: old_value = self.component.Column3 if old_value != value: event_args = self._trigger_cancel_event("Column3", old_value, value) _ = self._trigger_done_event(event_args)
# endregion Properties