Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > fc480f9d5aabed8eeaffe8ad3401a94c > files > 2915

openoffice.org-devel-doc-3.2.1-0.3mdv2010.2.i586.rpm

<html>
<head>
<title>Interface XResourceId</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="XResourceId-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">Attributes' Summary</td>
<td class="navisub"><a href="#MethodsDetails" class="navisub">Methods' Details</a></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 XResourceId</td>
<td width="*"/></tr>
</table>
</td>
</tr>
<tr>
<td/></tr>
<tr>
<td><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>not published</i></dd>
<dt><b>Description</b></dt>
<dd>A resource id uses a set of URLs to unambiguously specify a resource of
 the drawing framework.
 </dd>
<dd><p>Resources of the drawing framework are panes, views, tool bars, and
 command groups. One URL describes the type of the actual resource. A
 sequence of URLs (typically one, sometimes two) specifies its anchor,
 the resource it is bound to. The anchor typically is a pane (for
 views), or it is empty (for panes).</p>
 <p>The resource URL may be empty. In this case the anchor is empty,
 too. Such an empty resource id does not describe a resource but rather
 the absence of one. Instead of an empty <a href="XResourceId.html">XResourceId</a> object
 an empty reference can be used in many places.</p>
 <p>The resource URL may have arguments that are passed to the factory
 method on its creation. Arguments are only available through the
 getFullResourceURL(). The getResourceURL() method strips them away.</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="#getResourceURL">getResourceURL</a></td>
<td class="imsum_right">Return the URL of the resource. Arguments supplied on creation are
 stripped away. Use getFullResourceURL() to access them.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getFullResourceURL">getFullResourceURL</a></td>
<td class="imsum_right">Return an URL object of the resource URL that may contain arguments.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#hasAnchor">hasAnchor</a></td>
<td class="imsum_right">Return whether there is a non-empty anchor URL. When this method
 returns <b>false</b> then getAnchorURLs() will return an empty list.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getAnchor">getAnchor</a></td>
<td class="imsum_right">Return a new XResourceId that represents the anchor resource.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getAnchorURLs">getAnchorURLs</a></td>
<td class="imsum_right">Return the, possibly empty, list of anchor URLs. The URLs are
 ordered so that the one in position 0 is the direct anchor of the
 resource, while the one in position i+1 is the direct anchor of the
 one in position i.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getResourceTypePrefix">getResourceTypePrefix</a></td>
<td class="imsum_right">Return the type prefix of the resource URL. This includes all up to
 and including the second slash.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#compareTo">compareTo</a></td>
<td class="imsum_right">Compare the called <a href="XResourceId.html">XResourceId</a> object with the given
 one.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#isBoundTo">isBoundTo</a></td>
<td class="imsum_right">Return whether the anchor of the called resource id object
 represents the same resource as the given object.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#isBoundToURL">isBoundToURL</a></td>
<td class="imsum_right">Return whether the anchor of the called resource id object
 represents the same resource as the given anchor URL. This is a
 convenience variant of the <a href="#isBoundTo()">isBoundTo()</a> function
 that can also be seen as an optimization for the case that the
 anchor consists of exactly one URL.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#clone">clone</a></td>
<td class="imsum_right">Return a copy of the called resource id. The caller becomes the
 owner of the new object.
 &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="getResourceURL" class="membertitle">getResourceURL</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">string</td>
</tr>
<tr>
<td valign="top"><b>getResourceURL</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return the URL of the resource. Arguments supplied on creation are
 stripped away. Use getFullResourceURL() to access them.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="getFullResourceURL" class="membertitle">getFullResourceURL</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">::com::sun::star::<a href="../../util/module-ix.html">util</a>::<a href="../../util/URL.html">URL</a></td>
</tr>
<tr>
<td valign="top"><b>getFullResourceURL</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return an URL object of the resource URL that may contain arguments.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="hasAnchor" class="membertitle">hasAnchor</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">boolean</td>
</tr>
<tr>
<td valign="top"><b>hasAnchor</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return whether there is a non-empty anchor URL. When this method
 returns <b>false</b> then getAnchorURLs() will return an empty list.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="getAnchor" class="membertitle">getAnchor</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="XResourceId.html">XResourceId</a></td>
</tr>
<tr>
<td valign="top"><b>getAnchor</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return a new XResourceId that represents the anchor resource.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="getAnchorURLs" class="membertitle">getAnchorURLs</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">sequence&lt; string &gt;</td>
</tr>
<tr>
<td valign="top"><b>getAnchorURLs</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return the, possibly empty, list of anchor URLs. The URLs are
 ordered so that the one in position 0 is the direct anchor of the
 resource, while the one in position i+1 is the direct anchor of the
 one in position i.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="getResourceTypePrefix" class="membertitle">getResourceTypePrefix</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">string</td>
</tr>
<tr>
<td valign="top"><b>getResourceTypePrefix</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return the type prefix of the resource URL. This includes all up to
 and including the second slash.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="compareTo" class="membertitle">compareTo</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">short</td>
</tr>
<tr>
<td valign="top"><b>compareTo</b>(</td>
<td valign="top">[in] <a href="XResourceId.html">XResourceId</a></td>
<td valign="bottom">&nbsp;xId );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Compare the called <a href="XResourceId.html">XResourceId</a> object with the given
 one.
 </dd>
<dd><p>The two resource ids A and B are compared so that if A<B (return
        value is -1) then either A and B are unrelated or A is a direct or
        indirect anchor of B.</p>
 <p>The algorithm for this comparison is quite simple. It uses a
 double lexicographic ordering. On the lower level individual URLs
 are compared via the lexicographic order defined on strings. On the
 higher level two resource ids are compared via a lexicographic order
 defined on the URLS. So when there are two resource ids A1.A2
 (A1 being the anchor of A2) and B1.B2 then A1.A2<B1.B2 when A1<B1 or
        A1==B1 and A2<B2.  Resource ids may have different lengths: A1 <
        B1.B2 when A1<B1 or A1==B1 (anchors first then resources linked to them.</p>
 </dd>
<dt><b>Parameter xId</b></dt>
<dd>The resource id to which the called resource id is compared.
 </dd>
<dt><b>Returns</b></dt>
<dd>Returns <b>0</b> when the called resource id is
 equivalent to the given resource id. Returns <code>-1</code> or
 <code>+1</code> when the two compared resource ids differ.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="isBoundTo" class="membertitle">isBoundTo</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">boolean</td>
</tr>
<tr>
<td valign="top"><b>isBoundTo</b>(</td>
<td valign="top">[in] <a href="XResourceId.html">XResourceId</a></td>
<td valign="bottom">&nbsp;xId,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="AnchorBindingMode.html">AnchorBindingMode</a></td>
<td valign="bottom">&nbsp;eMode );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return whether the anchor of the called resource id object
 represents the same resource as the given object.
 </dd>
<dd><p>Note that not only the anchor of the given object is taken into
 account. The whole object, including the resource URL, is
 interpreted as anchor resource.</p>
 </dd>
<dt><b>Parameter xAnchor</b></dt>
<dd>The resource id of the anchor.
 </dd>
<dt><b>Parameter eMode</b></dt>
<dd>This mode specifies how the called resource has to be bound to
 the given anchor in order to have this function return <b>true</b>.
 <p>If eMode is <b>DIRECT</b> then the anchor of the called resource id
 has to be identical to the given anchor. If eMode is
 <b>INDIRECT</b> then the given anchor has to be a part
 of the anchor of the called resource.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="isBoundToURL" class="membertitle">isBoundToURL</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">boolean</td>
</tr>
<tr>
<td valign="top"><b>isBoundToURL</b>(</td>
<td valign="top">[in] string</td>
<td valign="bottom">&nbsp;sAnchorURL,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="AnchorBindingMode.html">AnchorBindingMode</a></td>
<td valign="bottom">&nbsp;eMode );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return whether the anchor of the called resource id object
 represents the same resource as the given anchor URL. This is a
 convenience variant of the <a href="#isBoundTo()">isBoundTo()</a> function
 that can also be seen as an optimization for the case that the
 anchor consists of exactly one URL.
 </dd>
<dt><b>Parameter xAnchor</b></dt>
<dd>The resource URL of the anchor.
 </dd>
<dt><b>Parameter eMode</b></dt>
<dd>This mode specifies how the called resource has to be bound to
 the given anchor in order to have this function return. See the
 description of <a href="#isBoundTo()">isBoundTo()</a> for more
 information.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="clone" class="membertitle">clone</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="XResourceId.html">XResourceId</a></td>
</tr>
<tr>
<td valign="top"><b>clone</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return a copy of the called resource id. The caller becomes the
 owner of the new object.
 </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; 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p>

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

</html>