[libreoffice-dev] - questions about calc extension
Rai, Neeraj
neeraj.rai at citi.com
Wed Jan 9 13:27:31 PST 2013
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 program.
Interestingly,
when the create_XXX is called, I try a fake xContext->getServiceManager() and it works.
when I store it in my object , in the ctor, I try another fake xContext->getServiceManager() and it works.
its only when I choose my custom function from menu and invoke this again, that the app terminates.
Is there anything special about functions calls from menu.
====
Also, if the above commentary is misleading, you could look at the code
create_CalcAddinCpp_impl is parallel to your create_SolverImpl (line 520: success)
CalcAddinCpp_impl is parallel to your CalcInterface (line 88: success)
methodTwo (line 159: calc terminates)
Is xcalc.cxx a working extension code that I can download and use ?
If not, do you know of other working samples ?
I would greatly appreciate any sample LO calc extension code to get my env working.
2. Your sample code answered my 2nd question .
If I can get a context and spreadsheet, I can access different cells. I was trying to update different cells from single menu based function call.
appreciate your time.
The sample I based on was on wiki.openoffice.org which seems to be down
Thanks
Neeraj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CalcAddinCpp_impl.cxx
Type: application/octet-stream
Size: 20787 bytes
Desc: CalcAddinCpp_impl.cxx
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130109/9cf8b64e/attachment-0001.obj>
More information about the LibreOffice
mailing list