UndoAction3 Class Reference

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

#include <blobby.h>

Inheritance diagram for UndoAction3:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 UndoAction3 ()
 UndoAction3 constructor.
virtual ActionCode Execute ()
 To execute UndoAction3. Does nothing except spawn a RedoAction3 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 UNDO 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 304 of file blobby.h.


Constructor & Destructor Documentation

UndoAction3::UndoAction3  ) 
 

UndoAction3 constructor.

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

Errors: -

See also:
-

Definition at line 891 of file blobby.cpp.

00891                         :Action()
00892 {
00893 }


Member Function Documentation

ActionCode UndoAction3::Execute  )  [virtual]
 

To execute UndoAction3. Does nothing except spawn a RedoAction3 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 967 of file blobby.cpp.

00968 {
00969     RedoAction3* RedoAct;
00970     ActionCode ActCode;
00971     ActCode = RedoAction3::Init(pOperation,
00972                                 pOperation->GetRedoActionList(),
00973                                 10,
00974                                 ((Action**)&RedoAct)); // 10 is bodge
00975 
00976     if (ActCode != AC_FAIL)
00977     {
00978         //if (IsUserName("Simon"))
00979         //  TRACE( _T("Executing Undo Action 3\n"));
00980     }
00981     return (ActCode);
00982 }

ActionCode UndoAction3::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 an UndoAction3.

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

Definition at line 939 of file blobby.cpp.

00943 {
00944     return(Action::Init(pOp,
00945                         pActionList,
00946                         ActionSize,
00947                         CC_RUNTIME_CLASS(UndoAction3),
00948                         NewAction));
00949 }


Friends And Related Function Documentation

friend class UndoColAction [friend]
 

Definition at line 307 of file blobby.h.


Member Data Documentation

DocColour UndoAction3::Color [private]
 

Definition at line 317 of file blobby.h.


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