Hi,
this will only notify the event. This will be enough if you want to add
something to the existing code, either before saving ("OnSave") or after
it ("OnSaveDone").
In case you wanted to replace the existing code by something else you
had to implement a DispatchInterceptor as described in the Developers Guide.
Ciao,
Mathias
Pablo Dejuan Calzolari wrote:
> Hi,
> Your class has to implement the com.sun.star.document.XEventListener.
> Particularly, take a look at:
> notifyEvent(EventObject event){
> if (event.EventName.equalsIgnoreCase("OnSave")) {
> doSth....
> }
> }
> You may see additional information regarding Events in:
> http://doc.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Document_Events
> Regards,
> Pablo
>
> On 6/30/08, vikas kohli <[EMAIL PROTECTED]> wrote:
>>
>> HI All,
>>
>> I want to catch OpenOffice->File(Menu)->Save event. I am trying same in
>> NetBeans using Java.
>>
>> If anyone has some sample code or right link to catch OpenOffice events,
>> please send same.
>>
>> Thanks In Advance
>>
>> Vikas
>>
>
--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]