(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: ucb ::

deprecated interface XContentCreator
Usage Restrictions
deprecated
Deprecation Info

This interface is deprecated. Use Content property "CreatableContentsInfo" and command "createNewContent" instead.

Description
A creator for new (persistent) contents, like file system folders.

Creation of a new (persistent) content:

  1. creatabletypes = creator.queryCreatableContentsInfo()
  2. choose a suitable type from creatabletypes
  3. newObject = creator.createNewContent( type )
  4. initialize the new object (i.e. newObject.Property1 = ...)
  5. let the new content execute the command "insert". That command commits the data and makes the new content persistent.
See also
XContent, XCommandProcessor
Developers Guide
AppendixC - The WebDAV Content Provider - Creation of New DCP Contents
UCB - Services and Interfaces
AppendixC - The FTP Content Provider - Creation of New FTP Content
AppendixC - The Hierarchy Content Provider - Creation of New HCP Content
UCB - Creating
AppendixC - The File Content Provider - Creation of New File Contents
AppendixC - The Package Content Provider - Creation of New PCP Contents

Methods' Summary
queryCreatableContentsInfo returns a list with information about the creatable contents.  
createNewContent creates a new content of given type.  
Methods' Details
queryCreatableContentsInfo
sequence< ContentInfo >
queryCreatableContentsInfo();

Description
returns a list with information about the creatable contents.
Returns
the list with information about the creatable contents.
createNewContent
XContent
createNewContent( [in] ContentInfo  Info );

Description
creates a new content of given type.
Parameter Info
the content information.
Returns
the new content, if operation was successful.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.