Inheritance diagram for IShMouseAction:

Public Member Functions | |
| virtual MCCOMErr MCCOMAPI | Do ()=0 |
| virtual MCCOMErr MCCOMAPI | Undo ()=0 |
| virtual MCCOMErr MCCOMAPI | Redo ()=0 |
| virtual boolean MCCOMAPI | WillCauseChange ()=0 |
| virtual boolean MCCOMAPI | CanUndo ()=0 |
| virtual MCCOMErr MCCOMAPI | GetName (TMCString &name)=0 |
| virtual void MCCOMAPI | Track (IMCGraphicContext *gc, int16 stage, TMCPoint &first, TMCPoint &prev, TMCPoint &cur, boolean moved, IShMouseAction **nextAction)=0 |
| virtual MCCOMErr MCCOMAPI | Feedback (IMCGraphicContext *gc, int16 stage, const TMCPoint &first, const TMCPoint &prev, const TMCPoint &cur, boolean moved, boolean show)=0 |
| virtual void MCCOMAPI | GetPartToRedraw (IMFPart **outPart, int32 stage)=0 |
| virtual MCCOMErr MCCOMAPI | Constrain (IMCGraphicContext *gc, int16 stage, const TMCPoint &first, const TMCPoint &prev, TMCPoint &cur, boolean moved)=0 |
| virtual boolean MCCOMAPI | NeedsToPrepareMenus (void)=0 |
| virtual boolean MCCOMAPI | ConstrainedToView (void)=0 |
| virtual boolean MCCOMAPI | IsPerpetualMouseAction (void)=0 |
| virtual boolean MCCOMAPI | ShouldHideCursor (void)=0 |
| virtual boolean MCCOMAPI | ShouldAutoScroll (void)=0 |
|
|
Returns true if the action is undoable. If CanUndo() returns false, Undo() and Redo() should return MC_E_NOTIMPL and do nothing.
|
|
||||||||||||||||||||||||||||
|
Use this method to constrain the 'cur' position to a value, before Track() is called
|
|
|
|
|
|
Function called to actually perform the action.
|
|
||||||||||||||||||||||||||||||||
|
Allows the action to draw things related to the tracking. Feedback() is called for the first time right before the first call of Track(kShBeginTracking), and then Feedback() is called right after each call to Track().
|
|
|
Return the name to display in the undo/redo list.
|
|
||||||||||||
|
Gives the action the opportunity to tell the Shell that the returned part should be redrawn after Do/Undo/Redo. Return NULL in outPart if no redraw is needed.
|
|
|
|
|
|
|
|
|
Called to Redo the action. This can often simply call Do(). |
|
|
|
|
|
|
|
||||||||||||||||||||||||||||||||
|
Called each time the mouse moves. At least, Track() is called three times (even if the mouse does not move).
|
|
|
Called to undo the action.
|
|
|
|
1.3.9.1