diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-30 15:55:58 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-30 19:18:41 -0500 |
commit | 54ebe3df4a4c24dec7c38487a7da387fee266321 (patch) | |
tree | 25c8b4762b0ec75678abd0b91319e39f76a82b5c /sc/inc | |
parent | 24bce470788aa34e5e1bb001250bfa14cee1c75e (diff) |
bnc#615317: Recompile cells with #NAME! for English function name option.
When the option for using English function name changes, we should re-compile
all cells with #NAME! as the error may have been caused by unresolved function
name which may be fixed after the option change.
Change-Id: Id340ce9b5db3ed368b98e814861be5c3f96df071
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/column.hxx | 2 | ||||
-rw-r--r-- | sc/inc/document.hxx | 12 | ||||
-rw-r--r-- | sc/inc/table.hxx | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index f4370a98356a..f6dff3bec784 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -251,6 +251,8 @@ public: void CompileAll(); void CompileXML( ScProgress& rProgress ); + bool CompileErrorCells(sal_uInt16 nErrCode); + void ResetChanged( SCROW nStartRow, SCROW nEndRow ); bool UpdateReference( UpdateRefMode eUpdateRefMode, SCCOL nCol1, SCROW nRow1, SCTAB nTab1, diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index c3dd9900e333..6483c65bc06a 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -860,6 +860,18 @@ public: void CompileAll(); void CompileXML(); + /** + * Re-compile formula cells with error. + * + * @param nErrCode specified error code to match. Only those cells with + * this error code will be re-compiled. If this value is + * 0, cells with any error values will be re-compiled. + * + * @return true if at least one cell is re-compiled, false if no cells are + * re-compiled. + */ + bool CompileErrorCells(sal_uInt16 nErrCode); + ScAutoNameCache* GetAutoNameCache() { return pAutoNameCache; } SC_DLLPUBLIC void SetAutoNameCache( ScAutoNameCache* pCache ); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 30eb97abb66d..fd2aece5e356 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -447,6 +447,8 @@ public: void CompileAll(); void CompileXML( ScProgress& rProgress ); + bool CompileErrorCells(sal_uInt16 nErrCode); + void UpdateReference( UpdateRefMode eUpdateRefMode, SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, SCsCOL nDx, SCsROW nDy, SCsTAB nDz, |