diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-12 20:59:25 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-12 20:59:25 -0600 |
commit | 824daba4116a4b738ba8b90da50cdfd36bca838f (patch) | |
tree | 240fb15415d7006e40e4b0fb6ddb0e43b08111cc /formula/inc | |
parent | e350588a2d67a1f91370a5909c51a16eaedc6248 (diff) |
sligh mis-merge, and favor bool over sal_Bool for internal stuff
Diffstat (limited to 'formula/inc')
-rwxr-xr-x | formula/inc/formula/token.hxx | 32 | ||||
-rwxr-xr-x | formula/inc/formula/tokenarray.hxx | 26 |
2 files changed, 29 insertions, 29 deletions
diff --git a/formula/inc/formula/token.hxx b/formula/inc/formula/token.hxx index 6341be555062..b47147d833e8 100755 --- a/formula/inc/formula/token.hxx +++ b/formula/inc/formula/token.hxx @@ -110,8 +110,8 @@ public: inline void Delete() { delete this; } inline StackVar GetType() const { return eType; } - sal_Bool IsFunction() const; // pure functions, no operators - sal_Bool IsMatrixFunction() const; // if a function _always_ returns a Matrix + bool IsFunction() const; // pure functions, no operators + bool IsMatrixFunction() const; // if a function _always_ returns a Matrix bool IsExternalRef() const; sal_uInt8 GetParamCount() const; inline void IncRef() const { nRefCnt++; } @@ -155,9 +155,9 @@ public: virtual FormulaToken* Clone() const { return new FormulaToken(*this); } - virtual sal_Bool Is3DRef() const; // reference with 3D flag set - virtual sal_Bool TextEqual( const formula::FormulaToken& rToken ) const; - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool Is3DRef() const; // reference with 3D flag set + virtual bool TextEqual( const formula::FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; virtual bool isFunction() const { @@ -217,7 +217,7 @@ public: virtual void SetByte( sal_uInt8 n ); virtual bool HasForceArray() const; virtual void SetForceArray( bool b ); - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; DECL_FIXEDMEMPOOL_NEWDEL_DLL( FormulaByteToken ) }; @@ -238,7 +238,7 @@ public: virtual FormulaToken* Clone() const { return new FormulaFAPToken(*this); } virtual FormulaToken* GetFAPOrigToken() const; - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; }; class FORMULA_DLLPUBLIC FormulaDoubleToken : public FormulaToken @@ -254,7 +254,7 @@ public: virtual FormulaToken* Clone() const { return new FormulaDoubleToken(*this); } virtual double GetDouble() const; virtual double& GetDoubleAsReference(); - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; DECL_FIXEDMEMPOOL_NEWDEL_DLL( FormulaDoubleToken ) }; @@ -272,7 +272,7 @@ public: virtual FormulaToken* Clone() const { return new FormulaStringToken(*this); } virtual const String& GetString() const; - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; DECL_FIXEDMEMPOOL_NEWDEL_DLL( FormulaStringToken ) }; @@ -292,7 +292,7 @@ public: virtual FormulaToken* Clone() const { return new FormulaStringOpToken(*this); } virtual const String& GetString() const; - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; }; class FORMULA_DLLPUBLIC FormulaIndexToken : public FormulaToken @@ -308,7 +308,7 @@ public: virtual FormulaToken* Clone() const { return new FormulaIndexToken(*this); } virtual sal_uInt16 GetIndex() const; virtual void SetIndex( sal_uInt16 n ); - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; }; @@ -332,7 +332,7 @@ public: virtual const String& GetExternal() const; virtual sal_uInt8 GetByte() const; virtual void SetByte( sal_uInt8 n ); - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; }; @@ -347,7 +347,7 @@ public: virtual FormulaToken* Clone() const { return new FormulaMissingToken(*this); } virtual double GetDouble() const; virtual const String& GetString() const; - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; }; class FORMULA_DLLPUBLIC FormulaJumpToken : public FormulaToken @@ -369,7 +369,7 @@ public: } virtual ~FormulaJumpToken(); virtual short* GetJump() const; - virtual sal_Bool operator==( const formula::FormulaToken& rToken ) const; + virtual bool operator==( const formula::FormulaToken& rToken ) const; virtual FormulaToken* Clone() const { return new FormulaJumpToken(*this); } }; @@ -383,7 +383,7 @@ public: FormulaToken( r ) {} virtual FormulaToken* Clone() const { return new FormulaUnknownToken(*this); } - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; }; @@ -399,7 +399,7 @@ public: virtual FormulaToken* Clone() const { return new FormulaErrorToken(*this); } virtual sal_uInt16 GetError() const; virtual void SetError( sal_uInt16 nErr ); - virtual sal_Bool operator==( const FormulaToken& rToken ) const; + virtual bool operator==( const FormulaToken& rToken ) const; }; // ============================================================================= diff --git a/formula/inc/formula/tokenarray.hxx b/formula/inc/formula/tokenarray.hxx index 092cbda78673..626c958471ad 100755 --- a/formula/inc/formula/tokenarray.hxx +++ b/formula/inc/formula/tokenarray.hxx @@ -81,7 +81,7 @@ protected: sal_uInt16 nError; // Error code short nRefs; // Count of cell references ScRecalcMode nMode; // Flags to indicate when to recalc this code - sal_Bool bHyperLink; // If HYPERLINK() occurs in the formula. + bool bHyperLink; // If HYPERLINK() occurs in the formula. protected: void Assign( const FormulaTokenArray& ); @@ -128,10 +128,10 @@ public: FormulaToken* PrevRPN(); bool HasExternalRef() const; - sal_Bool HasOpCode( OpCode ) const; - sal_Bool HasOpCodeRPN( OpCode ) const; + bool HasOpCode( OpCode ) const; + bool HasOpCodeRPN( OpCode ) const; /// Token of type svIndex or opcode ocColRowName - sal_Bool HasNameOrColRowName() const; + bool HasNameOrColRowName() const; FormulaToken** GetArray() const { return pCode; } FormulaToken** GetCode() const { return pRPN; } @@ -142,8 +142,8 @@ public: void SetCodeError( sal_uInt16 n ) { nError = n; } short GetRefs() const { return nRefs; } void IncrementRefs() { ++nRefs; } - void SetHyperLink( sal_Bool bVal ) { bHyperLink = bVal; } - sal_Bool IsHyperLink() const { return bHyperLink; } + void SetHyperLink( bool bVal ) { bHyperLink = bVal; } + bool IsHyperLink() const { return bHyperLink; } inline ScRecalcMode GetRecalcMode() const { return nMode; } /** Bits aren't set directly but validated and @@ -168,17 +168,17 @@ public: { nMode |= RECALCMODE_ONREFMOVE; } inline void ClearRecalcModeOnRefMove() { nMode &= ~RECALCMODE_ONREFMOVE; } - inline sal_Bool IsRecalcModeNormal() const + inline bool IsRecalcModeNormal() const { return (nMode & RECALCMODE_NORMAL) != 0; } - inline sal_Bool IsRecalcModeAlways() const + inline bool IsRecalcModeAlways() const { return (nMode & RECALCMODE_ALWAYS) != 0; } - inline sal_Bool IsRecalcModeOnLoad() const + inline bool IsRecalcModeOnLoad() const { return (nMode & RECALCMODE_ONLOAD) != 0; } - inline sal_Bool IsRecalcModeOnLoadOnce() const + inline bool IsRecalcModeOnLoadOnce() const { return (nMode & RECALCMODE_ONLOAD_ONCE) != 0; } - inline sal_Bool IsRecalcModeForced() const + inline bool IsRecalcModeForced() const { return (nMode & RECALCMODE_FORCED) != 0; } - inline sal_Bool IsRecalcModeOnRefMove() const + inline bool IsRecalcModeOnRefMove() const { return (nMode & RECALCMODE_ONREFMOVE) != 0; } /** Get OpCode of the most outer function */ @@ -186,7 +186,7 @@ public: /** Operators +,-,*,/,^,&,=,<>,<,>,<=,>= with DoubleRef in Formula? */ - sal_Bool HasMatrixDoubleRefOps(); + bool HasMatrixDoubleRefOps(); virtual FormulaToken* AddOpCode(OpCode e); |