tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / offapi / com / sun / star / xforms / XModel.idl
blobea6c7fec197a22337e6f369f828bcec7c3a3eeed
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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
28 interface XModel
30 /** get the XForms model ID */
31 string getID();
33 /** set the XForms model ID */
34 void setID( [in] string id );
37 /** initialize the model */
38 void initialize();
40 /** rebuild the model */
41 void rebuild();
43 /** re-evaluate all calculate attributes */
44 void recalculate();
46 /** re-evaluate all validity attributes */
47 void revalidate();
49 /** refresh the model */
50 void refresh();
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>
58 @param id
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
68 this error then.
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>
78 @param id
79 the ID of the submission to execute
81 @param aHandler
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
92 this error then.
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
99 XDataTypeRepository
100 getDataTypeRepository( );
103 // instances
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();
121 // bindings
123 /** create a binding element for this model
125 <p>The returned binding still needs to be inserted into the bindings container.</p>
127 @see getBindings
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>
135 @see getBindings
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
142 getBindings()</p>
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();
151 // submissions
153 /** create a submission element for this model
155 <p>The returned submission element still needs to be inserted into the submission container.</p>
157 @see getSubmissions
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>
165 @see getSubmissions
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();
182 }; }; }; };
184 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */