Lines Matching refs:nDiff
364 SwTwips nDiff; in IMPL_LINK_INLINE_END() local
370 nDiff = nRight + nLeft + nCurWidth - pTblData->GetSpace() ; in IMPL_LINK_INLINE_END()
373 nLeft -= nDiff; in IMPL_LINK_INLINE_END()
376 nRight -= nDiff; in IMPL_LINK_INLINE_END()
380 if( nRight >= nDiff ) in IMPL_LINK_INLINE_END()
381 nRight -= nDiff; in IMPL_LINK_INLINE_END()
384 nDiff -= nRight; in IMPL_LINK_INLINE_END()
386 if(nLeft >= nDiff) in IMPL_LINK_INLINE_END()
387 nLeft -= nDiff; in IMPL_LINK_INLINE_END()
390 nRight += nLeft - nDiff; in IMPL_LINK_INLINE_END()
402 nDiff += nLeft + nRight; in IMPL_LINK_INLINE_END()
403 nLeft = nDiff/2; in IMPL_LINK_INLINE_END()
404 nRight = nDiff/2; in IMPL_LINK_INLINE_END()
408 nLeft -= nDiff/2; in IMPL_LINK_INLINE_END()
409 nRight -= nDiff/2; in IMPL_LINK_INLINE_END()
415 nLeft -= nDiff/2; in IMPL_LINK_INLINE_END()
416 nRight -= nDiff/2; in IMPL_LINK_INLINE_END()
446 nDiff = nRight + nLeft + nCurWidth - pTblData->GetSpace() ; in IMPL_LINK_INLINE_END()
448 nRight -= nDiff; in IMPL_LINK_INLINE_END()
755 SwTwips nDiff = nColSum - pTblData->GetWidth(); in DeactivatePage() local
756 while ( Abs(nDiff) > pTblData->GetColCount() + 1 ) in DeactivatePage()
758 SwTwips nSub = nDiff / pTblData->GetColCount(); in DeactivatePage()
764 nDiff -= nSub; in DeactivatePage()
768 nDiff -= pTblData->GetColumns()[i].nWidth - nMinWidth; in DeactivatePage()
1105 SwTwips nDiff = nSum - nTableWidth; in UpdateCols() local
1114 while( nDiff ) in UpdateCols()
1124 if( nDiff < 0 ) in UpdateCols()
1126 SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); in UpdateCols()
1127 nDiff = 0; in UpdateCols()
1129 else if( GetVisibleWidth(nAktPos) >= nDiff + nMinWidth ) in UpdateCols()
1131 SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); in UpdateCols()
1132 nDiff = 0; in UpdateCols()
1134 if( nDiff > 0 && GetVisibleWidth(nAktPos) > nMinWidth ) in UpdateCols()
1136 if( nDiff >= (GetVisibleWidth(nAktPos) - nMinWidth) ) in UpdateCols()
1138 nDiff -= (GetVisibleWidth(nAktPos) - nMinWidth); in UpdateCols()
1143 nDiff = 0; in UpdateCols()
1144 SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); in UpdateCols()
1146 DBG_ASSERT(nDiff >= 0, "nDiff < 0 kann hier nicht sein!"); in UpdateCols()
1154 DBG_ASSERT(nDiff <= pTblData->GetSpace() - nTableWidth, "Maximum falsch eingestellt" ); in UpdateCols()
1156 if(nDiff > nActSpace) in UpdateCols()
1159 SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nActSpace ); in UpdateCols()
1163 nTableWidth += nDiff; in UpdateCols()
1170 …DBG_ASSERT(nDiff * nNoOfVisibleCols <= pTblData->GetSpace() - nTableWidth, "Maximum falsch eingest… in UpdateCols()
1171 long nAdd = nDiff; in UpdateCols()
1172 if(nDiff * nNoOfVisibleCols > pTblData->GetSpace() - nTableWidth) in UpdateCols()
1175 SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nAdd ); in UpdateCols()
1176 nDiff = nAdd; in UpdateCols()
1184 if((nVisWidth = GetVisibleWidth(i)) + nDiff < MINLAY) in UpdateCols()
1191 SetVisibleWidth(i, nVisWidth + nDiff); in UpdateCols()
1192 nAdd += nDiff; in UpdateCols()
1297 SwTwips nDiff = pTblData->GetSpace() - pTblData->GetWidth() - in DeactivatePage() local
1302 pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff); in DeactivatePage()
1305 pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff); in DeactivatePage()
1309 SwTwips nDiff2 = nDiff/2; in DeactivatePage()
1310 if( nDiff > 0 || in DeactivatePage()
1332 pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff/2); in DeactivatePage()
1333 pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff/2); in DeactivatePage()
1336 if(nDiff > pTblData->GetRightSpace()) in DeactivatePage()