openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rushna Jabi <rushnajabi...@gmail.com>
Subject Re: OpenOffice Query
Date Thu, 13 Jul 2017 09:18:33 GMT
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 <damjan@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 <rushnajabi786@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 <rushnajabi786@gmail.com>
>> wrote:
>>
>>> OK,I am working on this.
>>>
>>> Thanks.
>>>
>>>
>>> On Thu, Jul 6, 2017 at 12:25 PM, Damjan Jovanovic <damjan@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 <rushnajabi786@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 <damjan@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 <rushnajabi786@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 <oooforum@free.fr>
>>>>>>> wrote:
>>>>>>>
>>>>>>> > The better place to help end-users is:
>>>>>>> > http://forum.openoffice.org
>>>>>>> >
>>>>>>> > ----- Mail original -----
>>>>>>> > De: "Rushna Jabi" <rushnajabi786@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-unsubscribe@openoffice.apache.org
>>>>>>> > For additional commands, e-mail: dev-help@openoffice.apache.org
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message