Kaydet (Commit) 4db2a6f6 authored tarafından Takeshi Abe's avatar Takeshi Abe

sal_Bool to bool

Change-Id: I7b00701ed44bb747a3f85e1638f0f82c1ee15299
üst 150e3277
...@@ -133,13 +133,13 @@ void SwBodyFrm::Format( const SwBorderAttrs * ) ...@@ -133,13 +133,13 @@ void SwBodyFrm::Format( const SwBorderAttrs * )
Frm().Width( nWidth ); Frm().Width( nWidth );
} }
sal_Bool bNoGrid = sal_True; bool bNoGrid = true;
if( GetUpper()->IsPageFrm() && ((SwPageFrm*)GetUpper())->HasGrid() ) if( GetUpper()->IsPageFrm() && ((SwPageFrm*)GetUpper())->HasGrid() )
{ {
GETGRID( ((SwPageFrm*)GetUpper()) ) GETGRID( ((SwPageFrm*)GetUpper()) )
if( pGrid ) if( pGrid )
{ {
bNoGrid = sal_False; bNoGrid = false;
long nSum = pGrid->GetBaseHeight() + pGrid->GetRubyHeight(); long nSum = pGrid->GetBaseHeight() + pGrid->GetRubyHeight();
SWRECTFN( this ) SWRECTFN( this )
long nSize = (Frm().*fnRect->fnGetWidth)(); long nSize = (Frm().*fnRect->fnGetWidth)();
...@@ -446,7 +446,7 @@ static void lcl_MakeObjs( const SwFrmFmts &rTbl, SwPageFrm *pPage ) ...@@ -446,7 +446,7 @@ static void lcl_MakeObjs( const SwFrmFmts &rTbl, SwPageFrm *pPage )
} }
//Wird ein Rahmen oder ein SdrObject beschrieben? //Wird ein Rahmen oder ein SdrObject beschrieben?
sal_Bool bSdrObj = RES_DRAWFRMFMT == pFmt->Which(); bool bSdrObj = RES_DRAWFRMFMT == pFmt->Which();
pSdrObj = 0; pSdrObj = 0;
if ( bSdrObj && 0 == (pSdrObj = pFmt->FindSdrObject()) ) if ( bSdrObj && 0 == (pSdrObj = pFmt->FindSdrObject()) )
{ {
...@@ -569,7 +569,7 @@ void SwPageFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) ...@@ -569,7 +569,7 @@ void SwPageFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew )
SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() ); SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld ); SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew ); SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
while( sal_True ) while( true )
{ {
_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(), _UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
(SfxPoolItem*)aNIter.GetCurItem(), nInvFlags, (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
...@@ -607,7 +607,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, ...@@ -607,7 +607,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
sal_uInt8 &rInvFlags, sal_uInt8 &rInvFlags,
SwAttrSetChg *pOldSet, SwAttrSetChg *pNewSet ) SwAttrSetChg *pOldSet, SwAttrSetChg *pNewSet )
{ {
sal_Bool bClear = sal_True; bool bClear = true;
const sal_uInt16 nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0; const sal_uInt16 nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0;
switch( nWhich ) switch( nWhich )
{ {
...@@ -728,7 +728,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, ...@@ -728,7 +728,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
break; break;
default: default:
bClear = sal_False; bClear = false;
} }
if ( bClear ) if ( bClear )
{ {
...@@ -1255,7 +1255,7 @@ void SwFrm::CheckPageDescs( SwPageFrm *pStart, sal_Bool bNotifyFields ) ...@@ -1255,7 +1255,7 @@ void SwFrm::CheckPageDescs( SwPageFrm *pStart, sal_Bool bNotifyFields )
//1. Keine zwei EmptyPages hintereinander. //1. Keine zwei EmptyPages hintereinander.
//2. Alle PageDescs richtig? //2. Alle PageDescs richtig?
sal_Bool bEmpty = sal_False; bool bEmpty = false;
SwPageFrm *pPg = pStart; SwPageFrm *pPg = pStart;
while ( pPg ) while ( pPg )
{ {
...@@ -1266,10 +1266,10 @@ void SwFrm::CheckPageDescs( SwPageFrm *pStart, sal_Bool bNotifyFields ) ...@@ -1266,10 +1266,10 @@ void SwFrm::CheckPageDescs( SwPageFrm *pStart, sal_Bool bNotifyFields )
OSL_FAIL( "Doppelte Leerseiten." ); OSL_FAIL( "Doppelte Leerseiten." );
break; //Einmal reicht. break; //Einmal reicht.
} }
bEmpty = sal_True; bEmpty = true;
} }
else else
bEmpty = sal_False; bEmpty = false;
//MA 21. Jun. 95: Kann zu testzwecken 'rein, ist aber bei zyklen durchaus //MA 21. Jun. 95: Kann zu testzwecken 'rein, ist aber bei zyklen durchaus
//moeglich: Ein paar Seiten, auf der ersten 'erste Seite' anwenden, //moeglich: Ein paar Seiten, auf der ersten 'erste Seite' anwenden,
...@@ -1296,8 +1296,8 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn ) ...@@ -1296,8 +1296,8 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
pSibling = (SwPageFrm*)pPrevPage->GetNext(); pSibling = (SwPageFrm*)pPrevPage->GetNext();
//Rechte (ungerade) oder linke (gerade) Seite einfuegen? //Rechte (ungerade) oder linke (gerade) Seite einfuegen?
sal_Bool bNextOdd = !pPrevPage->OnRightPage(); bool bNextOdd = !pPrevPage->OnRightPage();
sal_Bool bWishedOdd = bNextOdd; bool bWishedOdd = bNextOdd;
//Welcher PageDesc gilt? //Welcher PageDesc gilt?
//Bei CntntFrm der aus dem Format wenn einer angegeben ist, //Bei CntntFrm der aus dem Format wenn einer angegeben ist,
...@@ -1308,7 +1308,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn ) ...@@ -1308,7 +1308,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
pDesc = rDesc.GetPageDesc(); pDesc = rDesc.GetPageDesc();
if ( rDesc.GetNumOffset() ) if ( rDesc.GetNumOffset() )
{ {
bWishedOdd = rDesc.GetNumOffset() % 2 ? sal_True : sal_False; bWishedOdd = rDesc.GetNumOffset() % 2 ? true : false;
//Die Gelegenheit nutzen wir um das Flag an der Root zu pflegen. //Die Gelegenheit nutzen wir um das Flag an der Root zu pflegen.
pRoot->SetVirtPageNum( sal_True ); pRoot->SetVirtPageNum( sal_True );
} }
...@@ -1325,7 +1325,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn ) ...@@ -1325,7 +1325,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
SwDoc *pDoc = pPrevPage->GetFmt()->GetDoc(); SwDoc *pDoc = pPrevPage->GetFmt()->GetDoc();
SwFrmFmt *pFmt; SwFrmFmt *pFmt;
sal_Bool bCheckPages = sal_False; bool bCheckPages = false;
//Wenn ich kein FrmFmt fuer die Seite gefunden habe, muss ich eben eine //Wenn ich kein FrmFmt fuer die Seite gefunden habe, muss ich eben eine
//Leerseite einfuegen. //Leerseite einfuegen.
if( bWishedOdd != bNextOdd ) if( bWishedOdd != bNextOdd )
...@@ -1347,7 +1347,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn ) ...@@ -1347,7 +1347,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
delete pDel; delete pDel;
} }
else else
bCheckPages = sal_True; bCheckPages = true;
} }
if (bWishedFirst && !pDesc->IsFirstShared()) if (bWishedFirst && !pDesc->IsFirstShared())
pFmt = pDesc->GetFirstFmt(); pFmt = pDesc->GetFirstFmt();
...@@ -1370,7 +1370,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn ) ...@@ -1370,7 +1370,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
delete pDel; delete pDel;
} }
else else
bCheckPages = sal_True; bCheckPages = true;
if ( pSibling ) if ( pSibling )
{ {
......
...@@ -459,7 +459,7 @@ sal_Bool SwSectionFrm::HasToBreak( const SwFrm* pFrm ) const ...@@ -459,7 +459,7 @@ sal_Bool SwSectionFrm::HasToBreak( const SwFrm* pFrm ) const
return sal_False; return sal_False;
if( pTmp == pOtherFmt ) if( pTmp == pOtherFmt )
return sal_True; return sal_True;
} while( sal_True ); // ( pTmp->GetSect().GetValue() ); } while( true ); // ( pTmp->GetSect().GetValue() );
} }
/************************************************************************* /*************************************************************************
...@@ -609,12 +609,12 @@ static SwCntntFrm* lcl_GetNextCntntFrm( const SwLayoutFrm* pLay, bool bFwd ) ...@@ -609,12 +609,12 @@ static SwCntntFrm* lcl_GetNextCntntFrm( const SwLayoutFrm* pLay, bool bFwd )
// #100926# // #100926#
const SwFrm* pFrm = pLay; const SwFrm* pFrm = pLay;
SwCntntFrm *pCntntFrm = 0; SwCntntFrm *pCntntFrm = 0;
sal_Bool bGoingUp = sal_True; bool bGoingUp = true;
do { do {
const SwFrm *p = 0; const SwFrm *p = 0;
sal_Bool bGoingFwdOrBwd = sal_False; bool bGoingFwdOrBwd = false;
sal_Bool bGoingDown = !bGoingUp && ( 0 != ( p = pFrm->IsLayoutFrm() ? ((SwLayoutFrm*)pFrm)->Lower() : 0 ) ); bool bGoingDown = !bGoingUp && ( 0 != ( p = pFrm->IsLayoutFrm() ? ((SwLayoutFrm*)pFrm)->Lower() : 0 ) );
if ( !bGoingDown ) if ( !bGoingDown )
{ {
bGoingFwdOrBwd = ( 0 != ( p = pFrm->IsFlyFrm() ? bGoingFwdOrBwd = ( 0 != ( p = pFrm->IsFlyFrm() ?
...@@ -879,7 +879,7 @@ SwCntntFrm *SwSectionFrm::FindLastCntnt( sal_uInt8 nMode ) ...@@ -879,7 +879,7 @@ SwCntntFrm *SwSectionFrm::FindLastCntnt( sal_uInt8 nMode )
pSect = (SwSectionFrm*)pTmp; pSect = (SwSectionFrm*)pTmp;
else else
break; break;
} while( sal_True ); } while( true );
} }
sal_Bool bFtnFound = nMode == FINDMODE_ENDNOTE; sal_Bool bFtnFound = nMode == FINDMODE_ENDNOTE;
do do
...@@ -918,7 +918,7 @@ sal_Bool SwSectionFrm::CalcMinDiff( SwTwips& rMinDiff ) const ...@@ -918,7 +918,7 @@ sal_Bool SwSectionFrm::CalcMinDiff( SwTwips& rMinDiff ) const
* *
*************************************************************************/ *************************************************************************/
static SwFtnFrm* lcl_FindEndnote( SwSectionFrm* &rpSect, sal_Bool &rbEmpty, static SwFtnFrm* lcl_FindEndnote( SwSectionFrm* &rpSect, bool &rbEmpty,
SwLayouter *pLayouter ) SwLayouter *pLayouter )
{ {
// if rEmpty is set, the rpSect is already searched // if rEmpty is set, the rpSect is already searched
...@@ -960,12 +960,12 @@ static SwFtnFrm* lcl_FindEndnote( SwSectionFrm* &rpSect, sal_Bool &rbEmpty, ...@@ -960,12 +960,12 @@ static SwFtnFrm* lcl_FindEndnote( SwSectionFrm* &rpSect, sal_Bool &rbEmpty,
} }
rpSect = pSect; rpSect = pSect;
pSect = pLayouter ? pSect->GetFollow() : NULL; pSect = pLayouter ? pSect->GetFollow() : NULL;
rbEmpty = sal_True; rbEmpty = true;
} }
return NULL; return NULL;
} }
static void lcl_ColumnRefresh( SwSectionFrm* pSect, sal_Bool bFollow ) static void lcl_ColumnRefresh( SwSectionFrm* pSect, bool bFollow )
{ {
while( pSect ) while( pSect )
{ {
...@@ -1000,14 +1000,14 @@ void SwSectionFrm::CollectEndnotes( SwLayouter* pLayouter ) ...@@ -1000,14 +1000,14 @@ void SwSectionFrm::CollectEndnotes( SwLayouter* pLayouter )
SwSectionFrm* pSect = this; SwSectionFrm* pSect = this;
SwFtnFrm* pFtn; SwFtnFrm* pFtn;
sal_Bool bEmpty = sal_False; bool bEmpty = false;
// pSect is the last sectionfrm without endnotes or the this-pointer // pSect is the last sectionfrm without endnotes or the this-pointer
// the first sectionfrm with endnotes may be destroyed, when the endnotes // the first sectionfrm with endnotes may be destroyed, when the endnotes
// is cutted // is cutted
while( 0 != (pFtn = lcl_FindEndnote( pSect, bEmpty, pLayouter )) ) while( 0 != (pFtn = lcl_FindEndnote( pSect, bEmpty, pLayouter )) )
pLayouter->CollectEndnote( pFtn ); pLayouter->CollectEndnote( pFtn );
if( pLayouter->HasEndnotes() ) if( pLayouter->HasEndnotes() )
lcl_ColumnRefresh( this, sal_True ); lcl_ColumnRefresh( this, true );
} }
/************************************************************************* /*************************************************************************
...@@ -1056,7 +1056,7 @@ void SwSectionFrm::_CheckClipping( sal_Bool bGrow, sal_Bool bMaximize ) ...@@ -1056,7 +1056,7 @@ void SwSectionFrm::_CheckClipping( sal_Bool bGrow, sal_Bool bMaximize )
if( !bCalc && !bGrow && IsAnyNoteAtEnd() && !IsInFtn() ) if( !bCalc && !bGrow && IsAnyNoteAtEnd() && !IsInFtn() )
{ {
SwSectionFrm *pSect = this; SwSectionFrm *pSect = this;
sal_Bool bEmpty = sal_False; bool bEmpty = false;
SwLayoutFrm* pFtn = IsEndnAtEnd() ? SwLayoutFrm* pFtn = IsEndnAtEnd() ?
lcl_FindEndnote( pSect, bEmpty, NULL ) : NULL; lcl_FindEndnote( pSect, bEmpty, NULL ) : NULL;
if( pFtn ) if( pFtn )
...@@ -1103,7 +1103,7 @@ void SwSectionFrm::_CheckClipping( sal_Bool bGrow, sal_Bool bMaximize ) ...@@ -1103,7 +1103,7 @@ void SwSectionFrm::_CheckClipping( sal_Bool bGrow, sal_Bool bMaximize )
{ {
if( Lower()->IsColumnFrm() ) if( Lower()->IsColumnFrm() )
{ {
lcl_ColumnRefresh( this, sal_False ); lcl_ColumnRefresh( this, false );
::CalcCntnt( this ); ::CalcCntnt( this );
} }
else else
...@@ -1143,7 +1143,7 @@ void SwSectionFrm::SimpleFormat() ...@@ -1143,7 +1143,7 @@ void SwSectionFrm::SimpleFormat()
nTop = nHeight; nTop = nHeight;
(this->*fnRect->fnSetYMargins)( nTop, 0 ); (this->*fnRect->fnSetYMargins)( nTop, 0 );
} }
lcl_ColumnRefresh( this, sal_False ); lcl_ColumnRefresh( this, false );
UnlockJoin(); UnlockJoin();
} }
...@@ -1470,13 +1470,13 @@ void SwSectionFrm::Format( const SwBorderAttrs *pAttr ) ...@@ -1470,13 +1470,13 @@ void SwSectionFrm::Format( const SwBorderAttrs *pAttr )
pFrm = ((SwLayoutFrm*)pFrm)->Lower(); pFrm = ((SwLayoutFrm*)pFrm)->Lower();
CalcFtnCntnt(); CalcFtnCntnt();
} }
sal_Bool bUnderSz = sal_False; bool bUnderSz = false;
while( pFrm ) while( pFrm )
{ {
if( pFrm->IsTxtFrm() && ((SwTxtFrm*)pFrm)->IsUndersized() ) if( pFrm->IsTxtFrm() && ((SwTxtFrm*)pFrm)->IsUndersized() )
{ {
pFrm->Prepare( PREP_ADJUST_FRM ); pFrm->Prepare( PREP_ADJUST_FRM );
bUnderSz = sal_True; bUnderSz = true;
} }
pFrm = pFrm->GetNext(); pFrm = pFrm->GetNext();
} }
...@@ -1538,7 +1538,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage ) ...@@ -1538,7 +1538,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
// GetLeaf is called // GetLeaf is called
// SwSectionFrm *pSect = GetUpper()->FindSctFrm(); // SwSectionFrm *pSect = GetUpper()->FindSctFrm();
SwSectionFrm *pSect = FindSctFrm(); SwSectionFrm *pSect = FindSctFrm();
sal_Bool bWrongPage = sal_False; bool bWrongPage = false;
OSL_ENSURE( pSect, "GetNextSctLeaf: Missing SectionFrm" ); OSL_ENSURE( pSect, "GetNextSctLeaf: Missing SectionFrm" );
// Shortcut for sections with Follows. That's ok, // Shortcut for sections with Follows. That's ok,
...@@ -1551,7 +1551,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage ) ...@@ -1551,7 +1551,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
{ {
SwPageFrm *pPg = pSect->GetFollow()->FindPageFrm(); SwPageFrm *pPg = pSect->GetFollow()->FindPageFrm();
if( WrongPageDesc( pPg ) ) if( WrongPageDesc( pPg ) )
bWrongPage = sal_True; bWrongPage = true;
else else
return FIRSTLEAF( pSect->GetFollow() ); return FIRSTLEAF( pSect->GetFollow() );
} }
...@@ -1579,7 +1579,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage ) ...@@ -1579,7 +1579,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
SwPageFrm* pNxtPg = pUp->IsPageFrm() ? SwPageFrm* pNxtPg = pUp->IsPageFrm() ?
(SwPageFrm*)pUp : pUp->FindPageFrm(); (SwPageFrm*)pUp : pUp->FindPageFrm();
if( WrongPageDesc( pNxtPg ) ) if( WrongPageDesc( pNxtPg ) )
bWrongPage = sal_True; bWrongPage = true;
else else
return FIRSTLEAF( pSect->GetFollow() ); return FIRSTLEAF( pSect->GetFollow() );
} }
...@@ -1614,7 +1614,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage ) ...@@ -1614,7 +1614,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
// created pages, the search is // created pages, the search is
// not started over at the beginning // not started over at the beginning
while( sal_True ) while( true )
{ {
if( pLayLeaf ) if( pLayLeaf )
{ {
...@@ -1644,7 +1644,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage ) ...@@ -1644,7 +1644,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
if( bWrongPage ) if( bWrongPage )
break; // there's a column between me and my right page break; // there's a column between me and my right page
pLayLeaf = 0; pLayLeaf = 0;
bWrongPage = sal_True; bWrongPage = true;
pOldLayLeaf = 0; pOldLayLeaf = 0;
continue; continue;
} }
...@@ -1761,7 +1761,7 @@ SwLayoutFrm *SwFrm::GetPrevSctLeaf( MakePageType ) ...@@ -1761,7 +1761,7 @@ SwLayoutFrm *SwFrm::GetPrevSctLeaf( MakePageType )
pCol = GetUpper()->GetUpper(); pCol = GetUpper()->GetUpper();
else else
pCol = NULL; pCol = NULL;
sal_Bool bJump = sal_False; bool bJump = false;
if( pCol ) if( pCol )
{ {
if( pCol->GetPrev() ) if( pCol->GetPrev() )
...@@ -1777,7 +1777,7 @@ SwLayoutFrm *SwFrm::GetPrevSctLeaf( MakePageType ) ...@@ -1777,7 +1777,7 @@ SwLayoutFrm *SwFrm::GetPrevSctLeaf( MakePageType )
SwFlowFrm::SetMoveBwdJump( sal_True ); SwFlowFrm::SetMoveBwdJump( sal_True );
return (SwLayoutFrm*)pCol->Lower(); // The columnm body return (SwLayoutFrm*)pCol->Lower(); // The columnm body
} }
bJump = sal_True; bJump = true;
} while( pCol->GetPrev() ); } while( pCol->GetPrev() );
// We get here when all columns are empty, pCol is now the // We get here when all columns are empty, pCol is now the
...@@ -1987,7 +1987,7 @@ SwTwips SwSectionFrm::_Grow( SwTwips nDist, sal_Bool bTst ) ...@@ -1987,7 +1987,7 @@ SwTwips SwSectionFrm::_Grow( SwTwips nDist, sal_Bool bTst )
if ( nDist <= 0L ) if ( nDist <= 0L )
return 0L; return 0L;
sal_Bool bInCalcCntnt = GetUpper() && IsInFly() && FindFlyFrm()->IsLocked(); bool bInCalcCntnt = GetUpper() && IsInFly() && FindFlyFrm()->IsLocked();
// OD 2004-03-15 #116561# - allow grow in online layout // OD 2004-03-15 #116561# - allow grow in online layout
bool bGrow = !Lower() || !Lower()->IsColumnFrm() || !Lower()->GetNext() || bool bGrow = !Lower() || !Lower()->IsColumnFrm() || !Lower()->GetNext() ||
GetSection()->GetFmt()->GetBalancedColumns().GetValue(); GetSection()->GetFmt()->GetBalancedColumns().GetValue();
...@@ -2219,15 +2219,15 @@ sal_Bool SwSectionFrm::MoveAllowed( const SwFrm* pFrm) const ...@@ -2219,15 +2219,15 @@ sal_Bool SwSectionFrm::MoveAllowed( const SwFrm* pFrm) const
// The first paragraph in the first footnote in the first column // The first paragraph in the first footnote in the first column
// in the sectionfrm at the top of the page is not moveable, // in the sectionfrm at the top of the page is not moveable,
// if the columnbody is empty. // if the columnbody is empty.
sal_Bool bRet = sal_False; bool bRet = false;
if( pLay->GetIndPrev() || pFrm->GetIndPrev() || if( pLay->GetIndPrev() || pFrm->GetIndPrev() ||
pFrm->FindFtnFrm()->GetPrev() ) pFrm->FindFtnFrm()->GetPrev() )
bRet = sal_True; bRet = true;
else else
{ {
SwLayoutFrm* pBody = ((SwColumnFrm*)pLay)->FindBodyCont(); SwLayoutFrm* pBody = ((SwColumnFrm*)pLay)->FindBodyCont();
if( pBody && pBody->Lower() ) if( pBody && pBody->Lower() )
bRet = sal_True; bRet = true;
} }
if( bRet && ( IsFtnAtEnd() || !Growable() ) ) if( bRet && ( IsFtnAtEnd() || !Growable() ) )
return sal_True; return sal_True;
...@@ -2388,7 +2388,7 @@ void SwSectionFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) ...@@ -2388,7 +2388,7 @@ void SwSectionFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew )
SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() ); SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld ); SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew ); SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
while( sal_True ) while( true )
{ {
_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(), _UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
(SfxPoolItem*)aNIter.GetCurItem(), nInvFlags, (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
...@@ -2429,7 +2429,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew ...@@ -2429,7 +2429,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew
sal_uInt8 &rInvFlags, sal_uInt8 &rInvFlags,
SwAttrSetChg *pOldSet, SwAttrSetChg *pNewSet ) SwAttrSetChg *pOldSet, SwAttrSetChg *pNewSet )
{ {
sal_Bool bClear = sal_True; bool bClear = true;
const sal_uInt16 nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0; const sal_uInt16 nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0;
switch( nWhich ) switch( nWhich )
{ // Suppress multi columns in foot notes { // Suppress multi columns in foot notes
...@@ -2464,7 +2464,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew ...@@ -2464,7 +2464,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew
rInvFlags |= 0x10; rInvFlags |= 0x10;
} }
rInvFlags |= 0x01; rInvFlags |= 0x01;
bClear = sal_False; bClear = false;
} }
break; break;
...@@ -2522,7 +2522,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew ...@@ -2522,7 +2522,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew
break; break;
default: default:
bClear = sal_False; bClear = false;
} }
if ( bClear ) if ( bClear )
{ {
......
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