RedoAction3 Class Reference

Dummy BlobbyOp REDO action. Does nothing when it executes. More...

#include <blobby.h>

Inheritance diagram for RedoAction3:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 RedoAction3 ()
 RedoAction3 constructor.
virtual ActionCode Execute ()
 To execute RedoAction3. Does nothing except spawn an UndoAction3 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

Detailed Description

Dummy BlobbyOp REDO action. Does nothing when it executes.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/8/93
See also:
BlobbyOp

Definition at line 245 of file blobby.h.


Constructor & Destructor Documentation

RedoAction3::RedoAction3  ) 
 

RedoAction3 constructor.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/8/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 669 of file blobby.cpp.

00669                         :Action()
00670 {
00671 }


Member Function Documentation

ActionCode RedoAction3::Execute  )  [virtual]
 

To execute RedoAction3. Does nothing except spawn an UndoAction3 action.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/8/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
ActionCode indicating if the action was successfully executed or not

Errors: -

See also:
-

Reimplemented from Action.

Definition at line 746 of file blobby.cpp.

00747 {
00748     UndoAction3* UndoAct;
00749     ActionCode ActCode;
00750     ActCode = UndoAction3::Init(pOperation,
00751                                 pOperation->GetUndoActionList(),
00752                                 10,
00753                                 ((Action**)&UndoAct)); // 10 is bodge
00754 
00755     if (ActCode != AC_FAIL)
00756     {
00757         //if (IsUserName("Simon"))
00758         //  TRACE( _T("Executing REDO Action 3\n"));
00759     }
00760     return (ActCode);
00761 }

ActionCode RedoAction3::Init Operation *const   pOp,
ActionList pActionList,
UINT32  ActionSize,
Action **  NewAction
[static]
 

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.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/8/93
Parameters:
pOp,: The operation to which the action should be added [INPUTS]
pActionList: The action list in the operation object

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).

Parameters:
NewAction,: A pointer to the action if it could be allocated. [OUTPUTS]
Returns:
AC_FAIL: There was not enough room in the operation history for the action and the user did not wish to continue. Usually End() should be called in this situation.
AC_NORECORD: There was not enough room in the operation history for the action, but the user requested that he wished to continue without undo.

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 RedoAction3.

Returns:
Errors: -
See also:
Action::Init

Definition at line 717 of file blobby.cpp.

00721 {
00722     return(Action::Init(pOp,
00723                         pActionList,
00724                         ActionSize,
00725                         CC_RUNTIME_CLASS(RedoAction3),
00726                         NewAction));
00727 }


Friends And Related Function Documentation

friend class UndoColAction [friend]
 

Definition at line 248 of file blobby.h.


Member Data Documentation

DocColour RedoAction3::Color [private]
 

Definition at line 258 of file blobby.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:00:24 2007 for Camelot by  doxygen 1.4.4