RE: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-15 Thread Rai, Neeraj
'; 'libreoffice@lists.freedesktop.org' Subject: RE: [libreoffice-dev] -calling a service function from BASIC macro Hi Michael, The links clear up some doubts in my mind. I am still having trouble with having 2 buttons to act on the same service (this is a new problem report). I

RE: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-13 Thread Rai, Neeraj
Hi Michael, The links clear up some doubts in my mind. I am still having trouble with having 2 buttons to act on the same service (this is a new problem report). I created 2 buttons which calls startThr() and stopThr() on my service. The start works as expected. However, the stop call seems to cr

Re: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-13 Thread Michael Stahl
On 12/02/13 16:31, Rai, Neeraj wrote: > Hi Stephan, > > Is there any example of using uno calls from the forms bundled with LO ? > I am not very familiar with the Reference <> and googling uno::Reference is > not helping me either. > I also couldn't find usage in sdk dir and examples dir. Would i

RE: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-12 Thread Rai, Neeraj
Actually, never mind! I think I have a work around even without Reference. I made my CalcAddinThr a pointer, so it is independent of lifetime of CalcAddimThr_impl . Seems to work through button as well. I think you might have been refereeing to the object created in Basic macro that goes out of

RE: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-12 Thread Rai, Neeraj
Hi Stephan, Is there any example of using uno calls from the forms bundled with LO ? I am not very familiar with the Reference <> and googling uno::Reference is not helping me either. I also couldn't find usage in sdk dir and examples dir. Would it be possible to point out a dir/file or a web li

Re: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-12 Thread Stephan Bergmann
On 02/11/2013 06:29 PM, Rai, Neeraj wrote: The function is getting called now, however, I get a crash a bit later when sheet_ is being accessed. I also added a button and attached the macro to it for conveninece of calling. There seems to be some difference between the direct call and call via

RE: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-11 Thread Rai, Neeraj
Hi Stephan, The function is getting called now, however, I get a crash a bit later when sheet_ is being accessed. I also added a button and attached the macro to it for conveninece of calling. There seems to be some difference between the direct call and call via button/macro. You need to issue

Re: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-11 Thread Stephan Bergmann
On 02/08/2013 04:08 PM, Rai, Neeraj wrote: So the org.openoffice.sheet.addin.CalcAddinSock service you specified implements a new UNO interface that you added (and which has a method startThr), right? Yes. Did you bundle in your extension a types.rdb that contains the information about that ne

RE: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-08 Thread Rai, Neeraj
Hi Stephan, Appreciate you taking time to debug this. > So the org.openoffice.sheet.addin.CalcAddinSock service you specified > implements a new UNO interface that you added (and which has a method > startThr), right? Yes. > Did you bundle in your extension a types.rdb that > contains the inform

Re: [libreoffice-dev] -calling a service function from BASIC macro

2013-02-08 Thread Stephan Bergmann
On 02/08/2013 12:47 AM, Rai, Neeraj wrote: I am having trouble trying to wrap UNO function call in BASIC macro. I got the macro from the following SimpleCalcAddin example. _http://wiki.openoffice.org/wiki/SimpleCalcAddIn#Building_.26_Testing_ 1. mgr = getProcessServiceManager() 2. o =

[libreoffice-dev] -calling a service function from BASIC macro

2013-02-07 Thread Rai, Neeraj
Hi, I am having trouble trying to wrap UNO function call in BASIC macro. I got the macro from the following SimpleCalcAddin example. http://wiki.openoffice.org/wiki/SimpleCalcAddIn#Building_.26_Testing 1. mgr = getProcessServiceManager() 2. o = mgr.createInstance("org.openoffice.sheet.