Lines Matching refs:nNewPos

444     xub_StrLen nNewPos = nCursorPos;  in ImplPatternLeftPos()  local
445 xub_StrLen nTempPos = nNewPos; in ImplPatternLeftPos()
450 nNewPos = nTempPos-1; in ImplPatternLeftPos()
455 return nNewPos; in ImplPatternLeftPos()
465 xub_StrLen nNewPos = nCursorPos; in ImplPatternRightPos() local
466 xub_StrLen nTempPos = nNewPos; in ImplPatternRightPos()
471 nNewPos = nTempPos+1; in ImplPatternRightPos()
476 ImplPatternMaxPos( rStr, rEditMask, nFormatFlags, bSameMask, nCursorPos, nNewPos ); in ImplPatternRightPos()
477 return nNewPos; in ImplPatternRightPos()
499 xub_StrLen nNewPos; in ImplPatternProcessKeyInput() local
531 nNewPos = 0; in ImplPatternProcessKeyInput()
532 while ( (nNewPos < rEditMask.Len()) && in ImplPatternProcessKeyInput()
533 (rEditMask.GetChar(nNewPos) == EDITMASK_LITERAL) ) in ImplPatternProcessKeyInput()
534 nNewPos++; in ImplPatternProcessKeyInput()
536 if ( nCursorPos < nNewPos ) in ImplPatternProcessKeyInput()
537 nNewPos = nCursorPos; in ImplPatternProcessKeyInput()
538 Selection aSel( nNewPos ); in ImplPatternProcessKeyInput()
547 nNewPos = rEditMask.Len(); in ImplPatternProcessKeyInput()
548 while ( nNewPos && in ImplPatternProcessKeyInput()
549 (rEditMask.GetChar(nNewPos-1) == EDITMASK_LITERAL) ) in ImplPatternProcessKeyInput()
550 nNewPos--; in ImplPatternProcessKeyInput()
557 … ImplPatternMaxPos( pEdit->GetText(), rEditMask, nFormatFlags, bSameMask, nCursorPos, nNewPos ); in ImplPatternProcessKeyInput()
558 aSel.Max() = nNewPos; in ImplPatternProcessKeyInput()
573 nNewPos = (xub_StrLen)aSel.Min(); in ImplPatternProcessKeyInput()
590 nTempPos = nNewPos; in ImplPatternProcessKeyInput()
591 nNewPos = ImplPatternLeftPos( rEditMask, nTempPos ); in ImplPatternProcessKeyInput()
594 … nTempPos = ImplPatternRightPos( aStr, rEditMask, nFormatFlags, bSameMask, nNewPos ); in ImplPatternProcessKeyInput()
596 if ( nNewPos != nTempPos ) in ImplPatternProcessKeyInput()
600 if ( rEditMask.GetChar( nNewPos ) != EDITMASK_LITERAL ) in ImplPatternProcessKeyInput()
601 aStr.Erase( nNewPos, 1 ); in ImplPatternProcessKeyInput()
605 XubString aTempStr = rLiteralMask.Copy( nNewPos, 1 ); in ImplPatternProcessKeyInput()
606 aStr.Replace( nNewPos, aTempStr.Len(), aTempStr ); in ImplPatternProcessKeyInput()
616 pEdit->SetText( aStr, Selection( nNewPos ) ); in ImplPatternProcessKeyInput()
622 pEdit->SetSelection( Selection( nNewPos ) ); in ImplPatternProcessKeyInput()
644 nNewPos = (xub_StrLen)aSel.Min(); in ImplPatternProcessKeyInput()
646 if ( nNewPos < rEditMask.Len() ) in ImplPatternProcessKeyInput()
648 xub_Unicode cPattChar = ImplPatternChar( cChar, rEditMask.GetChar(nNewPos) ); in ImplPatternProcessKeyInput()
659 if ( nNewPos && in ImplPatternProcessKeyInput()
660 (rEditMask.GetChar(nNewPos-1) != EDITMASK_LITERAL) && in ImplPatternProcessKeyInput()
664 nTempPos = nNewPos; in ImplPatternProcessKeyInput()
674 … ImplPatternMaxPos( pEdit->GetText(), rEditMask, nFormatFlags, bSameMask, nNewPos, nTempPos ); in ImplPatternProcessKeyInput()
675 if ( nTempPos > nNewPos ) in ImplPatternProcessKeyInput()
701 while ( n && (n > nNewPos) ) in ImplPatternProcessKeyInput()
717 if ( aStr.Len() < nNewPos ) in ImplPatternProcessKeyInput()
718 aStr += rLiteralMask.Copy( aStr.Len(), nNewPos-aStr.Len() ); in ImplPatternProcessKeyInput()
719 if ( nNewPos < aStr.Len() ) in ImplPatternProcessKeyInput()
720 aStr.Insert( cChar, nNewPos ); in ImplPatternProcessKeyInput()
721 else if ( nNewPos < rEditMask.Len() ) in ImplPatternProcessKeyInput()
737 if ( nNewPos < aStr.Len() ) in ImplPatternProcessKeyInput()
738 aStr.SetChar( nNewPos, cChar ); in ImplPatternProcessKeyInput()
739 else if ( nNewPos < rEditMask.Len() ) in ImplPatternProcessKeyInput()
748 … Selection aNewSel( ImplPatternRightPos( aStr, rEditMask, nFormatFlags, bSameMask, nNewPos ) ); in ImplPatternProcessKeyInput()