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
>