#include <ngscan.h>
Inheritance diagram for HidePropScan::HideProp:
Public Member Functions | |
HideProp (Node *pNode, UndoableOperation *pOp) | |
Excludes the given node from any highlighted sets in the Name Gallery. | |
Private Member Functions | |
virtual BOOL | Do (SGNameItem *) |
Hides set properties for all given item in the Attribute gallery. |
Definition at line 366 of file ngscan.h.
|
Excludes the given node from any highlighted sets in the Name Gallery.
Definition at line 1119 of file ngscan.cpp. 01120 : HideScan::HideItems(pNode, pOp) 01121 { 01122 ERROR3IF(pNode == 0 || !pNode->IS_KIND_OF(NodeSetSentinel), 01123 "HidePropScan::HideProp::HideProp: not a NodeSetSentinel"); 01124 }
|
|
Hides set properties for all given item in the Attribute gallery.
Reimplemented from HideScan::HideItems. Definition at line 1138 of file ngscan.cpp. 01139 { 01140 // If the node is a member of the item's set then hide its associated property node. 01141 if (pItem->IsMember(m_pNode)) 01142 { 01143 // Find the property. 01144 String_256 strName; 01145 pItem->GetNameText(&strName); 01146 NodeSetProperty* pPropNode = 01147 Document::GetSelected()->GetSetSentinel()->FindPropertyNode(strName); 01148 01149 // Try to hide the attribute. 01150 //ERROR3IF(pPropNode == 0, "HidePropScan::HideProp::Do: can't find NodeSetProperty"); 01151 if (!pPropNode) return TRUE; // trying to delete something that isn't there! Surely we have already succeeded! 01152 if (!m_pOp->DoHideNode(pPropNode, TRUE, 0, TRUE)) return FALSE; 01153 } 01154 01155 // Continue scanning items. 01156 return TRUE; 01157 }
|