Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D5D6C200CC4 for ; Thu, 13 Jul 2017 11:33:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D445316BC30; Thu, 13 Jul 2017 09:33:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F2E7416BC2E for ; Thu, 13 Jul 2017 11:33:43 +0200 (CEST) Received: (qmail 68122 invoked by uid 500); 13 Jul 2017 09:33:43 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 68110 invoked by uid 99); 13 Jul 2017 09:33:43 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2017 09:33:43 +0000 Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 60AF41A0935 for ; Thu, 13 Jul 2017 09:33:42 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id h22so33223113lfk.3 for ; Thu, 13 Jul 2017 02:33:42 -0700 (PDT) X-Gm-Message-State: AIVw1102Dkq/S7I/C3IkHXmJ0hzC3VGimjdhPjsydpih6Dv7eLOZry9t 43I2MJ2wjIdDA4x87zwenJusXiwV4w== X-Received: by 10.46.7.26 with SMTP id 26mr979867ljh.64.1499938419622; Thu, 13 Jul 2017 02:33:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.77.8 with HTTP; Thu, 13 Jul 2017 02:33:19 -0700 (PDT) In-Reply-To: References: <2010155430.63017617.1499257296118.JavaMail.root@zimbra60-e10.priv.proxad.net> From: Damjan Jovanovic Date: Thu, 13 Jul 2017 11:33:19 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: OpenOffice Query To: Rushna Jabi Cc: Apache OO Content-Type: multipart/alternative; boundary="f403045ebc7aafcf0b05542fa022" archived-at: Thu, 13 Jul 2017 09:33:45 -0000 --f403045ebc7aafcf0b05542fa022 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 > 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=3Dsocket,host=3Dlocalhost,port=3D8100;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 >> 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, callin= g >>> 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 >>> wrote: >>> >>>> OK,I am working on this. >>>> >>>> Thanks. >>>> >>>> >>>> On Thu, Jul 6, 2017 at 12:25 PM, Damjan Jovanovic >>>> 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 su= re the >>>>> even name is "OnSave" or "OnSaveDone". >>>>> >>>>> Good luck >>>>> Damjan >>>>> >>>>> On Thu, Jul 6, 2017 at 8:43 AM, Rushna Jabi >>>>> 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 >>>>>> 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 assig= n >>>>>>> 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 itsel= f >>>>>>> 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 >>>>>> > 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 t= oo >>>>>>>> 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 >>>>>>>> wrote: >>>>>>>> >>>>>>>> > The better place to help end-users is: >>>>>>>> > http://forum.openoffice.org >>>>>>>> > >>>>>>>> > ----- Mail original ----- >>>>>>>> > De: "Rushna Jabi" >>>>>>>> > =C3=80: dev@openoffice.apache.org >>>>>>>> > Envoy=C3=A9: Mercredi 5 Juillet 2017 12:04:52 >>>>>>>> > Objet: OpenOffice Query >>>>>>>> > >>>>>>>> > Hello Sir, >>>>>>>> > >>>>>>>> > I am working on Java Plugin for OpenOffice.I created a plugin bu= t >>>>>>>> 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-unsubscribe@openoffice.apache.org >>>>>>>> > For additional commands, e-mail: dev-help@openoffice.apache.org >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > --f403045ebc7aafcf0b05542fa022--