1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module xforms
{
23 interface XSubmission
;
26 /** represent an XForms model
30 /** get the XForms model ID */
33 /** set the XForms model ID */
34 void setID
( [in] string id );
37 /** initialize the model */
40 /** rebuild the model */
43 /** re-evaluate all calculate attributes */
46 /** re-evaluate all validity attributes */
49 /** refresh the model */
53 /** submit form through given submission id
55 <p>This is a convenience method. Calling it is equivalent to calling
56 <code>getSubmission()( id ).submit()</code>.</p>
59 the ID of the submission to execute
61 @throws com::sun::star::util::VetoException
62 when the current model state does not allow a submission. Usually, this indicates that
63 consistency criteria for the model data is not fulfilled.
65 @throws com::sun::star::lang::WrappedTargetException
66 when another error occurred during the submission. The
67 com::sun::star::lang::WrappedTargetException::TargetException describes
70 void submit
( [in] string id )
71 raises
( com
::sun
::star
::util
::VetoException
, com
::sun
::star
::lang
::WrappedTargetException
);
73 /** submit form through given submission id
75 <p>This is a convenience method. Calling it is equivalent to calling
76 <code>getSubmission()( id, handler ).submit()</code>.</p>
79 the ID of the submission to execute
82 This handler allows additional user interaction, which may be necessary before
83 the submission can be performed.
85 @throws com::sun::star::util::VetoException
86 when the current model state does not allow a submission. Usually, this indicates that
87 consistency criteria for the model data is not fulfilled.
89 @throws com::sun::star::lang::WrappedTargetException
90 when another error occurred during the submission. The
91 com::sun::star::lang::WrappedTargetException::TargetException describes
94 void submitWithInteraction
( [in] string id, [in] com
::sun
::star
::task
::XInteractionHandler aHandler
)
95 raises
( com
::sun
::star
::util
::VetoException
, com
::sun
::star
::lang
::WrappedTargetException
);
97 /** provides management access to the XSD data types associated with the model
100 getDataTypeRepository
( );
105 /** gets container containing all instances;
107 <p>The elements of the set are arrays of com::sun::star::beans::PropertyValues,
108 containing the ID, the URL, and the instance itself.</p>
110 com
::sun
::star
::container
::XSet getInstances
();
112 /** retrieves the instance with the given id
114 com
::sun
::star
::xml
::dom
::XDocument getInstanceDocument
( [in] string id );
116 /** get the default instance for this model
118 com
::sun
::star
::xml
::dom
::XDocument getDefaultInstance
();
123 /** create a binding element for this model
125 <p>The returned binding still needs to be inserted into the bindings container.</p>
129 com
::sun
::star
::beans
::XPropertySet createBinding
();
131 /** clone an arbitrary binding element for this model; still needs
133 <p>The returned binding still needs to be inserted into the bindings container.</p>
137 com
::sun
::star
::beans
::XPropertySet cloneBinding
( [in] com
::sun
::star
::beans
::XPropertySet binding
);
139 /** get a binding with a certain ID
141 <p>This is a convenience method: the same result can also be obtained through
144 com
::sun
::star
::beans
::XPropertySet getBinding
( [in] string id );
146 /** get a container containing all bindings; also supports XNameAccess
148 com
::sun
::star
::container
::XSet getBindings
();
153 /** create a submission element for this model
155 <p>The returned submission element still needs to be inserted into the submission container.</p>
159 XSubmission createSubmission
();
161 /** clone an arbitrary submission element for this model
163 <p>The returned submission element still needs to be inserted into the submission container.</p>
167 XSubmission cloneSubmission
( [in] com
::sun
::star
::beans
::XPropertySet submission
);
169 /** get a submission with a certain ID.
171 <p>This is a convenience method: the same result can also be obtained through
172 getSubmissions().</p>
174 XSubmission getSubmission
( [in] string id );
176 /** get container containing all submissions; also supports XNameAccess
178 com
::sun
::star
::container
::XSet getSubmissions
();
184 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */