-
Type: Improvement
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: ODF 1.5
-
Component/s: None
-
Labels:None
-
Proposal:
Proposal from Miklos Vajna:
Use cases
A content control is one way of adding fill-able pieces to a text document. It has the following properties:
- inline content controls always start and end inside the same paragraph, unlike bookmarks
- content controls are well-formed XML elements: this allows nesting, but intentionally doesn't allow bookmark-style random start/end positions in the document
- content controls have a set of properties, allowing the user to interact with them
- content controls can contain rich text, similar to <text:meta>
proposed types (can be extended later)
Rich text content control: this is similar to <text:text-input>, but it can host formatted text, not just a string.
Checkbox content control: interacting with this type alters if the checkbox is ticked or not
Dropdown: this allows choosing one value from a list of choices.
Picture: this is similar to <text:placeholder text:placeholder-type="image">, but a placeholder image is already part of the document, so a template author can set its properties before providing the actual picture.
Date: this allows selecting a day from a calendar, provided a wanted language and date format.
Alternatives considered
- bookmarks also allow marking a range of formatted text, but they can start and end in different paragraphs and they don't support convenient interaction (e.g. checkbox, date, etc.)
- fields also support hosting some special content, but can't be nested
- form controls also support e.g. choosing one item from a list, but they can't be part of the document text to have formatting, breaking to multiple lines, etc. language and date format.
Impacts
Conformance: This proposal will not add any mandatory features or behaviors.
Backwards compatibility: This change will not impact existing ODF processors, the usage of the new element is optional.
Accessibility impact: This change will not impact accessibility.
Interoperability:
OOXML's wordprocessingML has a <w:sdt> markup to describe a similar feature, this proposal allows roundtripping that feature in ODF. LibreOffice 7.4 implements this layout feature in its ODF extension namespace.
Note that this proposal introduces markup for inline content control, <w:sdt> can also represent block/row/cell content controls as well, while this proposal focuses on inline content controls.