diff options
author | Eike Rathke <erack@redhat.com> | 2024-08-29 17:37:03 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2024-08-29 20:30:28 +0200 |
commit | 59d2745d4ab0bb44d474bab56d3f06a8e1dfb788 (patch) | |
tree | 4fa575b75d1c8f23c11a27e85ed1ef21186daef0 /formula/source | |
parent | 265914ee3e99e70a9b1f5a9a80f3574fc9af5392 (diff) |
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 <erack@redhat.com>
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
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<const char*, int>* 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 { } |