HideScan::HideItems Class Reference

#include <ngscan.h>

Inheritance diagram for HideScan::HideItems:

NameIterOp NameItemIter HidePropScan::HideProp List of all members.

Public Member Functions

 HideItems (Node *pNode, UndoableOperation *pOp)
 Excludes the given node from any highlighted sets in the Name Gallery.

Private Member Functions

virtual BOOL Do (SGNameItem *)
 Hides Wix ObjectName attributes that are applied to nodes within the given set item.

Detailed Description

Definition at line 345 of file ngscan.h.


Constructor & Destructor Documentation

HideScan::HideItems::HideItems Node pNode,
UndoableOperation pOp
 

Excludes the given node from any highlighted sets in the Name Gallery.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
Parameters:
pNode --- the node to test for membership of a highlighted set [INPUTS] and if necessary exclude it from the set pOp -- the Operation context in which to manipulate the attrs.
See also:
OpDeleteNames

Definition at line 1027 of file ngscan.cpp.

01028   : NameIterOp(pNode, pOp)
01029 {
01030     // Empty.
01031 }


Member Function Documentation

BOOL HideScan::HideItems::Do SGNameItem pItem  )  [private, virtual]
 

Hides Wix ObjectName attributes that are applied to nodes within the given set item.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
Parameters:
pItem --- the set item to test membership of [INPUTS]
See also:
OpDeleteNames

Implements NameItemIter.

Reimplemented in HidePropScan::HideProp.

Definition at line 1046 of file ngscan.cpp.

01047 {
01048     // If the node is a member of the item's set then exclude it from the set.
01049     if (pItem->IsMember(m_pNode))
01050     {
01051         // Find the exact Wix attribute that makes the node a member of pItem's set.
01052         TemplateAttribute* pAttr;
01053         for (pAttr = (TemplateAttribute*) m_pNode->FindFirstAttr( &Node::IsAnObjectName );
01054              pAttr != 0;
01055              pAttr = (TemplateAttribute*) pAttr->FindNextAttr( &Node::IsAnObjectName ))
01056                 if (pItem->IsEqual(pAttr->GetParam())) break;
01057 
01058         // Try to hide the attribute.
01059         ERROR3IF(pAttr == 0, "HideScan::HideItems::Do: can't find TemplateAttribute");
01060         if (!m_pOp->DoHideNode(pAttr, TRUE, 0, TRUE)) return FALSE;
01061     }
01062 
01063     // Continue scanning items.
01064     return TRUE;
01065 }


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