From odf-dev-return-1391-apmail-incubator-odf-dev-archive=incubator.apache.org@incubator.apache.org Wed Dec 19 05:41:15 2012 Return-Path: X-Original-To: apmail-incubator-odf-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-odf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D7DCD18C for ; Wed, 19 Dec 2012 05:41:15 +0000 (UTC) Received: (qmail 37970 invoked by uid 500); 19 Dec 2012 05:41:15 -0000 Delivered-To: apmail-incubator-odf-dev-archive@incubator.apache.org Received: (qmail 37865 invoked by uid 500); 19 Dec 2012 05:41:15 -0000 Mailing-List: contact odf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: odf-dev@incubator.apache.org Delivered-To: mailing list odf-dev@incubator.apache.org Received: (qmail 37742 invoked by uid 99); 19 Dec 2012 05:41:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 05:41:13 +0000 Date: Wed, 19 Dec 2012 05:41:13 +0000 (UTC) From: "Florian Hopf (JIRA)" To: odf-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ODFTOOLKIT-340) Propose to add new API to insert form controls into document MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ODFTOOLKIT-340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Florian Hopf updated ODFTOOLKIT-340: ------------------------------------ Fix Version/s: (was: simple-odfdom-0.8) 0.6-incubating Affects Version/s: (was: simple-odfdom-0.7) 0.5-incubating > Propose to add new API to insert form controls into document > ------------------------------------------------------------ > > Key: ODFTOOLKIT-340 > URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-340 > Project: ODF Toolkit > Issue Type: New Feature > Components: simple api > Affects Versions: 0.5-incubating > Reporter: Kejia Ye > Fix For: 0.6-incubating > > Attachments: createFormInTextDocument.patch, createFormIntextDocument_v2.patch > > > 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 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! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira