diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2017-12-13 22:27:03 -0500 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2017-12-18 23:28:02 +0100 |
commit | 1c7fa9528f7373e6798b597a42abe38f20a306aa (patch) | |
tree | 9777e93c63ae9c7615eb6929ddd3739f80cfd373 /sc/inc/documentimport.hxx | |
parent | a72f3d40def7878ae487c8c34cd84da7d90fc99a (diff) |
Defer cell value insertion until later.
Because Calc's formula engine expects all named expressions to be
present at the time of re-calculations, we need to delay insertion
of cell values until after the named expressions are inserted into
the document.
Change-Id: I54c7d3dc86b3e2c5c192337b1cebfbdfb901ab1f
Reviewed-on: https://gerrit.libreoffice.org/46665
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/inc/documentimport.hxx')
-rw-r--r-- | sc/inc/documentimport.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/inc/documentimport.hxx b/sc/inc/documentimport.hxx index b4c35e1f99b5..d881da37cf2d 100644 --- a/sc/inc/documentimport.hxx +++ b/sc/inc/documentimport.hxx @@ -96,7 +96,15 @@ public: void setNumericCell(const ScAddress& rPos, double fVal); void setStringCell(const ScAddress& rPos, const OUString& rStr); void setEditCell(const ScAddress& rPos, EditTextObject* pEditText); - void setFormulaCell(const ScAddress& rPos, const OUString& rFormula, formula::FormulaGrammar::Grammar eGrammar); + + void setFormulaCell( + const ScAddress& rPos, const OUString& rFormula, formula::FormulaGrammar::Grammar eGrammar, + const double* pResult = nullptr ); + + void setFormulaCell( + const ScAddress& rPos, const OUString& rFormula, formula::FormulaGrammar::Grammar eGrammar, + const OUString& rResult ); + void setFormulaCell(const ScAddress& rPos, ScTokenArray* pArray); void setFormulaCell(const ScAddress& rPos, ScFormulaCell* pCell); |