Office Forms
OfficeForms class for “office:forms” tag.
Classes:
| Name | Description |
|---|---|
OfficeForms |
Container for “form:form” or “xforms:model” elements, “office:forms”. |
OfficeFormsMixin |
Mixin class for classes containing the OfficeForms container. |
OfficeForms
Bases: FormMixin
Container for “form:form” or “xforms:model” elements, “office:forms”.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialize the OfficeForms container. |
Attributes:
| Name | Type | Description |
|---|---|---|
apply_design_mode |
bool
|
Get the |
automatic_focus |
bool
|
Get the |
Source code in odfdo/office_forms.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
_tag
class-attribute
instance-attribute
_tag = 'office:forms'
apply_design_mode
property
writable
apply_design_mode: bool
Get the form:apply-design-mode attribute.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if design mode is applied, False otherwise. Defaults to True. |
automatic_focus
property
writable
automatic_focus: bool
Get the form:automatic-focus attribute.
Returns:
| Type | Description |
|---|---|
bool
|
True if automatic focus is enabled, False otherwise. Defaults to False. |
__init__
__init__(**kwargs: Any) -> None
Initialize the OfficeForms container.
This element acts as a container for form definitions (form:form
or xforms:model). It is usable within elements like draw:page,
office:text, presentation:notes, style:master-page, and table:table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Additional keyword arguments for the parent |
{}
|
Source code in odfdo/office_forms.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
OfficeFormsMixin
Bases: Element
Mixin class for classes containing the OfficeForms container.
Used by the following classes: “draw:page”, “office:text”, “presentation:notes”, “style:master-page”, “table:table”.
Methods:
| Name | Description |
|---|---|
get_office_forms |
Retrieve the |
Attributes:
| Name | Type | Description |
|---|---|---|
office_forms |
OfficeForms | None
|
Get the |
Source code in odfdo/office_forms.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
office_forms
property
office_forms: OfficeForms | None
Get the office:forms container within the element.
Returns:
| Type | Description |
|---|---|
OfficeForms | None
|
OfficeForms | None: The |
get_office_forms
get_office_forms() -> OfficeForms | None
Retrieve the office:forms container within the element.
Returns:
| Type | Description |
|---|---|
OfficeForms | None
|
OfficeForms | None: The |
Source code in odfdo/office_forms.py
37 38 39 40 41 42 43 44 45 | |