From 7260a33c965eda5a5dc9dcd785621af152147d3b Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 5 Oct 2010 14:47:09 -0400 Subject: Ported calc-english-func-names-*.diff from ooo-build. Add option to switch to English function names instead of the localized ones. In some locales (especially in Hungary) the users are more accustomed to the English function names rather other than translated names (i#38765). --- formula/inc/formula/FormulaCompiler.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'formula/inc') diff --git a/formula/inc/formula/FormulaCompiler.hxx b/formula/inc/formula/FormulaCompiler.hxx index 4da7318807a2..5666bf682d5a 100644 --- a/formula/inc/formula/FormulaCompiler.hxx +++ b/formula/inc/formula/FormulaCompiler.hxx @@ -122,6 +122,7 @@ public: } virtual ~OpCodeMap(); + void copyFrom( const OpCodeMap& r ); /// Get the symbol String -> OpCode hash map for finds. inline const OpCodeHashMap* getHashMap() const { return mpHashMap; } @@ -243,7 +244,8 @@ public: inline FormulaGrammar::Grammar GetGrammar() const { return meGrammar; } static void UpdateSeparatorsNative( const rtl::OUString& rSep, const rtl::OUString& rArrayColSep, const rtl::OUString& rArrayRowSep ); - + static void ResetNativeSymbols(); + static void SetNativeSymbols( const OpCodeMapPtr& xMap ); protected: virtual String FindAddInFunction( const String& rUpperName, BOOL bLocalFirst ) const; virtual void fillFromAddInCollectionUpperName( NonConstOpCodeMapPtr xMap ) const; -- cgit