Lines Matching refs:rEditMask
240 const ByteString& rEditMask, in ImplPatternReformat() argument
244 if ( !rEditMask.Len() ) in ImplPatternReformat()
257 while ( i < rEditMask.Len() ) in ImplPatternReformat()
264 cMask = rEditMask.GetChar(i); in ImplPatternReformat()
280 while ( n < rEditMask.Len() ) in ImplPatternReformat()
282 if ( rEditMask.GetChar(n) != EDITMASK_LITERAL ) in ImplPatternReformat()
284 if ( !ImplIsPatternChar( cChar, rEditMask.GetChar(n) ) ) in ImplPatternReformat()
317 while ( n < rEditMask.Len() ) in ImplPatternReformat()
319 if ( rEditMask.GetChar( n ) == EDITMASK_LITERAL ) in ImplPatternReformat()
345 static void ImplPatternMaxPos( const XubString rStr, const ByteString& rEditMask, in ImplPatternMaxPos() argument
359 if ( (rEditMask.GetChar(nMaxPos-1) != EDITMASK_LITERAL) && in ImplPatternMaxPos()
368 while ( nTempPos < rEditMask.Len() ) in ImplPatternMaxPos()
370 if ( rEditMask.GetChar(nTempPos) != EDITMASK_LITERAL ) in ImplPatternMaxPos()
389 const ByteString& rEditMask, in ImplPatternProcessStrictModify() argument
402 if ( (rEditMask.GetChar( i ) != EDITMASK_LITERAL) && in ImplPatternProcessStrictModify()
409 while ( i && (rEditMask.GetChar( i ) == EDITMASK_LITERAL) ) in ImplPatternProcessStrictModify()
414 XubString aNewText = ImplPatternReformat( aText, rEditMask, rLiteralMask, nFormatFlags ); in ImplPatternProcessStrictModify()
424 … ImplPatternMaxPos( aNewText, rEditMask, nFormatFlags, bSameMask, (xub_StrLen)nMaxSel, nMaxPos ); in ImplPatternProcessStrictModify()
441 static xub_StrLen ImplPatternLeftPos( const ByteString& rEditMask, xub_StrLen nCursorPos ) in ImplPatternLeftPos() argument
448 if ( rEditMask.GetChar(nTempPos-1) != EDITMASK_LITERAL ) in ImplPatternLeftPos()
460 static xub_StrLen ImplPatternRightPos( const XubString& rStr, const ByteString& rEditMask, in ImplPatternRightPos() argument
467 while ( nTempPos < rEditMask.Len() ) in ImplPatternRightPos()
469 if ( rEditMask.GetChar(nTempPos+1) != EDITMASK_LITERAL ) in ImplPatternRightPos()
476 ImplPatternMaxPos( rStr, rEditMask, nFormatFlags, bSameMask, nCursorPos, nNewPos ); in ImplPatternRightPos()
483 const ByteString& rEditMask, in ImplPatternProcessKeyInput() argument
490 if ( !rEditMask.Len() || !bStrictFormat ) in ImplPatternProcessKeyInput()
506 Selection aSel( ImplPatternLeftPos( rEditMask, nCursorPos ) ); in ImplPatternProcessKeyInput()
520 …aSel.Max() = ImplPatternRightPos( pEdit->GetText(), rEditMask, nFormatFlags, bSameMask, nCursorPos… in ImplPatternProcessKeyInput()
532 while ( (nNewPos < rEditMask.Len()) && in ImplPatternProcessKeyInput()
533 (rEditMask.GetChar(nNewPos) == EDITMASK_LITERAL) ) in ImplPatternProcessKeyInput()
547 nNewPos = rEditMask.Len(); in ImplPatternProcessKeyInput()
549 (rEditMask.GetChar(nNewPos-1) == EDITMASK_LITERAL) ) in ImplPatternProcessKeyInput()
557 … ImplPatternMaxPos( pEdit->GetText(), rEditMask, nFormatFlags, bSameMask, nCursorPos, nNewPos ); in ImplPatternProcessKeyInput()
591 nNewPos = ImplPatternLeftPos( rEditMask, nTempPos ); in ImplPatternProcessKeyInput()
594 … nTempPos = ImplPatternRightPos( aStr, rEditMask, nFormatFlags, bSameMask, nNewPos ); in ImplPatternProcessKeyInput()
600 if ( rEditMask.GetChar( nNewPos ) != EDITMASK_LITERAL ) in ImplPatternProcessKeyInput()
614 aStr = ImplPatternReformat( aStr, rEditMask, rLiteralMask, nFormatFlags ); in ImplPatternProcessKeyInput()
646 if ( nNewPos < rEditMask.Len() ) in ImplPatternProcessKeyInput()
648 xub_Unicode cPattChar = ImplPatternChar( cChar, rEditMask.GetChar(nNewPos) ); in ImplPatternProcessKeyInput()
660 (rEditMask.GetChar(nNewPos-1) != EDITMASK_LITERAL) && in ImplPatternProcessKeyInput()
665 while ( nTempPos < rEditMask.Len() ) in ImplPatternProcessKeyInput()
667 if ( rEditMask.GetChar(nTempPos) == EDITMASK_LITERAL ) in ImplPatternProcessKeyInput()
670 if ( (rEditMask.GetChar(nTempPos+1) != EDITMASK_LITERAL ) && in ImplPatternProcessKeyInput()
674 … ImplPatternMaxPos( pEdit->GetText(), rEditMask, nFormatFlags, bSameMask, nNewPos, nTempPos ); in ImplPatternProcessKeyInput()
704 ((n > rEditMask.Len()) || (rEditMask.GetChar(n-1) != EDITMASK_LITERAL)) ) in ImplPatternProcessKeyInput()
714 if ( aStr.Len() < rEditMask.Len() ) in ImplPatternProcessKeyInput()
721 else if ( nNewPos < rEditMask.Len() ) in ImplPatternProcessKeyInput()
723 aStr = ImplPatternReformat( aStr, rEditMask, rLiteralMask, nFormatFlags ); in ImplPatternProcessKeyInput()
739 else if ( nNewPos < rEditMask.Len() ) in ImplPatternProcessKeyInput()
748 … Selection aNewSel( ImplPatternRightPos( aStr, rEditMask, nFormatFlags, bSameMask, nNewPos ) ); in ImplPatternProcessKeyInput()
763 void PatternFormatter::ImplSetMask( const ByteString& rEditMask, in ImplSetMask() argument
766 maEditMask = rEditMask; in ImplSetMask()
784 while ( i < rEditMask.Len() ) in ImplSetMask()
786 sal_Char cTemp = rEditMask.GetChar( i ); in ImplSetMask()
858 void PatternFormatter::SetMask( const ByteString& rEditMask, in SetMask() argument
861 ImplSetMask( rEditMask, rLiteralMask ); in SetMask()