summaryrefslogtreecommitdiff
path: root/formula/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-10-05 14:47:09 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-10-05 14:47:09 -0400
commit7260a33c965eda5a5dc9dcd785621af152147d3b (patch)
tree58d18ea74d123d399bed742ca420bd8c8c55366f /formula/inc
parent5c2f0dae0c670c538904b7b2de3fd4e7274d9bbd (diff)
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).
Diffstat (limited to 'formula/inc')
-rw-r--r--formula/inc/formula/FormulaCompiler.hxx4
1 files changed, 3 insertions, 1 deletions
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;