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


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 = mgr.createInstance("org.openoffice.sheet.addin.CalcAddinSock")
3.       o.startThr()
(where my idl service returned by getServiceName() is
org.openoffice.sheet.addin.CalcAddinSock
         and it defines a function startThr)
I can call the funciton startThr() using "=" in the spread sheet.
Also, the original example RNG is callable from macro by following the
example.

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? Did you bundle in your extension a types.rdb that contains the information about that new interface? Helping you would probably be easiest if you gave the full source code of your extension, along with short instructions how to build it (e.g., "call make from within a configured LO SDK environment").

Stephan

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.