On Feb 16, 2007, at 6:13 PM, Aurélio A. Heckert wrote:

I don't know if you already write something about this, but,

if you don't may it help...


My idea is to say in the XPI "this script uses the Inkscape DOM"

and the inkscape will talk with the script all the time, allowing

this to use the inkscape like the user does...


The Inkscape must listen the commands from the script output

and write an feedback in a pipefile for the script know what happens.



Hi,

My general expectation for this was that we would expose a live DOM via SWIG and then allow interaction that way. My personal preference would be to have one DOM that's the actual document itself and another for the UI (or at least a subset of it).

http://www.swig.org/

And then 2-way communication could be achieved via standard DOM events.

http://en.wikipedia.org/wiki/DOM_Events
http://www.w3.org/TR/DOM-Level-2-Events/
http://xformsinstitute.com/essentials/browse/ch07.php#ch07-2-fm2xml

Then if you combine DOM, XML Events and a few other standard technologies, you get into XForms
http://xformsinstitute.com/essentials/