Lines Matching refs:nDelta

40 sal_Bool lcl_MoveStart( R& rRef, U nStart, S nDelta, U nMask )  in lcl_MoveStart()  argument
44 rRef = sal::static_int_cast<R>( rRef + nDelta ); in lcl_MoveStart()
45 else if ( nDelta < 0 && rRef >= nStart + nDelta ) in lcl_MoveStart()
46 rRef = nStart + nDelta; //! begrenzen ??? in lcl_MoveStart()
61 sal_Bool lcl_MoveEnd( R& rRef, U nStart, S nDelta, U nMask ) in lcl_MoveEnd() argument
65 rRef = sal::static_int_cast<R>( rRef + nDelta ); in lcl_MoveEnd()
66 else if ( nDelta < 0 && rRef >= nStart + nDelta ) in lcl_MoveEnd()
67 rRef = nStart + nDelta - 1; //! begrenzen ??? in lcl_MoveEnd()
82 sal_Bool lcl_MoveReorder( R& rRef, U nStart, U nEnd, S nDelta ) in lcl_MoveReorder() argument
86 rRef = sal::static_int_cast<R>( rRef + nDelta ); in lcl_MoveReorder()
90 if ( nDelta > 0 ) // nach hinten schieben in lcl_MoveReorder()
92 if ( rRef >= nStart && rRef <= nEnd + nDelta ) in lcl_MoveReorder()
95 rRef = sal::static_int_cast<R>( rRef + nDelta ); // in the moved range in lcl_MoveReorder()
103 if ( rRef >= nStart + nDelta && rRef <= nEnd ) in lcl_MoveReorder()
106 rRef = sal::static_int_cast<R>( rRef + nDelta ); // in the moved range in lcl_MoveReorder()
117 sal_Bool lcl_MoveItCut( R& rRef, S nDelta, U nMask ) in lcl_MoveItCut() argument
120 rRef = sal::static_int_cast<R>( rRef + nDelta ); in lcl_MoveItCut()
135 void lcl_MoveItWrap( R& rRef, S nDelta, U nMask ) in lcl_MoveItWrap() argument
137 rRef = sal::static_int_cast<R>( rRef + nDelta ); in lcl_MoveItWrap()
147 U nStart, U nEnd, S nDelta, U nMask ) in lcl_MoveRefPart() argument
149 if ( nDelta ) in lcl_MoveRefPart()
156 if ( nDelta < 0 ) in lcl_MoveRefPart()
158 n = nStart + nDelta; in lcl_MoveRefPart()
165 n = nEnd + nDelta; in lcl_MoveRefPart()
173 rRef1Val = sal::static_int_cast<R>( rRef1Val + nDelta ); in lcl_MoveRefPart()
174 rRef2Val = sal::static_int_cast<R>( rRef2Val + nDelta ); in lcl_MoveRefPart()
181 rRef1Val = sal::static_int_cast<R>( rRef1Val + nDelta ); in lcl_MoveRefPart()
183 bCut1 = lcl_MoveStart( rRef1Val, nStart, nDelta, nMask ); in lcl_MoveRefPart()
188 rRef2Val = sal::static_int_cast<R>( rRef2Val + nDelta ); in lcl_MoveRefPart()
190 bCut2 = lcl_MoveEnd( rRef2Val, nStart, nDelta, nMask ); in lcl_MoveRefPart()
228 sal_Bool lcl_IsWrapBig( sal_Int32 nRef, sal_Int32 nDelta ) in lcl_IsWrapBig() argument
230 if ( nRef > 0 && nDelta > 0 ) in lcl_IsWrapBig()
231 return nRef + nDelta <= 0; in lcl_IsWrapBig()
232 else if ( nRef < 0 && nDelta < 0 ) in lcl_IsWrapBig()
233 return nRef + nDelta >= 0; in lcl_IsWrapBig()
238 sal_Bool lcl_MoveBig( sal_Int32& rRef, sal_Int32 nStart, sal_Int32 nDelta ) in lcl_MoveBig() argument
243 if ( nDelta > 0 ) in lcl_MoveBig()
244 bCut = lcl_IsWrapBig( rRef, nDelta ); in lcl_MoveBig()
248 rRef += nDelta; in lcl_MoveBig()
253 sal_Bool lcl_MoveItCutBig( sal_Int32& rRef, sal_Int32 nDelta ) in lcl_MoveItCutBig() argument
255 sal_Bool bCut = lcl_IsWrapBig( rRef, nDelta ); in lcl_MoveItCutBig()
256 rRef += nDelta; in lcl_MoveItCutBig()