Sophie

Sophie

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

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

<html>
<head>
<title>Interface XViewController</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="XViewController-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"><a href="#MethodsSummary" class="navisub">Methods' Summary</a></td>
<td class="navisub"><a href="#MethodsDetails" class="navisub">Methods' Details</a></td>
<td class="navisub">Attributes' Summary</td>
<td class="navisub">Attributes' 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">drawing</a> :: <a href="module-ix.html" class="namechain">framework</a> :: </p>
</td>
</tr>
<tr>
<td class="title"><table class="title-table" width="99%">
<tr>
<td width="25%" class="title2">unpublished </td>
<td width="50%" class="title">interface XViewController</td>
<td width="*"/></tr>
</table>
</td>
</tr>
<tr>
<td><dl>
<dt><b>Base Interfaces</b></dt>
<dd><pre style="font-family:monospace;"><strong>XViewController</strong>
&#x2517 <a href="XResourceController.html">XResourceController</a>

</pre></dd>
<dd><a name/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="crosstitle">
<tr>
<td class="imsum_left"><a href="XResourceController.html">XResourceController</a></td>
<td class="imsum_right"><dl></dl>
</td>
</tr>
</table>
</dd>
</dl>
</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>The view sub controller manages the set of active views and controls their
 life time.

 </dd>
<dd><p>It maintains the set of active views and the list of factories that
 used for creation and possibly caching of views.</p>
</dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="MethodsSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Methods' Summary</td>
</tr>
<tr>
<td class="imsum_left"><a href="#addViewFactory">addViewFactory</a></td>
<td class="imsum_right">Register a new factory for one type of view.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#removeViewFactoryForURL">removeViewFactoryForURL</a></td>
<td class="imsum_right">Unregister a factory for one type of view.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#removeViewFactoryForReference">removeViewFactoryForReference</a></td>
<td class="imsum_right">Unregister a factory for all view types that it has been registered
 for.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getView">getView</a></td>
<td class="imsum_right">Return the view object for the given ResourceId.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getFirstViewForAnchor">getFirstViewForAnchor</a></td>
<td class="imsum_right">Return the first, and typically the only, view object that is bound
 to the specified anchor. If you are interested in all views bound
 to the anchor then you have to access the configuration to obtain a
 list of all their resource ids.
 &nbsp;</td>
</tr>
</table>
<a name="MethodsDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle">Methods' Details</td>
</tr>
<tr>
<td class="imdetail"><a name="addViewFactory" class="membertitle">addViewFactory</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">void</td>
</tr>
<tr>
<td valign="top"><b>addViewFactory</b>(</td>
<td valign="top">[in] string</td>
<td valign="bottom">&nbsp;sViewURL,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="XViewFactory.html">XViewFactory</a></td>
<td valign="bottom">&nbsp;xViewFactory );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Register a new factory for one type of view.
 </dd>
<dd><p>When one factory is responsible for more than one type of view
 then this method has to be called for each type. If this method is
 called multiple times for the same URL then a previously registered
 factory is replaced.</p>
 </dd>
<dt><b>Parameter sViewURL</b></dt>
<dd>This URL specifies the type of the view to be created. The URL
 has to be unique among view types.
 </dd>
<dt><b>Parameter xViewFactory</b></dt>
<dd>The factory object that is responsible for creation, deletion,
 and possibly caching of views of the specified type.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="removeViewFactoryForURL" class="membertitle">removeViewFactoryForURL</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">void</td>
</tr>
<tr>
<td valign="top"><b>removeViewFactoryForURL</b>(</td>
<td valign="top">[in] string</td>
<td valign="bottom">&nbsp;sViewURL );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Unregister a factory for one type of view.
 </dd>
<dd><p>When the factory has been registered for more than one type of
 view then for the other types the factory remains registered.</p>
 <p>Use <a href="#removeFactoryForReference()">removeFactoryForReference()</a> to unregister a
 factory for all view types that it has been registered for.</p>
 </dd>
<dt><b>Parameter sViewURL</b></dt>
<dd>View type for which to unregister the factory.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="removeViewFactoryForReference" class="membertitle">removeViewFactoryForReference</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">void</td>
</tr>
<tr>
<td valign="top"><b>removeViewFactoryForReference</b>(</td>
<td valign="top">[in] <a href="XViewFactory.html">XViewFactory</a></td>
<td valign="bottom">&nbsp;xViewFactory );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Unregister a factory for all view types that it has been registered
 for.
 </dd>
<dd><p>Use <a href="#removeViewFactoryForURL()">removeViewFactoryForURL()</a> to unregister a
 factory for just one type of view.</p>
 </dd>
<dt><b>Parameter xViewFactory</b></dt>
<dd>The factory to unregister.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="getView" class="membertitle">getView</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3"><a href="XView.html">XView</a></td>
</tr>
<tr>
<td valign="top"><b>getView</b>(</td>
<td valign="top">[in] <a href="XResourceId.html">XResourceId</a></td>
<td valign="bottom">&nbsp;xResourceId );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return the view object for the given ResourceId.
 </dd>
<dt><b>Parameter xResourceId</b></dt>
<dd>Return the view that is specified by this resource id.
 </dd>
<dt><b>Returns</b></dt>
<dd>Returns an empty reference when no view can be found for the
 given xResourceId.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="getFirstViewForAnchor" class="membertitle">getFirstViewForAnchor</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3"><a href="XView.html">XView</a></td>
</tr>
<tr>
<td valign="top"><b>getFirstViewForAnchor</b>(</td>
<td valign="top">[in] <a href="XResourceId.html">XResourceId</a></td>
<td valign="bottom">&nbsp;xAnchor );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return the first, and typically the only, view object that is bound
 to the specified anchor. If you are interested in all views bound
 to the anchor then you have to access the configuration to obtain a
 list of all their resource ids.
 </dd>
<dt><b>Parameter xAnchor</b></dt>
<dd>This resource id specifies the anchor to which the requested
 view is bound.
 </dd>
<dt><b>Returns</b></dt>
<dd>Returns an empty reference when no view can be found that is
 bound to the specified anchor.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<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>