Kohei Yoshida schrieb:
Hi Regina,

On Sun, 2008-08-03 at 18:53 +0200, Regina Henschel wrote:
Hello,

I'm writing a function, which is local in interpr3.cxx. For this function I need erfc() or getErfc() from scaddins. How to get it?

Looks to me like the easiest way to get there is via UNO call;
instantiate a service "com.sun.star.sheet.addin.Analysis", which should
find and instantiate the AnalysisAddIn class in the scaddins module.
You can then query the interface for XAnalysis (in the same namespace as
the service) to call getErfc().

ScDocument has this GetServcieManager() call to get you the service
manager instance, and from that you can instantiate UNO services.

IMHO it is not a good idea to rely on the Analysis addin from Calc core code, as the addin may not be installed, thus the creation of the AnalysisAddIn class would fail. The only save way is to copy&paste the code from scaddins module.


Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to