#include <ngscan.h>
Inheritance diagram for HideScan::HideItems:
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. |
Definition at line 345 of file ngscan.h.
|
Excludes the given node from any highlighted sets in the Name Gallery.
Definition at line 1027 of file ngscan.cpp. 01028 : NameIterOp(pNode, pOp) 01029 { 01030 // Empty. 01031 }
|
|
Hides Wix ObjectName attributes that are applied to nodes within the given set item.
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 }
|