void CEdit::FindNextWord() { FindSelectedWord( TRUE ); }
/* Respond to pen tap */ Boolean HandlePenDown ( const Coord x, const Coord y ) { Boolean handled = false; PenData.penDownX = PenData.moveFromX = x; PenData.penDownY = PenData.moveFromY = y; #ifdef HAVE_SILKSCREEN if ( DIA_STATE_NO_STATUS_BAR == GetDIAState() ) { RectangleType bounds; GetHiddenStatusBarArea( &bounds ); HiResAdjustBounds( &bounds, sonyHiRes ); if ( RctPtInRectangle( x, y, &bounds ) ) { if ( Prefs()->toolbar == TOOLBAR_NONE && Prefs()->scrollbar == SCROLLBAR_NONE ) { DoSelectTypeAction( SELECT_TOGGLE_FULLSCREEN ); } else { if ( Prefs()->savedSilkscreen == DIA_STATE_NO_STATUS_BAR ) { Prefs()->savedSilkscreen = DIA_STATE_MIN; } SetDIAState( Prefs()->savedSilkscreen ); } handled = true; return handled; } } #endif #ifdef SUPPORT_WORD_LOOKUP if ( isSelectWordTapMode ) { PenData.selectedControl = FindSelectedWord( x, y ); isSelectWordTapMode = false; ShowSelectWordTapIcon(); } else if ( Prefs()->selectWordTap == SELECT_WORD_TAP_ONCE ) { selectedWordAction = Prefs()->selectedWordAction; PenData.selectedControl = FindControlObject( x, y ); if ( PenData.selectedControl == 0 ) PenData.selectedControl = FindSelectedWord( x, y ); } else #endif PenData.selectedControl = FindControlObject( x, y ); if ( PenData.selectedControl != 0 ) { HighlightControl( PenData.selectedControl, ANCHOR_SELECTED ); handled = true; } else if ( Prefs()->controlMode != MODE3 && TopLeftY() < y && y < TopLeftY() + ExtentY() ) { RegionType region; Coord rotX; Coord rotY; rotX = x; rotY = y; RotFromScreenXY( &rotX, &rotY ); if ( Prefs()->controlMode == MODE1 ) { if ( rotY <= ( RotTopLeftY() + RotExtentY() / 4 ) ) region = REGION1; else if ( rotY <= ( RotTopLeftY() + RotExtentY() / 2 ) ) region = REGION2; else if ( rotY <= ( RotTopLeftY() + 3 * RotExtentY() / 4 ) ) region = REGION3; else region = REGION4; } else { if ( rotY <= ( RotTopLeftY() + RotExtentY() / 2 ) ) { if ( rotX <= ( RotTopLeftX() + RotExtentX() / 2 ) ) region = REGION1; else region = REGION2; } else { if ( rotX <= ( RotTopLeftX() + RotExtentX() / 2 ) ) region = REGION3; else region = REGION4; } } DoScreenAction( region ); handled = true; } return handled; }
void CEdit::FindPrevWord() { FindSelectedWord( FALSE ); }