diff options
author | Alexandre Fournier <fou@leila.(none)> | 2010-11-06 01:33:05 +0100 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-11-06 18:21:27 -0500 |
commit | a93c9517dc52b1d9c22a0e69f9d92c119983f7fe (patch) | |
tree | 10d0f65563b4c93e9532ad2b2e351f60022a17c4 /starmath/inc/cursor.hxx | |
parent | c27759cbf40a99632112cf2e2d21d64f2d3ae749 (diff) |
Removes a fair amount of BOOL variables in starmath
I uses the native bool type instead.
Some signatures containing BOOL have been left untouched when belonging to an inheritance hierarchy beyond the scope of starmath
Diffstat (limited to 'starmath/inc/cursor.hxx')
-rw-r--r-- | starmath/inc/cursor.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index fab86a4a984b..7c4fa851fd2f 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -180,7 +180,7 @@ public: * * @returns True, if the caret was in a context where this operation was possible. */ - BOOL InsertLimit(SmSubSup eSubSup, BOOL bMoveCaret = TRUE); + bool InsertLimit(SmSubSup eSubSup, bool bMoveCaret = true); /** Insert a new row or newline * @@ -192,7 +192,7 @@ public: * @remarks If the caret is placed in a subline of a command that doesn't support * this operator the method returns FALSE, and doesn't do anything. */ - BOOL InsertRow(); + bool InsertRow(); /** Insert a fraction, use selection as numerator */ void InsertFraction(); @@ -341,14 +341,14 @@ private: SmNodeList *pSelectedNodes = NULL); /** Create an instance of SmMathSymbolNode usable for brackets */ - static SmNode *CreateBracket(SmBracketType eBracketType, BOOL bIsLeft); + static SmNode *CreateBracket(SmBracketType eBracketType, bool bIsLeft); /** The number of times BeginEdit have been called * Used to allow nesting of BeginEdit() and EndEdit() sections */ int nEditSections; /** Holds data for BeginEdit() and EndEdit() */ - BOOL bIsEnabledSetModifiedSmDocShell; + bool bIsEnabledSetModifiedSmDocShell; /** Begin edit section where the tree will be modified */ void BeginEdit(); /** End edit section where the tree will be modified */ @@ -407,17 +407,17 @@ public: */ SmNode* Parse(SmNodeList* list, bool bDeleteErrorNodes = true); /** True, if the token is an operator */ - static BOOL IsOperator(const SmToken &token); + static bool IsOperator(const SmToken &token); /** True, if the token is a relation operator */ - static BOOL IsRelationOperator(const SmToken &token); + static bool IsRelationOperator(const SmToken &token); /** True, if the token is a sum operator */ - static BOOL IsSumOperator(const SmToken &token); + static bool IsSumOperator(const SmToken &token); /** True, if the token is a product operator */ - static BOOL IsProductOperator(const SmToken &token); + static bool IsProductOperator(const SmToken &token); /** True, if the token is a unary operator */ - static BOOL IsUnaryOperator(const SmToken &token); + static bool IsUnaryOperator(const SmToken &token); /** True, if the token is a postfix operator */ - static BOOL IsPostfixOperator(const SmToken &token); + static bool IsPostfixOperator(const SmToken &token); private: SmNodeList* pList; /** Get the current terminal */ |