1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_frame_XTerminateListener2_idl__
24#define __com_sun_star_frame_XTerminateListener2_idl__
25
26#ifndef __com_sun_star_frame_XTerminateListener_idl__
27#include <com/sun/star/frame/XTerminateListener.idl>
28#endif
29
30//=============================================================================
31
32 module com {  module sun {  module star {  module frame {
33
34//=============================================================================
35/** extend interface XTerminateListener so a listener will be informed
36    in case termination process was cancelled by other reasons.
37 */
38interface XTerminateListener2 : ::com::sun::star::frame::XTerminateListener
39{
40	//-------------------------------------------------------------------------
41	/** is called when the master environment (e.g., desktop) was cancelled in
42        it's terminate request.
43
44        <p>
45        Termination can be intercepted by throwing <type>TerminationVetoException</type>.
46        But if a listener was queried for termination .. doesnt throwed a veto exception ...
47        it doesnt know if termination will be real next time.
48        Because any other listener can throw those exception too ... and so it can happen
49        that after queryTermination() no notifyTermination() will occure. But these listener
50        doesnt know if its allowed to start new processes then.
51        Using this optional(!) interface will make it possible to be informed about
52        cancelled termination requests also.
53        </p>
54
55        @param Event
56               describe the source of the event (e.g., the desktop)
57	 */
58    void cancelTermination( [in] com::sun::star::lang::EventObject Event );
59};
60
61//=============================================================================
62
63}; }; }; };
64
65#endif
66