ian_mcr123 schrieb:

> Hi,
> 
> I am working on an export filter for writing accessible html. I currently
> use OOo to export the loaded doc as an html file in order to handle embedded
> objects and graphics. I then parse the OOo generated html to obtain the
> image info. This is not a great approach for handling certain types of
> embedded objects. For example, excel objects embedded in a word document are
> currently saved as an image. I would like to extract the embedded excel
> object and process it in Calc. This would allow me to write out the embedded
> spreadsheet as an html data table. 
> 
> Similarly, I would like to extract embedded images and any associated values
> such as brightness etc. I understand this information (ie. calc objects,
> original images etc. are available within the odt file). However, we need to
> do this programmatically without saving the odt or html etc.
> 
> Is this possible via the SDK or would it require an extension of the core?.

If you mean "is it possible to get access to the document representation
behind an OLE object via API" then yes. Details depend on where you start.

As an example, if you take the collection of embedded objects in Writer
you can get access to each and every embedded objecht. You can retrieve
the component (document) behind such an object as a property of the it
and proceed with documents' API, e.g. the Calc API if the component is a
Calc document. If you are processing an Excel object in a Word document
you must make sure that the object is converted to Calc when the
document is loaded (Tools-Options-Load/Save-MSOffice).

I can't judge whether the Calc API gives you everything you need but I
assume it does.

I can't say anything about the images. AFAIK ambedded images are stored
"as is" with no further associated information.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to