Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-30 Thread Alex P
Thanks all for help, I will try to get it running :-) Greetings Alex - Original Message - From: Bernard Marcelly marce...@club-internet.fr To: dev@api.openoffice.org Sent: Wednesday, April 29, 2009 4:54 PM Subject: Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x

[api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Alex P
Hello! I've got a Problem with the registration of my Event-Handler since I installed OpenOffice.org 3. My Basic script to register my simple Eventhandler seems to be obsolete and I dont find the correct fix for this. I only want to capture the Close of my Document to sent a message to my

Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Bernard Marcelly
Hi Alex, According to the IDL documentation, XEventListener is deprecated. Use (still unpublished) XDocumentEventListener. http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentEventListener.html Regards Bernard Message de Alex P date 2009-04-29 12:37 : Hello! I've got a

Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Mikhail Voytenko
Hi Bernard, Alex, com::sun::star::lang::XEventListener is not deprecated. The problem looks to be that the document implements two addEventListener() methods that differ only by the type of the provided argument. You need the one that gets com::sun::star::lang::XEventListener. If I am not

Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Andreas Bregas
Hi Alex, com::sun::star::lang::XEventListener is not deprecated. The problem looks to be that the document implements two addEventListener() methods that differ only by the type of the provided argument. You need the one that gets com::sun::star::lang::XEventListener. If I am not wrong

Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Bernard Marcelly
Message de Mikhail Voytenko date 2009-04-29 15:00 : Hi Bernard, Alex, com::sun::star::lang::XEventListener is not deprecated. The problem looks to be that the document implements two addEventListener() methods that differ only by the type of the provided argument. You need the one that gets