Home
last modified time | relevance | path

Searched refs:nDiff (Results 1 – 25 of 195) sorted by relevance

12345678

/AOO41X/main/svtools/inc/svtools/
H A Dtxtattr.hxx172 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 );
190 inline void TextCharAttrib::MoveForward( sal_uInt16 nDiff ) in MoveForward() argument
192 DBG_ASSERT( ((long)mnEnd + nDiff) <= 0xFFFF, "TextCharAttrib: MoveForward?!" ); in MoveForward()
193 mnStart = mnStart + nDiff; in MoveForward()
194 mnEnd = mnEnd + nDiff; in MoveForward()
197 inline void TextCharAttrib::MoveBackward( sal_uInt16 nDiff ) in MoveBackward() argument
199 DBG_ASSERT( ((long)mnStart - nDiff) >= 0, "TextCharAttrib: MoveBackward?!" ); in MoveBackward()
[all …]
/AOO41X/main/sw/source/ui/table/
H A Dtabledlg.cxx364 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()
[all …]
/AOO41X/main/editeng/source/editeng/
H A Deditattr.hxx111 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 );
139 inline void EditCharAttrib::MoveForward( sal_uInt16 nDiff ) in MoveForward() argument
141 DBG_ASSERT( ((long)nEnd + nDiff) <= 0xFFFF, "EditCharAttrib: MoveForward?!" ); in MoveForward()
142 nStart = nStart + nDiff; in MoveForward()
143 nEnd = nEnd + nDiff; in MoveForward()
146 inline void EditCharAttrib::MoveBackward( sal_uInt16 nDiff ) in MoveBackward() argument
148 DBG_ASSERT( ((long)nStart - nDiff) >= 0, "EditCharAttrib: MoveBackward?!" ); in MoveBackward()
[all …]
H A Deditdoc2.cxx205 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()
/AOO41X/main/vcl/workben/
H A Dsvptest.cxx187 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()
205 nDiff = rTo.GetGreen() - rFrom.GetGreen(); in approachColor()
206 aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
210 nDiff = rFrom.GetGreen() - rTo.GetGreen(); in approachColor()
211 aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
219 nDiff = rTo.GetBlue() - rFrom.GetBlue(); in approachColor()
[all …]
/AOO41X/main/sw/source/ui/dbui/
H A Ddbui.cxx62 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()
84 long nDiff = nPrinterTextWidth - aPrinterSize.Width(); in ResizeControls() local
85 if( nDiff > 2 * aDlgSize.Width() ) in ResizeControls()
88 nDiff = 2 * aDlgSize.Width(); in ResizeControls()
90 aDlgSize.Width() += nDiff; in ResizeControls()
92 lcl_ResizeControl( &aPrinter, nDiff ); in ResizeControls()
94 nDiff /= 2; in ResizeControls()
[all …]
/AOO41X/main/sw/source/core/layout/
H A Dwsfrm.cxx518 long nDiff = nNew - (aFrm.*fnRect->fnGetHeight)(); in ChgSize() local
519 if( nDiff ) in ChgSize()
526 SwTwips nReal = ((SwLayoutFrm*)this)->AdjustNeighbourhood(nDiff); in ChgSize()
527 if ( nReal != nDiff ) in ChgSize()
528 (aFrm.*fnRect->fnSetHeight)( nNew - nDiff + nReal ); in ChgSize()
536 if ( nDiff > 0 ) in ChgSize()
537 Grow( nDiff ); in ChgSize()
539 Shrink( -nDiff ); in ChgSize()
1409 SwTwips SwFrm::AdjustNeighbourhood( SwTwips nDiff, sal_Bool bTst ) in AdjustNeighbourhood() argument
1411 PROTOCOL_ENTER( this, PROT_ADJUSTN, 0, &nDiff ); in AdjustNeighbourhood()
[all …]
H A Dssfrm.cxx76 SwTwips nDiff = nDeadline - Frm().Left(); in SetMinLeft() local
77 if( nDiff > 0 ) in SetMinLeft()
80 Prt().Width( Prt().Width() - nDiff ); in SetMinLeft()
88 SwTwips nDiff = Frm().Top() + Frm().Height() - nDeadline; in SetMaxBottom() local
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()
104 Prt().Height( Prt().Height() - nDiff ); in SetMinTop()
[all …]
H A Dsectfrm.cxx1060 long nDiff; in _CheckClipping()
1065 nDiff = -(Frm().*fnRect->fnBottomDist)( nDeadLine ); in _CheckClipping()
1067 nDiff += Undersize(); in _CheckClipping()
1068 if( nDiff > 0 ) in _CheckClipping()
1070 long nAdd = GetUpper()->Grow( nDiff ); in _CheckClipping()
1077 nDiff = -(Frm().*fnRect->fnBottomDist)( nDeadLine ); in _CheckClipping()
1078 SetUndersized( !bMaximize && nDiff >= 0 ); in _CheckClipping()
1080 ( nDiff || in _CheckClipping()
1104 nDiff = (*fnRect->fnYDiff)( nDeadLine, (Frm().*fnRect->fnGetTop)() ); in _CheckClipping()
1105 if( nDiff < 0 ) in _CheckClipping()
[all …]
/AOO41X/main/svtools/source/edit/
H A Dtextdata.cxx143 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()
/AOO41X/main/sw/source/core/text/
H A Dporfld.cxx587 long nDiff( 0 ); in Format() local
596 nDiff = rInf.Left() in Format()
604 nDiff = rInf.Left() - rInf.First() + rInf.ForcedLeftMargin(); in Format()
611 if( nDiff < 0 ) in Format()
612 nDiff = 0; in Format()
613 else if ( nDiff > rInf.X() ) in Format()
614 nDiff -= rInf.X(); in Format()
616 nDiff = 0; in Format()
618 if( nDiff < nFixWidth + nMinDist ) in Format()
619 nDiff = nFixWidth + nMinDist; in Format()
[all …]
H A Dfrmcrsr.cxx603 SwTwips nDiff = rPoint.X() - Frm().Left() - Prt().Left(); in _GetCrsrOfst() local
604 if( nDiff > 50 || nDiff < 0 ) in _GetCrsrOfst()
860 xub_StrLen nDiff = aLine.GetLength(); in _UnitUp() local
861 if( !nDiff ) in _UnitUp()
862 nDiff = MIN_OFFSET_STEP; in _UnitUp()
863 if( nFormat > nDiff ) in _UnitUp()
864 nFormat = nFormat - nDiff; in _UnitUp()
1432 SwTwips nDiff = rFill.Y() - Frm().Bottom(); in FillCrsrPos() local
1433 if( nDiff < nFirst ) in FillCrsrPos()
1434 nDiff = -1; in FillCrsrPos()
[all …]
/AOO41X/main/sc/source/ui/app/
H A Dclient.cxx128 long nDiff = aLogicRect.Right() - aPageRect.Right(); in RequestNewObjectArea() local
129 aLogicRect.Left() -= nDiff; in RequestNewObjectArea()
130 aLogicRect.Right() -= nDiff; in RequestNewObjectArea()
134 long nDiff = aLogicRect.Bottom() - aPageRect.Bottom(); in RequestNewObjectArea() local
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
[all …]
/AOO41X/main/padmin/source/
H A Dpadialog.cxx330 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()
348 nDiff = rTo.GetGreen() - rFrom.GetGreen(); in approachColor()
349 aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
353 nDiff = rFrom.GetGreen() - rTo.GetGreen(); in approachColor()
354 aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
362 nDiff = rTo.GetBlue() - rFrom.GetBlue(); in approachColor()
[all …]
/AOO41X/main/basebmp/test/
H A Dbmpdemo.cxx1014 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()
1032 nDiff = rTo.getGreen() - rFrom.getGreen(); in approachColor()
1033 aColor.setGreen( rFrom.getGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1037 nDiff = rFrom.getGreen() - rTo.getGreen(); in approachColor()
1038 aColor.setGreen( rFrom.getGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1046 nDiff = rTo.getBlue() - rFrom.getBlue(); in approachColor()
[all …]
/AOO41X/main/sw/source/core/table/
H A Dswnewtable.cxx252 void lcl_ChangeRowSpan( const SwTable& rTable, const long nDiff, in lcl_ChangeRowSpan() argument
255 if( !nDiff || nRowIdx >= rTable.GetTabLines().Count() ) in lcl_ChangeRowSpan()
257 ASSERT( !bSingle || nDiff > 0, "Don't set bSingle when deleting lines!" ); in lcl_ChangeRowSpan()
280 if( nDiff > 0 ) in lcl_ChangeRowSpan()
283 nRowSpan += nDiff; // increment row span of master cell in lcl_ChangeRowSpan()
286 nRowSpan -= nDiff; // increment row span of non-master cell in lcl_ChangeRowSpan()
295 if( nRowSpan - nDistance > -nDiff ) in lcl_ChangeRowSpan()
296 nRowSpan += nDiff; in lcl_ChangeRowSpan()
302 if( nRowSpan + nDistance < nDiff ) in lcl_ChangeRowSpan()
303 nRowSpan -= nDiff; in lcl_ChangeRowSpan()
[all …]
/AOO41X/main/sw/source/core/doc/
H A Dtblrwcl.cxx117 SwTwips nDiff, nSide, nMaxSize, nLowerDiff; member
125 nDiff( nDif ), nSide( nSid ), nMaxSize( nMax ), nLowerDiff( 0 ), in CR_SetBoxWidth()
137 nDiff( rCpy.nDiff ), nSide( rCpy.nSide ), in CR_SetBoxWidth()
2568 nLowerDiff *= rParam.nDiff; in lcl_SetSelBoxWidth()
2570 nLowerDiff = rParam.nDiff - nLowerDiff; in lcl_SetSelBoxWidth()
2573 nLowerDiff = rParam.nDiff; in lcl_SetSelBoxWidth()
2609 nLowerDiff *= rParam.nDiff; in lcl_SetSelBoxWidth()
2611 nLowerDiff = rParam.nDiff - nLowerDiff; in lcl_SetSelBoxWidth()
2614 nLowerDiff = rParam.nDiff; in lcl_SetSelBoxWidth()
2665 SwTwips nDiff; in lcl_SetOtherBoxWidth() local
[all …]
/AOO41X/main/editeng/source/misc/
H A Dtxtrange.cxx169 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 …]
/AOO41X/main/sc/source/ui/view/
H A Dtabview4.cxx405 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()
/AOO41X/main/sw/source/ui/frmdlg/
H A Dcption.cxx627 sal_Int32 nDiff = aPosBox.GetPosPixel().Y() - aSepEdit.GetPosPixel().Y(); in ApplyCaptionOrder() local
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()
[all …]
/AOO41X/main/filter/source/graphicfilter/icgm/
H A Dcgm.cxx463 … sal_uInt32 nDiff = pElement->nColorValueExtent[ 3 ] - pElement->nColorValueExtent[ 0 ] + 1; in ImplGetBitmapColor() local
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()
[all …]
/AOO41X/main/drawinglayer/source/texture/
H A Dtexture.cxx657 const sal_Int32 nDiff(static_cast<sal_Int32>(floor(fStartX / fWidth)) + 1); in appendTransformations() local
659 nPosX -= nDiff; in appendTransformations()
660 fStartX -= nDiff * fWidth; in appendTransformations()
665 const sal_Int32 nDiff(static_cast<sal_Int32>(floor(-fStartX / fWidth))); in appendTransformations() local
667 nPosX += nDiff; in appendTransformations()
668 fStartX += nDiff * fWidth; in appendTransformations()
673 const sal_Int32 nDiff(static_cast<sal_Int32>(floor(fStartY / fHeight)) + 1); in appendTransformations() local
675 nPosY -= nDiff; in appendTransformations()
676 fStartY -= nDiff * fHeight; in appendTransformations()
681 const sal_Int32 nDiff(static_cast<sal_Int32>(floor(-fStartY / fHeight))); in appendTransformations() local
[all …]
/AOO41X/main/package/source/zipapi/
H A DXUnbufferedStream.cxx183 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()
/AOO41X/main/sw/source/core/docnode/
H A Dndindex.cxx73 SwNodeIndex::SwNodeIndex( const SwNodeIndex& rIdx, long nDiff ) in SwNodeIndex() argument
76 if( nDiff ) in SwNodeIndex()
77 pNd = rIdx.GetNodes()[ rIdx.GetIndex() + nDiff ]; in SwNodeIndex()
88 SwNodeIndex::SwNodeIndex( const SwNode& rNd, long nDiff ) in SwNodeIndex() argument
91 if( nDiff ) in SwNodeIndex()
92 pNd = rNd.GetNodes()[ rNd.GetIndex() + nDiff ]; in SwNodeIndex()
H A Dndtbl1.cxx1320 const long nDiff = (pTab->Frm().*fnRect->fnGetLeft)() - rCols.GetLeftMin(); in lcl_CalcSubColValues() local
1321 nColLeft += nDiff; in lcl_CalcSubColValues()
1322 nColRight += nDiff; in lcl_CalcSubColValues()
1408 const long nDiff = (pTab->Frm().*fnRect->fnGetLeft)() - rCols.GetLeftMin(); in lcl_CalcColValues() local
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()
[all …]

12345678