summaryrefslogtreecommitdiff
path: root/sc/inc/recursionhelper.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-10-21 10:52:08 +0000
committerRüdiger Timm <rt@openoffice.org>2005-10-21 10:52:08 +0000
commit73ed423191555c5278959a9b7332a890230e598f (patch)
tree79b03c9d930462c74ec58ab8d05457c515d80deb /sc/inc/recursionhelper.hxx
parent97c092757d7a782954f0f046f94e9e8778f92c39 (diff)
INTEGRATION: CWS dr41 (1.2.118); FILE MERGED
2005/10/04 21:05:54 dr 1.2.118.2: RESYNC: (1.2-1.3); FILE MERGED 2005/09/07 11:11:50 er 1.2.118.1: #i54276# include string results in iteration convergence tests
Diffstat (limited to 'sc/inc/recursionhelper.hxx')
-rw-r--r--sc/inc/recursionhelper.hxx22
1 files changed, 14 insertions, 8 deletions
diff --git a/sc/inc/recursionhelper.hxx b/sc/inc/recursionhelper.hxx
index 1fd662945e9f..fc5445ff28be 100644
--- a/sc/inc/recursionhelper.hxx
+++ b/sc/inc/recursionhelper.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: recursionhelper.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 17:51:05 $
+ * last change: $Author: rt $ $Date: 2005-10-21 11:52:08 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -46,11 +46,16 @@ struct ScFormulaRecursionEntry
{
ScFormulaCell* pCell;
BOOL bOldRunning;
+ BOOL bPreviousNumeric;
double fPreviousResult;
- ScFormulaRecursionEntry( ScFormulaCell* p, BOOL b, double f ) : pCell(p),
- bOldRunning(b),
- fPreviousResult(f)
- {}
+ String aPreviousString;
+ ScFormulaRecursionEntry( ScFormulaCell* p, BOOL bR, BOOL bN, double f,
+ const String& rS ) : pCell(p), bOldRunning(bR),
+ bPreviousNumeric(bN), fPreviousResult(f)
+ {
+ if (!bPreviousNumeric)
+ aPreviousString = rS;
+ }
};
typedef ::std::list< ScFormulaRecursionEntry > ScFormulaRecursionList;
@@ -101,10 +106,11 @@ class ScRecursionHelper
}
bool IsDoingRecursion() const { return bDoingRecursion; }
void SetDoingRecursion( bool b ) { bDoingRecursion = b; }
- void Insert( ScFormulaCell* p, BOOL bOldRunning, double fResult )
+ void Insert( ScFormulaCell* p, BOOL bOldRunning, BOOL bNumeric,
+ double fResult, const String& rStrResult )
{
aRecursionFormulas.insert( aInsertPos, ScFormulaRecursionEntry( p,
- bOldRunning, fResult));
+ bOldRunning, bNumeric, fResult, rStrResult));
}
ScFormulaRecursionList::iterator GetStart()
{