summaryrefslogtreecommitdiff
path: root/starmath/inc/node.hxx
diff options
context:
space:
mode:
authorAlexandre Fournier <fou@leila.(none)>2010-11-06 01:33:05 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-11-06 18:21:27 -0500
commita93c9517dc52b1d9c22a0e69f9d92c119983f7fe (patch)
tree10d0f65563b4c93e9532ad2b2e351f60022a17c4 /starmath/inc/node.hxx
parentc27759cbf40a99632112cf2e2d21d64f2d3ae749 (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/node.hxx')
-rw-r--r--starmath/inc/node.hxx46
1 files changed, 23 insertions, 23 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 114f7204a236..75153f574332 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -119,10 +119,10 @@ class SmNode : public SmRect
RectHorAlign eRectHorAlign;
USHORT nFlags,
nAttributes;
- BOOL bIsPhantom,
+ bool bIsPhantom,
bIsDebug;
- BOOL bIsSelected;
+ bool bIsSelected;
protected:
SmNode(SmNodeType eNodeType, const SmToken &rNodeToken);
@@ -133,7 +133,7 @@ protected:
public:
virtual ~SmNode();
- virtual BOOL IsVisible() const;
+ virtual bool IsVisible() const;
virtual USHORT GetNumSubNodes() const;
virtual SmNode * GetSubNode(USHORT nIndex);
@@ -151,9 +151,9 @@ public:
USHORT & Flags() { return nFlags; }
USHORT & Attributes() { return nAttributes; }
- BOOL IsDebug() const { return bIsDebug; }
- BOOL IsPhantom() const { return bIsPhantom; }
- void SetPhantom(BOOL bIsPhantom);
+ bool IsDebug() const { return bIsDebug; }
+ bool IsPhantom() const { return bIsPhantom; }
+ void SetPhantom(bool bIsPhantom);
void SetColor(const Color &rColor);
void SetAttribut(USHORT nAttrib);
@@ -173,7 +173,7 @@ public:
void ToggleDebug() const;
#endif
- void SetRectHorAlign(RectHorAlign eHorAlign, BOOL bApplyToSubTree = TRUE );
+ void SetRectHorAlign(RectHorAlign eHorAlign, bool bApplyToSubTree = true );
RectHorAlign GetRectHorAlign() const { return eRectHorAlign; }
const SmRect & GetRect() const { return *this; }
@@ -213,8 +213,8 @@ public:
virtual void Accept(SmVisitor* pVisitor);
/** True if this node is selected */
- BOOL IsSelected() const {return bIsSelected;}
- void SetSelected(BOOL Selected = true) {bIsSelected = Selected;}
+ bool IsSelected() const {return bIsSelected;}
+ void SetSelected(bool Selected = true) {bIsSelected = Selected;}
#ifdef DEBUG_ENABLE_DUMPASDOT
/** The tree as dot graph for graphviz, usable for debugging
@@ -341,7 +341,7 @@ public:
SmStructureNode( const SmStructureNode &rNode );
virtual ~SmStructureNode();
- virtual BOOL IsVisible() const;
+ virtual bool IsVisible() const;
virtual USHORT GetNumSubNodes() const;
void SetNumSubNodes(USHORT nSize) { aSubNodes.resize(nSize); }
@@ -386,7 +386,7 @@ protected:
public:
- virtual BOOL IsVisible() const;
+ virtual bool IsVisible() const;
virtual USHORT GetNumSubNodes() const;
using SmNode::GetSubNode;
virtual SmNode * GetSubNode(USHORT nIndex);
@@ -725,24 +725,24 @@ public:
*/
class SmLineNode : public SmStructureNode
{
- BOOL bUseExtraSpaces;
+ bool bUseExtraSpaces;
protected:
SmLineNode(SmNodeType eNodeType, const SmToken &rNodeToken)
: SmStructureNode(eNodeType, rNodeToken)
{
- bUseExtraSpaces = TRUE;
+ bUseExtraSpaces = true;
}
public:
SmLineNode(const SmToken &rNodeToken)
: SmStructureNode(NLINE, rNodeToken)
{
- bUseExtraSpaces = TRUE;
+ bUseExtraSpaces = true;
}
- void SetUseExtraSpaces(BOOL bVal) { bUseExtraSpaces = bVal; }
- BOOL IsUseExtraSpaces() const { return bUseExtraSpaces; };
+ void SetUseExtraSpaces(bool bVal) { bUseExtraSpaces = bVal; }
+ bool IsUseExtraSpaces() const { return bUseExtraSpaces; };
virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell);
virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat);
@@ -897,7 +897,7 @@ public:
*/
class SmBinDiagonalNode : public SmStructureNode
{
- BOOL bAscending;
+ bool bAscending;
void GetOperPosSize(Point &rPos, Size &rSize,
const Point &rDiagPoint, double fAngleDeg) const;
@@ -905,8 +905,8 @@ class SmBinDiagonalNode : public SmStructureNode
public:
SmBinDiagonalNode(const SmToken &rNodeToken);
- BOOL IsAscending() const { return bAscending; }
- void SetAscending(BOOL bVal) { bAscending = bVal; }
+ bool IsAscending() const { return bAscending; }
+ void SetAscending(bool bVal) { bAscending = bVal; }
virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat);
void Accept(SmVisitor* pVisitor);
@@ -958,14 +958,14 @@ enum SmSubSup
*/
class SmSubSupNode : public SmStructureNode
{
- BOOL bUseLimits;
+ bool bUseLimits;
public:
SmSubSupNode(const SmToken &rNodeToken)
: SmStructureNode(NSUBSUP, rNodeToken)
{
SetNumSubNodes(1 + SUBSUP_NUM_ENTRIES);
- bUseLimits = FALSE;
+ bUseLimits = false;
}
/** Get body (Not NULL) */
@@ -976,8 +976,8 @@ public:
return ((SmSubSupNode *) this)->GetBody();
}
- void SetUseLimits(BOOL bVal) { bUseLimits = bVal; }
- BOOL IsUseLimits() const { return bUseLimits; };
+ void SetUseLimits(bool bVal) { bUseLimits = bVal; }
+ bool IsUseLimits() const { return bUseLimits; };
/** Get super- or subscript
* @remarks this method may return NULL.