RE: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Rai, Neeraj
eeraj -Original Message- From: Michael Stahl [mailto:mst...@redhat.com] Sent: Thursday, January 10, 2013 11:59 AM To: Rai, Neeraj [ICG-MKTS] Cc: 'libreoffice@lists.freedesktop.org' Subject: Re: [libreoffice-dev] - questions about calc extension On 10/01/13 16:42, Rai, Neeraj wrote: &g

RE: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Rai, Neeraj
Thanks for catching it. You guys are great. Neeraj -Original Message- From: Michael Meeks [mailto:michael.me...@suse.com] Sent: Thursday, January 10, 2013 11:34 AM To: Rai, Neeraj [ICG-MKTS] Cc: 'libreoffice@lists.freedesktop.org'; Kohei Yoshida Subject: Re: [libreoffice-dev] -

Re: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Michael Stahl
On 10/01/13 16:42, Rai, Neeraj wrote: > Hi Stephan, > > I am unable to find XDesktop2. Your sample below looks really simple > and right way to go. I am working with release version 3.6.4.3 - > built it from tar files. XDesktop2 was only added a month ago, so it's only in 4.0. of course when usi

Re: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Michael Meeks
> > What's your hunch about how long it should take to update 60K cells with > > {getCellByPosition(ii,jj) and setValue() } ? It should be ~instant - sub-second anyhow; it's an analog of loading values from ODS. Kohei's suggestions are great: > On Thu, 2013-01-10 at 10:59 -0500, Kohei Y

Re: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Kohei Yoshida
On 01/10/2013 10:50 AM, Rai, Neeraj wrote: Hi Michael, Appreciate your feedback. I ran callgrind but no output on screen and 0 bytes files generated. I can run it on non-LO exe. I'll compile LO with --enable-debug and see if situation improves. Please advise if other steps might be needed. Wh

RE: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Rai, Neeraj
hael Meeks [mailto:michael.me...@suse.com] Sent: Thursday, January 10, 2013 4:45 AM To: Rai, Neeraj [ICG-MKTS] Cc: 'libreoffice@lists.freedesktop.org' Subject: RE: [libreoffice-dev] - questions about calc extension On Wed, 2013-01-09 at 23:18 +, Rai, Neeraj wrote: > I looked a little more into y

RE: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Rai, Neeraj
Re: [libreoffice-dev] - questions about calc extension On 01/09/2013 07:41 PM, Kohei Yoshida wrote: > On 01/09/2013 01:12 PM, Rai, Neeraj wrote: >> What is the correct way to get a >> handle to spreadsheet in extension code. > > I don't want you to look too close to this (since

RE: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Michael Meeks
On Wed, 2013-01-09 at 23:18 +, Rai, Neeraj wrote: > I looked a little more into your code and copied the getactiveSheet function. > Now it takes 12s. I am happy. > Sorry for the spam - you have good code sitting there. 12s sounds like a long time to me ;-> If you can run your macro u

Re: [libreoffice-dev] - questions about calc extension

2013-01-10 Thread Stephan Bergmann
On 01/09/2013 07:41 PM, Kohei Yoshida wrote: On 01/09/2013 01:12 PM, Rai, Neeraj wrote: What is the correct way to get a handle to spreadsheet in extension code. I don't want you to look too close to this (since I no longer maintain this), bug this code of mine http://code.google.com/p/scsolv

RE: [libreoffice-dev] - questions about calc extension

2013-01-09 Thread Rai, Neeraj
: 'libreoffice@lists.freedesktop.org' Subject: RE: [libreoffice-dev] - questions about calc extension Hi Kohei, I figured out my bug. I was storing the context in a const Reference <> & const and it was going out of scope and being reclaimed after the constructor. After changing it

RE: [libreoffice-dev] - questions about calc extension

2013-01-09 Thread Rai, Neeraj
--- From: Rai, Neeraj [ICG-MKTS] Sent: Wednesday, January 09, 2013 4:28 PM To: 'libreoffice@lists.freedesktop.org' Subject: Re: [libreoffice-dev] - questions about calc extension Hi Kohei, 1. I think I see what you are doing, but having trouble making it work. --- my understanding of your

Re: [libreoffice-dev] - questions about calc extension

2013-01-09 Thread Rai, Neeraj
Hi Kohei, 1. I think I see what you are doing, but having trouble making it work. --- my understanding of your code and the issue I face below - The create_XXX is passed the ComponentContext and you store it for future. I tried the same but the calls to xContext->getServiceManager() aborts my

Re: [libreoffice-dev] - questions about calc extension

2013-01-09 Thread Kohei Yoshida
On 01/09/2013 01:12 PM, Rai, Neeraj wrote: Q1. When I try to use the xContext = cppu::bootstrap() in a calc extension, app terminate with throwing an exception : cppu::BootstrapException It works well in standalone exec. Yes, that's only for "standalone exec" (or whatever we are

[libreoffice-dev] - questions about calc extension

2013-01-09 Thread Rai, Neeraj
Q1. When I try to use the xContext = cppu::bootstrap() in a calc extension, app terminate with throwing an exception : cppu::BootstrapException It works well in standalone exec. What is the correct way to get a handle to spreadsheet in extension code. Q2. I came across an example e