Hi Marco,

Your best bet is Python, not Perl. I have good news and bad news. The good news is that you can program OOo with Python and create add-ons. The bad news is that Python doesn't eliminate the complexity of the OOo API. But at least you'll be using a better language than StarBasic or C++.

Okay, places to learn how to do this:

1) Start here:

http://udk.openoffice.org/python/python-bridge.html

2) Then go here:

http://ext.openoffice.org.nz/doku.php?id=cookbook:python_uno_component

And ask questions at [email protected] or [EMAIL PROTECTED]

Once you figure out how to do what you want, please add what you learn to ext.openoffice.org.nz (it's a Wiki) so that the next person has an easier time figuring it out.

With luck, one day we'll have a solid set of instructions for people wanting to program OOo in Python.

Cheers,
Daniel.


M. Fioretti wrote:
Greetings,

What if I wanted to implement some OO.o macros with Python?
What should I study, do, code, patch, download...?

Rationale:
poor end user (me), without any realistic possibility or skills to
hack OO.o core code, not really eager to dig into StarBasic, has some
complex Python text processing routines *already* written from other
projects, by him and other guys.

Hence, poor guy would love to use *those* Python scripts from within
OO.o directly on the content of OO.o files. Instead of learning
StarBasic and rewrite the same routines with it.

So, is there a way for a normal end user, which has only the pre-built
OO.o binaries, to add a Python interpreter to it and attach scripts to
buttons, menus etc?

TIA,
        Marco

PS: Ditto with Perl, in case using it in OO.o is different than Python




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

Reply via email to