Class FormControlFactory

class ooodev.form.controls.from_control_factory.FormControlFactory(draw_page, lo_inst=None)[source]

Bases: LoInstPropsPartial

Parameters:
  • draw_page (XDrawPage) –

  • lo_inst (LoInst | None) –

__init__(draw_page, lo_inst=None)[source]

Constructor.

Parameters:
  • lo_inst (LoInst, optional) – Lo instance.

  • draw_page (XDrawPage) –

Return type:

None

find_shape_for_control(ctl_model)[source]

Find the shape for a control.

Parameters:

ctl_model (XControlModel) – control to find shape for.

Returns:

Shape for the control or None if not found.

Return type:

XControlShape | None

get_control(ctl)[source]
Return type:

Any

Parameters:

ctl (com.sun.star.awt.XControl) –

get_control_from_model(ctl_model)[source]

Gets the control from the model.

Parameters:

ctl_model (XControlModel) – Control Model.

Returns:

Control if found, Otherwise None.

Return type:

Any

property lo_inst: LoInst

Lo Instance

Return type:

LoInst