InitNodeBlendPathAction Class Reference

An action which destroys the cached info in a blend path node. More...

#include <ndbldpth.h>

Inheritance diagram for InitNodeBlendPathAction:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 InitNodeBlendPathAction ()
 ~InitNodeBlendPathAction ()
virtual ActionCode Execute ()
 Executes the action. Destroys the blend path node's cached info.

Static Public Member Functions

static ActionCode Init (UndoableOperation *pOp, ActionList *pActionList, NodeBlendPath *pNodeBlendPath)
 Simply destroys the cached information for this blend path.

Protected Attributes

NodeBlendPathm_pNodeBlendPath

Detailed Description

An action which destroys the cached info in a blend path node.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
4/5/99
See also:
-

Definition at line 208 of file ndbldpth.h.


Constructor & Destructor Documentation

InitNodeBlendPathAction::InitNodeBlendPathAction  )  [inline]
 

Definition at line 214 of file ndbldpth.h.

00214 { m_pNodeBlendPath = NULL; }

InitNodeBlendPathAction::~InitNodeBlendPathAction  )  [inline]
 

Definition at line 215 of file ndbldpth.h.

00215 {}


Member Function Documentation

ActionCode InitNodeBlendPathAction::Execute  )  [virtual]
 

Executes the action. Destroys the blend path node's cached info.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
4/5/99
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
ActionCode, one of AC_OK, AC_NO_RECORD or AC_FAIL

Errors: -

See also:
Action::Init()

Reimplemented from Action.

Definition at line 1125 of file ndbldpth.cpp.

01126 {
01127     if (pOperation->IS_KIND_OF(UndoableOperation))
01128         return InitNodeBlendPathAction::Init((UndoableOperation*)pOperation,pOppositeActLst,m_pNodeBlendPath);
01129     else
01130     {
01131         ERROR3("InitNodeBlendPathAction::Execute() called with op that's not an undoable op");
01132         return AC_FAIL;
01133     }
01134 }

ActionCode InitNodeBlendPathAction::Init UndoableOperation pOp,
ActionList pActionList,
NodeBlendPath pNodeBlendPath
[static]
 

Simply destroys the cached information for this blend path.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
4/5/99
Parameters:
pOp = ptr to the operation to which this action belongs [INPUTS] pNodeBlendPath = ptr to blend path node involved pActionList = ptr to action list to which this action should be added
- [OUTPUTS]
Returns:
ActionCode, one of AC_OK, AC_NO_RECORD or AC_FAIL

Errors: -

See also:
Action::Init()

Definition at line 1090 of file ndbldpth.cpp.

01091 {
01092     ERROR2IF(pOp            == NULL,AC_FAIL,"No undo op ptr given");
01093     ERROR2IF(pActionList    == NULL,AC_FAIL,"No action list given");
01094     ERROR2IF(pNodeBlendPath == NULL,AC_FAIL,"No blend path node given");
01095 
01096     UINT32 ActSize = sizeof(InitNodeBlendPathAction);
01097     InitNodeBlendPathAction* pNewAction;
01098     ActionCode Ac = Action::Init(pOp,pActionList,ActSize,CC_RUNTIME_CLASS(InitNodeBlendPathAction),(Action**)&pNewAction);
01099 
01100     if (Ac != AC_FAIL && pNewAction != NULL)
01101     {
01102         pNewAction->m_pNodeBlendPath = pNodeBlendPath;
01103         pNodeBlendPath->DestroyCachedInformation();
01104     }
01105 
01106     return Ac;
01107 }


Member Data Documentation

NodeBlendPath* InitNodeBlendPathAction::m_pNodeBlendPath [protected]
 

Definition at line 219 of file ndbldpth.h.


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