Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.5-incubating
-
None
Description
Here's a customer requirement that new APIs are needed to insert standard from controls into document, like Radio buttons, Checkboxes and InputFields. Additionally, it is required to assign appropriate labels and values to the inserted controls.
To support this feature, a problem came up first. A form control is implementation-dependent and it may have self-defined attributes that cannot be ignored and auto-generated by editors. Besides, not all the forms defined in the ODF specs are fully supported by common ODF editors.For example, AOO use <form:formatted-text> to implement date field and time field.
I think one way to resolve this can be separating the implementation-dependent details from other contents. Define a provider class which implements Form interface and provide methods to create controls, like provider.createTextArea(initValues). For now we can only use OOFormProvider as the default one and use its implementation methods to initiate the controls, but user can also define customized providers by themselves.
Besides, how to define the style of a shape and set anchor type of a control to char may be also complex. I'll try to figure them out as I dig into the details.
Any one have comments or ideas with this proposal? Thanks!