Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-testing > by-pkgid > 2c50825dd66d0497b96a67f7fab2ee84 > files > 6253

openoffice.org64-devel-doc-2.4.1.10-1mdv2008.1.x86_64.rpm

<html>
<head>
<title>Service InteractionHandler</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../idl.css">
</head>
<body>
<div id="adc-idlref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="3">
<tr>
<td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td>
<td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td>
<td class="navimain"><a href="InteractionHandler-xref.html" class="navimain">Use</a></td>
<td class="navimainnone">Devguide</td>
<td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td>
</tr>
</table>
<table class="navisub" border="0" cellpadding="0">
<tr>
<td class="navisub">Included Services</td>
<td class="navisub"><a href="#ExportedInterfaces" class="navisub">Exported Interfaces</a></td>
<td class="navisub">Properties' Summary</td>
<td class="navisub">Properties' Details</td>
</tr>
</table>
<hr>
<table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;">
<tr>
<td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">task</a> :: </p>
</td>
</tr>
<tr>
<td class="title">service InteractionHandler</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>An interaction request handler that lets the user handle a number of well
 known requests via GUI dialogs (and the
 <a href="PasswordContainer.html">PasswordContainer</a> service).

 </dd>
<dd><P>The well known requests handled by this service include
 <UL>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/AuthenticationRequest.html">AuthenticationRequest</a></LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/CertificateValidationRequest.html">CertificateValidationRequest</a></LI>
 <LI>::com::sun::star::<a href="../sync2/module-ix.html">sync2</a>::<a href="../sync2/BadPartnershipException.html">BadPartnershipException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/HandleCookiesRequest.html">HandleCookiesRequest</a></LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveAugmentedIOException.html">InteractiveAugmentedIOException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveCHAOSException.html">InteractiveCHAOSException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveFileIOException.html">InteractiveFileIOException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveIOException.html">InteractiveIOException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveNetworkConnectException.html">InteractiveNetworkConnectException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveNetworkException.html">InteractiveNetworkException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveNetworkGeneralException.html">InteractiveNetworkGeneralException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveNetworkOffLineException.html">InteractiveNetworkOffLineException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveNetworkReadException.html">InteractiveNetworkReadException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveNetworkResolveNameException.html">InteractiveNetworkResolveNameException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveNetworkWriteException.html">InteractiveNetworkWriteException</a>*</LI>
 <LI>::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveWrongMediumException.html">InteractiveWrongMediumException</a>*</LI>
 <LI><a href="PasswordRequest.html">PasswordRequest</a></LI>
 <LI>::com::sun::star::<a href="../java/module-ix.html">java</a>::<a href="../java/WrongJavaVersionException.html">WrongJavaVersionException</a>*</LI>
 <LI><a href="DocumentMacroConfirmationRequest.html">DocumentMacroConfirmationRequest</a></LI>
 </UL>
 The requests marked with an asterisk are only handled if (a) their
 continuations match certain restrictions (see below), and (b) the
 necessary resource strings are available (this can be exploited by
 applications that carry only a subset of all resource files with
 them).</P>

 <P>The continuation restrictions are as follows: Let <VAR>C</VAR> be the
 subset of the provided continuations that are of type
 <a href="XInteractionApprove.html">XInteractionApprove</a>,
 <a href="XInteractionDisapprove.html">XInteractionDisapprove</a>,
 <a href="XInteractionRetry.html">XInteractionRetry</a>, or
 <a href="XInteractionAbort.html">XInteractionAbort</a> (or of a
 derived type). All other continuations are ignored for these requests.
 The request is only handled if the set <VAR>C</VAR> is any of the
 following:
 <UL>
 <LI>Abort</LI>
 <LI>Retry, Abort</LI>
 <LI>Approve</LI>
 <LI>Approve, Abort</LI>
 <LI>Approve, Disapprove</LI>
 <LI>Approve, Disapprove, Abort</LI>
 </UL></P>

 <P>An
 ::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/InteractiveAugmentedIOException.html">InteractiveAugmentedIOException</a>
 carries with it a sequence of arguments, which should be
 ::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/PropertyValue.html">PropertyValue</a>s. The following
 details which properties are interpreted by the interaction handler,
 depending on the request's
 ::com::sun::star::<a href="../ucb/module-ix.html">ucb</a>::<a href="../ucb/IOErrorCode.html">IOErrorCode</a>:
 <DL>
 <DT><code>"Uri"</code></DT>
 <DD>All error codes except
 <b>IOErrorCode::DIFFERENT_DEVICES</b>.
 The URI of the involved resource (a <code>string</code>).</DD>

 <DT><code>"ResourceName"</code></DT>
 <DD>All error codes except
 <b>IOErrorCode::DIFFERENT_DEVICES</b>.
 A name for the involved resource (a <code>string</code>) that might be
 more meaningful to the user than the URI. For example, a
 (platform-dependent) path notation for file system resources.</DD>

 <DT><code>"ResourceType"</code></DT>
 <DD><b>IOErrorCode::DEVICE_NOT_READY</b>
 and
 <b>IOErrorCode::NOT_EXISTING</b>
 only. An identifier for the type of resource involved (a
 <code>string</code>). Currently understood values are
 <code>"volume"</code> (e.g., a file system volume) and
 <code>"folder"</code> (i.e., a resource that contains other
 resources).</DD>

 <DT><code>"Removable"</code></DT>
 <DD><b>IOErrorCode::NOT_EXISTING</b>
 only. A flag indicating whether the resource resides on a storage
 medium that can be removed by the user (a <code>boolean</code>).</DD>

 <DT><code>"Folder"</code></DT>
 <DD><b>IOErrorCode::CANT_CREATE</b>
 only. The name of the foler in which a resource cannot be created (a
 <code>string</code>).</DD>

 <DT><code>"Volume"</code> and <code>"OtherVolume"</code></DT>
 <DD><b>IOErrorCode::DIFFERENT_DEVICES</b>
 only. The names of the two volumes involved (two
 <code>string</code>s).</DD>
 </DL></P>
 </dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="ExportedInterfaces"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Exported Interfaces</td>
</tr>
<tr>
<td class="imsum_left"><a href="XInteractionHandler.html">XInteractionHandler</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>Handle an interaction request.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../lang/module-ix.html">lang</a>::<a href="../lang/XInitialization.html">XInitialization</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>Initialize the interaction handler.

 </dd>
<dd><P>The arguments must be a sequence of
 ::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/PropertyValue.html">PropertyValue</a>s. The
 currently supported properties are:
 <UL>
 <LI><code>"Parent"</code> of type
 ::com::sun::star::<a href="../awt/module-ix.html">awt</a>::<a href="../awt/XWindow.html">XWindow</a> denotes the
 parent window for any GUI dialogs the interaction handler pops up;
 it is strongly recommended that this property is supplied;</LI>
 <LI><code>"Context"</code> of type <code>string</code> is a
 textual description of the current context (used, e.g., as a first
 line of text in error boxes); this property is optional.</LI>
 </UL></P>
 </dd>
</dl>
</td>
</tr>
</table>
<br>&nbsp;<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2008 Sun Microsystems, Inc.</p>

</div> <!-- id="adc-idlref" -->
</body>

</html>