Hi Rushna Look at the table of events on https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Document_Events
"OnSave" and "OnSaveAs" should be delivered before the document is saved, and "OnSaveDone " and "OnSaveAsDone" after it is saved. If you aren't sure, comment out the "if" statement in the listener I sent you, so it shows a messagebox for every possible event, and then use that to find the event you are looking for. Good luck Damjan On Tue, Jul 18, 2017 at 11:49 AM, Rushna Jabi <rushnajabi...@gmail.com> wrote: > Hi Danjan, > I am getting popup on save, on saveAs event after the saving doc. > But I want my popup before save event window.. > How is it possible? > > > > > > Regards, > Rushna jabi > Software Engineer > 8447294604 > > On 13-Jul-2017 15:03, "Damjan Jovanovic" <dam...@apache.org> wrote: > >> That's great. I am glad. >> >> And you don't have to call me "sir" :-). >> >> On Thu, Jul 13, 2017 at 11:18 AM, Rushna Jabi <rushnajabi...@gmail.com> >> wrote: >> >>> I am working on AOO. I made an OpenOffice plugin on NetBeans environment. >>> "OnSave" event is working properly. >>> >>> Thanks a lot Sir for your guidance... >>> >>> >>> >>> >>> >>> Thanks & Regards, >>> Rushna Jabi >>> Software Programmer >>> 8447294601 >>> >>> >>> On Wed, Jul 12, 2017 at 1:52 PM, Damjan Jovanovic <dam...@apache.org> >>> wrote: >>> >>>> Please see my attached example. I tested it and it does work. >>>> >>>> Make sure you are running AOO with the right options: >>>> ./soffice "-accept=socket,host=localhost,port=8100;urp" >>>> or match the port to the initialObject string. >>>> >>>> For a real-world implementation, you should probably extend WeakBase >>>> too, in the class implementing the listener. >>>> >>>> Regards >>>> Damjan >>>> >>>> On Wed, Jul 12, 2017 at 10:04 AM, Rushna Jabi <rushnajabi...@gmail.com> >>>> wrote: >>>> >>>>> Hello Sir, >>>>> I have an UNO component and I implemented interface >>>>> "com.sun.star.document.XDocumentEventBroadCaster", use >>>>> UnoRuntime.queryInface() to get its XEventBroadcaster interface, calling >>>>> addDocumentEventListener(). >>>>> >>>>> please tell me from where I have to get "OnSave" or "OnSaveAs" >>>>> events.I am not getting. >>>>> >>>>> >>>>> >>>>> Regards, >>>>> Rushna Jabi >>>>> Software Programmer >>>>> 8447294601 >>>>> >>>>> On Thu, Jul 6, 2017 at 12:48 PM, Rushna Jabi <rushnajabi...@gmail.com> >>>>> wrote: >>>>> >>>>>> OK,I am working on this. >>>>>> >>>>>> Thanks. >>>>>> >>>>>> >>>>>> On Thu, Jul 6, 2017 at 12:25 PM, Damjan Jovanovic <dam...@apache.org> >>>>>> wrote: >>>>>> >>>>>>> You're looking for this then: >>>>>>> https://wiki.openoffice.org/wiki/Documentation/DevGuide/Offi >>>>>>> ceDev/Document_Events >>>>>>> >>>>>>> I'll only be able to test this later, but once you have an UNO >>>>>>> component context or service manager, use it to create a >>>>>>> "com.sun.star.frame.GlobalEventBroadcaster", use >>>>>>> UnoRuntime.queryInface() to get its XEventBroadcaster interface, call >>>>>>> addEventListener() to add your listener, and in that listener make sure >>>>>>> the >>>>>>> even name is "OnSave" or "OnSaveDone". >>>>>>> >>>>>>> Good luck >>>>>>> Damjan >>>>>>> >>>>>>> On Thu, Jul 6, 2017 at 8:43 AM, Rushna Jabi <rushnajabi...@gmail.com >>>>>>> > wrote: >>>>>>> >>>>>>>> Hello Sir, >>>>>>>> I know this one,but i don't want to use macro. >>>>>>>> I have to do it using code. If I use "ag.ion.noa_2.2.3" Nice >>>>>>>> OpenOffice Access Library , in this library some methods >>>>>>>> OnSave(),OnSaveDone() in AbstractDocument class but I am unable to >>>>>>>> get How to use it. >>>>>>>> >>>>>>>> Please help me out. >>>>>>>> >>>>>>>> >>>>>>>> Thanks & Regards, >>>>>>>> Rushna Jabi >>>>>>>> Software Engineer >>>>>>>> 8447294601 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Jul 6, 2017 at 11:49 AM, Damjan Jovanovic < >>>>>>>> dam...@apache.org> wrote: >>>>>>>> >>>>>>>>> Hi Rushna >>>>>>>>> >>>>>>>>> Apparently, to do this manually: >>>>>>>>> >>>>>>>>> Click on "Tools" -> "Customize". >>>>>>>>> Go to the "Events" tab. >>>>>>>>> Select "Save document", and click on the "Macro" button, then >>>>>>>>> assign your plugin. >>>>>>>>> >>>>>>>>> See this for screenshots: >>>>>>>>> https://wiki.openoffice.org/wiki/Documentation/OOoAuthors_Us >>>>>>>>> er_Manual/Getting_Started/How_to_run_a_macro >>>>>>>>> >>>>>>>>> Or, are you trying to get your plugin to automatically assign >>>>>>>>> itself to be called on save, so that the above isn't required? >>>>>>>>> >>>>>>>>> Regards >>>>>>>>> Damjan >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Jul 6, 2017 at 6:52 AM, Rushna Jabi < >>>>>>>>> rushnajabi...@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Thanks for your response.but I am already a member of OpenOffice >>>>>>>>>> forum, >>>>>>>>>> I have sent my issues there but "Villeroy" replied that "This is >>>>>>>>>> too >>>>>>>>>> sophisticated to be discussed on this forum, I think. You should >>>>>>>>>> write to >>>>>>>>>> developers mailing list for LibreOffice or OpenOffice." >>>>>>>>>> >>>>>>>>>> Please help.. >>>>>>>>>> >>>>>>>>>> Thanks & Regards, >>>>>>>>>> >>>>>>>>>> Rushna Jabi >>>>>>>>>> Software Engineer >>>>>>>>>> 8447294601 >>>>>>>>>> >>>>>>>>>> On Wed, Jul 5, 2017 at 5:51 PM, FR web forum <ooofo...@free.fr> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> > The better place to help end-users is: >>>>>>>>>> > http://forum.openoffice.org >>>>>>>>>> > >>>>>>>>>> > ----- Mail original ----- >>>>>>>>>> > De: "Rushna Jabi" <rushnajabi...@gmail.com> >>>>>>>>>> > À: dev@openoffice.apache.org >>>>>>>>>> > Envoyé: Mercredi 5 Juillet 2017 12:04:52 >>>>>>>>>> > Objet: OpenOffice Query >>>>>>>>>> > >>>>>>>>>> > Hello Sir, >>>>>>>>>> > >>>>>>>>>> > I am working on Java Plugin for OpenOffice.I created a plugin >>>>>>>>>> but i want to >>>>>>>>>> > call >>>>>>>>>> > this plugin before save event. >>>>>>>>>> > >>>>>>>>>> > please help me out. >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > Thanks & Regards, >>>>>>>>>> > Rushna Jabi >>>>>>>>>> > ACPL Systems Pvt. Ltd. >>>>>>>>>> > >>>>>>>>>> > ------------------------------------------------------------ >>>>>>>>>> --------- >>>>>>>>>> > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org >>>>>>>>>> > For additional commands, e-mail: dev-h...@openoffice.apache.org >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >>