From 59d2745d4ab0bb44d474bab56d3f06a8e1dfb788 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 29 Aug 2024 17:37:03 +0200 Subject: Related: tdf#161599 Accept Add-In CompatibilityName when reading OOXML Must be first "en-US" (preferred) or "en" or any first if no "en-US" nor "en". Change-Id: I1549d6650b19fbb37952bd093692bbbcba1420c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172603 Tested-by: Jenkins Reviewed-by: Eike Rathke --- formula/source/core/api/FormulaCompiler.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'formula/source') diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index f4e7620257a0..ecd7f60a28d2 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1158,6 +1158,11 @@ void FormulaCompiler::loadSymbols(const std::pair* pSymbols, F // PricingFunctions AddIn or any user supplied AddIn. fillFromAddInCollectionEnglishName( rxMap); } + else if (FormulaGrammar::GRAM_OOXML == eGrammar) + { + // Add specified Add-In compatibility name. + fillFromAddInCollectionExcelName( rxMap); + } } } @@ -1169,6 +1174,10 @@ void FormulaCompiler::fillFromAddInCollectionEnglishName( const NonConstOpCodeMa { } +void FormulaCompiler::fillFromAddInCollectionExcelName( const NonConstOpCodeMapPtr& /*xMap */) const +{ +} + void FormulaCompiler::fillFromAddInMap( const NonConstOpCodeMapPtr& /*xMap*/, FormulaGrammar::Grammar /*_eGrammar */) const { } -- cgit v1.2.3