Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-09-18 Thread Xisco Faulí
Hello, I've tried your patch and it works perfectly. What i'm trying now is to import from CallWizard.py another file. Let's imagine I have a file in fax/ called Test.py that looks like this: class Test(): def __init__(self): print "it works" I add it to Pyuno_fax.mk $(eval $(call

Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-09-07 Thread Caolán McNamara
On Wed, 2011-09-07 at 11:24 +0100, Caolán McNamara wrote: > On Tue, 2011-09-06 at 19:49 +0200, Xisco Faulí wrote: > > Hello, > > > > > > I've tried to follow your steps but placing the code in > > wizards/com/sun/star/wizards/fax/CallWizard.py. So far I haven't been > > able to build it successfu

Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-09-07 Thread Caolán McNamara
On Tue, 2011-09-06 at 19:49 +0200, Xisco Faulí wrote: > Hello, > > > I've tried to follow your steps but placing the code in > wizards/com/sun/star/wizards/fax/CallWizard.py. So far I haven't been > able to build it successfully. It complains and says: ERROR: File not > found: CallWizard.py I se

Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-09-06 Thread Xisco Faulí
Hello, I've tried to follow your steps but placing the code in wizards/com/sun/star/wizards/fax/CallWizard.py. So far I haven't been able to build it successfully. It complains and says: ERROR: File not found: CallWizard.py I attach a file with the changes I've done. Greetings 2011/8/17 Caolán

Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-08-17 Thread Caolán McNamara
On Wed, 2011-08-17 at 09:06 +0100, Caolán McNamara wrote: > I imagine that if you basically opengrok for mailmerge.py and > mailmerge.component and follow the same pattern for your one that it'll > get you a lot closer. Seeing as this is a bit tricky to get up and running, attached is a rough-and-

Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-08-17 Thread Caolán McNamara
On Tue, 2011-08-16 at 19:29 +0200, Xisco Faulí wrote: > Thank you for pointing out this file but I don't really understand how > it works. > The wizard is called here : > http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu#441 > where MailM

Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-08-16 Thread Xisco Faulí
Thank you for pointing out this file but I don't really understand how it works. The wizard is called here : http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu#441 where MailMergeWizard is the service register in Writer.xcu ( http://opengro

Re: [Libreoffice] [GSOC] how to call python code from the menu

2011-08-16 Thread Caolán McNamara
On Mon, 2011-08-15 at 19:02 +0200, Xisco Faulí wrote: > Hello everybody, > > > before I merge the gsoc branch into master I'd like to integrate the > python code into libo and get rid of the java code. > I know i have to edit this file > http://opengrok.libreoffice.org/xref/core/officecfg/registr

[Libreoffice] [GSOC] how to call python code from the menu

2011-08-15 Thread Xisco Faulí
Hello everybody, before I merge the gsoc branch into master I'd like to integrate the python code into libo and get rid of the java code. I know i have to edit this file http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/Common.xcu but i can't figure out how to