Kaydet (Commit) f3f89f4f authored tarafından Eike Rathke's avatar Eike Rathke

accept EFFECTIVE as EFFECT in OOXML import

Change-Id: I18a914972d69a37e9dcf5b18ffbea9177004dad7
üst 0e4ca9b0
......@@ -2740,6 +2740,28 @@ bool ScCompiler::IsOpCode( const OUString& rName, bool bInArray )
}
}
}
else if (mxSymbols->isOOXML())
{
// OOXML names that are not written in the current mapping but to be
// recognized as old versions wrote them.
struct FunctionName
{
const sal_Char* pName;
OpCode eOp;
};
static const FunctionName aOoxmlAliases[] = {
{ "EFFECTIVE", ocEffective } // EFFECTIVE -> EFFECT
};
for (const FunctionName& rOoxmlAlias : aOoxmlAliases)
{
if (rName.equalsIgnoreAsciiCaseAscii( rOoxmlAlias.pName))
{
maRawToken.SetOpCode( rOoxmlAlias.eOp);
bFound = true;
break; // for
}
}
}
if (!bFound)
{
OUString aIntName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment