#include <ngscan.h>
Inheritance diagram for AllowOpScan:
Public Member Functions | |
AllowOpScan (UndoableOperation *pOp, Source *ps) | |
virtual BOOL | Update () |
Defines the ObjChangeParam as FINISHED and calls UpdateChangedNodes. | |
Protected Member Functions | |
virtual BOOL | Do (Node *) |
Tests if the given node is a member of a set that the user has highlighted in the Name Gallery and if so, calls AllowOp on it. | |
Static Protected Attributes | |
static ObjChangeParam | m_OCP |
Classes | |
class | IsLitUsedName |
Definition at line 233 of file ngscan.h.
|
|
|
Tests if the given node is a member of a set that the user has highlighted in the Name Gallery and if so, calls AllowOp on it.
Implements NodeScan. Reimplemented in AllowOpSingleScan. Definition at line 531 of file ngscan.cpp. 00532 { 00533 // If the node is a highlighted member of a "used names" set then call it's AllowOp 00534 // function and stop the iteration if it refuses the op. If it isn't a member then 00535 // ignore it. 00536 return IsLitUsedName(pNode).ForEach() == 0 || pNode->AllowOp(&m_OCP); 00537 }
|
|
Defines the ObjChangeParam as FINISHED and calls UpdateChangedNodes.
Definition at line 553 of file ngscan.cpp. 00554 { 00555 // Update all parents of changed nodes. 00556 m_OCP.Define(OBJCHANGE_FINISHED, ObjChangeFlags(FALSE, FALSE, FALSE, TRUE), 0, m_pOp); 00557 return m_pOp->UpdateChangedNodes(&m_OCP); 00558 00559 }
|
|
|