use insert function instead of for loop
[LibreOffice.git] / offapi / com / sun / star / form / submission / XSubmission.idl
blobd4ddd35f2bbc3beab256086e896e783b9c9fc7dc
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 form { module submission {
23 interface XSubmissionVetoListener;
26 /** is implemented by components which support submitting data.
28 interface XSubmission : com::sun::star::uno::XInterface
30 /** tells the component to submit data
32 @throws com::sun::star::util::VetoException
33 if the submission has been vetoed. Usually, this indicates that not all
34 requirements for the submission, e.g. data consistency, are fulfilled.
36 @throws com::sun::star::lang::WrappedTargetException
37 if an error occurred during invoking the submission target
39 void submit( )
40 raises ( com::sun::star::util::VetoException, com::sun::star::lang::WrappedTargetException );
42 /** tells the component to submit data
44 @param aHandler
45 This handler allows additional user interaction, which may be necessary before
46 the submission can be performed.
48 @throws com::sun::star::util::VetoException
49 if the submission has been vetoed. Usually, this indicates that not all
50 requirements for the submission, e.g. data consistency, are fulfilled.
52 @throws com::sun::star::lang::WrappedTargetException
53 if an error occurred during invoking the submission target
55 void submitWithInteraction( [in] com::sun::star::task::XInteractionHandler aHandler )
56 raises ( com::sun::star::util::VetoException, com::sun::star::lang::WrappedTargetException );
58 /** registers the given listener to be notified when a submission occurs
60 @param listener
61 the listener to register
63 @throws com::sun::star::lang::NoSupportException
64 when the component does not support external components vetoing the submission
66 void addSubmissionVetoListener( [in] XSubmissionVetoListener listener )
67 raises ( com::sun::star::lang::NoSupportException );
69 /** revokes a listener which has previously been registered to be notified when a submission occurs
71 @param listener
72 the listener to revoke
74 @throws com::sun::star::lang::NoSupportException
75 when the component does not support external components vetoing the submission
77 void removeSubmissionVetoListener( [in] XSubmissionVetoListener listener )
78 raises ( com::sun::star::lang::NoSupportException );
82 }; }; }; }; };
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */