On Mon, 2008-08-04 at 09:48 +0200, Daniel Rentz wrote:
> 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.

Ouch.

> The only save way is to copy&paste the 
> code from scaddins module.

Yeah, it would be nice to find a way to not duplicate this code though,
for a long-term, that is.

Kohei

-- 
Kohei Yoshida - OpenOffice.org Engineer - Novell, Inc.
<[EMAIL PROTECTED]>


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

Reply via email to