diff options
author | Eike Rathke <erack@redhat.com> | 2016-07-14 18:30:43 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-07-20 13:06:44 +0200 |
commit | fab6451ee64fa9aea8dc3ec2ddb733eb7fcd6c83 (patch) | |
tree | 6cfc36cca6eb8b129c0a74168b2b78e896c8d4b1 /sc | |
parent | a65afae1eacd33546b5ceee12e510d4f2849feb1 (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>
(cherry picked from commit 55a38964c28ab2fa9deac8db629c5940284b2394)
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 417ca2623a36..9083dcb8c8bb 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) { |