Framework/Article/General Architecture Of Documents Embedding
From Apache OpenOffice Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This article is a very short description of the general architecture of the documents embedding in OpenOffice.org2.x from API point of view.
The access to an embedded objects in document
The following articles could be helpful to understand the possibilities to access embedded objects from different document types, the documentation is a little bit outdated so please see the comments to each link.
- Embedded objects in Writer document
- Starting from OpenOffice.org2.1 it is possible to use com.sun.star.document.XEmbeddedObjectSupplier2 interface to get access to the object using the new embedding API
- Embedded chart in Draw and Impress documents
- Other types of embedded objects can be inserted in the same way, it is enough just to use the different Class ID.
- Similar way can be used to insert/access the objects in Calc
- Starting from OpenOffice.org2.1 it is possible to get access to the new embedding API using "EmbeddedObject" property
The main interface implemented by any embedded object and allowing to control the embedded object is com.sun.star.embed.XEmbeddedObject. Please see the API documentation for more details.