diff options
author | Eike Rathke <erack@redhat.com> | 2016-07-14 18:30:43 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-18 10:03:01 +0000 |
commit | 55a38964c28ab2fa9deac8db629c5940284b2394 (patch) | |
tree | 256aed52b5e9698eb1ae822f5173eb5bb4a6a674 /sc | |
parent | bd6d7374df93cc173967a95f1deae2d667c6d963 (diff) |
forward compatibility for several _xlfn.ORG.OPENOFFICE.* functions in OOXML
as they will be written by LibreOffice 5.3
ERRORTYPE, MULTIRANGE, GOALSEEK, EASTERSUNDAY, CURRENT and STYLE.
Change-Id: Ifad317ccb2ae6dd0e53cadf2ad298490c14f1010
Reviewed-on: https://gerrit.libreoffice.org/27226
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index c6684c80e706..e161b12b7529 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2682,7 +2682,14 @@ bool ScCompiler::IsOpCode( const OUString& rName, bool bInArray ) OpCode eOp; }; static const FunctionName aOoxmlAliases[] = { - { "EFFECTIVE", ocEffective } // EFFECTIVE -> EFFECT + { "EFFECTIVE", ocEffective }, // EFFECTIVE -> EFFECT + // LibreOffice 5.3 will correctly write this, be able to read it. + { "_xlfn.ORG.OPENOFFICE.ERRORTYPE", ocErrorType }, // _xlfn.ORG.OPENOFFICE.ERRORTYPE -> ERRORTYPE + { "_xlfn.ORG.OPENOFFICE.MULTIRANGE", ocMultiArea }, // _xlfn.ORG.OPENOFFICE.MULTIRANGE -> MULTIRANGE + { "_xlfn.ORG.OPENOFFICE.GOALSEEK", ocBackSolver }, // _xlfn.ORG.OPENOFFICE.GOALSEEK -> GOALSEEK + { "_xlfn.ORG.OPENOFFICE.EASTERSUNDAY", ocEasterSunday }, // _xlfn.ORG.OPENOFFICE.EASTERSUNDAY -> EASTERSUNDAY + { "_xlfn.ORG.OPENOFFICE.CURRENT", ocCurrent }, // _xlfn.ORG.OPENOFFICE.CURRENT -> CURRENT + { "_xlfn.ORG.OPENOFFICE.STYLE", ocStyle } // _xlfn.ORG.OPENOFFICE.STYLE -> STYLE }; for (const FunctionName& rOoxmlAlias : aOoxmlAliases) { |