Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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

Attachment: CalcAddinCpp_impl.cxx
Description: CalcAddinCpp_impl.cxx


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.