From 35a230af3f2e847983174cf65c567e04212791dc Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 12 Jul 2013 10:45:14 +0200 Subject: [PATCH] prepare to read backsolver's OOo ODFF namespaced function name Change-Id: Ieff6955c54125483eeac25f87ab334d91e37968f --- sc/source/core/tool/compiler.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 6b5a59c5e876..ca104245b3f7 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2461,14 +2461,13 @@ bool ScCompiler::IsOpCode( const String& rName, bool bInArray ) OpCode eOp; }; static const FunctionName aOdffAliases[] = { - // Renamed old names: + // Renamed old names, still accept them: { "B", ocB }, // B -> BINOM.DIST.RANGE { "TDIST", ocTDist }, // TDIST -> LEGACY.TDIST { "EASTERSUNDAY", ocEasterSunday }, // EASTERSUNDAY -> ORG.OPENOFFICE.EASTERSUNDAY - { "ZGZ", ocZGZ } // ZGZ -> RRI - // Renamed new names: - // XXX none currently. Example: - //{ "ORG.OPENOFFICE.EASTERSUNDAY", ocEasterSunday } + { "ZGZ", ocZGZ }, // ZGZ -> RRI + // Renamed new names, prepare to read future names: + { "ORG.OPENOFFICE.GOALSEEK", ocBackSolver } // GOALSEEK -> ORG.OPENOFFICE.GOALSEEK }; static const size_t nOdffAliases = sizeof(aOdffAliases) / sizeof(aOdffAliases[0]); for (size_t i=0; i