1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef __com_sun_star_configuration_backend_InteractionHandler_idl__
29*cdf0e10cSrcweir#define __com_sun_star_configuration_backend_InteractionHandler_idl__
30*cdf0e10cSrcweir
31*cdf0e10cSrcweirmodule com { module sun { module star {
32*cdf0e10cSrcweir    module lang { published interface XInitialization; };
33*cdf0e10cSrcweir    module task { published interface XInteractionHandler; };
34*cdf0e10cSrcweir}; }; };
35*cdf0e10cSrcweir
36*cdf0e10cSrcweirmodule com { module sun { module star { module configuration { module backend {
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir//============================================================================
39*cdf0e10cSrcweir/** An interaction request handler that lets the user handle a number of well
40*cdf0e10cSrcweir    known requests via GUI dialogs.
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir    <P>The well known requests handled by this service include
43*cdf0e10cSrcweir    <UL>
44*cdf0e10cSrcweir        <LI><type>MergeRecoveryRequest</type>*</LI>
45*cdf0e10cSrcweir    </UL>
46*cdf0e10cSrcweir    The requests marked with an asterisk are only handled if (a) their
47*cdf0e10cSrcweir    continuations match certain restrictions (see below), and (b) the
48*cdf0e10cSrcweir    necessary resource strings are available (this can be exploited by
49*cdf0e10cSrcweir    applications that carry only a subset of all resource files with
50*cdf0e10cSrcweir    them).</P>
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir    <P>The continuation restrictions are as follows:  Let <VAR>C</VAR> be the
53*cdf0e10cSrcweir    subset of the provided continuations that are of type
54*cdf0e10cSrcweir    <type scope="com::sun::star::task">XInteractionApprove</type>,
55*cdf0e10cSrcweir    <type scope="com::sun::star::task">XInteractionDisapprove</type>,
56*cdf0e10cSrcweir    <type scope="com::sun::star::task">XInteractionRetry</type>, or
57*cdf0e10cSrcweir    <type scope="com::sun::star::task">XInteractionAbort</type> (or of a
58*cdf0e10cSrcweir    derived type).  All other continuations are ignored for these requests.
59*cdf0e10cSrcweir    The request is only handled if the set <VAR>C</VAR> is any of the
60*cdf0e10cSrcweir    following:
61*cdf0e10cSrcweir    <UL>
62*cdf0e10cSrcweir        <LI>Abort</LI>
63*cdf0e10cSrcweir        <LI>Retry, Abort</LI>
64*cdf0e10cSrcweir        <LI>Approve</LI>
65*cdf0e10cSrcweir        <LI>Approve, Abort</LI>
66*cdf0e10cSrcweir        <LI>Approve, Disapprove</LI>
67*cdf0e10cSrcweir        <LI>Approve, Disapprove, Abort</LI>
68*cdf0e10cSrcweir    </UL></P>
69*cdf0e10cSrcweir
70*cdf0e10cSrcweir    @since OOo 2.0
71*cdf0e10cSrcweir
72*cdf0e10cSrcweir    @see com::sun::star::task::InteractionHandler
73*cdf0e10cSrcweir */
74*cdf0e10cSrcweirpublished service InteractionHandler
75*cdf0e10cSrcweir{
76*cdf0e10cSrcweir    //------------------------------------------------------------------------
77*cdf0e10cSrcweir    /** Handle an interaction request.
78*cdf0e10cSrcweir     */
79*cdf0e10cSrcweir    interface com::sun::star::task::XInteractionHandler;
80*cdf0e10cSrcweir
81*cdf0e10cSrcweir    //------------------------------------------------------------------------
82*cdf0e10cSrcweir    /** Initialize the interaction handler.
83*cdf0e10cSrcweir
84*cdf0e10cSrcweir        <P>The arguments must be a sequence of
85*cdf0e10cSrcweir        <type scope="com::sun::star::beans">PropertyValue</type>s.  The
86*cdf0e10cSrcweir        currently supported properties are:
87*cdf0e10cSrcweir        <UL>
88*cdf0e10cSrcweir            <LI><code>"Parent"</code> of type
89*cdf0e10cSrcweir            <type scope="com::sun::star::awt">XWindow</type> denotes the
90*cdf0e10cSrcweir            parent window for any GUI dialogs the interaction handler pops up;
91*cdf0e10cSrcweir            it is strongly recommended that this property is supplied;</LI>
92*cdf0e10cSrcweir            <LI><code>"Context"</code> of type <atom>string</atom> is a
93*cdf0e10cSrcweir            textual description of the current context (used, e.g., as a first
94*cdf0e10cSrcweir            line of text in error boxes); this property is optional.</LI>
95*cdf0e10cSrcweir        </UL></P>
96*cdf0e10cSrcweir     */
97*cdf0e10cSrcweir    interface com::sun::star::lang::XInitialization;
98*cdf0e10cSrcweir};
99*cdf0e10cSrcweir
100*cdf0e10cSrcweir}; }; }; }; };
101*cdf0e10cSrcweir
102*cdf0e10cSrcweir#endif
103