diff options
Diffstat (limited to 'sw/source/core/layout/tabfrm.cxx')
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 496 |
1 files changed, 258 insertions, 238 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 1297b12c0fd2..7ce2a0330308 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -75,7 +75,7 @@ #include <layouter.hxx> #include <switerator.hxx> -extern void AppendObjs( const SwSpzFrmFmts *pTbl, ULONG nIndex, +extern void AppendObjs( const SwSpzFrmFmts *pTbl, sal_uLong nIndex, SwFrm *pFrm, SwPageFrm *pPage ); using namespace ::com::sun::star; @@ -96,18 +96,18 @@ SwTabFrm::SwTabFrm( SwTable &rTab, SwFrm* pSib ): { bComplete = bCalcLowers = bONECalcLowers = bLowersFormatted = bLockBackMove = bResizeHTMLTable = bHasFollowFlowLine = bIsRebuildLastLine = - bRestrictTableGrowth = bRemoveFollowFlowLinePending = FALSE; + bRestrictTableGrowth = bRemoveFollowFlowLinePending = sal_False; // --> OD 2004-10-04 #i26945# - bConsiderObjsForMinCellHeight = TRUE; - bObjsDoesFit = TRUE; + bConsiderObjsForMinCellHeight = sal_True; + bObjsDoesFit = sal_True; // <-- - bFixSize = FALSE; //Nicht nochmal auf die Importfilter hereinfallen. + bFixSize = sal_False; //Nicht nochmal auf die Importfilter hereinfallen. nType = FRMC_TAB; //Gleich die Zeilen erzeugen und einfuegen. const SwTableLines &rLines = rTab.GetTabLines(); SwFrm *pTmpPrev = 0; - for ( USHORT i = 0; i < rLines.Count(); ++i ) + for ( sal_uInt16 i = 0; i < rLines.Count(); ++i ) { SwRowFrm *pNew = new SwRowFrm( *rLines[i], this ); if( pNew->Lower() ) @@ -126,15 +126,15 @@ SwTabFrm::SwTabFrm( SwTabFrm &rTab ) : SwFlowFrm( (SwFrm&)*this ), pTable( rTab.GetTable() ) { - bIsFollow = TRUE; + bIsFollow = sal_True; bLockJoin = bComplete = bONECalcLowers = bCalcLowers = bLowersFormatted = bLockBackMove = bResizeHTMLTable = bHasFollowFlowLine = bIsRebuildLastLine = - bRestrictTableGrowth = bRemoveFollowFlowLinePending = FALSE; + bRestrictTableGrowth = bRemoveFollowFlowLinePending = sal_False; // --> OD 2004-10-04 #i26945# - bConsiderObjsForMinCellHeight = TRUE; - bObjsDoesFit = TRUE; + bConsiderObjsForMinCellHeight = sal_True; + bObjsDoesFit = sal_True; // <-- - bFixSize = FALSE; //Nicht nochmal auf die Importfilter hereinfallen. + bFixSize = sal_False; //Nicht nochmal auf die Importfilter hereinfallen. nType = FRMC_TAB; SetFollow( rTab.GetFollow() ); @@ -212,10 +212,10 @@ void SwTabFrm::RegistFlys() |*************************************************************************/ void MA_FASTCALL SwInvalidateAll( SwFrm *pFrm, long nBottom ); void MA_FASTCALL lcl_RecalcRow( SwRowFrm& rRow, long nBottom ); -BOOL lcl_ArrangeLowers( SwLayoutFrm *pLay, long lYStart, BOOL bInva ); +sal_Bool lcl_ArrangeLowers( SwLayoutFrm *pLay, long lYStart, sal_Bool bInva ); // --> OD 2004-10-15 #i26945# - add parameter <_bOnlyRowsAndCells> to control // that only row and cell frames are formatted. -BOOL MA_FASTCALL lcl_InnerCalcLayout( SwFrm *pFrm, +sal_Bool MA_FASTCALL lcl_InnerCalcLayout( SwFrm *pFrm, long nBottom, bool _bOnlyRowsAndCells = false ); // <-- @@ -224,7 +224,7 @@ BOOL MA_FASTCALL lcl_InnerCalcLayout( SwFrm *pFrm, // control, if floating screen objects have to be considered for the minimal // cell height. SwTwips MA_FASTCALL lcl_CalcMinRowHeight( const SwRowFrm *pRow, - const BOOL _bConsiderObjs ); + const sal_Bool _bConsiderObjs ); // <-- SwTwips lcl_CalcTopAndBottomMargin( const SwLayoutFrm&, const SwBorderAttrs& ); @@ -265,8 +265,13 @@ SwRowFrm* lcl_InsertNewFollowFlowLine( SwTabFrm& rTab, const SwFrm& rTmpRow, boo ASSERT( rTmpRow.IsRowFrm(), "No row frame to copy for FollowFlowLine" ) const SwRowFrm& rRow = (SwRowFrm&)rTmpRow; +<<<<<<< local rTab.SetFollowFlowLine( TRUE ); SwRowFrm *pFollowFlowLine = new SwRowFrm(*rRow.GetTabLine(), &rTab, false ); +======= + rTab.SetFollowFlowLine( sal_True ); + SwRowFrm *pFollowFlowLine = new SwRowFrm(*rRow.GetTabLine(), false ); +>>>>>>> other pFollowFlowLine->SetRowSpanLine( bRowSpanLine ); SwFrm* pFirstRow = rTab.GetFollow()->GetFirstNonHeadlineRow(); pFollowFlowLine->InsertBefore( rTab.GetFollow(), pFirstRow ); @@ -303,7 +308,7 @@ void lcl_InvalidateLowerObjs( SwLayoutFrm& _rLayoutFrm, } if ( pLowerFrm->GetDrawObjs() ) { - for ( USHORT i = 0; i < pLowerFrm->GetDrawObjs()->Count(); ++i ) + for ( sal_uInt16 i = 0; i < pLowerFrm->GetDrawObjs()->Count(); ++i ) { SwAnchoredObject* pAnchoredObj = (*pLowerFrm->GetDrawObjs())[i]; @@ -496,9 +501,9 @@ void lcl_MoveFootnotes( SwTabFrm& rSource, SwTabFrm& rDest, SwLayoutFrm& rRowFrm { if ( 0 != rSource.GetFmt()->GetDoc()->GetFtnIdxs().Count() ) { - SwFtnBossFrm* pOldBoss = rSource.FindFtnBossFrm( TRUE ); - SwFtnBossFrm* pNewBoss = rDest.FindFtnBossFrm( TRUE ); - rRowFrm.MoveLowerFtns( 0, pOldBoss, pNewBoss, TRUE ); + SwFtnBossFrm* pOldBoss = rSource.FindFtnBossFrm( sal_True ); + SwFtnBossFrm* pNewBoss = rDest.FindFtnBossFrm( sal_True ); + rRowFrm.MoveLowerFtns( 0, pOldBoss, pNewBoss, sal_True ); } } @@ -682,9 +687,9 @@ bool lcl_RecalcSplitLine( SwRowFrm& rLastLine, SwRowFrm& rFollowLine, // // Here the recalculation process starts: // - rTab.SetRebuildLastLine( TRUE ); + rTab.SetRebuildLastLine( sal_True ); // --> OD 2004-10-15 #i26945# - rTab.SetDoesObjsFit( TRUE ); + rTab.SetDoesObjsFit( sal_True ); // <-- SWRECTFN( rTab.GetUpper() ) @@ -697,9 +702,9 @@ bool lcl_RecalcSplitLine( SwRowFrm& rLastLine, SwRowFrm& rFollowLine, // // --> OD 2004-10-04 #i26945# - Do *not* consider floating screen objects // for the minimal cell height. - rTab.SetConsiderObjsForMinCellHeight( FALSE ); + rTab.SetConsiderObjsForMinCellHeight( sal_False ); ::lcl_ShrinkCellsAndAllContent( rLastLine ); - rTab.SetConsiderObjsForMinCellHeight( TRUE ); + rTab.SetConsiderObjsForMinCellHeight( sal_True ); // <-- // @@ -855,9 +860,9 @@ bool lcl_RecalcSplitLine( SwRowFrm& rLastLine, SwRowFrm& rFollowLine, ::SwInvalidateAll( &rLastLine, LONG_MAX ); } - rTab.SetRebuildLastLine( FALSE ); + rTab.SetRebuildLastLine( sal_False ); // --> OD 2004-10-15 #i26945# - rTab.SetDoesObjsFit( TRUE ); + rTab.SetDoesObjsFit( sal_True ); // <-- return bRet; @@ -942,7 +947,7 @@ bool SwTabFrm::RemoveFollowFlowLine() // We have to reset the flag here, because lcl_MoveRowContent // calls a GrowFrm(), which has a different bahavior if // this flag is set. - SetFollowFlowLine( FALSE ); + SetFollowFlowLine( sal_False ); // --> FME 2007-07-19 #140081# Make code robust. if ( !pFollowFlowLine || !pLastLine ) @@ -1065,8 +1070,8 @@ bool SwTabFrm::Split( const SwTwips nCutPos, bool bTryToSplit, bool bTableRowKee if( !pRow ) return bRet; - const USHORT nRepeat = GetTable()->GetRowsToRepeat(); - USHORT nRowCount = 0; // pRow currently points to the first row + const sal_uInt16 nRepeat = GetTable()->GetRowsToRepeat(); + sal_uInt16 nRowCount = 0; // pRow currently points to the first row SwTwips nRemainingSpaceForLastRow = (*fnRect->fnYDiff)( nCutPos, (Frm().*fnRect->fnGetTop)() ); @@ -1237,16 +1242,16 @@ bool SwTabFrm::Split( const SwTwips nCutPos, bool bTryToSplit, bool bTableRowKee // // Build follow table if not already done: // - BOOL bNewFollow; + sal_Bool bNewFollow; SwTabFrm *pFoll; if ( GetFollow() ) { pFoll = GetFollow(); - bNewFollow = FALSE; + bNewFollow = sal_False; } else { - bNewFollow = TRUE; + bNewFollow = sal_True; pFoll = new SwTabFrm( *this ); // @@ -1267,18 +1272,18 @@ bool SwTabFrm::Split( const SwTwips nCutPos, bool bTryToSplit, bool bTableRowKee for ( nRowCount = 0; nRowCount < nRepeat; ++nRowCount ) { // Insert new headlines: - bDontCreateObjects = TRUE; //frmtool + bDontCreateObjects = sal_True; //frmtool SwRowFrm* pHeadline = new SwRowFrm( *GetTable()->GetTabLines()[ nRowCount ], this ); pHeadline->SetRepeatedHeadline( true ); - bDontCreateObjects = FALSE; + bDontCreateObjects = sal_False; pHeadline->InsertBefore( pFoll, 0 ); SwPageFrm *pPage = pHeadline->FindPageFrm(); const SwSpzFrmFmts *pTbl = GetFmt()->GetDoc()->GetSpzFrmFmts(); if( pTbl->Count() ) { - ULONG nIndex; + sal_uLong nIndex; SwCntntFrm* pFrm = pHeadline->ContainsCntnt(); while( pFrm ) { @@ -1450,7 +1455,7 @@ bool SwTabFrm::Join() void MA_FASTCALL SwInvalidatePositions( SwFrm *pFrm, long nBottom ) { // LONG_MAX == nBottom means we have to calculate all - BOOL bAll = LONG_MAX == nBottom; + sal_Bool bAll = LONG_MAX == nBottom; SWRECTFN( pFrm ) do { pFrm->_InvalidatePos(); @@ -1476,7 +1481,7 @@ void MA_FASTCALL SwInvalidatePositions( SwFrm *pFrm, long nBottom ) void MA_FASTCALL SwInvalidateAll( SwFrm *pFrm, long nBottom ) { // LONG_MAX == nBottom means we have to calculate all - BOOL bAll = LONG_MAX == nBottom; + sal_Bool bAll = LONG_MAX == nBottom; SWRECTFN( pFrm ) do { @@ -1537,17 +1542,17 @@ bool SwCntntFrm::CalcLowers( SwLayoutFrm* pLay, const SwLayoutFrm* pDontLeave, long nBottom, bool bSkipRowSpanCells ) { if ( !pLay ) - return TRUE; + return sal_True; // LONG_MAX == nBottom means we have to calculate all bool bAll = LONG_MAX == nBottom; - bool bRet = FALSE; + bool bRet = sal_False; SwCntntFrm *pCnt = pLay->ContainsCntnt(); SWRECTFN( pLay ) // FME 2007-08-30 #i81146# new loop control - USHORT nLoopControlRuns = 0; - const USHORT nLoopControlMax = 10; + sal_uInt16 nLoopControlRuns = 0; + const sal_uInt16 nLoopControlMax = 10; const SwModify* pLoopControlCond = 0; while ( pCnt && pDontLeave->IsAnLower( pCnt ) ) @@ -1627,13 +1632,13 @@ bool SwCntntFrm::CalcLowers( SwLayoutFrm* pLay, const SwLayoutFrm* pDontLeave, // --> OD 2004-10-15 #i26945# - add parameter <_bOnlyRowsAndCells> to control // that only row and cell frames are formatted. -BOOL MA_FASTCALL lcl_InnerCalcLayout( SwFrm *pFrm, +sal_Bool MA_FASTCALL lcl_InnerCalcLayout( SwFrm *pFrm, long nBottom, bool _bOnlyRowsAndCells ) { // LONG_MAX == nBottom means we have to calculate all - BOOL bAll = LONG_MAX == nBottom; - BOOL bRet = FALSE; + sal_Bool bAll = LONG_MAX == nBottom; + sal_Bool bRet = sal_False; const SwFrm* pOldUp = pFrm->GetUpper(); SWRECTFN( pFrm ) do @@ -1685,16 +1690,16 @@ void MA_FASTCALL lcl_RecalcRow( SwRowFrm& rRow, long nBottom ) // <-- // FME 2007-08-30 #i81146# new loop control - USHORT nLoopControlRuns_1 = 0; - USHORT nLoopControlStage_1 = 0; - const USHORT nLoopControlMax = 10; + sal_uInt16 nLoopControlRuns_1 = 0; + sal_uInt16 nLoopControlStage_1 = 0; + const sal_uInt16 nLoopControlMax = 10; bool bCheck = true; do { // FME 2007-08-30 #i81146# new loop control - USHORT nLoopControlRuns_2 = 0; - USHORT nLoopControlStage_2 = 0; + sal_uInt16 nLoopControlRuns_2 = 0; + sal_uInt16 nLoopControlStage_2 = 0; while( lcl_InnerCalcLayout( &rRow, nBottom ) ) { @@ -1781,7 +1786,7 @@ void MA_FASTCALL lcl_RecalcTable( SwTabFrm& rTab, if ( !pFirstRow ) { pFirstRow = (SwLayoutFrm*)rTab.Lower(); - rNotify.SetLowersComplete( TRUE ); + rNotify.SetLowersComplete( sal_True ); } ::SwInvalidatePositions( pFirstRow, LONG_MAX ); lcl_RecalcRow( static_cast<SwRowFrm&>(*pFirstRow), LONG_MAX ); @@ -1899,7 +1904,7 @@ void SwTabFrm::MakeAll() SwLayNotify aNotify( this ); //uebernimmt im DTor die Benachrichtigung // If pos is invalid, we have to call a SetInvaKeep at aNotify. // Otherwise the keep atribute would not work in front of a table. - const BOOL bOldValidPos = GetValidPosFlag(); + const sal_Bool bOldValidPos = GetValidPosFlag(); //Wenn mein direkter Nachbar gleichzeitig mein Follow ist //verleibe ich mir das Teil ein. @@ -1923,29 +1928,29 @@ void SwTabFrm::MakeAll() { if ( RemoveFollowFlowLine() ) Join(); - SetRemoveFollowFlowLinePending( FALSE ); + SetRemoveFollowFlowLinePending( sal_False ); } if ( bResizeHTMLTable ) //Optimiertes Zusammenspiel mit Grow/Shrink des Inhaltes { - bResizeHTMLTable = FALSE; + bResizeHTMLTable = sal_False; SwHTMLTableLayout *pLayout = GetTable()->GetHTMLTableLayout(); if ( pLayout ) bCalcLowers = pLayout->Resize( - pLayout->GetBrowseWidthByTabFrm( *this ), FALSE ); + pLayout->GetBrowseWidthByTabFrm( *this ), sal_False ); } - BOOL bMakePage = TRUE; //solange TRUE kann eine neue Seite + sal_Bool bMakePage = sal_True; //solange sal_True kann eine neue Seite //angelegt werden (genau einmal) - BOOL bMovedBwd = FALSE; //Wird TRUE wenn der Frame zurueckfliesst - BOOL bMovedFwd = FALSE; //solange FALSE kann der Frm zurueck- + sal_Bool bMovedBwd = sal_False; //Wird sal_True wenn der Frame zurueckfliesst + sal_Bool bMovedFwd = sal_False; //solange sal_False kann der Frm zurueck- //fliessen (solange, bis er einmal //vorwaerts ge'moved wurde). - BOOL bSplit = FALSE; //Wird TRUE wenn der Frm gesplittet wurde. - const BOOL bFtnsInDoc = 0 != GetFmt()->GetDoc()->GetFtnIdxs().Count(); - BOOL bMoveable; - const BOOL bFly = IsInFly(); + sal_Bool bSplit = sal_False; //Wird sal_True wenn der Frm gesplittet wurde. + const sal_Bool bFtnsInDoc = 0 != GetFmt()->GetDoc()->GetFtnIdxs().Count(); + sal_Bool bMoveable; + const sal_Bool bFly = IsInFly(); SwBorderAttrAccess *pAccess= new SwBorderAttrAccess( SwFrm::GetCache(), this ); const SwBorderAttrs *pAttrs = pAccess->Get(); @@ -1959,7 +1964,7 @@ void SwTabFrm::MakeAll() ( !GetFmt()->GetLayoutSplit().GetValue() || bKeep ); // The number of repeated headlines - const USHORT nRepeat = GetTable()->GetRowsToRepeat(); + const sal_uInt16 nRepeat = GetTable()->GetRowsToRepeat(); // This flag indicates that we are allowed to try to split the // table rows. @@ -2019,9 +2024,9 @@ void SwTabFrm::MakeAll() SwFrm *pPre = GetPrev(); if ( pPre && pPre->IsTabFrm() && ((SwTabFrm*)pPre)->GetFollow() == this) { - if ( !MoveFwd( bMakePage, FALSE ) ) - bMakePage = FALSE; - bMovedFwd = TRUE; + if ( !MoveFwd( bMakePage, sal_False ) ) + bMakePage = sal_False; + bMovedFwd = sal_True; } } @@ -2029,15 +2034,15 @@ void SwTabFrm::MakeAll() SWRECTFN( this ) while ( !bValidPos || !bValidSize || !bValidPrtArea ) { - if ( TRUE == (bMoveable = IsMoveable()) ) + if ( sal_True == (bMoveable = IsMoveable()) ) if ( CheckMoveFwd( bMakePage, bKeep && KEEPTAB, bMovedBwd ) ) { - bMovedFwd = TRUE; - bCalcLowers = TRUE; + bMovedFwd = sal_True; + bCalcLowers = sal_True; // --> OD 2009-08-12 #i99267# // reset <bSplit> after forward move to assure that follows // can be joined, if further space is available. - bSplit = FALSE; + bSplit = sal_False; // <-- } @@ -2053,19 +2058,19 @@ void SwTabFrm::MakeAll() { delete pAccess; bCalcLowers |= pLayout->Resize( - pLayout->GetBrowseWidthByTabFrm( *this ), FALSE ); + pLayout->GetBrowseWidthByTabFrm( *this ), sal_False ); pAccess = new SwBorderAttrAccess( SwFrm::GetCache(), this ); pAttrs = pAccess->Get(); } - bValidPrtArea = FALSE; - aNotify.SetLowersComplete( FALSE ); + bValidPrtArea = sal_False; + aNotify.SetLowersComplete( sal_False ); } SwFrm *pPre; if ( bKeep || (0 != (pPre = FindPrev()) && pPre->GetAttrSet()->GetKeep().GetValue()) ) { - bCalcLowers = TRUE; + bCalcLowers = sal_True; } } @@ -2094,13 +2099,13 @@ void SwTabFrm::MakeAll() { delete pAccess; bCalcLowers |= pLayout->Resize( - pLayout->GetBrowseWidthByTabFrm( *this ), FALSE ); -// GetFmt()->GetDoc()->GetDocShell()->IsReadOnly() ? FALSE : TRUE ); + pLayout->GetBrowseWidthByTabFrm( *this ), sal_False ); +// GetFmt()->GetDoc()->GetDocShell()->IsReadOnly() ? sal_False : sal_True ); pAccess= new SwBorderAttrAccess( SwFrm::GetCache(), this ); pAttrs = pAccess->Get(); } if ( aOldPrtPos != (Prt().*fnRect->fnGetPos)() ) - aNotify.SetLowersComplete( FALSE ); + aNotify.SetLowersComplete( sal_False ); } //Wenn ich der erste einer Kette bin koennte ich mal sehen ob @@ -2119,20 +2124,20 @@ void SwTabFrm::MakeAll() if( pFrm && n1StLineHeight >(pFrm->Frm().*fnRect->fnGetHeight )() ) { SwTabFrm *pMaster = (SwTabFrm*)FindMaster(); - BOOL bDummy; - if ( ShouldBwdMoved( pMaster->GetUpper(), FALSE, bDummy ) ) + sal_Bool bDummy; + if ( ShouldBwdMoved( pMaster->GetUpper(), sal_False, bDummy ) ) pMaster->InvalidatePos(); } } - SwFtnBossFrm *pOldBoss = bFtnsInDoc ? FindFtnBossFrm( TRUE ) : 0; - BOOL bReformat; + SwFtnBossFrm *pOldBoss = bFtnsInDoc ? FindFtnBossFrm( sal_True ) : 0; + sal_Bool bReformat; if ( MoveBwd( bReformat ) ) { SWREFRESHFN( this ) - bMovedBwd = TRUE; - aNotify.SetLowersComplete( FALSE ); + bMovedBwd = sal_True; + aNotify.SetLowersComplete( sal_False ); if ( bFtnsInDoc ) - MoveLowerFtns( 0, pOldBoss, 0, TRUE ); + MoveLowerFtns( 0, pOldBoss, 0, sal_True ); if ( bReformat || bKeep ) { long nOldTop = (Frm().*fnRect->fnGetTop)(); @@ -2146,18 +2151,18 @@ void SwTabFrm::MakeAll() delete pAccess; bCalcLowers |= pHTMLLayout->Resize( pHTMLLayout->GetBrowseWidthByTabFrm( *this ), - FALSE ); + sal_False ); pAccess= new SwBorderAttrAccess( SwFrm::GetCache(), this ); pAttrs = pAccess->Get(); } - bValidPrtArea = FALSE; + bValidPrtArea = sal_False; Format( pAttrs ); } lcl_RecalcTable( *this, 0, aNotify ); - bLowersFormatted = TRUE; + bLowersFormatted = sal_True; if ( bKeep && KEEPTAB ) { // --> OD 2005-09-28 #b6329202# @@ -2174,11 +2179,11 @@ void SwTabFrm::MakeAll() // { // pNxt->Calc(); // if ( !GetNext() ) -// bValidPos = FALSE; +// bValidPos = sal_False; // } if ( 0 != lcl_FormatNextCntntForKeep( this ) && !GetNext() ) { - bValidPos = FALSE; + bValidPos = sal_False; } // <-- } @@ -2226,13 +2231,13 @@ void SwTabFrm::MakeAll() // at least one further row of an existing follow. if ( !bSplit && GetFollow() ) { - BOOL bDummy; - if ( GetFollow()->ShouldBwdMoved( GetUpper(), FALSE, bDummy ) ) + sal_Bool bDummy; + if ( GetFollow()->ShouldBwdMoved( GetUpper(), sal_False, bDummy ) ) { SwFrm *pTmp = GetUpper(); SwTwips nDeadLine = (pTmp->*fnRect->fnGetPrtBottom)(); if ( bBrowseMode ) - nDeadLine += pTmp->Grow( LONG_MAX, TRUE ); + nDeadLine += pTmp->Grow( LONG_MAX, sal_True ); if( (Frm().*fnRect->fnBottomDist)( nDeadLine ) > 0 ) { // @@ -2246,9 +2251,9 @@ void SwTabFrm::MakeAll() if ( pLastLine ) { ::SwInvalidateAll( pLastLine, LONG_MAX ); - SetRebuildLastLine( TRUE ); + SetRebuildLastLine( sal_True ); lcl_RecalcRow( static_cast<SwRowFrm&>(*pLastLine), LONG_MAX ); - SetRebuildLastLine( FALSE ); + SetRebuildLastLine( sal_False ); } SwFrm* pRow = GetFollow()->GetFirstNonHeadlineRow(); @@ -2279,11 +2284,11 @@ void SwTabFrm::MakeAll() while ( pRowToMove && nRowsToMove-- > 0 ) { - const BOOL bMoveFtns = bFtnsInDoc && !GetFollow()->IsJoinLocked(); + const sal_Bool bMoveFtns = bFtnsInDoc && !GetFollow()->IsJoinLocked(); SwFtnBossFrm *pOldBoss = 0; if ( bMoveFtns ) - pOldBoss = pRowToMove->FindFtnBossFrm( TRUE ); + pOldBoss = pRowToMove->FindFtnBossFrm( sal_True ); SwFrm* pNextRow = pRowToMove->GetNext(); @@ -2299,7 +2304,7 @@ void SwTabFrm::MakeAll() //Die Fussnoten verschieben! if ( bMoveFtns ) if ( ((SwLayoutFrm*)pRowToMove)->MoveLowerFtns( - 0, pOldBoss, FindFtnBossFrm( TRUE ), TRUE ) ) + 0, pOldBoss, FindFtnBossFrm( sal_True ), sal_True ) ) GetUpper()->Calc(); pRowToMove = pNextRow; @@ -2357,7 +2362,7 @@ void SwTabFrm::MakeAll() // In this case we do a magic trick: if ( !bKeep && !GetNext() && pTmpNxt && pTmpNxt->IsValid() ) { - bValidPos = FALSE; + bValidPos = sal_False; bLastRowHasToMoveToFollow = true; } } @@ -2368,13 +2373,13 @@ void SwTabFrm::MakeAll() if ( bCalcLowers ) { lcl_RecalcTable( *this, 0, aNotify ); - bLowersFormatted = TRUE; - bCalcLowers = FALSE; + bLowersFormatted = sal_True; + bCalcLowers = sal_False; } else if ( bONECalcLowers ) { lcl_RecalcRow( static_cast<SwRowFrm&>(*Lower()), LONG_MAX ); - bONECalcLowers = FALSE; + bONECalcLowers = sal_False; } } continue; @@ -2392,13 +2397,13 @@ void SwTabFrm::MakeAll() if ( bCalcLowers && IsValid() ) { lcl_RecalcTable( *this, 0, aNotify ); - bLowersFormatted = TRUE; - bCalcLowers = FALSE; + bLowersFormatted = sal_True; + bCalcLowers = sal_False; } else if ( bONECalcLowers ) { lcl_RecalcRow( static_cast<SwRowFrm&>(*Lower()), LONG_MAX ); - bONECalcLowers = FALSE; + bONECalcLowers = sal_False; } // It does not make sense to cut off the last line if we are @@ -2411,8 +2416,8 @@ void SwTabFrm::MakeAll() if ( bCalcLowers && IsValid() ) { lcl_RecalcTable( *this, 0, aNotify ); - bLowersFormatted = TRUE; - bCalcLowers = FALSE; + bLowersFormatted = sal_True; + bCalcLowers = sal_False; if( !IsValid() ) continue; } @@ -2451,11 +2456,11 @@ void SwTabFrm::MakeAll() SwTwips nDeadLine = (GetUpper()->*fnRect->fnGetPrtBottom)(); if( IsInSct() || GetUpper()->IsInTab() ) // TABLE IN TABLE) nDeadLine = (*fnRect->fnYInc)( nDeadLine, - GetUpper()->Grow( LONG_MAX, TRUE ) ); + GetUpper()->Grow( LONG_MAX, sal_True ) ); ::lcl_RecalcRow( static_cast<SwRowFrm&>(*Lower()), nDeadLine ); - bLowersFormatted = TRUE; - aNotify.SetLowersComplete( TRUE ); + bLowersFormatted = sal_True; + aNotify.SetLowersComplete( sal_True ); // One more check if its really necessary to split the table. // 1. The table either has to exceed the deadline or @@ -2482,7 +2487,7 @@ void SwTabFrm::MakeAll() } // <-- - USHORT nMinNumOfLines = nRepeat; + sal_uInt16 nMinNumOfLines = nRepeat; if ( bTableRowKeep ) { @@ -2512,8 +2517,8 @@ void SwTabFrm::MakeAll() // if we do not have an (in)direkt Prev, we split anyway. if( (*fnRect->fnYDiff)(nDeadLine, nBreakLine) >=0 || !pIndPrev ) { - aNotify.SetLowersComplete( FALSE ); - bSplit = TRUE; + aNotify.SetLowersComplete( sal_False ); + bSplit = sal_True; // // An existing follow flow line has to be removed. @@ -2549,7 +2554,7 @@ void SwTabFrm::MakeAll() if ( bSplitError && bTryToSplit ) // no restart if we did not try to split: i72847, i79426 { lcl_RecalcRow( static_cast<SwRowFrm&>(*Lower()), LONG_MAX ); - bValidPos = FALSE; + bValidPos = sal_False; bTryToSplit = false; continue; } @@ -2574,7 +2579,7 @@ void SwTabFrm::MakeAll() // <-- SWRECTFNX( GetFollow() ) - static BYTE nStack = 0; + static sal_uInt8 nStack = 0; if ( !StackHack::IsLocked() && nStack < 4 ) { ++nStack; @@ -2586,7 +2591,7 @@ void SwTabFrm::MakeAll() pAccess= new SwBorderAttrAccess( SwFrm::GetCache(), this ); pAttrs = pAccess->Get(); - ((SwTabFrm*)GetFollow())->SetLowersFormatted(FALSE); + ((SwTabFrm*)GetFollow())->SetLowersFormatted(sal_False); // --> OD 2005-03-30 #i43913# - lock follow table // to avoid its formatting during the format of // its content. @@ -2630,7 +2635,7 @@ void SwTabFrm::MakeAll() --nStack; } else if ( GetFollow() == GetNext() ) - ((SwTabFrm*)GetFollow())->MoveFwd( TRUE, FALSE ); + ((SwTabFrm*)GetFollow())->MoveFwd( sal_True, sal_False ); } continue; } @@ -2644,15 +2649,15 @@ void SwTabFrm::MakeAll() GetUpper()->GetUpper()->GetUpper()->IsSctFrm() && ( GetUpper()->GetUpper()->GetPrev() || GetIndPrev() ) && ((SwSectionFrm*)GetUpper()->GetUpper()->GetUpper())->MoveAllowed(this) ) - bMovedFwd = FALSE; + bMovedFwd = sal_False; // --> FME 2004-06-09 #i29771# Reset bTryToSplit flag on change of upper const SwFrm* pOldUpper = GetUpper(); // <-- //Mal sehen ob ich irgenwo Platz finde... - if ( !bMovedFwd && !MoveFwd( bMakePage, FALSE ) ) - bMakePage = FALSE; + if ( !bMovedFwd && !MoveFwd( bMakePage, sal_False ) ) + bMakePage = sal_False; // --> FME 2004-06-09 #i29771# Reset bSplitError flag on change of upper if ( GetUpper() != pOldUpper ) @@ -2663,8 +2668,8 @@ void SwTabFrm::MakeAll() // <-- SWREFRESHFN( this ) - bMovedFwd = bCalcLowers = TRUE; - aNotify.SetLowersComplete( FALSE ); + bMovedFwd = bCalcLowers = sal_True; + aNotify.SetLowersComplete( sal_False ); if ( IsFollow() ) { //Um Oszillationen zu vermeiden sollte kein ungueltiger Master //zurueckbleiben. @@ -2672,7 +2677,7 @@ void SwTabFrm::MakeAll() if ( pTab->GetUpper() ) pTab->GetUpper()->Calc(); pTab->Calc(); - pTab->SetLowersFormatted( FALSE ); + pTab->SetLowersFormatted( sal_False ); } //Wenn mein direkter Nachbar jetzt gleichzeitig mein Follow ist @@ -2701,8 +2706,8 @@ void SwTabFrm::MakeAll() if ( nDistToUpperPrtBottom >= 0 || bTryToSplit ) { lcl_RecalcTable( *this, 0, aNotify ); - bLowersFormatted = TRUE; - bCalcLowers = FALSE; + bLowersFormatted = sal_True; + bCalcLowers = sal_False; } #if OSL_DEBUG_LEVEL > 1 else @@ -2724,7 +2729,7 @@ void SwTabFrm::MakeAll() pPre->InvalidatePos(); } - bCalcLowers = bONECalcLowers = FALSE; + bCalcLowers = bONECalcLowers = sal_False; delete pAccess; UnlockJoin(); if ( bMovedFwd || bMovedBwd || !bOldValidPos ) @@ -2741,11 +2746,11 @@ void SwTabFrm::MakeAll() |* Letzte Aenderung |* |*************************************************************************/ -BOOL SwTabFrm::CalcFlyOffsets( SwTwips& rUpper, +sal_Bool SwTabFrm::CalcFlyOffsets( SwTwips& rUpper, long& rLeftOffset, long& rRightOffset ) const { - BOOL bInvalidatePrtArea = FALSE; + sal_Bool bInvalidatePrtArea = sal_False; const SwPageFrm *pPage = FindPageFrm(); const SwFlyFrm* pMyFly = FindFlyFrm(); @@ -2767,7 +2772,7 @@ BOOL SwTabFrm::CalcFlyOffsets( SwTwips& rUpper, long nYDiff = (*fnRect->fnYDiff)( (Prt().*fnRect->fnGetTop)(), rUpper ); if( nYDiff > 0 ) (aRect.*fnRect->fnAddBottom)( -nYDiff ); - for ( USHORT i = 0; i < pPage->GetSortedObjs()->Count(); ++i ) + for ( sal_uInt16 i = 0; i < pPage->GetSortedObjs()->Count(); ++i ) { SwAnchoredObject* pAnchoredObj = (*pPage->GetSortedObjs())[i]; if ( pAnchoredObj->ISA(SwFlyFrm) ) @@ -2860,7 +2865,7 @@ BOOL SwTabFrm::CalcFlyOffsets( SwTwips& rUpper, long nBottom = (aFlyRect.*fnRect->fnGetBottom)(); if( (*fnRect->fnYDiff)( nPrtPos, nBottom ) < 0 ) nPrtPos = nBottom; - bInvalidatePrtArea = TRUE; + bInvalidatePrtArea = sal_True; } if ( (SURROUND_RIGHT == rSur.GetSurround() || SURROUND_PARALLEL == rSur.GetSurround())&& @@ -2870,7 +2875,7 @@ BOOL SwTabFrm::CalcFlyOffsets( SwTwips& rUpper, (aFlyRect.*fnRect->fnGetRight)(), (pFly->GetAnchorFrm()->Frm().*fnRect->fnGetLeft)() ); rLeftOffset = Max( rLeftOffset, nWidth ); - bInvalidatePrtArea = TRUE; + bInvalidatePrtArea = sal_True; } if ( (SURROUND_LEFT == rSur.GetSurround() || SURROUND_PARALLEL == rSur.GetSurround())&& @@ -2880,7 +2885,7 @@ BOOL SwTabFrm::CalcFlyOffsets( SwTwips& rUpper, (pFly->GetAnchorFrm()->Frm().*fnRect->fnGetRight)(), (aFlyRect.*fnRect->fnGetLeft)() ); rRightOffset = Max( rRightOffset, nWidth ); - bInvalidatePrtArea = TRUE; + bInvalidatePrtArea = sal_True; } } } @@ -2928,7 +2933,7 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) long nTmpRight = -1000000, nLeftOffset = 0; if( CalcFlyOffsets( nUpper, nLeftOffset, nTmpRight ) ) - bValidPrtArea = FALSE; + bValidPrtArea = sal_False; long nRightOffset = Max( 0L, nTmpRight ); SwTwips nLower = pAttrs->CalcBottomLine(); @@ -2938,7 +2943,7 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) // <-- collapsing if ( !bValidPrtArea ) - { bValidPrtArea = TRUE; + { bValidPrtArea = sal_True; //Die Breite der PrtArea wird vom FrmFmt vorgegeben, die Raender //sind entsprechend einzustellen. @@ -2960,9 +2965,9 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) //bezieht sie sich in der BrowseView auf die Bildschirmbreite. const SwFmtFrmSize &rSz = GetFmt()->GetFrmSize(); // OD 14.03.2003 #i9040# - adjust variable name. - const SwTwips nWishedTableWidth = CalcRel( rSz, TRUE ); + const SwTwips nWishedTableWidth = CalcRel( rSz, sal_True ); - BOOL bCheckBrowseWidth = FALSE; + sal_Bool bCheckBrowseWidth = sal_False; // OD 14.03.2003 #i9040# - insert new variables for left/right spacing. SwTwips nLeftSpacing = 0; @@ -3051,7 +3056,7 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) //Nur die fuer die Umrandung benoetigten Freiraeume //werden beruecksichtigt. //Die Attributwerte von LRSpace werden bewusst missachtet! - bCheckBrowseWidth = TRUE; + bCheckBrowseWidth = sal_True; nLeftSpacing = nLeftLine + nLeftOffset; nRightSpacing = nRightLine + nRightOffset; break; @@ -3088,7 +3093,7 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) { //Linker Rand und die Breite zaehlen (Word-Spezialitaet) // OD 10.03.2003 #i9040# - no width alignment in online mode. - //bCheckBrowseWidth = TRUE; + //bCheckBrowseWidth = sal_True; nLeftSpacing = pAttrs->CalcLeft( this ); if( nLeftOffset ) { @@ -3108,7 +3113,7 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) } break; default: - ASSERT( FALSE, "Ungueltige orientation fuer Table." ); + ASSERT( sal_False, "Ungueltige orientation fuer Table." ); } // --> OD 2004-07-15 #i26250# - extend bottom printing area, if table @@ -3141,12 +3146,12 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) } if ( nOldHeight != (Prt().*fnRect->fnGetHeight)() ) - bValidSize = FALSE; + bValidSize = sal_False; } if ( !bValidSize ) { - bValidSize = TRUE; + bValidSize = sal_True; //Die Groesse wird durch den Inhalt plus den Raendern bestimmt. SwTwips nRemaining = 0, nDiff; @@ -3174,7 +3179,7 @@ void SwTabFrm::Format( const SwBorderAttrs *pAttrs ) |* Letzte Aenderung MA 23. Sep. 96 |* |*************************************************************************/ -SwTwips SwTabFrm::GrowFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) +SwTwips SwTabFrm::GrowFrm( SwTwips nDist, sal_Bool bTst, sal_Bool bInfo ) { SWRECTFN( this ) SwTwips nHeight =(Frm().*fnRect->fnGetHeight)(); @@ -3263,8 +3268,8 @@ SwTwips SwTabFrm::GrowFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) |*************************************************************************/ void SwTabFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) { - BYTE nInvFlags = 0; - BOOL bAttrSetChg = pNew && RES_ATTRSET_CHG == pNew->Which(); + sal_uInt8 nInvFlags = 0; + sal_Bool bAttrSetChg = pNew && RES_ATTRSET_CHG == pNew->Which(); if( bAttrSetChg ) { @@ -3272,7 +3277,7 @@ void SwTabFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() ); SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld ); SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew ); - while( TRUE ) + while( sal_True ) { _UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(), (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags, @@ -3326,12 +3331,17 @@ void SwTabFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) } } +<<<<<<< local void SwTabFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, BYTE &rInvFlags, +======= +void SwTabFrm::_UpdateAttr( SfxPoolItem *pOld, SfxPoolItem *pNew, + sal_uInt8 &rInvFlags, +>>>>>>> other SwAttrSetChg *pOldSet, SwAttrSetChg *pNewSet ) { - BOOL bClear = TRUE; - const USHORT nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0; + sal_Bool bClear = sal_True; + const sal_uInt16 nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0; switch( nWhich ) { case RES_TBLHEADLINECHG: @@ -3346,13 +3356,18 @@ void SwTabFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, } // insert new headlines - const USHORT nNewRepeat = GetTable()->GetRowsToRepeat(); - for ( USHORT nIdx = 0; nIdx < nNewRepeat; ++nIdx ) + const sal_uInt16 nNewRepeat = GetTable()->GetRowsToRepeat(); + for ( sal_uInt16 nIdx = 0; nIdx < nNewRepeat; ++nIdx ) { +<<<<<<< local bDontCreateObjects = TRUE; //frmtool SwRowFrm* pHeadline = new SwRowFrm( *GetTable()->GetTabLines()[ nIdx ], this ); +======= + bDontCreateObjects = sal_True; //frmtool + SwRowFrm* pHeadline = new SwRowFrm( *GetTable()->GetTabLines()[ nIdx ] ); +>>>>>>> other pHeadline->SetRepeatedHeadline( true ); - bDontCreateObjects = FALSE; + bDontCreateObjects = sal_False; pHeadline->Paste( this, pLowerRow ); } } @@ -3372,7 +3387,7 @@ void SwTabFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, if ( !GetPrev() ) CheckPageDescs( pPage ); if ( pPage && GetFmt()->GetPageDesc().GetNumOffset() ) - ((SwRootFrm*)pPage->GetUpper())->SetVirtPageNum( TRUE ); + ((SwRootFrm*)pPage->GetUpper())->SetVirtPageNum( sal_True ); SwDocPosUpdate aMsgHnt( pPage->Frm().Top() ); GetFmt()->GetDoc()->UpdatePageFlds( &aMsgHnt ); } @@ -3399,7 +3414,7 @@ void SwTabFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, /* kein Break hier */ default: - bClear = FALSE; + bClear = sal_False; } if ( bClear ) { @@ -3423,7 +3438,7 @@ void SwTabFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, |* Letzte Aenderung MA 26. Jun. 98 |* |*************************************************************************/ -BOOL SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const +sal_Bool SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const { if ( RES_VIRTPAGENUM_INFO == rHnt.Which() && IsInDocBody() && !IsFollow() ) { @@ -3436,7 +3451,7 @@ BOOL SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const //Das sollte er sein (kann allenfalls temporaer anders sein, // sollte uns das beunruhigen?) rInfo.SetInfo( pPage, this ); - return FALSE; + return sal_False; } if ( pPage->GetPhyPageNum() < rInfo.GetOrigPage()->GetPhyPageNum() && (!rInfo.GetPage() || pPage->GetPhyPageNum() > rInfo.GetPage()->GetPhyPageNum())) @@ -3446,7 +3461,7 @@ BOOL SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const } } } - return TRUE; + return sal_True; } /************************************************************************* @@ -3535,7 +3550,7 @@ SwCntntFrm *SwTabFrm::FindLastCntnt() |* Letzte Aenderung MA 25. Apr. 95 |* |*************************************************************************/ -SwLayoutFrm *SwTabFrm::GetLeaf( MakePageType eMakePage, BOOL bFwd ) +SwLayoutFrm *SwTabFrm::GetLeaf( MakePageType eMakePage, sal_Bool bFwd ) { SwLayoutFrm *pRet; if ( bFwd ) @@ -3560,9 +3575,9 @@ SwLayoutFrm *SwTabFrm::GetLeaf( MakePageType eMakePage, BOOL bFwd ) |* Letzte Aenderung MA 04. Mar. 97 |* |*************************************************************************/ -BOOL SwTabFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, BOOL, BOOL &rReformat ) +sal_Bool SwTabFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, sal_Bool, sal_Bool &rReformat ) { - rReformat = FALSE; + rReformat = sal_False; if ( (SwFlowFrm::IsMoveBwdJump() || !IsPrevObjMove()) ) { //Das zurueckfliessen von Frm's ist leider etwas Zeitintensiv. @@ -3584,7 +3599,7 @@ BOOL SwTabFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, BOOL, BOOL &rReformat ) SwPageFrm *pOldPage = FindPageFrm(), *pNewPage = pNewUpper->FindPageFrm(); - BOOL bMoveAnyway = FALSE; + sal_Bool bMoveAnyway = sal_False; SwTwips nSpace = 0; SWRECTFN( this ) @@ -3596,7 +3611,7 @@ BOOL SwTabFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, BOOL, BOOL &rReformat ) long nNewWidth = (pNewUpper->Prt().*fnRectX->fnGetWidth)(); if( Abs( nNewWidth - nOldWidth ) < 2 ) { - if( FALSE == + if( sal_False == ( bMoveAnyway = BwdMoveNecessary( pOldPage, Frm() ) > 1 ) ) { SwRect aRect( pNewUpper->Prt() ); @@ -3622,19 +3637,24 @@ BOOL SwTabFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, BOOL, BOOL &rReformat ) nSpace = nTmpSpace; // <-- +<<<<<<< local const ViewShell *pSh = getRootFrm()->GetCurrShell(); if( pSh && pSh->GetViewOptions()->getBrowseMode() ) nSpace += pNewUpper->Grow( LONG_MAX, TRUE ); +======= + if ( GetFmt()->getIDocumentSettingAccess()->get(IDocumentSettingAccess::BROWSE_MODE) ) + nSpace += pNewUpper->Grow( LONG_MAX, sal_True ); +>>>>>>> other } } else if( !bLockBackMove ) - bMoveAnyway = TRUE; + bMoveAnyway = sal_True; } else if( !bLockBackMove ) - bMoveAnyway = TRUE; + bMoveAnyway = sal_True; if ( bMoveAnyway ) - return rReformat = TRUE; + return rReformat = sal_True; else if ( !bLockBackMove && nSpace > 0 ) { // --> OD 2004-10-05 #i26945# - check, if follow flow line @@ -3646,7 +3666,7 @@ BOOL SwTabFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, BOOL, BOOL &rReformat ) *(pFirstRow->GetFmt()->GetDoc()), *(pFirstRow) ) ) { - return FALSE; + return sal_False; } // <-- SwTwips nTmpHeight = CalcHeightOfFirstContentLine(); @@ -3660,7 +3680,7 @@ BOOL SwTabFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, BOOL, BOOL &rReformat ) // <-- } } - return FALSE; + return sal_False; } /************************************************************************* @@ -3742,7 +3762,7 @@ void SwTabFrm::Cut() { if ( pUp->GetUpper() ) { - pSct->DelEmpty( FALSE ); + pSct->DelEmpty( sal_False ); pSct->_InvalidateSize(); } } @@ -3824,7 +3844,7 @@ void SwTabFrm::Paste( SwFrm* pParent, SwFrm* pSibling ) (!pDesc && pPage->GetPageDesc() != &(const_cast<const SwDoc *>(GetFmt()->GetDoc()) ->GetPageDesc(0))) ) - CheckPageDescs( pPage, TRUE ); + CheckPageDescs( pPage, sal_True ); } } } @@ -3837,7 +3857,7 @@ void SwTabFrm::Paste( SwFrm* pParent, SwFrm* pSibling ) |* Last Change AMA 01/10/02 |* |*************************************************************************/ -void SwTabFrm::Prepare( const PrepareHint eHint, const void *, BOOL ) +void SwTabFrm::Prepare( const PrepareHint eHint, const void *, sal_Bool ) { if( PREP_BOSS_CHGD == eHint ) CheckDirChange(); @@ -3871,7 +3891,7 @@ SwRowFrm::SwRowFrm( const SwTableLine &rLine, SwFrm* pSib, bool bInsertContent ) //Gleich die Boxen erzeugen und einfuegen. const SwTableBoxes &rBoxes = rLine.GetTabBoxes(); SwFrm *pTmpPrev = 0; - for ( USHORT i = 0; i < rBoxes.Count(); ++i ) + for ( sal_uInt16 i = 0; i < rBoxes.Count(); ++i ) { SwCellFrm *pNew = new SwCellFrm( *rBoxes[i], this, bInsertContent ); pNew->InsertBehind( this, pTmpPrev ); @@ -3913,15 +3933,15 @@ void SwRowFrm::RegistFlys( SwPageFrm *pPage ) |*************************************************************************/ void SwRowFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) { - BOOL bAttrSetChg = pNew && RES_ATTRSET_CHG == pNew->Which(); + sal_Bool bAttrSetChg = pNew && RES_ATTRSET_CHG == pNew->Which(); const SfxPoolItem *pItem = 0; if( bAttrSetChg ) { const SwAttrSet* pChgSet = ((SwAttrSetChg*)pNew)->GetChgSet(); - pChgSet->GetItemState( RES_FRM_SIZE, FALSE, &pItem); + pChgSet->GetItemState( RES_FRM_SIZE, sal_False, &pItem); if ( !pItem ) - pChgSet->GetItemState( RES_ROW_SPLIT, FALSE, &pItem); + pChgSet->GetItemState( RES_ROW_SPLIT, sal_False, &pItem); } else if ( RES_FRM_SIZE == pNew->Which() || RES_ROW_SPLIT == pNew->Which() ) pItem = pNew; @@ -3961,7 +3981,7 @@ void SwRowFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) void SwRowFrm::MakeAll() { if ( !GetNext() ) - bValidSize = FALSE; + bValidSize = sal_False; SwLayoutFrm::MakeAll(); } @@ -4011,7 +4031,7 @@ long MA_FASTCALL CalcHeightWidthFlys( const SwFrm *pFrm ) if ( pObjs ) // <-- { - for ( USHORT i = 0; i < pObjs->Count(); ++i ) + for ( sal_uInt16 i = 0; i < pObjs->Count(); ++i ) { const SwAnchoredObject* pAnchoredObj = (*pObjs)[i]; // --> OD 2004-10-08 #i26945# - if <pTmp> is follow, the @@ -4114,7 +4134,7 @@ SwTwips lcl_CalcTopAndBottomMargin( const SwLayoutFrm& rCell, const SwBorderAttr // control, if floating screen objects have to be considered for the minimal // cell height. SwTwips MA_FASTCALL lcl_CalcMinCellHeight( const SwLayoutFrm *_pCell, - const BOOL _bConsiderObjs, + const sal_Bool _bConsiderObjs, const SwBorderAttrs *pAttrs = 0 ) { SWRECTFN( _pCell ) @@ -4173,7 +4193,7 @@ SwTwips MA_FASTCALL lcl_CalcMinCellHeight( const SwLayoutFrm *_pCell, // --> OD 2004-10-04 #i26945# - add parameter <_bConsiderObjs> in order to control, // if floating screen objects have to be considered for the minimal cell height SwTwips MA_FASTCALL lcl_CalcMinRowHeight( const SwRowFrm* _pRow, - const BOOL _bConsiderObjs ) + const sal_Bool _bConsiderObjs ) { SWRECTFN( _pRow ) @@ -4230,13 +4250,13 @@ SwTwips MA_FASTCALL lcl_CalcMinRowHeight( const SwRowFrm* _pRow, // --> collapsing borders FME 2005-05-27 #i29550# // Calculate the maximum of (TopLineSize + TopLineDist) over all lowers: -USHORT lcl_GetTopSpace( const SwRowFrm& rRow ) +sal_uInt16 lcl_GetTopSpace( const SwRowFrm& rRow ) { - USHORT nTopSpace = 0; + sal_uInt16 nTopSpace = 0; for ( SwCellFrm* pCurrLower = (SwCellFrm*)rRow.Lower(); pCurrLower; pCurrLower = (SwCellFrm*)pCurrLower->GetNext() ) { - USHORT nTmpTopSpace = 0; + sal_uInt16 nTmpTopSpace = 0; if ( pCurrLower->Lower() && pCurrLower->Lower()->IsRowFrm() ) nTmpTopSpace = lcl_GetTopSpace( *(SwRowFrm*)pCurrLower->Lower() ); else @@ -4251,13 +4271,13 @@ USHORT lcl_GetTopSpace( const SwRowFrm& rRow ) } // Calculate the maximum of TopLineDist over all lowers: -USHORT lcl_GetTopLineDist( const SwRowFrm& rRow ) +sal_uInt16 lcl_GetTopLineDist( const SwRowFrm& rRow ) { - USHORT nTopLineDist = 0; + sal_uInt16 nTopLineDist = 0; for ( SwCellFrm* pCurrLower = (SwCellFrm*)rRow.Lower(); pCurrLower; pCurrLower = (SwCellFrm*)pCurrLower->GetNext() ) { - USHORT nTmpTopLineDist = 0; + sal_uInt16 nTmpTopLineDist = 0; if ( pCurrLower->Lower() && pCurrLower->Lower()->IsRowFrm() ) nTmpTopLineDist = lcl_GetTopLineDist( *(SwRowFrm*)pCurrLower->Lower() ); else @@ -4272,13 +4292,13 @@ USHORT lcl_GetTopLineDist( const SwRowFrm& rRow ) } // Calculate the maximum of BottomLineSize over all lowers: -USHORT lcl_GetBottomLineSize( const SwRowFrm& rRow ) +sal_uInt16 lcl_GetBottomLineSize( const SwRowFrm& rRow ) { - USHORT nBottomLineSize = 0; + sal_uInt16 nBottomLineSize = 0; for ( SwCellFrm* pCurrLower = (SwCellFrm*)rRow.Lower(); pCurrLower; pCurrLower = (SwCellFrm*)pCurrLower->GetNext() ) { - USHORT nTmpBottomLineSize = 0; + sal_uInt16 nTmpBottomLineSize = 0; if ( pCurrLower->Lower() && pCurrLower->Lower()->IsRowFrm() ) { const SwFrm* pRow = pCurrLower->GetLastLower(); @@ -4297,13 +4317,13 @@ USHORT lcl_GetBottomLineSize( const SwRowFrm& rRow ) } // Calculate the maximum of BottomLineDist over all lowers: -USHORT lcl_GetBottomLineDist( const SwRowFrm& rRow ) +sal_uInt16 lcl_GetBottomLineDist( const SwRowFrm& rRow ) { - USHORT nBottomLineDist = 0; + sal_uInt16 nBottomLineDist = 0; for ( SwCellFrm* pCurrLower = (SwCellFrm*)rRow.Lower(); pCurrLower; pCurrLower = (SwCellFrm*)pCurrLower->GetNext() ) { - USHORT nTmpBottomLineDist = 0; + sal_uInt16 nTmpBottomLineDist = 0; if ( pCurrLower->Lower() && pCurrLower->Lower()->IsRowFrm() ) { const SwFrm* pRow = pCurrLower->GetLastLower(); @@ -4327,13 +4347,13 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) SWRECTFN( this ) ASSERT( pAttrs, "SwRowFrm::Format ohne Attrs." ); - const BOOL bFix = bFixSize; + const sal_Bool bFix = bFixSize; if ( !bValidPrtArea ) { //RowFrms haben keine Umrandung usw. also entspricht die PrtArea immer //dem Frm. - bValidPrtArea = TRUE; + bValidPrtArea = sal_True; aPrt.Left( 0 ); aPrt.Top( 0 ); aPrt.Width ( aFrm.Width() ); @@ -4344,10 +4364,10 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) SwTabFrm* pTabFrm = FindTabFrm(); if ( pTabFrm->IsCollapsingBorders() ) { - const USHORT nTopSpace = lcl_GetTopSpace( *this ); - const USHORT nTopLineDist = lcl_GetTopLineDist( *this ); - const USHORT nBottomLineSize = lcl_GetBottomLineSize( *this ); - const USHORT nBottomLineDist = lcl_GetBottomLineDist( *this ); + const sal_uInt16 nTopSpace = lcl_GetTopSpace( *this ); + const sal_uInt16 nTopLineDist = lcl_GetTopLineDist( *this ); + const sal_uInt16 nBottomLineSize = lcl_GetBottomLineSize( *this ); + const sal_uInt16 nBottomLineDist = lcl_GetBottomLineDist( *this ); const SwRowFrm* pPreviousRow = 0; @@ -4364,7 +4384,7 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) while ( pTmpRow && !pPrevTabLine ) { - USHORT nIdx = 0; + sal_uInt16 nIdx = 0; const SwTableLines& rLines = pTmpRow->GetTabLine()->GetUpper() ? pTmpRow->GetTabLine()->GetUpper()->GetTabLines() : pTable->GetTabLines(); @@ -4408,10 +4428,10 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) } // <-- - USHORT nTopPrtMargin = nTopSpace; + sal_uInt16 nTopPrtMargin = nTopSpace; if ( pPreviousRow ) { - const USHORT nTmpPrtMargin = pPreviousRow->GetBottomLineSize() + nTopLineDist; + const sal_uInt16 nTmpPrtMargin = pPreviousRow->GetBottomLineSize() + nTopLineDist; if ( nTmpPrtMargin > nTopPrtMargin ) nTopPrtMargin = nTmpPrtMargin; } @@ -4445,7 +4465,7 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) while ( !bValidSize ) { - bValidSize = TRUE; + bValidSize = sal_True; #ifdef DBG_UTIL if ( HasFixSize() ) @@ -4463,9 +4483,9 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) // <-- if ( nDiff ) { - bFixSize = FALSE; + bFixSize = sal_False; if ( nDiff > 0 ) - Shrink( nDiff, FALSE, TRUE ); + Shrink( nDiff, sal_False, sal_True ); else if ( nDiff < 0 ) Grow( -nDiff ); bFixSize = bFix; @@ -4484,10 +4504,10 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) } while ( pSibling ); if ( nDiff > 0 ) { - bFixSize = FALSE; + bFixSize = sal_False; Grow( nDiff ); bFixSize = bFix; - bValidSize = TRUE; + bValidSize = sal_True; } } } @@ -4500,7 +4520,7 @@ void SwRowFrm::Format( const SwBorderAttrs *pAttrs ) |* Letzte Aenderung MA 16. Dec. 96 |* |*************************************************************************/ -void SwRowFrm::AdjustCells( const SwTwips nHeight, const BOOL bHeight ) +void SwRowFrm::AdjustCells( const SwTwips nHeight, const sal_Bool bHeight ) { SwFrm *pFrm = Lower(); if ( bHeight ) @@ -4648,7 +4668,7 @@ void SwRowFrm::Cut() |*************************************************************************/ -SwTwips SwRowFrm::GrowFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) +SwTwips SwRowFrm::GrowFrm( SwTwips nDist, sal_Bool bTst, sal_Bool bInfo ) { SwTwips nReal = 0; @@ -4685,7 +4705,7 @@ SwTwips SwRowFrm::GrowFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) } if ( bRestrictTableGrowth ) - pTab->SetRestrictTableGrowth( TRUE ); + pTab->SetRestrictTableGrowth( sal_True ); else { // Ok, this looks like a hack, indeed, it is a hack. @@ -4694,19 +4714,19 @@ SwTwips SwRowFrm::GrowFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) // be allowed to grow. In fact, setting bRestrictTableGrowth // to 'false' does not work, because the surrounding RowFrm // would set this to 'true'. - pTab->SetFollowFlowLine( FALSE ); + pTab->SetFollowFlowLine( sal_False ); } nReal += SwLayoutFrm::GrowFrm( nDist, bTst, bInfo); - pTab->SetRestrictTableGrowth( FALSE ); + pTab->SetRestrictTableGrowth( sal_False ); pTab->SetFollowFlowLine( bHasFollowFlowLine ); //Hoehe der Zellen auf den neuesten Stand bringen. if ( !bTst ) { SWRECTFNX( this ) - AdjustCells( (Prt().*fnRectX->fnGetHeight)() + nReal, TRUE ); + AdjustCells( (Prt().*fnRectX->fnGetHeight)() + nReal, sal_True ); if ( nReal ) SetCompletePaint(); } @@ -4722,18 +4742,18 @@ SwTwips SwRowFrm::GrowFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) |* Letzte Aenderung MA 20. Jun. 96 |* |*************************************************************************/ -SwTwips SwRowFrm::ShrinkFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) +SwTwips SwRowFrm::ShrinkFrm( SwTwips nDist, sal_Bool bTst, sal_Bool bInfo ) { SWRECTFN( this ) if( HasFixSize() ) { - AdjustCells( (Prt().*fnRect->fnGetHeight)(), TRUE ); + AdjustCells( (Prt().*fnRect->fnGetHeight)(), sal_True ); return 0L; } - //bInfo wird ggf. vom SwRowFrm::Format auf TRUE gesetzt, hier muss dann + //bInfo wird ggf. vom SwRowFrm::Format auf sal_True gesetzt, hier muss dann //entsprechend reagiert werden - const BOOL bShrinkAnyway = bInfo; + const sal_Bool bShrinkAnyway = bInfo; //Nur soweit Shrinken, wie es der Inhalt der groessten Zelle zulaesst. SwTwips nRealDist = nDist; @@ -4808,7 +4828,7 @@ SwTwips SwRowFrm::ShrinkFrm( SwTwips nDist, BOOL bTst, BOOL bInfo ) pMasterTab->InvalidatePos(); } } - AdjustCells( (Prt().*fnRect->fnGetHeight)() - nReal, TRUE ); + AdjustCells( (Prt().*fnRect->fnGetHeight)() - nReal, sal_True ); } return nReal; } @@ -4879,14 +4899,14 @@ SwCellFrm::SwCellFrm( const SwTableBox &rBox, SwFrm* pSib, bool bInsertContent ) //angelegt. if ( rBox.GetSttIdx() ) { - ULONG nIndex = rBox.GetSttIdx(); + sal_uLong nIndex = rBox.GetSttIdx(); ::_InsertCnt( this, rBox.GetFrmFmt()->GetDoc(), ++nIndex ); } else { const SwTableLines &rLines = rBox.GetTabLines(); SwFrm *pTmpPrev = 0; - for ( USHORT i = 0; i < rLines.Count(); ++i ) + for ( sal_uInt16 i = 0; i < rLines.Count(); ++i ) { SwRowFrm *pNew = new SwRowFrm( *rLines[i], this, bInsertContent ); pNew->InsertBehind( this, pTmpPrev ); @@ -4923,9 +4943,9 @@ SwCellFrm::~SwCellFrm() |* Letzte Aenderung MA 29. Jan. 98 |* |*************************************************************************/ -BOOL lcl_ArrangeLowers( SwLayoutFrm *pLay, long lYStart, BOOL bInva ) +sal_Bool lcl_ArrangeLowers( SwLayoutFrm *pLay, long lYStart, sal_Bool bInva ) { - BOOL bRet = FALSE; + sal_Bool bRet = sal_False; SwFrm *pFrm = pLay->Lower(); SWRECTFN( pLay ) while ( pFrm ) @@ -4933,7 +4953,7 @@ BOOL lcl_ArrangeLowers( SwLayoutFrm *pLay, long lYStart, BOOL bInva ) long nFrmTop = (pFrm->Frm().*fnRect->fnGetTop)(); if( nFrmTop != lYStart ) { - bRet = TRUE; + bRet = sal_True; const long lDiff = (*fnRect->fnYDiff)( lYStart, nFrmTop ); const long lDiffX = lYStart - nFrmTop; (pFrm->Frm().*fnRect->fnSubTop)( -lDiff ); @@ -4949,7 +4969,7 @@ BOOL lcl_ArrangeLowers( SwLayoutFrm *pLay, long lYStart, BOOL bInva ) + lDiffX, bInva ); if ( pFrm->GetDrawObjs() ) { - for ( USHORT i = 0; i < pFrm->GetDrawObjs()->Count(); ++i ) + for ( sal_uInt16 i = 0; i < pFrm->GetDrawObjs()->Count(); ++i ) { SwAnchoredObject* pAnchoredObj = (*pFrm->GetDrawObjs())[i]; // --> OD 2004-10-08 #i26945# - check, if anchored object @@ -5164,7 +5184,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) if ( !bValidPrtArea ) { - bValidPrtArea = TRUE; + bValidPrtArea = sal_True; //Position einstellen. if ( Lower() ) @@ -5199,7 +5219,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) // <-- if ( !bValidSize ) { - bValidSize = TRUE; + bValidSize = sal_True; //Die VarSize der CellFrms ist immer die Breite. //Tatsaechlich ist die Breite jedoch nicht Variabel, sie wird durch das @@ -5233,7 +5253,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) const SwTableBox* pTmpBox = 0; SwTwips nSumWidth = 0; - USHORT i = 0; + sal_uInt16 i = 0; do { pTmpBox = rBoxes[ i++ ]; @@ -5297,7 +5317,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) //Wieder validieren wenn kein Wachstum stattgefunden hat. //Invalidiert wird durch AdjustCells von der Row. if ( !Grow( nDiffHeight ) ) - bValidSize = bValidPrtArea = TRUE; + bValidSize = bValidPrtArea = sal_True; } else { @@ -5305,7 +5325,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) //geshrinkt wurde; das kann abgelehnt werden, weil alle //nebeneinanderliegenden Zellen gleichgross sein muessen. if ( !Shrink( -nDiffHeight ) ) - bValidSize = bValidPrtArea = TRUE; + bValidSize = bValidPrtArea = sal_True; } } } @@ -5332,7 +5352,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) ASSERT( !this, "VAlign an Zelle ohne Inhalt" ); return; } - BOOL bVertDir = TRUE; + sal_Bool bVertDir = sal_True; // --> OD 2005-03-30 #i43913# - no vertical alignment, if wrapping // style influence is considered on object positioning and // an object is anchored inside the cell. @@ -5342,7 +5362,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) if ( pPg->GetSortedObjs() ) { SwRect aRect( Prt() ); aRect += Frm().Pos(); - for ( USHORT i = 0; i < pPg->GetSortedObjs()->Count(); ++i ) + for ( sal_uInt16 i = 0; i < pPg->GetSortedObjs()->Count(); ++i ) { const SwAnchoredObject* pAnchoredObj = (*pPg->GetSortedObjs())[i]; SwRect aTmp( pAnchoredObj->GetObjRect() ); @@ -5375,7 +5395,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) !rAnchoredObjFrmFmt.GetFollowTextFlow().GetValue() ) // <-- { - bVertDir = FALSE; + bVertDir = sal_False; break; } } @@ -5413,7 +5433,7 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) if ( Lower()->IsCntntFrm() ) { const long lYStart = (this->*fnRect->fnGetPrtTop)(); - lcl_ArrangeLowers( this, lYStart, TRUE ); + lcl_ArrangeLowers( this, lYStart, sal_True ); } } } @@ -5429,24 +5449,24 @@ void SwCellFrm::Format( const SwBorderAttrs *pAttrs ) void SwCellFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) { - BOOL bAttrSetChg = pNew && RES_ATTRSET_CHG == pNew->Which(); + sal_Bool bAttrSetChg = pNew && RES_ATTRSET_CHG == pNew->Which(); const SfxPoolItem *pItem = 0; if( bAttrSetChg ) - ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_VERT_ORIENT, FALSE, &pItem); + ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_VERT_ORIENT, sal_False, &pItem); else if ( RES_VERT_ORIENT == pNew->Which() ) pItem = pNew; if ( pItem ) { - BOOL bInva = TRUE; + sal_Bool bInva = sal_True; if ( text::VertOrientation::NONE == ((SwFmtVertOrient*)pItem)->GetVertOrient() && // OD 04.11.2003 #112910# Lower() && Lower()->IsCntntFrm() ) { SWRECTFN( this ) const long lYStart = (this->*fnRect->fnGetPrtTop)(); - bInva = lcl_ArrangeLowers( this, lYStart, FALSE ); + bInva = lcl_ArrangeLowers( this, lYStart, sal_False ); } if ( bInva ) { @@ -5456,7 +5476,7 @@ void SwCellFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) } if ( ( bAttrSetChg && - SFX_ITEM_SET == ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_PROTECT, FALSE ) ) || + SFX_ITEM_SET == ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_PROTECT, sal_False ) ) || RES_PROTECT == pNew->Which() ) { ViewShell *pSh = getRootFrm()->GetCurrShell(); @@ -5465,15 +5485,15 @@ void SwCellFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) } if ( bAttrSetChg && - SFX_ITEM_SET == ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_FRAMEDIR, FALSE, &pItem ) ) + SFX_ITEM_SET == ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_FRAMEDIR, sal_False, &pItem ) ) { - SetDerivedVert( FALSE ); + SetDerivedVert( sal_False ); CheckDirChange(); } // --> collapsing borders FME 2005-05-27 #i29550# if ( bAttrSetChg && - SFX_ITEM_SET == ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_BOX, FALSE, &pItem ) ) + SFX_ITEM_SET == ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_BOX, sal_False, &pItem ) ) { SwFrm* pTmpUpper = GetUpper(); while ( pTmpUpper->GetUpper() && !pTmpUpper->GetUpper()->IsTabFrm() ) @@ -5574,7 +5594,7 @@ SwRowFrm* SwTabFrm::GetFirstNonHeadlineRow() const } else { - USHORT nRepeat = GetTable()->GetRowsToRepeat(); + sal_uInt16 nRepeat = GetTable()->GetRowsToRepeat(); while ( pRet && nRepeat > 0 ) { pRet = (SwRowFrm*)pRet->GetNext(); @@ -5591,7 +5611,7 @@ SwRowFrm* SwTabFrm::GetFirstNonHeadlineRow() const */ bool SwTable::IsHeadline( const SwTableLine& rLine ) const { - for ( USHORT i = 0; i < GetRowsToRepeat(); ++i ) + for ( sal_uInt16 i = 0; i < GetRowsToRepeat(); ++i ) if ( GetTabLines()[ i ] == &rLine ) return true; @@ -5605,7 +5625,7 @@ bool SwTabFrm::IsLayoutSplitAllowed() const // --> collapsing borders FME 2005-05-27 #i29550# -USHORT SwTabFrm::GetBottomLineSize() const +sal_uInt16 SwTabFrm::GetBottomLineSize() const { ASSERT( IsCollapsingBorders(), "BottomLineSize only required for collapsing borders" ) @@ -5803,7 +5823,7 @@ SwTwips SwTabFrm::CalcHeightOfFirstContentLine() const pFirstRow = static_cast<SwRowFrm*>(pFirstRow->GetNext()); // Calculate the height of the headlines: - const USHORT nRepeat = GetTable()->GetRowsToRepeat(); + const sal_uInt16 nRepeat = GetTable()->GetRowsToRepeat(); SwTwips nRepeatHeight = nRepeat ? lcl_GetHeightOfRows( GetLower(), nRepeat ) : 0; // Calculate the height of the keeping lines @@ -5811,7 +5831,7 @@ SwTwips SwTabFrm::CalcHeightOfFirstContentLine() const SwTwips nKeepHeight = nRepeatHeight; if ( GetFmt()->GetDoc()->get(IDocumentSettingAccess::TABLE_ROW_KEEP) ) { - USHORT nKeepRows = nRepeat; + sal_uInt16 nKeepRows = nRepeat; // Check how many rows want to keep together while ( pFirstRow && pFirstRow->ShouldRowKeepWithNext() ) @@ -5860,7 +5880,7 @@ SwTwips SwTabFrm::CalcHeightOfFirstContentLine() const { if ( 1 == pLower2->GetTabBox()->getRowSpan() ) { - const SwTwips nCellHeight = lcl_CalcMinCellHeight( pLower2, TRUE ); + const SwTwips nCellHeight = lcl_CalcMinCellHeight( pLower2, sal_True ); nMaxHeight = Max( nCellHeight, nMaxHeight ); } pLower2 = static_cast<const SwCellFrm*>(pLower2->GetNext()); |