HidePropScan::HideProp Class Reference

#include <ngscan.h>

Inheritance diagram for HidePropScan::HideProp:

HideScan::HideItems NameIterOp NameItemIter List of all members.

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.

Detailed Description

Definition at line 366 of file ngscan.h.


Constructor & Destructor Documentation

HidePropScan::HideProp::HideProp 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 document's NodeSetSentinel. [INPUTS] pOp -- the Operation context in which to manipulate the attrs.
See also:
OpDeleteNames

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 }


Member Function Documentation

BOOL HidePropScan::HideProp::Do SGNameItem pItem  )  [private, virtual]
 

Hides set properties for all given item in the Attribute gallery.

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

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 }


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