diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-02-02 11:42:03 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-02-03 22:56:53 +0100 |
commit | cf3b6d9a254c777a3b00703195f3b97c4136eb05 (patch) | |
tree | 21aff0e6d4bc36f73300594a478d03c53b4a47ae /sw | |
parent | 21b745fd558f473c4a30ac02c52d4bb146662402 (diff) |
sal_Bool to bool
Change-Id: Ie53b7f225b6845748d231ad0a03e9f5b080e9066
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/itrpaint.cxx | 26 | ||||
-rw-r--r-- | sw/source/core/text/itrpaint.hxx | 10 |
2 files changed, 18 insertions, 18 deletions
diff --git a/sw/source/core/text/itrpaint.cxx b/sw/source/core/text/itrpaint.cxx index 8a452db139d6..9fc2049500ba 100644 --- a/sw/source/core/text/itrpaint.cxx +++ b/sw/source/core/text/itrpaint.cxx @@ -92,7 +92,7 @@ void SwTxtPainter::CtorInitTxtPainter( SwTxtFrm *pNewFrm, SwTxtPaintInfo *pNewIn pMyFnt->SetAlign( ALIGN_BASELINE ); } #endif - bPaintDrop = sal_False; + bPaintDrop = false; } @@ -153,7 +153,7 @@ SwLinePortion *SwTxtPainter::CalcPaintOfst( const SwRect &rPaint ) * als Default eingestellt. *************************************************************************/ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, - const sal_Bool bUnderSz ) + const bool bUnderSz ) { #if OSL_DEBUG_LEVEL > 1 // sal_uInt16 nFntHeight = GetInfo().GetFont()->GetHeight( GetInfo().GetVsh(), GetInfo().GetOut() ); @@ -173,7 +173,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, const bool bDrawInWindow = GetInfo().OnWin(); // 6882: Leerzeilen duerfen nicht wegoptimiert werden bei Paragraphzeichen. - const sal_Bool bEndPor = GetInfo().GetOpt().IsParagraph() && GetInfo().GetTxt().isEmpty(); + const bool bEndPor = GetInfo().GetOpt().IsParagraph() && GetInfo().GetTxt().isEmpty(); SwLinePortion *pPor = bEndPor ? pCurr->GetFirstPortion() : CalcPaintOfst( rPaint ); @@ -284,7 +284,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, if( bEndPor ) SeekStartAndChg( GetInfo() ); - sal_Bool bRest = pCurr->IsRest(); + const bool bRest = pCurr->IsRest(); bool bFirst = true; SwArrowPortion *pArrow = NULL; @@ -293,7 +293,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, while( pPor ) { - sal_Bool bSeeked = sal_True; + bool bSeeked = true; GetInfo().SetLen( pPor->GetLen() ); const SwTwips nOldY = GetInfo().Y(); @@ -319,7 +319,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, else if ( pPor->IsQuoVadisPortion() ) { sal_Int32 nOffset = GetInfo().GetIdx(); - SeekStartAndChg( GetInfo(), sal_True ); + SeekStartAndChg( GetInfo(), true ); if( GetRedln() && pCurr->HasRedline() ) GetRedln()->Seek( *pFnt, nOffset, 0 ); } @@ -335,9 +335,9 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, SeekAndChgBefore( GetInfo() ); } else - bSeeked = sal_False; + bSeeked = false; -// bRest = sal_False; +// bRest = false; // Wenn das Ende der Portion hinausragt, wird geclippt. // Es wird ein Sicherheitsabstand von Height-Halbe aufaddiert, @@ -447,7 +447,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, } if( GetInfo().GetVsh() && !GetInfo().GetVsh()->IsPreview() ) { - const sal_Bool bNextUndersized = + const bool bNextUndersized = ( GetTxtFrm()->GetNext() && 0 == GetTxtFrm()->GetNext()->Prt().Height() && GetTxtFrm()->GetNext()->IsTxtFrm() && @@ -519,20 +519,20 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor, SwTxtAttr* pTxtAttr; if( HasHints() ) { - sal_Bool bUnder = sal_False; + bool bUnder = false; MSHORT nTmp = 0; while( nTmp < pHints->GetStartCount() ) { pTxtAttr = pHints->GetStart( nTmp++ ); - sal_Bool bUnderSelect = sal_False; + bool bUnderSelect = false; const SvxUnderlineItem* pItem = static_cast<const SvxUnderlineItem*>(CharFmt::GetItem( *pTxtAttr, RES_CHRATR_UNDERLINE )); if ( pItem ) { - bUnder = sal_True; + bUnder = true; bUnderSelect = pFnt->GetUnderline() == pItem->GetLineStyle(); } @@ -546,7 +546,7 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor, if( bUnder ) aUnderMulti.Select( aTmp, bUnderSelect ); } - bUnder = sal_False; + bUnder = false; } } } diff --git a/sw/source/core/text/itrpaint.hxx b/sw/source/core/text/itrpaint.hxx index ff7c58c83dc1..187d9557f700 100644 --- a/sw/source/core/text/itrpaint.hxx +++ b/sw/source/core/text/itrpaint.hxx @@ -29,7 +29,7 @@ class SwMultiPortion; class SwTxtPainter : public SwTxtCursor { - sal_Bool bPaintDrop; + bool bPaintDrop; SwLinePortion *CalcPaintOfst( const SwRect &rPaint ); void CheckSpecialUnderline( const SwLinePortion* pPor, @@ -38,7 +38,7 @@ protected: void CtorInitTxtPainter( SwTxtFrm *pFrm, SwTxtPaintInfo *pInf ); inline SwTxtPainter(SwTxtNode* pTxtNode) : SwTxtCursor(pTxtNode) - , bPaintDrop(sal_False) + , bPaintDrop(false) { } public: @@ -48,14 +48,14 @@ public: CtorInitTxtPainter( pTxtFrm, pTxtPaintInf ); } void DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, - const sal_Bool bUnderSz ); + const bool bUnderSz ); void PaintDropPortion(); // if PaintMultiPortion is called recursively, we have to pass the // surrounding SwBidiPortion void PaintMultiPortion( const SwRect &rPaint, SwMultiPortion& rMulti, const SwMultiPortion* pEnvPor = 0 ); - inline void SetPaintDrop( const sal_Bool bNew ) { bPaintDrop = bNew; } - inline sal_Bool IsPaintDrop() const { return bPaintDrop; } + inline void SetPaintDrop( const bool bNew ) { bPaintDrop = bNew; } + inline bool IsPaintDrop() const { return bPaintDrop; } inline SwTxtPaintInfo &GetInfo() { return (SwTxtPaintInfo&)SwTxtIter::GetInfo(); } inline const SwTxtPaintInfo &GetInfo() const |