MultiAppliedAttribute Class Reference

Represents an applied attribute of which there is only one for the objects given by the iterator. More...

#include <attraggl.h>

Inheritance diagram for MultiAppliedAttribute:

AppliedAttribute VisibleListItem UserInterface List of all members.

Public Member Functions

 MultiAppliedAttribute (NodeAttribute &AttrInstance)
 This constructor tries to create a string describing what we have multiple instances of.
virtual BOOL Display (DialogOp &Dialog)
 Would normally display some information about the applied attribute but since this is too complicated we won't bother.
virtual void Hide ()
 Would normally hide the information provided by display, but since we didn't do anything then we won't do anything here either.
virtual StringBaseGetText (StringBase &Description) const
 This text is gonna be stuck in the Used Properties list of the Wizard Properties Dialog (aka TemplateDialog).
virtual AttributeIdentifier GetAttrID () const
virtual BOOL ApplyAttribute (Operation &OpToApplyWith)
virtual VisibleAttributeGetVisibleAttribute ()

Protected Member Functions

const StringBaseGetAttributeDescription () const
 This text is gonna be stuck in the Used Properties list of the Wizard Properties Dialog (aka TemplateDialog).

Private Member Functions

 CC_DECLARE_MEMDUMP (MultiAppliedAttribute)

Private Attributes

String_64 m_AttributeDescription
AttributeIdentifier m_AttrID

Detailed Description

Represents an applied attribute of which there is only one for the objects given by the iterator.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
01/07/97

Definition at line 427 of file attraggl.h.


Constructor & Destructor Documentation

MultiAppliedAttribute::MultiAppliedAttribute NodeAttribute AttrInstance  ) 
 

This constructor tries to create a string describing what we have multiple instances of.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Parameters:
[INPUTS] Notes: If this constructor fails there will be no user interface for the UserAttribute.

Definition at line 1246 of file attraggl.cpp.

01246                                                                         :
01247     m_AttrID(AttrInstance.GetAttributeClassID())
01248 {
01249     // Create a VisibleAttribute from which we can get a description
01250     VisibleAttribute* const pVisibleAttribute = AttrInstance.CreateVisibleAttribute();
01251 
01252     if (pVisibleAttribute != NULL)
01253     {
01254         pVisibleAttribute->GetText(m_AttributeDescription);
01255     }
01256 
01257     delete pVisibleAttribute;
01258 }


Member Function Documentation

virtual BOOL MultiAppliedAttribute::ApplyAttribute Operation OpToApplyWith  )  [inline, virtual]
 

Implements AppliedAttribute.

Definition at line 444 of file attraggl.h.

00444 {   return TRUE;    }   // DON'T DO IT!

MultiAppliedAttribute::CC_DECLARE_MEMDUMP MultiAppliedAttribute   )  [private]
 

BOOL MultiAppliedAttribute::Display DialogOp Dialog  )  [virtual]
 

Would normally display some information about the applied attribute but since this is too complicated we won't bother.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Notes: This function takes a DialopOp as its argument to determine where to put this object. Since this requires an internal knowledge of the DialogOp at the moment it is cast to a TemplateDialog which has the fields all ready. This is likely to change in the future.

Reimplemented from VisibleListItem.

Definition at line 1319 of file attraggl.cpp.

01320 {
01321     return TRUE;
01322 }

const StringBase & MultiAppliedAttribute::GetAttributeDescription  )  const [protected]
 

This text is gonna be stuck in the Used Properties list of the Wizard Properties Dialog (aka TemplateDialog).

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Returns:
Some user visible text describing this MultiAppliedAttribute, like "Various WizOp's"

Definition at line 1276 of file attraggl.cpp.

01277 {
01278     return m_AttributeDescription;
01279 }

virtual AttributeIdentifier MultiAppliedAttribute::GetAttrID  )  const [inline, virtual]
 

Implements AppliedAttribute.

Definition at line 443 of file attraggl.h.

00443 {   return m_AttrID;    }

StringBase & MultiAppliedAttribute::GetText StringBase Description  )  const [virtual]
 

This text is gonna be stuck in the Used Properties list of the Wizard Properties Dialog (aka TemplateDialog).

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Returns:
Some user visible text describing this MultiAppliedAttribute, like "Various WizOp's"

Implements VisibleListItem.

Definition at line 1295 of file attraggl.cpp.

01296 {
01297     Description.MakeMsg(_R(IDS_VARIOUS), &GetAttributeDescription());
01298 
01299     return Description;
01300 }

virtual VisibleAttribute* MultiAppliedAttribute::GetVisibleAttribute  )  [inline, virtual]
 

Implements AppliedAttribute.

Definition at line 445 of file attraggl.h.

00445 {   return NULL;    }

void MultiAppliedAttribute::Hide  )  [virtual]
 

Would normally hide the information provided by display, but since we didn't do anything then we won't do anything here either.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Notes: This function takes a DialopOp as its argument to determine where to put this object. Since this requires an internal knowledge of the DialogOp at the moment it is cast to a TemplateDialog which has the fields all ready. This is likely to change in the future.

Reimplemented from VisibleListItem.

Definition at line 1341 of file attraggl.cpp.

01342 {
01343 }


Member Data Documentation

String_64 MultiAppliedAttribute::m_AttributeDescription [private]
 

Definition at line 451 of file attraggl.h.

AttributeIdentifier MultiAppliedAttribute::m_AttrID [private]
 

Definition at line 452 of file attraggl.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:56:21 2007 for Camelot by  doxygen 1.4.4