From 7379e48298c623ae5e45c6a176386f335b1ff1b2 Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Thu, 8 Oct 2015 12:55:21 +0200 Subject: Related tdf#93688: save CalcA1|ExcelA1 also as a global option without this patch, it's only possible to save it on per-document base Change-Id: I13359b751ef766c7de53e9e21c299aadbbc0fbf4 Reviewed-on: https://gerrit.libreoffice.org/19248 Tested-by: Jenkins Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- sc/source/core/tool/formulaopt.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx index 7bb264bace36..166429f9ad09 100644 --- a/sc/source/core/tool/formulaopt.cxx +++ b/sc/source/core/tool/formulaopt.cxx @@ -365,6 +365,9 @@ void ScFormulaCfg::UpdateFromProperties( const Sequence& aNames ) case 2: // Excel R1C1 eConv = formula::FormulaGrammar::CONV_XL_R1C1; break; + case 3: // Calc A1 | Excel A1 + eConv = formula::FormulaGrammar::CONV_A1_XL_A1; + break; default: ; } @@ -548,6 +551,7 @@ void ScFormulaCfg::ImplCommit() case ::formula::FormulaGrammar::CONV_OOO: nVal = 0; break; case ::formula::FormulaGrammar::CONV_XL_A1: nVal = 1; break; case ::formula::FormulaGrammar::CONV_XL_R1C1: nVal = 2; break; + case ::formula::FormulaGrammar::CONV_A1_XL_A1: nVal = 3; break; default: break; } pValues[nProp] <<= nVal; -- cgit v1.2.1