Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 5fb1c39f9f9130a3cc01e8b1ffa5c0f8 > files > 7840

libreoffice-devel-3.5.4-4.x86_64.rpm

<html>
<head>
<title>Interface XInterface</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="XInterface-xref.html" class="navimain">Use</a></td>
<td class="navimain"><a href="#devmanual" class="navimain">Devguide</a></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">uno</a> :: </p>
</td>
</tr>
<tr>
<td class="title">interface XInterface</td>
</tr>
<tr>
<td/></tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>base interface of all UNO interfaces

 </dd>
<dd><p> It provides lifetime control by reference counting and the
 possibility of querying for other
 interfaces of the same logical object.


 <p>
 "Logical Object" in this case means that the
 interfaces actually can be supported by internal (e.g. aggregated) physical objects.</p>

 <p> Deriving from this interface is mandatory for all UNO interfaces.
 <p> Each language binding (Java, C++, StarBasic, Python, ... ) may
 provide a different mapping of this interface, please look into the language
 dependent documention.

 <p> The UNO object does not export the state of the reference count (acquire() and
 release() do not have return values). In general, also the UNO object itself
 should not make any assumption on the concrete value of the reference count
 (except on the transition from one to zero ).

 </dd>
</dl>
<a name="devmanual"> </a><dl>
<dt><b>Developers Guide</b></dt>
<dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Lifetime_of_UNO_objects">ProUNO - Lifetime of UNO objects</a></dd>
<dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/FirstSteps/Using_Services#Using_Interfaces">FirstSteps - Using Services - Using Interfaces</a></dd>
<dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Using_UNO_Interfaces">ProUNO - Using UNO Interfaces</a></dd>
<dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/XInterface">WritingUNO - XInterface</a></dd>
<dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Core_Interfaces_to_Implement">WritingUNO - Core Interfaces to Implement</a></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="#queryInterface">queryInterface</a></td>
<td class="imsum_right">queries for a new interface to an existing UNO object.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#acquire">acquire</a></td>
<td class="imsum_right">increases the reference counter by one.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#release">release</a></td>
<td class="imsum_right">decreases the reference counter by one.
 &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="queryInterface" class="membertitle">queryInterface</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">any</td>
</tr>
<tr>
<td valign="top"><b>queryInterface</b>(</td>
<td valign="top">[in] type</td>
<td valign="bottom">&nbsp;aType );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>queries for a new interface to an existing UNO object.
 </dd>
<dd><p>
 The queryInterface() method is the entry point to obtain other interfaces which
 are exported by the object. The caller asks the implementation of the object,
 if it supports the interface specified by the type argument. The call may either
 return with a interface reference of the requested type or with a void any.

 <p>
 There are certain specifications, a queryInterface() implementation must not violate.
 <p>
 1) If queryInterface on a specific object has once returned a valid interface reference
 for a given type, it must return a valid reference for any successive queryInterface
 calls on this object for the same type.
 <p>
 2) If queryInterface on a specific object has once returned a null reference
 for a given type, it must always return a null reference for the same type.
 <p>
 3) If queryInterface on a reference A returns reference B, queryInterface on
 B for Type A must return interface reference A or calls made on the returned
 reference must be equivalent to calls made on reference A.
 <p>
 4) If queryInterface on a reference A returns reference B, queryInterface on
 A and B for XInterface must return the same interface reference (object identity).

 <p> The reason for the strong specification is, that a Uno Runtime Environment (URE)
 may choose to cache queryInterface() calls.
 <p> As mentioned above, certain language bindings may map this function differently also
 with different specifications, please visit the language dependent specification for it.
 The current C++ binding sticks to the specification state
 <p>
 The rules mentioned above are basically identical to the rules of QueryInterface in MS COM.

 </dd>
<dt><b>Parameter aType</b></dt>
<dd>a UNO interface type, for which an object reference shall be obtained.
 </dd>
<dt><b>Returns</b></dt>
<dd>an interface reference in case the requested interface is supported by the object,
 a void any otherwise.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="acquire" class="membertitle">acquire</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">[oneway] void</td>
</tr>
<tr>
<td valign="top"><b>acquire</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>increases the reference counter by one.

 </dd>
<dd><p>When you have called acquire() on the
 UNO object, it is often said, that you have a reference or a hard reference
 to the object.

 <p>
 It is only allowed to invoke a method on an UNO object, when you keep
 a hard reference to it.

 <p> Every call to acquire must be followed by a corresponding call to release
 some time later, which may eventually lead to the destruction of the object.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="release" class="membertitle">release</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">[oneway] void</td>
</tr>
<tr>
<td valign="top"><b>release</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>decreases the reference counter by one.
 </dd>
<dd><p>When the reference counter reaches 0, the object gets deleted.</p>
 <p>Calling release() on the object is often called releasing
 or clearing the reference to an 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; 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved.</p><p class="copyright" align="center">LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.</p><p class="copyright" align="center">The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.<p>&nbsp;</p><p class="copyright" align="center"><a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href="http://www.libreoffice.org/download/license/" target="_blank">LGPLv3</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.</p>

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

</html>