diff options
author | Eike Rathke <erack@redhat.com> | 2016-06-27 13:20:58 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-06-27 13:41:33 +0200 |
commit | f3f89f4f3180b0fd63c5290c665894c6a27f2ae2 (patch) | |
tree | 529cc5556c3e2caaab333fdc10765cc43e08018c /sc | |
parent | 0e4ca9b0cfe015f7ab3b964d1b90de7c2cba42de (diff) |
accept EFFECTIVE as EFFECT in OOXML import
Change-Id: I18a914972d69a37e9dcf5b18ffbea9177004dad7
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 97820289396a..adff3f468e92 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -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; |