diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-04 13:46:43 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-04 13:49:09 -0500 |
commit | 295a55b647e030d3705b930bde7508cd8b058b52 (patch) | |
tree | 0c3db5b3895d3c44f7bc89537ddb68013af225fb /sc/inc/tokenstringcontext.hxx | |
parent | 8c01b81e81bd0598932c32bd47e59a1029660dd4 (diff) |
Use CompileFormulaContext in CompileDBFormula() and CalcAfterLoad().
Also make some adjustment in order to handle formula cell's "temp grammar"
correctly.
Change-Id: I6fdd5c67bb95e4de90ea71db624c9610c1e2febf
Diffstat (limited to 'sc/inc/tokenstringcontext.hxx')
-rw-r--r-- | sc/inc/tokenstringcontext.hxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sc/inc/tokenstringcontext.hxx b/sc/inc/tokenstringcontext.hxx index fcc7eae42acf..af97d999c37e 100644 --- a/sc/inc/tokenstringcontext.hxx +++ b/sc/inc/tokenstringcontext.hxx @@ -46,13 +46,23 @@ struct SC_DLLPUBLIC TokenStringContext TokenStringContext( const ScDocument* pDoc, formula::FormulaGrammar::Grammar eGram ); }; -struct CompileFormulaContext +class CompileFormulaContext { ScDocument* mpDoc; formula::FormulaGrammar::Grammar meGram; std::vector<OUString> maTabNames; + void updateTabNames(); + +public: CompileFormulaContext( ScDocument* pDoc, formula::FormulaGrammar::Grammar eGram ); + + formula::FormulaGrammar::Grammar getGrammar() const; + void setGrammar( formula::FormulaGrammar::Grammar eGram ); + + const std::vector<OUString>& getTabNames() const; + + ScDocument* getDoc(); }; } |