EndRebuildMouldAction Class Reference

When executed this action will get the mould to rebuild itself. More...

#include <moldedit.h>

Inheritance diagram for EndRebuildMouldAction:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 EndRebuildMouldAction ()
 RebuildMouldAction constructor.
virtual ActionCode Execute ()
 Executes the RebuildMouldAction which invalidates a rectangular region of the current document.

Static Public Member Functions

static ActionCode DoRecord (Operation *const pOp, NodeMould *pMould)
static ActionCode Init (Operation *const pOp, ActionList *pActionList, NodeMould *pMould, Action **NewAction)

Private Attributes

NodeMouldpRebuildMould

Detailed Description

When executed this action will get the mould to rebuild itself.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/01/95
See also:
-

Definition at line 468 of file moldedit.h.


Constructor & Destructor Documentation

EndRebuildMouldAction::EndRebuildMouldAction  ) 
 

RebuildMouldAction constructor.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/01/95

Definition at line 2068 of file moldedit.cpp.

02069 {
02070     pRebuildMould=NULL;
02071 }


Member Function Documentation

ActionCode EndRebuildMouldAction::DoRecord Operation *const   pOp,
NodeMould pMould
[static]
 

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/01/95
Parameters:
pOp = The operation to which the action should be added [INPUTS] pMould = A pointer to a mould to rebuild
- [OUTPUTS]
Returns:
ActionCode: one of AC_OK, AC_NORESTORE, AC_FAIL

Definition at line 2088 of file moldedit.cpp.

02089 {
02090     EndRebuildMouldAction* Act;  
02091     // Attempt to initialise the next action    
02092     return EndRebuildMouldAction::Init(pOp, pOp->GetUndoActionList(), pMould, (Action**)(&Act));
02093 }

ActionCode EndRebuildMouldAction::Execute  )  [virtual]
 

Executes the RebuildMouldAction which invalidates a rectangular region of the current document.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/01/95
Parameters:
- [INPUTS]
Returns:
ActionCode indicating if the action was successfully executed or not

Reimplemented from Action.

Definition at line 2145 of file moldedit.cpp.

02146 {
02147     StartRebuildMouldAction* Act;  
02148     // Attempt to initialise the next action    
02149     return StartRebuildMouldAction::Init(pOperation, pOppositeActLst, pRebuildMould, (Action**)(&Act));
02150 }   

ActionCode EndRebuildMouldAction::Init Operation *const   pOp,
ActionList pActionList,
NodeMould pMould,
Action **  NewAction
[static]
 

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/01/95
Parameters:
pOp,: The operation to which the action should be added [INPUTS] pActionList: The action list in the operation object pMould: A pointer to a mould to rebuild
NewAction,: A pointer to the action if it could be allocated. [OUTPUTS]
Returns:
ActionCode: one of AC_OK, AC_NORESTORE, AC_FAIL

Definition at line 2113 of file moldedit.cpp.

02117 {       
02118     ActionCode Ac = (Action::Init(pOp,
02119                                   pActionList,
02120                                   sizeof(EndRebuildMouldAction), 
02121                                   CC_RUNTIME_CLASS(EndRebuildMouldAction), 
02122                                   NewAction));
02123     if (*NewAction != NULL)
02124     {
02125         ((EndRebuildMouldAction*)(*NewAction))->pRebuildMould = pMould;
02126     }
02127     return (Ac); 
02128 } 


Member Data Documentation

NodeMould* EndRebuildMouldAction::pRebuildMould [private]
 

Definition at line 484 of file moldedit.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:58 2007 for Camelot by  doxygen 1.4.4