HideSingleScan Class Reference

#include <ngscan.h>

Inheritance diagram for HideSingleScan:

HideScan UndoableNodeScan NodeScan List of all members.

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 StringBasem_strName
SGUsedNamesm_pUsedNames

Detailed Description

Definition at line 380 of file ngscan.h.


Constructor & Destructor Documentation

HideSingleScan::HideSingleScan UndoableOperation pOp,
Source *  ps,
const StringBase strName
 


Member Function Documentation

BOOL HideSingleScan::Do Node pNode  )  [protected, virtual]
 

Excludes the given node from a specified set if it's a member.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
Parameters:
pNode --- the node to consider hiding. [INPUTS]
See also:
HideSingleScan::HideSingleScan; SGUsedNames::IsMember

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 }


Member Data Documentation

SGUsedNames* HideSingleScan::m_pUsedNames [protected]
 

Definition at line 388 of file ngscan.h.

const StringBase& HideSingleScan::m_strName [protected]
 

Definition at line 387 of file ngscan.h.


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