Source code for ooodev.adapter.form.forms_component_partial

from __future__ import annotations
from typing import TYPE_CHECKING
import uno
from import XFormComponent
from ooodev.adapter.container.child_partial import ChildPartial

    from ooodev.utils.type_var import UnoInterface

[docs]class FormsComponentPartial(ChildPartial): """ Partial class for Forms Component. """
[docs] def __init__(self, component: XFormComponent, interface: UnoInterface | None = XFormComponent) -> None: """ Constructor Args: component (XFormComponent): UNO Component that implements ```` interface. interface (UnoInterface, optional): The interface to be validated. Defaults to ``XFormComponent``. """ ChildPartial.__init__(self, component=component, interface=interface)