diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-04 10:19:47 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-04 10:22:27 -0500 |
commit | 059f43f5756076c7d349e9b7d66e3605a948b508 (patch) | |
tree | 910ce1aea341c9b8e10d910658a3964ab4c024df /sc/inc/tokenstringcontext.hxx | |
parent | 9db3b5585c5fa7fff633672fd32510c4066d035a (diff) |
Pre-compile all compiler-ready sheet names to avoid doing it repeatedly.
This reduces the lag after updating range names especially with a large
number of range names.
Change-Id: Idbfa3b6447b693a566192828e7137b2aeaa0d1f5
Diffstat (limited to 'sc/inc/tokenstringcontext.hxx')
-rw-r--r-- | sc/inc/tokenstringcontext.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/inc/tokenstringcontext.hxx b/sc/inc/tokenstringcontext.hxx index 85b61f77b13d..fcc7eae42acf 100644 --- a/sc/inc/tokenstringcontext.hxx +++ b/sc/inc/tokenstringcontext.hxx @@ -46,6 +46,15 @@ struct SC_DLLPUBLIC TokenStringContext TokenStringContext( const ScDocument* pDoc, formula::FormulaGrammar::Grammar eGram ); }; +struct CompileFormulaContext +{ + ScDocument* mpDoc; + formula::FormulaGrammar::Grammar meGram; + std::vector<OUString> maTabNames; + + CompileFormulaContext( ScDocument* pDoc, formula::FormulaGrammar::Grammar eGram ); +}; + } #endif |