Hi Konstantin,

no OLE directly but we have our own platform independent API's for that. You can insert a replacement image in the document that can be resized, moved, and you can use outplace editing to change the underlying data, communicate with an external program etc. and create a new replacement images based on the changes. See the SDK Example java/EmbeddedDocument/EmbeddedObject.

This can be implemented in C++ as well and either you create a new UI and use some library or you communicate completely remote with some external application if it supports remote communication or has an API ...

It's just an idea

Juergen


Konstantin Tokarev wrote:
Hello!

I think every chemist which wants to use Linux faces with one serious problem: 
structural formulae cannot be inserted into the text in editable way. Also I 
think that only OpenOffice.org can provide this functionality today.

In MS Windows there are many GUI based editors, which can be used to create and 
edit formulae incorporated into documents. In *nix-like systems there are no 
OLE-like interfaces. Only possibilities for user are to insert formula as 
image, SVG, or use OLE objects, incorporated in files which were created in 
Windows, Objects, created by external software and inserted into document 
cannot be edited after incorporation.

On the other hand, there is an extension for OpenOffice.org called 'quick 
formule', which provides a language for textual description of chemical 
structural formulae. It constructs formula as OOo Draw object from text string. 
But created object cannot be edited as chemical structure. If a possibility to 
store this text string alongside with drawing, it could be used for further 
edit, and required functionality would be achieved.

I see solution of this problem in creating new OOo application working the same 
way as OOo Math and based on its code. Using simple GUI (probably jchempaint), 
user will actually change text string with formula description, and when string 
changes, drawing object will be re-constructed. This complex document may be 
incorporated using OOo OLE implementation like OO Math objects are incorporated.

My question for OOo developers: is it the simplest way to achieve such 
functionality? Or it is simpler to realize through OOo extension? I'm C++ 
developer, but I've never worked with OpenOffice.org API.
Is there anyone interested in chemistry or one who would like to help chemists 
running Linux? If yes, please reply. If not, just help me to choose direction

Thanks in advance,
Konstantin





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to