summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2024-08-29 17:50:41 +0200
committerEike Rathke <erack@redhat.com>2024-08-30 03:04:44 +0200
commit044980edc41544dd5973d5aa57f134d4bfe6d0e7 (patch)
tree2236189f66e8d4347bf5a1db797092c9d10b40f9 /sc
parent22eac3145ca62d15b47d95f4df60ce38d4f5aa46 (diff)
Resolves: tdf#161599 Write Add-In CompatibilityName (if any) to OOXML
First "en-US" (preferred) or "en" or any first if no "en-US" nor "en". Change-Id: Ifdb60547b588f224ee9ddca39af2352a87385bd0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172604 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/compiler.hxx1
-rw-r--r--sc/source/core/tool/compiler.cxx5
2 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx
index d0305bf474e2..33fe7ca97361 100644
--- a/sc/inc/compiler.hxx
+++ b/sc/inc/compiler.hxx
@@ -533,6 +533,7 @@ private:
virtual void CreateStringFromMatrix( OUStringBuffer& rBuffer, const formula::FormulaToken* pToken ) const override;
virtual void CreateStringFromIndex( OUStringBuffer& rBuffer, const formula::FormulaToken* pToken ) const override;
virtual void LocalizeString( OUString& rName ) const override; // modify rName - input: exact name
+ virtual bool GetExcelName( OUString& rName ) const override; // modify rName - input: exact name
virtual formula::ParamClass GetForceArrayParameter( const formula::FormulaToken* pToken, sal_uInt16 nParam ) const override;
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 1226f13b4e17..3d30f10fb0ed 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -5599,6 +5599,11 @@ void ScCompiler::LocalizeString( OUString& rName ) const
ScGlobal::GetAddInCollection()->LocalizeString( rName );
}
+bool ScCompiler::GetExcelName( OUString& rName ) const
+{
+ return ScGlobal::GetAddInCollection()->GetExcelName( rName, LANGUAGE_ENGLISH_US, rName);
+}
+
FormulaTokenRef ScCompiler::ExtendRangeReference( FormulaToken & rTok1, FormulaToken & rTok2 )
{
return extendRangeReference( rDoc.GetSheetLimits(), rTok1, rTok2, aPos, true/*bReuseDoubleRef*/ );