#include <ngscan.h>
Inheritance diagram for HideSingleScan:
Public Member Functions | |
HideSingleScan (UndoableOperation *pOp, Source *ps, const StringBase &strName) | |
Protected Member Functions | |
virtual BOOL | Do (Node *) |
Excludes the given node from a specified set if it's a member. | |
Protected Attributes | |
const StringBase & | m_strName |
SGUsedNames * | m_pUsedNames |
Definition at line 380 of file ngscan.h.
|
|
|
Excludes the given node from a specified set if it's a member.
Reimplemented from HideScan. Definition at line 1196 of file ngscan.cpp. 01197 { 01198 // If the node is a member of the set then hide it's attribute. 01199 if (m_pUsedNames->IsMember(pNode, m_strName)) 01200 { 01201 // Find the exact Wix attribute that makes the node a member of the set. 01202 TemplateAttribute* pAttr; 01203 for (pAttr = (TemplateAttribute*) pNode->FindFirstAttr( &Node::IsAnObjectName ); 01204 pAttr != 0; 01205 pAttr = (TemplateAttribute*) pAttr->FindNextAttr( &Node::IsAnObjectName )) 01206 if (pAttr->GetParam() == m_strName) break; 01207 01208 // Try to hide the attribute. 01209 ERROR3IF(pAttr == 0, "HideSingleScan::Do: can't find TemplateAttribute"); 01210 if (!m_pOp->DoHideNode(pAttr, TRUE, 0, TRUE)) return FALSE; 01211 } 01212 01213 // Continue scanning items. 01214 return TRUE; 01215 }
|
|
|
|
|