SGUsedNames Class Reference

NameGallery groups and items to manage the various types of attribute sets. More...

#include <ngitem.h>

Inheritance diagram for SGUsedNames:

SGNameGroup SGDisplayGroup SGDisplayGroup SGDisplayNode SGDisplayNode CCObject CCObject SimpleCCObject SimpleCCObject List of all members.

Public Member Functions

 SGUsedNames ()
virtual BOOL IsMember (Node *, const StringBase &) const
virtual BOOL CreateItems (Node *)
 Create 'Used Names' set items for the node, as appropriate.

Detailed Description

NameGallery groups and items to manage the various types of attribute sets.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/6/99
See also:
NameGallery; SGNameGroup; SGNameItem

Definition at line 288 of file ngitem.h.


Constructor & Destructor Documentation

SGUsedNames::SGUsedNames  )  [inline]
 

Definition at line 291 of file ngitem.h.

00292       : SGNameGroup(_R(IDS_NAMEGAL_NAMES_TYPE), _R(IDS_NAMEGAL_NAMES_TITLE))
00293             { /* empty */ }


Member Function Documentation

BOOL SGUsedNames::CreateItems Node pNode  )  [virtual]
 

Create 'Used Names' set items for the node, as appropriate.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/6/99
Parameters:
pNode --- the node to test/register for membership [INPUTS]
Returns:
FALSE for an error, eg. out of memory.
See also:
SGNameGroup::RegisterMember; SGUsedNames::IsMember; CreateDisplayScan::CreateItems::Do

Implements SGNameGroup.

Definition at line 1158 of file ngitem.cpp.

01159 {
01160     TemplateAttribute* pAttr;
01161     for (pAttr = (TemplateAttribute*) pNode->FindFirstAttr( &Node::IsAnObjectName );
01162          pAttr != 0;
01163          pAttr = (TemplateAttribute*) pAttr->FindNextAttr( &Node::IsAnObjectName ) )
01164             if (RegisterMember(pNode, pAttr->GetParam()) == 0)
01165                 return FALSE;
01166 
01167     return TRUE;
01168 }

BOOL SGUsedNames::IsMember Node pNode,
const StringBase strName
const [virtual]
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/6/99
Parameters:
pNode --- the node to test for membership [INPUTS] strName --- the set value (name) to test for equality
Returns:
TRUE if the given node is a member of a set within this group.
See also:
SGNameGroup::RegisterMember; SGNameItem::IsMember; CreateDisplayScan::CreateItems::Do

Implements SGNameGroup.

Definition at line 1132 of file ngitem.cpp.

01133 {
01134     TemplateAttribute* pAttr;
01135     for (pAttr = (TemplateAttribute*) pNode->FindFirstAttr( &Node::IsAnObjectName );
01136          pAttr != 0;
01137          pAttr = (TemplateAttribute*) pAttr->FindNextAttr( &Node::IsAnObjectName ) )
01138             if (strName == pAttr->GetParam())
01139                 return TRUE;
01140 
01141     return FALSE;
01142 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:01:13 2007 for Camelot by  doxygen 1.4.4