summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-08-02 21:39:56 +0200
committerEike Rathke <erack@redhat.com>2022-08-02 22:32:54 +0200
commit8dc76b13458fac1a30787f8bbab117a4a9508ab5 (patch)
tree5bf35de6e67abea3df4f299d78e19f2e61d635c9 /sc/inc
parente49156aff90861cb5e488bab5e83cb7a00f109df (diff)
Resolves: tdf#150203 Gather AddIn English names and provide for FunctionAccess
This works at least for the bundled AddIns from scaddins/. It may for others if en-US compatibility function names are provided, if not the local name will be continued to be used. Change-Id: I09e23f731c0f3d9753ef355ab59c2005bc567464 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137708 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/addincol.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/addincol.hxx b/sc/inc/addincol.hxx
index 9366e31b68ff..2602624da287 100644
--- a/sc/inc/addincol.hxx
+++ b/sc/inc/addincol.hxx
@@ -123,7 +123,8 @@ public:
const OString& GetHelpId() const { return sHelpId; }
const ::std::vector< LocalizedName >& GetCompNames() const;
- bool GetExcelName( LanguageType eDestLang, OUString& rRetExcelName ) const;
+ bool GetExcelName( LanguageType eDestLang, OUString& rRetExcelName,
+ bool bFallbackToAny = true ) const;
void SetFunction( const css::uno::Reference< css::reflection::XIdlMethod>& rNewFunc,
const css::uno::Any& rNewObj );
@@ -140,6 +141,7 @@ private:
std::unique_ptr<ScAddInHashMap> pExactHashMap; ///< exact internal name
std::unique_ptr<ScAddInHashMap> pNameHashMap; ///< internal name upper
std::unique_ptr<ScAddInHashMap> pLocalHashMap; ///< localized name upper
+ std::unique_ptr<ScAddInHashMap> pEnglishHashMap; ///< English name upper
bool bInitialized;
void Initialize();