Source code for ooodev.adapter.form.form_component_partial

from __future__ import annotations
from typing import TYPE_CHECKING

from import XFormComponent
from ooodev.adapter.container.child_partial import ChildPartial

    from ooodev.utils.type_var import UnoInterface

[docs]class FormComponentPartial(ChildPartial): """ Partial Class for XFormComponent. Describes a component which may be part of a form. """
[docs] def __init__(self, component: XFormComponent, interface: UnoInterface | None = XFormComponent) -> None: """ Constructor Args: component (XFormComponent): UNO Component that implements ````. interface (UnoInterface, optional): The interface to be validated. Defaults to ``XFormComponent``. """ ChildPartial.__init__(self, component, interface)