Kaydet (Commit) b3059732 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_Bool to bool

Change-Id: I75ac690e9ad79e08df5682a403296f433a1e7fd5
üst c25ebf75
...@@ -47,7 +47,7 @@ void SwTxtAdjuster::FormatBlock( ) ...@@ -47,7 +47,7 @@ void SwTxtAdjuster::FormatBlock( )
const SwLinePortion *pFly = 0; const SwLinePortion *pFly = 0;
sal_Bool bSkip = !IsLastBlock() && bool bSkip = !IsLastBlock() &&
nStart + pCurr->GetLen() >= GetInfo().GetTxt().getLength(); nStart + pCurr->GetLen() >= GetInfo().GetTxt().getLength();
// Multi-line fields are tricky, because we need to check whether there are // Multi-line fields are tricky, because we need to check whether there are
...@@ -61,7 +61,7 @@ void SwTxtAdjuster::FormatBlock( ) ...@@ -61,7 +61,7 @@ void SwTxtAdjuster::FormatBlock( )
while( pPor && bSkip ) while( pPor && bSkip )
{ {
if( pPor->InTxtGrp() ) if( pPor->InTxtGrp() )
bSkip = sal_False; bSkip = false;
pPor = pPor->GetPortion(); pPor = pPor->GetPortion();
} }
pLay = bSkip ? pLay->GetNext() : 0; pLay = bSkip ? pLay->GetNext() : 0;
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
// Not reentrant !!! // Not reentrant !!!
// is set in GetCharRect and is interpreted in UnitUp/Down. // is set in GetCharRect and is interpreted in UnitUp/Down.
sal_Bool SwTxtCursor::bRightMargin = sal_False; bool SwTxtCursor::bRightMargin = false;
/************************************************************************* /*************************************************************************
...@@ -418,11 +418,11 @@ void SwTxtCursor::CtorInitTxtCursor( SwTxtFrm *pNewFrm, SwTxtSizeInfo *pNewInf ) ...@@ -418,11 +418,11 @@ void SwTxtCursor::CtorInitTxtCursor( SwTxtFrm *pNewFrm, SwTxtSizeInfo *pNewInf )
// 1170: Ancient bug: Shift-End forgets the last character ... // 1170: Ancient bug: Shift-End forgets the last character ...
sal_Bool SwTxtCursor::GetEndCharRect( SwRect* pOrig, const sal_Int32 nOfst, bool SwTxtCursor::GetEndCharRect( SwRect* pOrig, const sal_Int32 nOfst,
SwCrsrMoveState* pCMS, const long nMax ) SwCrsrMoveState* pCMS, const long nMax )
{ {
// 1170: Ambiguity of document positions // 1170: Ambiguity of document positions
bRightMargin = sal_True; bRightMargin = true;
CharCrsrToLine(nOfst); CharCrsrToLine(nOfst);
// Somehow twisted: nOfst names the position behind the last // Somehow twisted: nOfst names the position behind the last
...@@ -431,7 +431,7 @@ sal_Bool SwTxtCursor::GetEndCharRect( SwRect* pOrig, const sal_Int32 nOfst, ...@@ -431,7 +431,7 @@ sal_Bool SwTxtCursor::GetEndCharRect( SwRect* pOrig, const sal_Int32 nOfst,
if( nOfst != GetStart() || !pCurr->GetLen() ) if( nOfst != GetStart() || !pCurr->GetLen() )
{ {
// 8810: Master line RightMargin, after that LeftMargin // 8810: Master line RightMargin, after that LeftMargin
const sal_Bool bRet = GetCharRect( pOrig, nOfst, pCMS, nMax ); const bool bRet = GetCharRect( pOrig, nOfst, pCMS, nMax );
bRightMargin = nOfst >= GetEnd() && nOfst < GetInfo().GetTxt().getLength(); bRightMargin = nOfst >= GetEnd() && nOfst < GetInfo().GetTxt().getLength();
return bRet; return bRet;
} }
...@@ -483,7 +483,7 @@ sal_Bool SwTxtCursor::GetEndCharRect( SwRect* pOrig, const sal_Int32 nOfst, ...@@ -483,7 +483,7 @@ sal_Bool SwTxtCursor::GetEndCharRect( SwRect* pOrig, const sal_Int32 nOfst,
pCMS->aRealHeight.Y() = nPorHeight; pCMS->aRealHeight.Y() = nPorHeight;
} }
return sal_True; return true;
} }
/************************************************************************* /*************************************************************************
...@@ -899,7 +899,7 @@ void SwTxtCursor::_GetCharRect( SwRect* pOrig, const sal_Int32 nOfst, ...@@ -899,7 +899,7 @@ void SwTxtCursor::_GetCharRect( SwRect* pOrig, const sal_Int32 nOfst,
pCurr = pOldCurr; pCurr = pOldCurr;
nStart = nOldStart; nStart = nOldStart;
nY = nOldY; nY = nOldY;
bPrev = sal_False; bPrev = false;
return; return;
} }
...@@ -1198,7 +1198,7 @@ void SwTxtCursor::_GetCharRect( SwRect* pOrig, const sal_Int32 nOfst, ...@@ -1198,7 +1198,7 @@ void SwTxtCursor::_GetCharRect( SwRect* pOrig, const sal_Int32 nOfst,
* SwTxtCursor::GetCharRect() * SwTxtCursor::GetCharRect()
*************************************************************************/ *************************************************************************/
sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const sal_Int32 nOfst, bool SwTxtCursor::GetCharRect( SwRect* pOrig, const sal_Int32 nOfst,
SwCrsrMoveState* pCMS, const long nMax ) SwCrsrMoveState* pCMS, const long nMax )
{ {
CharCrsrToLine(nOfst); CharCrsrToLine(nOfst);
...@@ -1228,7 +1228,7 @@ sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const sal_Int32 nOfst, ...@@ -1228,7 +1228,7 @@ sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const sal_Int32 nOfst,
GetAdjusted(); GetAdjusted();
const Point aCharPos( GetTopLeft() ); const Point aCharPos( GetTopLeft() );
sal_Bool bRet = sal_True; bool bRet = true;
_GetCharRect( pOrig, nFindOfst, pCMS ); _GetCharRect( pOrig, nFindOfst, pCMS );
......
...@@ -50,10 +50,10 @@ void SwTxtIter::CtorInitTxtIter( SwTxtFrm *pNewFrm, SwTxtInfo *pNewInf ) ...@@ -50,10 +50,10 @@ void SwTxtIter::CtorInitTxtIter( SwTxtFrm *pNewFrm, SwTxtInfo *pNewInf )
aLineInf.CtorInitLineInfo( pNode->GetSwAttrSet(), *pNode ); aLineInf.CtorInitLineInfo( pNode->GetSwAttrSet(), *pNode );
nFrameStart = pFrm->Frm().Pos().Y() + pFrm->Prt().Pos().Y(); nFrameStart = pFrm->Frm().Pos().Y() + pFrm->Prt().Pos().Y();
SwTxtIter::Init(); SwTxtIter::Init();
if( pNode->GetSwAttrSet().GetRegister().GetValue() )
bRegisterOn = pFrm->FillRegister( nRegStart, nRegDiff ); // Order is important: only execute FillRegister if GetValue!=0
else bRegisterOn = pNode->GetSwAttrSet().GetRegister().GetValue()
bRegisterOn = sal_False; && pFrm->FillRegister( nRegStart, nRegDiff );
} }
/************************************************************************* /*************************************************************************
...@@ -65,7 +65,7 @@ void SwTxtIter::Init() ...@@ -65,7 +65,7 @@ void SwTxtIter::Init()
pCurr = pInf->GetParaPortion(); pCurr = pInf->GetParaPortion();
nStart = pInf->GetTxtStart(); nStart = pInf->GetTxtStart();
nY = nFrameStart; nY = nFrameStart;
bPrev = sal_True; bPrev = true;
pPrev = 0; pPrev = 0;
nLineNr = 1; nLineNr = 1;
} }
...@@ -87,7 +87,7 @@ void SwTxtIter::CalcAscentAndHeight( KSHORT &rAscent, KSHORT &rHeight ) const ...@@ -87,7 +87,7 @@ void SwTxtIter::CalcAscentAndHeight( KSHORT &rAscent, KSHORT &rHeight ) const
SwLineLayout *SwTxtIter::_GetPrev() SwLineLayout *SwTxtIter::_GetPrev()
{ {
pPrev = 0; pPrev = 0;
bPrev = sal_True; bPrev = true;
SwLineLayout *pLay = pInf->GetParaPortion(); SwLineLayout *pLay = pInf->GetParaPortion();
if( pCurr == pLay ) if( pCurr == pLay )
return 0; return 0;
...@@ -117,7 +117,7 @@ const SwLineLayout *SwTxtIter::Prev() ...@@ -117,7 +117,7 @@ const SwLineLayout *SwTxtIter::Prev()
_GetPrev(); _GetPrev();
if( pPrev ) if( pPrev )
{ {
bPrev = sal_False; bPrev = false;
pCurr = pPrev; pCurr = pPrev;
nStart = nStart - pCurr->GetLen(); nStart = nStart - pCurr->GetLen();
nY = nY - GetLineHeight(); nY = nY - GetLineHeight();
...@@ -138,7 +138,7 @@ const SwLineLayout *SwTxtIter::Next() ...@@ -138,7 +138,7 @@ const SwLineLayout *SwTxtIter::Next()
if(pCurr->GetNext()) if(pCurr->GetNext())
{ {
pPrev = pCurr; pPrev = pCurr;
bPrev = sal_True; bPrev = true;
nStart = nStart + pCurr->GetLen(); nStart = nStart + pCurr->GetLen();
nY += GetLineHeight(); nY += GetLineHeight();
if( pCurr->GetLen() || ( nLineNr>1 && !pCurr->IsDummy() ) ) if( pCurr->GetLen() || ( nLineNr>1 && !pCurr->IsDummy() ) )
...@@ -259,11 +259,11 @@ const SwLineLayout *SwTxtCursor::CharCrsrToLine( const sal_Int32 nPosition ) ...@@ -259,11 +259,11 @@ const SwLineLayout *SwTxtCursor::CharCrsrToLine( const sal_Int32 nPosition )
{ {
CharToLine( nPosition ); CharToLine( nPosition );
if( nPosition != nStart ) if( nPosition != nStart )
bRightMargin = sal_False; bRightMargin = false;
sal_Bool bPrevious = bRightMargin && pCurr->GetLen() && GetPrev() && bool bPrevious = bRightMargin && pCurr->GetLen() && GetPrev() &&
GetPrev()->GetLen(); GetPrev()->GetLen();
if( bPrevious && nPosition && CH_BREAK == GetInfo().GetChar( nPosition-1 ) ) if( bPrevious && nPosition && CH_BREAK == GetInfo().GetChar( nPosition-1 ) )
bPrevious = sal_False; bPrevious = false;
return bPrevious ? PrevLine() : pCurr; return bPrevious ? PrevLine() : pCurr;
} }
...@@ -274,7 +274,7 @@ const SwLineLayout *SwTxtCursor::CharCrsrToLine( const sal_Int32 nPosition ) ...@@ -274,7 +274,7 @@ const SwLineLayout *SwTxtCursor::CharCrsrToLine( const sal_Int32 nPosition )
sal_uInt16 SwTxtCursor::AdjustBaseLine( const SwLineLayout& rLine, sal_uInt16 SwTxtCursor::AdjustBaseLine( const SwLineLayout& rLine,
const SwLinePortion* pPor, const SwLinePortion* pPor,
sal_uInt16 nPorHeight, sal_uInt16 nPorAscent, sal_uInt16 nPorHeight, sal_uInt16 nPorAscent,
const sal_Bool bAutoToCentered ) const const bool bAutoToCentered ) const
{ {
if ( pPor ) if ( pPor )
{ {
...@@ -285,12 +285,11 @@ sal_uInt16 SwTxtCursor::AdjustBaseLine( const SwLineLayout& rLine, ...@@ -285,12 +285,11 @@ sal_uInt16 SwTxtCursor::AdjustBaseLine( const SwLineLayout& rLine,
sal_uInt16 nOfst = rLine.GetRealHeight() - rLine.Height(); sal_uInt16 nOfst = rLine.GetRealHeight() - rLine.Height();
GETGRID( pFrm->FindPageFrm() ) GETGRID( pFrm->FindPageFrm() )
const sal_Bool bHasGrid = pGrid && GetInfo().SnapToGrid();
if ( bHasGrid ) if ( pGrid && GetInfo().SnapToGrid() )
{ {
const sal_uInt16 nRubyHeight = pGrid->GetRubyHeight(); const sal_uInt16 nRubyHeight = pGrid->GetRubyHeight();
const sal_Bool bRubyTop = ! pGrid->GetRubyTextBelow(); const bool bRubyTop = ! pGrid->GetRubyTextBelow();
if ( GetInfo().IsMulti() ) if ( GetInfo().IsMulti() )
// we are inside the GetCharRect recursion for multi portions // we are inside the GetCharRect recursion for multi portions
...@@ -315,7 +314,7 @@ sal_uInt16 SwTxtCursor::AdjustBaseLine( const SwLineLayout& rLine, ...@@ -315,7 +314,7 @@ sal_uInt16 SwTxtCursor::AdjustBaseLine( const SwLineLayout& rLine,
// nGridWidth; // nGridWidth;
nOfst += ( nLineNetto - nPorHeight ) / 2; nOfst += ( nLineNetto - nPorHeight ) / 2;
if ( bRubyTop ) if ( bRubyTop )
nOfst = nOfst + nRubyHeight; nOfst += nRubyHeight;
} }
} }
} }
...@@ -368,10 +367,10 @@ const SwLineLayout *SwTxtIter::TwipsToLine( const SwTwips y) ...@@ -368,10 +367,10 @@ const SwLineLayout *SwTxtIter::TwipsToLine( const SwTwips y)
// //
// Local helper function to check, if pCurr needs a field rest portion: // Local helper function to check, if pCurr needs a field rest portion:
// //
static sal_Bool lcl_NeedsFieldRest( const SwLineLayout* pCurr ) static bool lcl_NeedsFieldRest( const SwLineLayout* pCurr )
{ {
const SwLinePortion *pPor = pCurr->GetPortion(); const SwLinePortion *pPor = pCurr->GetPortion();
sal_Bool bRet = sal_False; bool bRet = false;
while( pPor && !bRet ) while( pPor && !bRet )
{ {
bRet = pPor->InFldGrp() && ((SwFldPortion*)pPor)->HasFollow(); bRet = pPor->InFldGrp() && ((SwFldPortion*)pPor)->HasFollow();
......
...@@ -46,11 +46,11 @@ protected: ...@@ -46,11 +46,11 @@ protected:
sal_Int32 nStart; // Start in the text string, end = pCurr->GetLen() sal_Int32 nStart; // Start in the text string, end = pCurr->GetLen()
KSHORT nRegDiff; // Register's line distance KSHORT nRegDiff; // Register's line distance
MSHORT nLineNr; // Line number MSHORT nLineNr; // Line number
sal_Bool bPrev : 1; bool bPrev : 1;
sal_Bool bRegisterOn : 1; // Keep in register bool bRegisterOn : 1; // Keep in register
sal_Bool bOneBlock : 1; // Justified text: Dispose single words bool bOneBlock : 1; // Justified text: Dispose single words
sal_Bool bLastBlock : 1; // Justified text: Also the last line bool bLastBlock : 1; // Justified text: Also the last line
sal_Bool bLastCenter : 1; // Justified text: Center last line bool bLastCenter : 1; // Justified text: Center last line
SwLineLayout *_GetPrev(); SwLineLayout *_GetPrev();
...@@ -69,18 +69,18 @@ protected: ...@@ -69,18 +69,18 @@ protected:
, nStart(0) , nStart(0)
, nRegDiff(0) , nRegDiff(0)
, nLineNr(0) , nLineNr(0)
, bPrev(sal_False) , bPrev(false)
, bRegisterOn(sal_False) , bRegisterOn(false)
, bOneBlock(sal_False) , bOneBlock(false)
, bLastBlock(sal_False) , bLastBlock(false)
, bLastCenter(sal_False) , bLastCenter(false)
{} {}
public: public:
inline SwTxtIter( SwTxtFrm *pTxtFrm, SwTxtInfo *pTxtInf ) inline SwTxtIter( SwTxtFrm *pTxtFrm, SwTxtInfo *pTxtInf )
: SwAttrIter( pTxtFrm != NULL ? pTxtFrm->GetTxtNode() : NULL) : SwAttrIter( pTxtFrm != NULL ? pTxtFrm->GetTxtNode() : NULL)
, bOneBlock(sal_False) , bOneBlock(false)
, bLastBlock(sal_False) , bLastBlock(false)
, bLastCenter(sal_False) , bLastCenter(false)
{ {
CtorInitTxtIter( pTxtFrm, pTxtInf ); CtorInitTxtIter( pTxtFrm, pTxtInf );
} }
...@@ -95,7 +95,7 @@ public: ...@@ -95,7 +95,7 @@ public:
inline SwTwips RegStart() const { return nRegStart; } inline SwTwips RegStart() const { return nRegStart; }
inline KSHORT RegDiff() const { return nRegDiff; } inline KSHORT RegDiff() const { return nRegDiff; }
inline sal_Bool IsRegisterOn() const { return bRegisterOn; } inline bool IsRegisterOn() const { return bRegisterOn; }
inline SwTxtInfo &GetInfo() { return *pInf; } inline SwTxtInfo &GetInfo() { return *pInf; }
inline const SwTxtInfo &GetInfo() const { return *pInf; } inline const SwTxtInfo &GetInfo() const { return *pInf; }
...@@ -131,9 +131,9 @@ public: ...@@ -131,9 +131,9 @@ public:
const SwLineInfo &GetLineInfo() const { return aLineInf; } const SwLineInfo &GetLineInfo() const { return aLineInf; }
inline SwTwips GetFirstPos() const { return nFrameStart; } inline SwTwips GetFirstPos() const { return nFrameStart; }
inline sal_Bool SeekAndChg( SwTxtSizeInfo &rInf ); inline bool SeekAndChg( SwTxtSizeInfo &rInf );
inline sal_Bool SeekAndChgBefore( SwTxtSizeInfo &rInf ); inline bool SeekAndChgBefore( SwTxtSizeInfo &rInf );
inline sal_Bool SeekStartAndChg( SwTxtSizeInfo &rInf, const sal_Bool bPara=sal_False ); inline bool SeekStartAndChg( SwTxtSizeInfo &rInf, const bool bPara=false );
inline SwTxtFrm *GetTxtFrm() { return pFrm; } inline SwTxtFrm *GetTxtFrm() { return pFrm; }
inline const SwTxtFrm *GetTxtFrm() const { return pFrm; } inline const SwTxtFrm *GetTxtFrm() const { return pFrm; }
...@@ -193,9 +193,9 @@ public: ...@@ -193,9 +193,9 @@ public:
SwTwips GetLineStart() const; SwTwips GetLineStart() const;
inline SwTwips GetLineEnd() const { return GetLineStart() + CurrWidth(); } inline SwTwips GetLineEnd() const { return GetLineStart() + CurrWidth(); }
inline Point GetTopLeft() const { return Point( GetLineStart(), Y() ); } inline Point GetTopLeft() const { return Point( GetLineStart(), Y() ); }
inline sal_Bool IsOneBlock() const { return bOneBlock; } inline bool IsOneBlock() const { return bOneBlock; }
inline sal_Bool IsLastBlock() const { return bLastBlock; } inline bool IsLastBlock() const { return bLastBlock; }
inline sal_Bool IsLastCenter() const { return bLastCenter; } inline bool IsLastCenter() const { return bLastCenter; }
inline MSHORT GetAdjust() const { return nAdjust; } inline MSHORT GetAdjust() const { return nAdjust; }
inline KSHORT GetLineWidth() const inline KSHORT GetLineWidth() const
{ return KSHORT( Right() - GetLeftMargin() + 1 ); } { return KSHORT( Right() - GetLeftMargin() + 1 ); }
...@@ -285,7 +285,7 @@ class SwTxtCursor : public SwTxtAdjuster ...@@ -285,7 +285,7 @@ class SwTxtCursor : public SwTxtAdjuster
friend class SwTxtCursorSave; friend class SwTxtCursorSave;
// Ambiguities // Ambiguities
static sal_Bool bRightMargin; static bool bRightMargin;
void _GetCharRect(SwRect *, const sal_Int32, SwCrsrMoveState* ); void _GetCharRect(SwRect *, const sal_Int32, SwCrsrMoveState* );
protected: protected:
void CtorInitTxtCursor( SwTxtFrm *pFrm, SwTxtSizeInfo *pInf ); void CtorInitTxtCursor( SwTxtFrm *pFrm, SwTxtSizeInfo *pInf );
...@@ -293,9 +293,9 @@ protected: ...@@ -293,9 +293,9 @@ protected:
public: public:
inline SwTxtCursor( SwTxtFrm *pTxtFrm, SwTxtSizeInfo *pTxtSizeInf ) : SwTxtAdjuster(pTxtFrm!=NULL?pTxtFrm->GetTxtNode():NULL) inline SwTxtCursor( SwTxtFrm *pTxtFrm, SwTxtSizeInfo *pTxtSizeInf ) : SwTxtAdjuster(pTxtFrm!=NULL?pTxtFrm->GetTxtNode():NULL)
{ CtorInitTxtCursor( pTxtFrm, pTxtSizeInf ); } { CtorInitTxtCursor( pTxtFrm, pTxtSizeInf ); }
sal_Bool GetCharRect(SwRect *, const sal_Int32, SwCrsrMoveState* = 0, bool GetCharRect(SwRect *, const sal_Int32, SwCrsrMoveState* = 0,
const long nMax = 0 ); const long nMax = 0 );
sal_Bool GetEndCharRect(SwRect *, const sal_Int32, SwCrsrMoveState* = 0, bool GetEndCharRect(SwRect *, const sal_Int32, SwCrsrMoveState* = 0,
const long nMax = 0 ); const long nMax = 0 );
sal_Int32 GetCrsrOfst( SwPosition *pPos, const Point &rPoint, sal_Int32 GetCrsrOfst( SwPosition *pPos, const Point &rPoint,
const MSHORT nChgNode, SwCrsrMoveState* = 0 ) const; const MSHORT nChgNode, SwCrsrMoveState* = 0 ) const;
...@@ -306,10 +306,10 @@ public: ...@@ -306,10 +306,10 @@ public:
// bAutoToCentered indicates, if AUTOMATIC mode means CENTERED or BASELINE // bAutoToCentered indicates, if AUTOMATIC mode means CENTERED or BASELINE
sal_uInt16 AdjustBaseLine( const SwLineLayout& rLine, const SwLinePortion* pPor, sal_uInt16 AdjustBaseLine( const SwLineLayout& rLine, const SwLinePortion* pPor,
sal_uInt16 nPorHeight = 0, sal_uInt16 nAscent = 0, sal_uInt16 nPorHeight = 0, sal_uInt16 nAscent = 0,
const sal_Bool bAutoToCentered = sal_False ) const; const bool bAutoToCentered = false ) const;
static inline void SetRightMargin( const sal_Bool bNew ){ bRightMargin = bNew; } static inline void SetRightMargin( const bool bNew ){ bRightMargin = bNew; }
static inline sal_Bool IsRightMargin() { return bRightMargin; } static inline bool IsRightMargin() { return bRightMargin; }
}; };
/************************************************************************* /*************************************************************************
...@@ -333,12 +333,12 @@ public: ...@@ -333,12 +333,12 @@ public:
* Inline implementation * Inline implementation
*************************************************************************/ *************************************************************************/
inline sal_Bool SwTxtIter::SeekAndChg( SwTxtSizeInfo &rInf ) inline bool SwTxtIter::SeekAndChg( SwTxtSizeInfo &rInf )
{ {
return SeekAndChgAttrIter( rInf.GetIdx(), rInf.GetOut() ); return SeekAndChgAttrIter( rInf.GetIdx(), rInf.GetOut() );
} }
inline sal_Bool SwTxtIter::SeekAndChgBefore( SwTxtSizeInfo &rInf ) inline bool SwTxtIter::SeekAndChgBefore( SwTxtSizeInfo &rInf )
{ {
if ( rInf.GetIdx() ) if ( rInf.GetIdx() )
return SeekAndChgAttrIter( rInf.GetIdx()-1, rInf.GetOut() ); return SeekAndChgAttrIter( rInf.GetIdx()-1, rInf.GetOut() );
...@@ -346,7 +346,7 @@ inline sal_Bool SwTxtIter::SeekAndChgBefore( SwTxtSizeInfo &rInf ) ...@@ -346,7 +346,7 @@ inline sal_Bool SwTxtIter::SeekAndChgBefore( SwTxtSizeInfo &rInf )
return SeekAndChgAttrIter( rInf.GetIdx(), rInf.GetOut() ); return SeekAndChgAttrIter( rInf.GetIdx(), rInf.GetOut() );
} }
inline sal_Bool SwTxtIter::SeekStartAndChg( SwTxtSizeInfo &rInf, const sal_Bool bPara ) inline bool SwTxtIter::SeekStartAndChg( SwTxtSizeInfo &rInf, const bool bPara )
{ {
return SeekStartAndChgAttrIter( rInf.GetOut(), bPara ); return SeekStartAndChgAttrIter( rInf.GetOut(), bPara );
} }
......
...@@ -490,8 +490,8 @@ void SwTxtFormatter::CalcDropHeight( const MSHORT nLines ) ...@@ -490,8 +490,8 @@ void SwTxtFormatter::CalcDropHeight( const MSHORT nLines )
KSHORT nAscent = 0; KSHORT nAscent = 0;
KSHORT nHeight = 0; KSHORT nHeight = 0;
KSHORT nDropLns = 0; KSHORT nDropLns = 0;
sal_Bool bRegisterOld = IsRegisterOn(); const bool bRegisterOld = IsRegisterOn();
bRegisterOn = sal_False; bRegisterOn = false;
Top(); Top();
......
...@@ -1117,7 +1117,7 @@ sal_Int32 SwTxtFormatter::FormatQuoVadis( const sal_Int32 nOffset ) ...@@ -1117,7 +1117,7 @@ sal_Int32 SwTxtFormatter::FormatQuoVadis( const sal_Int32 nOffset )
// Wir initialisieren uns also: // Wir initialisieren uns also:
// ResetFont(); // ResetFont();
FeedInf( rInf ); FeedInf( rInf );
SeekStartAndChg( rInf, sal_True ); SeekStartAndChg( rInf, true );
if( GetRedln() && pCurr->HasRedline() ) if( GetRedln() && pCurr->HasRedline() )
GetRedln()->Seek( *pFnt, nOffset, 0 ); GetRedln()->Seek( *pFnt, nOffset, 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment