#include <blobby.h>
Inheritance diagram for RedoAction2:
Public Member Functions | |
RedoAction2 () | |
RedoAction2 constructor. | |
virtual ActionCode | Execute () |
To execute RedoAction2. Does nothing except spawn an UndoAction2 action. | |
Static Public Member Functions | |
static ActionCode | Init (Operation *const pOp, ActionList *pActionList, UINT32 ActionSize, Action **NewAction) |
To check that there is sufficient room for the action in the operation history, and if there is, then to add the action to the operations action list. | |
Private Attributes | |
DocColour | Color |
Friends | |
class | UndoColAction |
Definition at line 215 of file blobby.h.
|
RedoAction2 constructor.
Definition at line 560 of file blobby.cpp. 00560 :Action() 00561 { 00562 }
|
|
To execute RedoAction2. Does nothing except spawn an UndoAction2 action.
Reimplemented from Action. Definition at line 636 of file blobby.cpp. 00637 { 00638 UndoAction2* UndoAct; 00639 ActionCode ActCode; 00640 ActCode = UndoAction2::Init(pOperation, 00641 pOperation->GetUndoActionList(), 00642 10, 00643 ((Action**)&UndoAct)); // 10 is bodge 00644 00645 if (ActCode != AC_FAIL) 00646 { 00647 //if (IsUserName("Simon")) 00648 // TRACE( _T("Executing REDO Action 2\n")); 00649 } 00650 return (ActCode); 00651 }
|
|
To check that there is sufficient room for the action in the operation history, and if there is, then to add the action to the operations action list.
Size: The size of the action in bytes. This should be the total size of the action (including any objects pointed to by the action).
AC_OK : The action was successfully initialised and added to the operation. The function simply calls the Action::Init function passing the runtime class of a RedoAction2.
Definition at line 609 of file blobby.cpp. 00613 { 00614 return(Action::Init(pOp, 00615 pActionList, 00616 ActionSize, 00617 CC_RUNTIME_CLASS(RedoAction2), 00618 NewAction)); 00619 }
|
|
|
|
|