From cc4f8ca8bb9ad8daff0984e2107a299b331e480f Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Fri, 14 Feb 2014 00:18:25 +0100 Subject: sal_Bool to bool Change-Id: I170da2a744b17ef33e999cbbb4dff871faac9ec2 --- sw/source/core/text/widorp.hxx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'sw/source/core/text/widorp.hxx') diff --git a/sw/source/core/text/widorp.hxx b/sw/source/core/text/widorp.hxx index 42d052848ad5..78c5940ed948 100644 --- a/sw/source/core/text/widorp.hxx +++ b/sw/source/core/text/widorp.hxx @@ -30,21 +30,21 @@ private: SwTwips nOrigin; protected: SwTxtFrm *pFrm; - sal_Bool bBreak; - sal_Bool bKeep; + bool bBreak; + bool bKeep; public: SwTxtFrmBreak( SwTxtFrm *pFrm, const SwTwips nRst = 0 ); - sal_Bool IsBreakNow( SwTxtMargin &rLine ); + bool IsBreakNow( SwTxtMargin &rLine ); - sal_Bool IsBroken() const { return bBreak; } - sal_Bool IsKeepAlways() const { return bKeep; } - void Keep() { bKeep = sal_True; } - void Break() { bKeep = sal_False; bBreak = sal_True; } + bool IsBroken() const { return bBreak; } + bool IsKeepAlways() const { return bKeep; } + void Keep() { bKeep = true; } + void Break() { bKeep = false; bBreak = true; } - inline sal_Bool GetKeep() const { return bKeep; } - inline void SetKeep( const sal_Bool bNew ) { bKeep = bNew; } + inline bool GetKeep() const { return bKeep; } + inline void SetKeep( const bool bNew ) { bKeep = bNew; } - sal_Bool IsInside( SwTxtMargin &rLine ) const; + bool IsInside( SwTxtMargin &rLine ) const; // In order to be able to handle special cases with Ftn. // SetRstHeight sets the rest height for SwTxtFrmBreak. This is needed @@ -63,19 +63,19 @@ private: public: WidowsAndOrphans( SwTxtFrm *pFrm, const SwTwips nRst = 0, - sal_Bool bCheckKeep = sal_True ); - sal_Bool FindWidows( SwTxtFrm *pFrm, SwTxtMargin &rLine ); + bool bCheckKeep = true ); + bool FindWidows( SwTxtFrm *pFrm, SwTxtMargin &rLine ); MSHORT GetWidowsLines() const { return nWidLines; } MSHORT GetOrphansLines() const { return nOrphLines; } void ClrOrphLines(){ nOrphLines = 0; } - sal_Bool FindBreak( SwTxtFrm *pFrm, SwTxtMargin &rLine, sal_Bool bHasToFit ); - sal_Bool WouldFit( SwTxtMargin &rLine, SwTwips &rMaxHeight, sal_Bool bTest ); + bool FindBreak( SwTxtFrm *pFrm, SwTxtMargin &rLine, bool bHasToFit ); + bool WouldFit( SwTxtMargin &rLine, SwTwips &rMaxHeight, bool bTest ); // OD 2004-02-25 #i16128# - rename method to avoid confusion with base class // method , which isn't virtual. - sal_Bool IsBreakNowWidAndOrp( SwTxtMargin &rLine ) + bool IsBreakNowWidAndOrp( SwTxtMargin &rLine ) { return ( rLine.GetLineNr() > nOrphLines ) && IsBreakNow( rLine ); } -- cgit v1.2.3