Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / form / submission / XSubmission.idl
blobf7aa98c6f0ebefe15a74229493a5ad52afe3c7d5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XSubmission.idl,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_form_submission_XSubmission_idl__
32 #define __com_sun_star_form_submission_XSubmission_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include <com/sun/star/uno/XInterface.idl>
36 #endif
37 #ifndef __com_sun_star_util_VetoException_idl__
38 #include <com/sun/star/util/VetoException.idl>
39 #endif
40 #ifndef __com_sun_star_lang_WrappedTargetException_idl__
41 #include <com/sun/star/lang/WrappedTargetException.idl>
42 #endif
43 #ifndef __com_sun_star_lang_NoSupportException_idl__
44 #include <com/sun/star/lang/NoSupportException.idl>
45 #endif
46 #ifndef __com_sun_star_task_XInteractionHandler_idl__
47 #include <com/sun/star/task/XInteractionHandler.idl>
48 #endif
50 //=============================================================================
52 module com { module sun { module star { module form { module submission {
54 interface XSubmissionVetoListener;
56 //=============================================================================
58 /** is implemented by components which support submitting data.
60 interface XSubmission : com::sun::star::uno::XInterface
62 /** tells the component to submit data
64 @throws com::sun::star::util::VetoException
65 if the submission has been vetoed. Usually, this indicates that not all
66 requirements for the submission, e.g. data consistency, are fulfilled.
68 @throws com::sun::star::lang::WrappedTargetException
69 if an error occured during invoking the submission target
71 void submit( )
72 raises ( com::sun::star::util::VetoException, com::sun::star::lang::WrappedTargetException );
74 /** tells the component to submit data
76 @param aHandler
77 This handler allows additional user interaction, which may be necessary before
78 the submission can be performed.
80 @throws com::sun::star::util::VetoException
81 if the submission has been vetoed. Usually, this indicates that not all
82 requirements for the submission, e.g. data consistency, are fulfilled.
84 @throws com::sun::star::lang::WrappedTargetException
85 if an error occured during invoking the submission target
87 void submitWithInteraction( [in] com::sun::star::task::XInteractionHandler aHandler )
88 raises ( com::sun::star::util::VetoException, com::sun::star::lang::WrappedTargetException );
90 /** registers the given listener to be notified when a submission occurs
92 @param listener
93 the listener to register
95 @throws com::sun::star::lang::NoSupportException
96 when the component does not support external componentsw vetoing the submission
98 void addSubmissionVetoListener( [in] XSubmissionVetoListener listener )
99 raises ( com::sun::star::lang::NoSupportException );
101 /** revokes a listener which has previously been registered to be notified when a submission occurs
103 @param listener
104 the listener to revoke
106 @throws com::sun::star::lang::NoSupportException
107 when the component does not support external componentsw vetoing the submission
109 void removeSubmissionVetoListener( [in] XSubmissionVetoListener listener )
110 raises ( com::sun::star::lang::NoSupportException );
113 //=============================================================================
115 }; }; }; }; };
117 #endif