Interface for basic Actions. All actions should implement these functions. More...
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 void MCCOMAPI | GetPartToRedraw (IMFPart **outPart, int32 stage)=0 |
virtual MCCOMErr MCCOMAPI | GetName (TMCString &name)=0 |
virtual boolean MCCOMAPI | NeedsToPrepareMenus (void)=0 |
Interface for basic Actions. All actions should implement these functions.
virtual boolean MCCOMAPI IShAction::CanUndo | ( | ) | [pure virtual] |
Returns true if the action is undoable. If CanUndo() returns false, Undo() and Redo() should return MC_E_NOTIMPL and do nothing.
Implemented in TBasicAction.
virtual MCCOMErr MCCOMAPI IShAction::Do | ( | ) | [pure virtual] |
Function called to actually perform the action.
Implemented in TBasicAction.
Return the name to display in the undo/redo list.
name | The name of the action |
Implemented in TBasicAction.
virtual void MCCOMAPI IShAction::GetPartToRedraw | ( | IMFPart ** | outPart, | |
int32 | stage | |||
) | [pure virtual] |
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.
outPart | Returns a pointer to the part that needs to be redrawn after the action runs. | |
stage | Allows you to specify what stage to query for part redraw. kShDoAction, kShUndoAction, kShRedoAction |
Implemented in TBasicAction.
virtual boolean MCCOMAPI IShAction::NeedsToPrepareMenus | ( | void | ) | [pure virtual] |
Implemented in TBasicAction.
virtual MCCOMErr MCCOMAPI IShAction::Redo | ( | ) | [pure virtual] |
Called to Redo the action. This can often simply call Do().
Implemented in TBasicAction.
virtual MCCOMErr MCCOMAPI IShAction::Undo | ( | ) | [pure virtual] |
Called to undo the action.
Implemented in TBasicAction.
virtual boolean MCCOMAPI IShAction::WillCauseChange | ( | ) | [pure virtual] |
Implemented in TBasicAction.