UndoAction2 Class Reference

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

#include <blobby.h>

Inheritance diagram for UndoAction2:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 UndoAction2 ()
 UndoAction2 constructor.
virtual ActionCode Execute ()
 To execute UndoAction2. Does nothing except spawn a RedoAction2 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 274 of file blobby.h.


Constructor & Destructor Documentation

UndoAction2::UndoAction2  ) 
 

UndoAction2 constructor.

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

Errors: -

See also:
-

Definition at line 781 of file blobby.cpp.

00781                         :Action()
00782 {
00783 }


Member Function Documentation

ActionCode UndoAction2::Execute  )  [virtual]
 

To execute UndoAction2. Does nothing except spawn a RedoAction2 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 857 of file blobby.cpp.

00858 {
00859     RedoAction2* RedoAct;
00860     ActionCode ActCode;
00861     ActCode = RedoAction2::Init(pOperation,
00862                                 pOperation->GetRedoActionList(),
00863                                 10,
00864                                 ((Action**)&RedoAct)); // 10 is bodge
00865 
00866     if (ActCode != AC_FAIL)
00867     {
00868         //if (IsUserName("Simon"))
00869         //  TRACE( _T("Executing Undo Action 2\n"));
00870     }
00871     return (ActCode);
00872 }

ActionCode UndoAction2::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 UndoAction2.

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

Definition at line 829 of file blobby.cpp.

00833 {
00834     return(Action::Init(pOp,
00835                         pActionList,
00836                         ActionSize,
00837                         CC_RUNTIME_CLASS(UndoAction2),
00838                         NewAction));
00839 }


Friends And Related Function Documentation

friend class UndoColAction [friend]
 

Definition at line 277 of file blobby.h.


Member Data Documentation

DocColour UndoAction2::Color [private]
 

Definition at line 287 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