Sophie

Sophie

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

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

<html>
<head>
<title>Service PackageFolderContent</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="PackageFolderContent-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">ucb</a> :: </p>
</td>
</tr>
<tr>
<td class="title">service PackageFolderContent</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>A PCP Folder is a container for other PCP Folders and PCP Streams.

 </dd>
<dt><b>See also</b></dt>
<dd><a href="PackageContentProvider.html">PackageContentProvider</a>, <a href="PackageStreamContent.html">PackageStreamContent</a></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">::com::sun::star::<a href="../lang/module-ix.html">lang</a>::<a href="../lang/XComponent.html">XComponent</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left"><a href="XContent.html">XContent</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left"><a href="XCommandProcessor.html">XCommandProcessor</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.

 </dd>
<dd><p>

 <b>Supported Commands</b>
 <ul>
 <li>
 getCommandInfo
 </li>
 <li>
 getPropertySetInfo
 </li>
 <li>
 getPropertyValues
 </li>
 <li>
 setPropertyValues
 </li>
 <li>
 insert ( makes a newly created folder persistent )
 </li>
 <li>
 delete
 </li>
 <li>
 open
 </li>
 <li>
 transfer ( only transfers from PCP Folders/PCP Streams to other
 PCP folders. It does not handle contents with a URL scheme other
 then the PCP-URL-scheme. )
 </li>
 <li>
 flush ( a command introduced by the PCP Folder. It takes a
 void-argument and returns void. This command is used to write unsaved
 changes to the underlying package file. Note that the current
 implementation of PCP contents never flushes automatically! Operations
 which require a flush to get persistent, are:
 "setPropertyValues( < any_non_read_only_property > ) ", "delete",
 "insert" )
 </li>
 </ul>

 <b>Supported Properties</b>
 <ul>
 <li>
 string ContentType ( read-only, always "application/vnd.sun.star.pkg-folder" )
 </li>
 <li>
 boolean IsDocument ( read-only, always false )
 </li>
 <li>
 boolean IsFolder ( read-only, always true )
 </li>
 <li>
 string MediaType
 </li>
 <li>
 string Title
 </li>
 </ul>

 </p>
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left"><a href="XCommandProcessor2.html">XCommandProcessor2</a></td>
<td class="imsum_right"><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>optional</i></dd>
<dt><b>Description</b></dt>
<dd>is an enhanced version of <a href="XCommandProcessor.html">XCommandProcessor</a> that has an
 additional method for releasing command identifiers obtained via
 <a href="XCommandProcessor.html">XCommandProcessor</a>::<a href="XCommandProcessor.html#createCommandIdentifier">createCommandIdentifier</a> to avoid
 resource leaks. For a detailed description of the problem refer to
 <a href="XCommandProcessor2.html">XCommandProcessor2</a>::<a href="XCommandProcessor2.html#releaseCommandIdentifier">releaseCommandIdentifier</a>.

 </dd>
<dd><p>Where many existing <a href="Content.html">Content</a> implementations do not
 (yet), every new implementation should support this interface.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertiesChangeNotifier.html">XPropertiesChangeNotifier</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertyContainer.html">XPropertyContainer</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertySetInfoChangeNotifier.html">XPropertySetInfoChangeNotifier</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left"><a href="XCommandInfoChangeNotifier.html">XCommandInfoChangeNotifier</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XChild.html">XChild</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left"><a href="XContentCreator.html">XContentCreator</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This interface is implemented according to the specification of
 service <a href="Content.html">Content</a>.

 </dd>
<dd><p>

 A PCP Folder can create other PCP Folders and PCP Streams. To create
 a new child of a PCP Folder:

 <ol>
 <li>
 Let the parent folder create a new content by calling
 <a href="XContentCreator.html">XContentCreator</a>::<a href="XContentCreator.html#createNewContent">createNewContent</a> on it. The content
 type to use for new folders is "application/vnd.sun.star.pkg-folder".
 To create a new PCP Stream, use the type
 "application/vnd.sun.star.pkg-stream".
 </li>
 <li>
 Set a title at the new folder / stream. ( Let the new child execute
 the command "setPropertyValues", which sets at least the property
 "Title" to a non-empty value ).
 </li>
 <li>
 Let the new child ( not the parent! ) execute the command "insert".
 This will commit the creation process. For streams, you need to supply
 the implementation of an
 ::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/XInputStream.html">XInputStream</a> with the command's
 parameters, that provides access to the stream data.
 </li>
 </ol>

 </p>

 <p>
 Another, more convenient way for creating streams is simply to assemble
 the URL for the new content ( last part of the path will become the
 title of the new stream ) and to obtain a Content object for that URL
 from the UCB. Then let the content execute the command "insert". The
 command will fail, if you set the command's parameter
 <a href="InsertCommandArgument.html">InsertCommandArgument</a>::<a href="InsertCommandArgument.html#ReplaceExisting"">ReplaceExisting&quot;</a>
 to false and there is already a stream with the title given by the
 content's URL.

 </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>