summaryrefslogtreecommitdiff
path: root/sw/inc/swrect.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/swrect.hxx')
-rw-r--r--sw/inc/swrect.hxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx
index 6447554d7b0b..1209a200a6d4 100644
--- a/sw/inc/swrect.hxx
+++ b/sw/inc/swrect.hxx
@@ -85,18 +85,18 @@ public:
SwRect &_Intersection( const SwRect &rRect );
inline SwRect GetIntersection( const SwRect& rRect ) const;
- BOOL IsInside( const Point& rPOINT ) const;
- BOOL IsNear(const Point& rPoint, long nTolerance ) const;
- BOOL IsInside( const SwRect& rRect ) const;
- BOOL IsOver( const SwRect& rRect ) const;
- inline BOOL HasArea() const;
- inline BOOL IsEmpty() const;
+ sal_Bool IsInside( const Point& rPOINT ) const;
+ sal_Bool IsNear(const Point& rPoint, long nTolerance ) const;
+ sal_Bool IsInside( const SwRect& rRect ) const;
+ sal_Bool IsOver( const SwRect& rRect ) const;
+ inline sal_Bool HasArea() const;
+ inline sal_Bool IsEmpty() const;
inline void Clear();
inline SwRect &operator = ( const SwRect &rRect );
- inline BOOL operator == ( const SwRect& rRect ) const;
- inline BOOL operator != ( const SwRect& rRect ) const;
+ inline sal_Bool operator == ( const SwRect& rRect ) const;
+ inline sal_Bool operator != ( const SwRect& rRect ) const;
inline SwRect &operator+=( const Point &rPt );
inline SwRect &operator-=( const Point &rPt );
@@ -148,10 +148,10 @@ public:
long GetBottomDistance( long ) const;
long GetRightDistance( long ) const;
long GetTopDistance( long ) const;
- BOOL OverStepLeft( long ) const;
- BOOL OverStepBottom( long ) const;
- BOOL OverStepTop( long ) const;
- BOOL OverStepRight( long ) const;
+ sal_Bool OverStepLeft( long ) const;
+ sal_Bool OverStepBottom( long ) const;
+ sal_Bool OverStepTop( long ) const;
+ sal_Bool OverStepRight( long ) const;
};
// Implementation in swrect.cxx
@@ -161,7 +161,7 @@ typedef void (SwRect:: *SwRectSet)( const long nNew );
typedef long (SwRect:: *SwRectGet)() const;
typedef const Point (SwRect:: *SwRectPoint)() const;
typedef const Size (SwRect:: *SwRectSize)() const;
-typedef BOOL (SwRect:: *SwRectMax)( long ) const;
+typedef sal_Bool (SwRect:: *SwRectMax)( long ) const;
typedef long (SwRect:: *SwRectDist)( long ) const;
typedef void (SwRect:: *SwRectSetTwice)( long, long );
typedef void (SwRect:: *SwRectSetPos)( const Point& );
@@ -266,11 +266,11 @@ inline SwRect &SwRect::operator = ( const SwRect &rRect )
m_Size = rRect.m_Size;
return *this;
}
-inline BOOL SwRect::operator == ( const SwRect& rRect ) const
+inline sal_Bool SwRect::operator == ( const SwRect& rRect ) const
{
return (m_Point == rRect.m_Point && m_Size == rRect.m_Size);
}
-inline BOOL SwRect::operator != ( const SwRect& rRect ) const
+inline sal_Bool SwRect::operator != ( const SwRect& rRect ) const
{
return (m_Point != rRect.m_Point || m_Size != rRect.m_Size);
}
@@ -314,11 +314,11 @@ inline SwRect SwRect::GetIntersection( const SwRect& rRect ) const
return SwRect( *this ).Intersection( rRect );
}
-inline BOOL SwRect::HasArea() const
+inline sal_Bool SwRect::HasArea() const
{
return !IsEmpty();
}
-inline BOOL SwRect::IsEmpty() const
+inline sal_Bool SwRect::IsEmpty() const
{
return !(m_Size.getHeight() && m_Size.getWidth());
}