/trunk/main/svtools/inc/svtools/ |
H A D | txtattr.hxx | 172 inline void MoveForward( sal_uInt16 nDiff ); 173 inline void MoveBackward( sal_uInt16 nDiff ); 175 inline void Expand( sal_uInt16 nDiff ); 176 inline void Collaps( sal_uInt16 nDiff ); 193 mnStart = mnStart + nDiff; in MoveForward() 194 mnEnd = mnEnd + nDiff; in MoveForward() 200 mnStart = mnStart - nDiff; in MoveBackward() 201 mnEnd = mnEnd - nDiff; in MoveBackward() 204 inline void TextCharAttrib::Expand( sal_uInt16 nDiff ) in Expand() argument 207 mnEnd = mnEnd + nDiff; in Expand() [all …]
|
/trunk/main/sw/source/ui/table/ |
H A D | tabledlg.cxx | 364 SwTwips nDiff; in IMPL_LINK_INLINE_END() local 373 nLeft -= nDiff; in IMPL_LINK_INLINE_END() 376 nRight -= nDiff; in IMPL_LINK_INLINE_END() 381 nRight -= nDiff; in IMPL_LINK_INLINE_END() 448 nRight -= nDiff; in IMPL_LINK_INLINE_END() 1114 while( nDiff ) in UpdateCols() 1124 if( nDiff < 0 ) in UpdateCols() 1127 nDiff = 0; in UpdateCols() 1132 nDiff = 0; in UpdateCols() 1143 nDiff = 0; in UpdateCols() [all …]
|
/trunk/main/sw/source/core/layout/ |
H A D | wsfrm.cxx | 524 if( nDiff ) in ChgSize() 1447 if ( nDiff > 0 ) in AdjustNeighbourhood() 1483 nChg = nDiff; in AdjustNeighbourhood() 1560 nDiff -= nChg; in AdjustNeighbourhood() 1561 if ( !nDiff ) in AdjustNeighbourhood() 1599 nReal = nDiff; in AdjustNeighbourhood() 3250 if ( nDiff ) in Format() 3381 nRel -= nDiff; in CalcRel() 3410 nDiff = nDiff ? Min( nDiff, nTmp ) : nTmp; in lcl_CalcMinColDiff() 3420 return nDiff ? nDiff : nFirstDiff ? nFirstDiff : 240; in lcl_CalcMinColDiff() [all …]
|
H A D | ssfrm.cxx | 76 SwTwips nDiff = nDeadline - Frm().Left(); in SetMinLeft() local 77 if( nDiff > 0 ) in SetMinLeft() 80 Prt().Width( Prt().Width() - nDiff ); in SetMinLeft() 89 if( nDiff > 0 ) in SetMaxBottom() 91 Frm().Height( Frm().Height() - nDiff ); in SetMaxBottom() 92 Prt().Height( Prt().Height() - nDiff ); in SetMaxBottom() 100 SwTwips nDiff = nDeadline - Frm().Top(); in SetMinTop() local 101 if( nDiff > 0 ) in SetMinTop() 113 if( nDiff > 0 ) in SetMaxRight() 115 Frm().Width( Frm().Width() - nDiff ); in SetMaxRight() [all …]
|
H A D | sectfrm.cxx | 1060 long nDiff; in _CheckClipping() 1068 if( nDiff > 0 ) in _CheckClipping() 1105 if( nDiff < 0 ) in _CheckClipping() 1107 nDiff = 0; in _CheckClipping() 1114 if( nTop > nDiff ) in _CheckClipping() 1115 nTop = nDiff; in _CheckClipping() 1470 if( nDiff < 0) in Format() 1484 if( nDiff > 0 ) in Format() 1485 nDiff = 0; in Format() 1489 if( nDiff ) in Format() [all …]
|
/trunk/main/editeng/source/editeng/ |
H A D | editattr.hxx | 111 inline void MoveForward( sal_uInt16 nDiff ); 112 inline void MoveBackward( sal_uInt16 nDiff ); 114 inline void Expand( sal_uInt16 nDiff ); 115 inline void Collaps( sal_uInt16 nDiff ); 142 nStart = nStart + nDiff; in MoveForward() 143 nEnd = nEnd + nDiff; in MoveForward() 149 nStart = nStart - nDiff; in MoveBackward() 150 nEnd = nEnd - nDiff; in MoveBackward() 153 inline void EditCharAttrib::Expand( sal_uInt16 nDiff ) in Expand() argument 157 nEnd = nEnd + nDiff; in Expand() [all …]
|
H A D | editdoc2.cxx | 205 void ParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff ) in MarkInvalid() argument 210 nInvalidPosStart = ( nDiff >= 0 ) ? nStart : ( nStart + nDiff ); in MarkInvalid() 211 nInvalidDiff = nDiff; in MarkInvalid() 216 if ( ( nDiff > 0 ) && ( nInvalidDiff > 0 ) && in MarkInvalid() 219 nInvalidDiff = nInvalidDiff + nDiff; in MarkInvalid() 222 else if ( ( nDiff < 0 ) && ( nInvalidDiff < 0 ) && ( nInvalidPosStart == nStart ) ) in MarkInvalid() 224 nInvalidPosStart = nInvalidPosStart + nDiff; in MarkInvalid() 225 nInvalidDiff = nInvalidDiff + nDiff; in MarkInvalid() 230 DBG_ASSERT( ( nDiff >= 0 ) || ( (nStart+nDiff) >= 0 ), "MarkInvalid: Diff out of Range" ); in MarkInvalid() 231 nInvalidPosStart = Min( nInvalidPosStart, (sal_uInt16) ( nDiff < 0 ? nStart+nDiff : nDiff ) ); in MarkInvalid()
|
/trunk/main/vcl/workben/ |
H A D | svptest.cxx | 187 sal_uInt8 nDiff; in approachColor() local 191 nDiff = rTo.GetRed() - rFrom.GetRed(); in approachColor() 192 aColor.SetRed( rFrom.GetRed() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 196 nDiff = rFrom.GetRed() - rTo.GetRed(); in approachColor() 197 aColor.SetRed( rFrom.GetRed() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 206 aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 211 aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 219 nDiff = rTo.GetBlue() - rFrom.GetBlue(); in approachColor() 220 aColor.SetBlue( rFrom.GetBlue() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 224 nDiff = rFrom.GetBlue() - rTo.GetBlue(); in approachColor() [all …]
|
/trunk/main/sw/source/ui/dbui/ |
H A D | dbui.cxx | 62 void lcl_ResizeControl( Window* pWin, long nDiff ) in lcl_ResizeControl() argument 65 aSize.Width() += nDiff; in lcl_ResizeControl() 68 void lcl_RePosControl( Window* pWin, long nDiff ) in lcl_RePosControl() argument 71 aPos.X() += nDiff; in lcl_RePosControl() 85 if( nDiff > 2 * aDlgSize.Width() ) in ResizeControls() 88 nDiff = 2 * aDlgSize.Width(); in ResizeControls() 90 aDlgSize.Width() += nDiff; in ResizeControls() 94 nDiff /= 2; in ResizeControls() 95 lcl_RePosControl( &aDocName, nDiff ); in ResizeControls() 97 lcl_RePosControl( &aPrintInfo, nDiff ); in ResizeControls() [all …]
|
/trunk/main/svtools/source/edit/ |
H A D | textdata.cxx | 143 void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff ) in MarkInvalid() argument 147 mnInvalidPosStart = ( nDiff >= 0 ) ? nStart : ( nStart + nDiff ); in MarkInvalid() 148 mnInvalidDiff = nDiff; in MarkInvalid() 153 if ( ( nDiff > 0 ) && ( mnInvalidDiff > 0 ) && in MarkInvalid() 156 mnInvalidDiff = mnInvalidDiff + nDiff; in MarkInvalid() 159 else if ( ( nDiff < 0 ) && ( mnInvalidDiff < 0 ) && ( mnInvalidPosStart == nStart ) ) in MarkInvalid() 161 mnInvalidPosStart = mnInvalidPosStart + nDiff; in MarkInvalid() 162 mnInvalidDiff = mnInvalidDiff + nDiff; in MarkInvalid() 166 DBG_ASSERT( ( nDiff >= 0 ) || ( (nStart+nDiff) >= 0 ), "MarkInvalid: Diff out of Range" ); in MarkInvalid() 167 … mnInvalidPosStart = Min( mnInvalidPosStart, (sal_uInt16) ( (nDiff < 0) ? nStart+nDiff : nDiff ) ); in MarkInvalid()
|
/trunk/main/sw/source/core/text/ |
H A D | porfld.cxx | 586 long nDiff( 0 ); in Format() local 610 if( nDiff < 0 ) in Format() 611 nDiff = 0; in Format() 615 nDiff = 0; in Format() 627 nDiff = rInf.Width(); in Format() 906 if( nDiff < 0 ) in Format() 907 nDiff = 0; in Format() 909 nDiff -= rInf.X(); in Format() 918 nDiff = rInf.Width(); in Format() 923 if( Width() < nDiff ) in Format() [all …]
|
H A D | frmcrsr.cxx | 604 if( nDiff > 50 || nDiff < 0 ) in _GetCrsrOfst() 861 if( !nDiff ) in _UnitUp() 862 nDiff = MIN_OFFSET_STEP; in _UnitUp() 863 if( nFormat > nDiff ) in _UnitUp() 1433 if( nDiff < nFirst ) in FillCrsrPos() 1434 nDiff = -1; in FillCrsrPos() 1478 nDiff -= nFirst; in FillCrsrPos() 1480 if( nDiff > 0 ) in FillCrsrPos() 1482 nDiff /= nDist; in FillCrsrPos() 1490 nDiff = -1; in FillCrsrPos() [all …]
|
/trunk/main/sc/source/ui/app/ |
H A D | client.cxx | 128 long nDiff = aLogicRect.Right() - aPageRect.Right(); in RequestNewObjectArea() local 129 aLogicRect.Left() -= nDiff; in RequestNewObjectArea() 130 aLogicRect.Right() -= nDiff; in RequestNewObjectArea() 135 aLogicRect.Top() -= nDiff; in RequestNewObjectArea() 136 aLogicRect.Bottom() -= nDiff; in RequestNewObjectArea() 141 long nDiff = aLogicRect.Left() - aPageRect.Left(); in RequestNewObjectArea() local 142 aLogicRect.Right() -= nDiff; in RequestNewObjectArea() 143 aLogicRect.Left() -= nDiff; in RequestNewObjectArea() 147 long nDiff = aLogicRect.Top() - aPageRect.Top(); in RequestNewObjectArea() local 148 aLogicRect.Bottom() -= nDiff; in RequestNewObjectArea() [all …]
|
/trunk/main/padmin/source/ |
H A D | padialog.cxx | 330 sal_uInt8 nDiff; in approachColor() local 334 nDiff = rTo.GetRed() - rFrom.GetRed(); in approachColor() 335 aColor.SetRed( rFrom.GetRed() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 339 nDiff = rFrom.GetRed() - rTo.GetRed(); in approachColor() 340 aColor.SetRed( rFrom.GetRed() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 349 aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 354 aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 362 nDiff = rTo.GetBlue() - rFrom.GetBlue(); in approachColor() 363 aColor.SetBlue( rFrom.GetBlue() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 367 nDiff = rFrom.GetBlue() - rTo.GetBlue(); in approachColor() [all …]
|
/trunk/main/basebmp/test/ |
H A D | bmpdemo.cxx | 1014 UINT8 nDiff; in approachColor() local 1018 nDiff = rTo.getRed() - rFrom.getRed(); in approachColor() 1019 aColor.setRed( rFrom.getRed() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 1023 nDiff = rFrom.getRed() - rTo.getRed(); in approachColor() 1024 aColor.setRed( rFrom.getRed() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 1033 aColor.setGreen( rFrom.getGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 1038 aColor.setGreen( rFrom.getGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 1046 nDiff = rTo.getBlue() - rFrom.getBlue(); in approachColor() 1047 aColor.setBlue( rFrom.getBlue() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor() 1051 nDiff = rFrom.getBlue() - rTo.getBlue(); in approachColor() [all …]
|
/trunk/main/sw/source/core/table/ |
H A D | swnewtable.cxx | 280 if( nDiff > 0 ) in lcl_ChangeRowSpan() 403 long nDiff = 0; in CollectBoxSelection() local 414 nDiff = nMin - nLeft; in CollectBoxSelection() 435 nDiff = nMin - nRight; in CollectBoxSelection() 473 nDiff = nLeft - nMax; in CollectBoxSelection() 548 aTmp.second = nDiff; in CollectBoxSelection() 553 nDiff = nDiff2; in CollectBoxSelection() 711 long nDiff = i - nLastLine; in NewInsertCol() local 725 if( nDiff > 0 ) in NewInsertCol() 726 nDiff = -nDiff; in NewInsertCol() [all …]
|
/trunk/main/sw/source/core/doc/ |
H A D | tblrwcl.cxx | 137 nDiff( rCpy.nDiff ), nSide( rCpy.nSide ), in CR_SetBoxWidth() 2665 SwTwips nDiff; in lcl_SetOtherBoxWidth() local 2670 nDiff *= rParam.nDiff; in lcl_SetOtherBoxWidth() 2674 nDiff = rParam.nDiff; in lcl_SetOtherBoxWidth() 2676 if( nWidth < nDiff || nWidth - nDiff < MINLAY ) in lcl_SetOtherBoxWidth() 2926 SwTwips nDiff; in lcl_InsOtherBox() local 2931 nDiff *= rParam.nDiff; in lcl_InsOtherBox() 2934 if( nWidth < nDiff || nWidth - nDiff < MINLAY ) in lcl_InsOtherBox() 2939 nDiff = rParam.nDiff; in lcl_InsOtherBox() 2960 if( nTmpWidth < nDiff || nTmpWidth - nDiff < MINLAY ) in lcl_InsOtherBox() [all …]
|
/trunk/main/sw/source/ui/frmdlg/ |
H A D | cption.cxx | 633 nDiff = -nDiff; in ApplyCaptionOrder() 635 lcl_MoveH( aCategoryText, 2 * nDiff); in ApplyCaptionOrder() 636 lcl_MoveH( aFormatText, -nDiff ); in ApplyCaptionOrder() 637 lcl_MoveH( aFormatBox, -nDiff ); in ApplyCaptionOrder() 638 lcl_MoveH( aCategoryBox, 2 * nDiff); in ApplyCaptionOrder() 639 lcl_MoveH( aSepText, nDiff ); in ApplyCaptionOrder() 640 lcl_MoveH( aSepEdit, nDiff ); in ApplyCaptionOrder() 641 lcl_MoveH( aPosText, nDiff ); in ApplyCaptionOrder() 642 lcl_MoveH( aPosBox, nDiff ); in ApplyCaptionOrder() 643 lcl_MoveH( aPrevWin, nDiff ); in ApplyCaptionOrder() [all …]
|
/trunk/main/editeng/source/misc/ |
H A D | txtrange.cxx | 169 void _NoteFarPoint( long nPx, long nPyDiff, long nDiff ); 170 void NoteFarPoint( long nPx, long nPyDiff, long nDiff ) in NoteFarPoint() argument 171 { if( nDiff ) _NoteFarPoint( nPx, nPyDiff, nDiff ); } in NoteFarPoint() 270 void SvxBoundArgs::_NoteFarPoint( long nPa, long nPbDiff, long nDiff ) in _NoteFarPoint() argument 273 double nQuot = 2 * nDiff - nPbDiff; in _NoteFarPoint() 276 nQuot /= nDiff; in _NoteFarPoint() 323 sal_uInt16 nDiff = nMaxIdx - nIdx; in NoteRange() local 325 if( nDiff ) in NoteRange() 327 (*pLongArr).Remove( nIdx + 1, nDiff ); in NoteRange() 328 nDiff /= 2; in NoteRange() [all …]
|
/trunk/main/sc/source/ui/view/ |
H A D | tabview4.cxx | 405 long nDiff; in UpdateScrollBars() local 451 nDiff = lcl_UpdateBar( aHScrollLeft, nVisXL ); in UpdateScrollBars() 452 if (nDiff) ScrollX( nDiff, SC_SPLIT_LEFT ); in UpdateScrollBars() 455 nDiff = lcl_UpdateBar( aHScrollRight, nVisXR ); in UpdateScrollBars() 456 if (nDiff) ScrollX( nDiff, SC_SPLIT_RIGHT ); in UpdateScrollBars() 459 nDiff = lcl_UpdateBar( aVScrollBottom, nVisYB ); in UpdateScrollBars() 460 if (nDiff) ScrollY( nDiff, SC_SPLIT_BOTTOM ); in UpdateScrollBars() 463 nDiff = lcl_UpdateBar( aVScrollTop, nVisYT ); in UpdateScrollBars() 464 if (nDiff) ScrollY( nDiff, SC_SPLIT_TOP ); in UpdateScrollBars()
|
/trunk/main/filter/source/graphicfilter/icgm/ |
H A D | cgm.cxx | 465 if ( !nDiff ) in ImplGetBitmapColor() 466 nDiff++; in ImplGetBitmapColor() 467 nColor = ( ( nColor - pElement->nColorValueExtent[ 0 ] ) << 8 ) / nDiff; in ImplGetBitmapColor() 471 nDiff = pElement->nColorValueExtent[ 4 ] - pElement->nColorValueExtent[ 1 ] + 1; in ImplGetBitmapColor() 472 if ( !nDiff ) in ImplGetBitmapColor() 473 nDiff++; in ImplGetBitmapColor() 474 nColor = ( ( nColor - pElement->nColorValueExtent[ 1 ] ) << 8 ) / nDiff; in ImplGetBitmapColor() 478 nDiff = pElement->nColorValueExtent[ 5 ] - pElement->nColorValueExtent[ 2 ] + 1; in ImplGetBitmapColor() 479 if ( !nDiff ) in ImplGetBitmapColor() 480 nDiff++; in ImplGetBitmapColor() [all …]
|
/trunk/main/drawinglayer/source/texture/ |
H A D | texture.cxx | 757 const sal_Int32 nDiff(static_cast<sal_Int32>(floor(fStartX / fWidth)) + 1); in appendTransformations() local 759 nPosX -= nDiff; in appendTransformations() 760 fStartX -= nDiff * fWidth; in appendTransformations() 765 const sal_Int32 nDiff(static_cast<sal_Int32>(floor(-fStartX / fWidth))); in appendTransformations() local 767 nPosX += nDiff; in appendTransformations() 768 fStartX += nDiff * fWidth; in appendTransformations() 775 nPosY -= nDiff; in appendTransformations() 776 fStartY -= nDiff * fHeight; in appendTransformations() 781 const sal_Int32 nDiff(static_cast<sal_Int32>(floor(-fStartY / fHeight))); in appendTransformations() local 783 nPosY += nDiff; in appendTransformations() [all …]
|
/trunk/main/sw/source/core/docnode/ |
H A D | ndtbl1.cxx | 1321 nColLeft += nDiff; in lcl_CalcSubColValues() 1322 nColRight += nDiff; in lcl_CalcSubColValues() 1409 nLeftA += nDiff; in lcl_CalcColValues() 1410 nRightA += nDiff; in lcl_CalcColValues() 1497 int nDiff = aWish[i]; in AdjustCellWidth() local 1498 if ( nDiff ) in AdjustCellWidth() 1526 int nDiff = aWish[i]; in AdjustCellWidth() local 1527 if ( nDiff ) in AdjustCellWidth() 1530 if ( nMin > nDiff ) in AdjustCellWidth() 1531 nDiff = nMin; in AdjustCellWidth() [all …]
|
/trunk/main/sw/source/core/txtnode/ |
H A D | fntcap.cxx | 338 long nDiff = rInf.GetPos().X() - rPos.X(); in DrawSpace() local 353 nDiff = -nDiff; in DrawSpace() 358 if ( nDiff ) in DrawSpace() 361 GetOut().DrawStretchText( aPos, nDiff, in DrawSpace() 496 long nDiff = long(nOrgWidth) - long(nCapWidth); in Do() local 497 if( nDiff ) in Do() 499 nDiff *= rInf.GetLen(); in Do() 500 nDiff /= (long) nStrLen; in Do() 501 nDiff += nPartWidth; in Do() 502 if( 0 < nDiff ) in Do() [all …]
|
/trunk/main/package/source/package/zipapi/ |
H A D | XUnbufferedStream.cxx | 183 sal_Int64 nDiff = mnZipEnd - mnZipCurrent; in readBytes() local 195 nToRead = ( nDiff < nToRead ) ? sal::static_int_cast< sal_Int32 >( nDiff ) : nToRead; in readBytes() 222 static_cast < sal_Int32 > ( nDiff < nRequestedBytes ? nDiff : nRequestedBytes ) ); in readBytes() 251 sal_Int32 nDiff = static_cast< sal_Int32 >( mnZipEnd - mnZipCurrent ); in readBytes() local 252 if ( nDiff > 0 ) in readBytes() 259 nToRead = std::min( nDiff, nToRead ); in readBytes()
|