M. Fioretti wrote:

Thanks for the prompt answer, I'll look at the links you provided. One
thing to mention, maybe, is that I said "Macro", not "Add on".

I thought you might have been thinking about .odt files, but wasn't sure. In any event, Python probably still comes closer to what you want than anything else I can think of.

I was thinking to something I can embed into an .odt file and
distribute (say a quiz system for training classes, or whatever
strikes your fancy). In other words, assume I study what you told me,
and manage to make the Python macro work on my (Linux) PC. Can I embed
it in an OO.o file, and how many chances there are that if I send it
by email to another (Windows) user he will be able to run it just as
it did on my computer? (Never mind security for now, I need to
understand the basic flow first).

I can answer the second part of your paragrah:

OOo itself comes with Python included. It is in the 'programs' directory. If you made an add-on with Python, it would install just fine on any computer. The addon would be a zip archive containing (1) one or more .py files for the actual code and (2) an XML file that tells OOo to add a menu entry and call your program when the user clicks on it.

But this addon would not be embedded in an .odt paragraph (at least, not in the current and near-future OOo releases). If what you want *must* be in a .odt file I think you're stuck with StarBasic for now.

May I ask... is there a reason why a .odt file is needed but an addon won't work for you? (provided that the add-on works whenever OOo is installed).

Cheers,
Daniel.

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

Reply via email to