Sophie

Sophie

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

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

<html>
<head>
<title>Service DatabaseImageControl</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="DatabaseImageControl-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="#ServicesSummary" class="navisub">Services' Summary</a></td>
<td class="navisub"><a href="#InterfacesSummary" class="navisub">Interfaces' Summary</a></td>
<td class="navisub"><a href="#PropertiesSummary" class="navisub">Properties' Summary</a></td>
<td class="navisub"><a href="#ServicesDetails" class="navisub">Services' Details</a></td>
<td class="navisub"><a href="#InterfacesDetails" class="navisub">Interfaces' Details</a></td>
<td class="navisub"><a href="#PropertiesDetails" class="navisub">Properties' Details</a></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">form</a> :: <a href="module-ix.html" class="namechain">component</a> :: </p>
</td>
</tr>
<tr>
<td class="title">service DatabaseImageControl</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>specifies the model of a control used for displaying images stored in a database.

 </dd>
<dd><p>As every ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a>, an image control
 can be bound to a database field. This means that for instance with every record change, the content
 of the database field is taken, interpreted as image, and displayed in the control.<br/>
 Unlike other more text-based controls, it does not interpret the content of the field as text or double,
 but as binary stream (see ::com::sun::star::<a href="../../sdb/module-ix.html">sdb</a>::<a href="../../sdb/XColumn.html">XColumn</a>::<a href="../../sdb/XColumn.html#getBinaryStream">getBinaryStream</a>).</p>

 <p>Usually, an image control model can be bound to binary columns only, namely
 ::com::sun::star::<a href="../../sdbc/module-ix.html">sdbc</a>::<a href="../../sdbc/DataType.html">DataType</a>::<a href="../../sdbc/DataType.html#BINARY">BINARY</a>,
 ::com::sun::star::<a href="../../sdbc/module-ix.html">sdbc</a>::<a href="../../sdbc/DataType.html">DataType</a>::<a href="../../sdbc/DataType.html#VARBINARY">VARBINARY</a>,
 ::com::sun::star::<a href="../../sdbc/module-ix.html">sdbc</a>::<a href="../../sdbc/DataType.html">DataType</a>::<a href="../../sdbc/DataType.html#LONGVARBINARY">LONGVARBINARY</a>,
 ::com::sun::star::<a href="../../sdbc/module-ix.html">sdbc</a>::<a href="../../sdbc/DataType.html">DataType</a>::<a href="../../sdbc/DataType.html#OTHER">OTHER</a>,
 ::com::sun::star::<a href="../../sdbc/module-ix.html">sdbc</a>::<a href="../../sdbc/DataType.html">DataType</a>::<a href="../../sdbc/DataType.html#LONGVARCHAR">LONGVARCHAR</a></p>

 <p/>

 <p>Note that besides taking the image to be displayed from the bound field, there is another option. The
 ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlImageControlModel.html">UnoControlImageControlModel</a>::<a href="../../awt/UnoControlImageControlModel.html#ImageURL">ImageURL</a> property specifies
 the URL of an image to be displayed. If this property is changed from outside, the respective file
 is loaded and set as image source.</p>

 <p>In a usual data form, the scenario will be as follows:
 <ul><li>There is a DatabaseImageControl as part of the document model, which acts as
 control model for an ::com::sun::star::form::<a href="../control/module-ix.html">control</a>::<a href="../control/ImageControl.html">ImageControl</a>.</li>

 <li>The control is an ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/XImageConsumer.html">XImageConsumer</a> for the
 ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/XImageProducer.html">XImageProducer</a> supplied by the model.</li>

 <li>Whenever the form's cursor is positioned on a new record, the column the control
 model is bound to is examined for a binary data stream. This stream is set as source
 at the image producer, which notifies it's consumers, which leads to the control
 displaying the image.</li>

 <li>When the user by some interaction tells the control to contain a new image, this is
 exchanged by URL. For example, implementations of the control service may allow the user
 to browse for image. After this, the URL of the image is set as
 ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlImageControlModel.html">UnoControlImageControlModel</a>::<a href="../../awt/UnoControlImageControlModel.html#ImageURL">ImageURL</a>
 property at the model.<br/>
 Now the control loads the image determined by the property value, and starts producing
 a new data stream, which is displayed by the control (which is a consumer for this stream).<br/>
 From now on, the control and thus the database record counts as modified. If the cursor of the
 form is moved further, the modified record is saved, means the content of the image pointed to
 by ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlImageControlModel.html">UnoControlImageControlModel</a>::<a href="../../awt/UnoControlImageControlModel.html#ImageURL">ImageURL</a>
 is saved into the column.</li>
 </ul>
 </p>
 </dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="ServicesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Included Services - Summary</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlImageControlModel.html">UnoControlImageControlModel</a></td>
<td class="imsum_right"><dl>
<dt>(referenced entity's summary:)</dt>
<dd>specifies the standard model of an ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlImageControl.html">UnoControlImageControl</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a></td>
<td class="imsum_right"><dl>
<dt>(referenced entity's summary:)</dt>
<dd>is an abstract service for specialized ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../FormControlModel.html">FormControlModel</a>s
 which are data aware and thus can be bound to a data source.

 </dd>
</dl>
</td>
</tr>
</table>
<a name="InterfacesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Exported Interfaces - Summary</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XImageProducerSupplier.html">XImageProducerSupplier</a></td>
<td class="imsum_right"><p>supplies the caller with an ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/XImageProducer.html">XImageProducer</a>.

 (<a href="#XImageProducerSupplier">details</a>)</p>
</td>
</tr>
</table>
<a name="PropertiesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Properties' Summary</td>
</tr>
<tr>
<td class="imsum_left">boolean<br>
<a href="#ReadOnly">ReadOnly</a></td>
<td class="imsum_right">indicates if it is possible to change the image being displayed.
 &nbsp;</td>
</tr>
</table>
<a name="ServicesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Included Services - Details</td>
</tr>
<tr/>
<tr>
<td class="imdetail"><a name="UnoControlImageControlModel" class="membertitle">::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlImageControlModel.html">UnoControlImageControlModel</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td><dl>
<dt>(referenced entity's summary:)</dt>
<dd>specifies the standard model of an ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlImageControl.html">UnoControlImageControl</a>.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr/>
<tr>
<td class="imdetail"><a name="DataAwareControlModel" class="membertitle">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td><dl>
<dt>(referenced entity's summary:)</dt>
<dd>is an abstract service for specialized ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../FormControlModel.html">FormControlModel</a>s
 which are data aware and thus can be bound to a data source.

 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<a name="InterfacesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Exported Interfaces - Details</td>
</tr>
<tr/>
<tr>
<td class="imdetail"><a name="XImageProducerSupplier" class="membertitle">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XImageProducerSupplier.html">XImageProducerSupplier</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>supplies the caller with an ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/XImageProducer.html">XImageProducer</a>.

 </dd>
<dd><p>Other components can register as ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/XImageConsumer.html">XImageConsumer</a>
 at this producer. Then they will be notified of any change in the image to be displayed.</p>
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<a name="PropertiesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle">Properties' Details</td>
</tr>
<tr>
<td class="imdetail"><a name="ReadOnly" class="membertitle">ReadOnly</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>boolean <b>ReadOnly</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>indicates if it is possible to change the image being displayed.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>&nbsp;<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>