Hi Regina,

On Thursday, 2010-06-10 00:25:00 +0200, Regina Henschel wrote:

> I have now looked at ScCompiler::IsOpCode. You have added a comment  
> (line 2520)
> // If that isn't found we might continue with rName lookup as a
> // last resort by just falling through to FindFunction(), but
> // it shouldn't happen if the map was setup correctly. Don't
> // waste time and bail out.
>
> I have now added this FindFunction()
> if (!aIntName.Len())
> {
>     aIntName = ScGlobal::GetAddInCollection()->FindFunction(
>                         rName, !mxSymbols->isEnglish());
> }
>
> And now all new AddIn-Functions are found when reloading and after  
> roundtrip through OOo2.4.3, both in setting ODF 1.0 and 1.2, and both in  
> ods and sxc format. So there might be something wrong with the map?

That's odd. I'd have to take a deeper look at that. I expected that with

{ "IMCOT", "IMCOT", false, "com.sun.star.sheet.addin.Analysis.getImcot", 
"IMCOT" },

the last IMCOT would had setup the map for FormulaGrammar::GRAM_PODF to
be used in 'oooc:' namespace import, see ScCompiler::fillFromAddInMap().

Using FindFunction() may be a workaround, but I'd rather find the real
cause and a different solution without looking through all AddIns.

  Eike

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't send personal mail to the e...@sun.com account, which I use for
 mailing lists only and don't read from outside Sun. Use er...@sun.com Thanks.

Attachment: pgplWtHARCjmT.pgp
Description: PGP signature

Reply via email to