CommonAppliedAttribute 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 CommonAppliedAttribute:

AppliedAttribute VisibleListItem UserInterface List of all members.

Public Member Functions

 CommonAppliedAttribute (NodeAttribute &AttrInstance)
 This constructor tries to create a UserInterface in the form of a VisibleUserAttribute so the user can alter the attributes' contents.
virtual ~CommonAppliedAttribute ()
 CommonAppliedAttribute (const CommonAppliedAttribute &Other)
virtual BOOL Display (DialogOp &Dialog)
 Displays some information about the applied attribute.
virtual void Hide ()
 Hides the information provided by Display().
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)
 Applies the attribute using the given op (slight bodge here).
virtual VisibleAttributeGetVisibleAttribute ()

Private Member Functions

 CC_DECLARE_MEMDUMP (CommonAppliedAttribute)

Private Attributes

VisibleAttributem_pVisibleAttribute
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 385 of file attraggl.h.


Constructor & Destructor Documentation

CommonAppliedAttribute::CommonAppliedAttribute NodeAttribute AttrInstance  ) 
 

This constructor tries to create a UserInterface in the form of a VisibleUserAttribute so the user can alter the attributes' contents.

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

Definition at line 1094 of file attraggl.cpp.

01094                                                                           :
01095     m_AttrID(AttrInstance.GetAttributeClassID())
01096 {
01097     m_pVisibleAttribute = AttrInstance.CreateVisibleAttribute();
01098 }

CommonAppliedAttribute::~CommonAppliedAttribute  )  [virtual]
 

Definition at line 1100 of file attraggl.cpp.

01101 {
01102     delete m_pVisibleAttribute;
01103     m_pVisibleAttribute = NULL;
01104 }

CommonAppliedAttribute::CommonAppliedAttribute const CommonAppliedAttribute Other  )  [inline]
 

Definition at line 393 of file attraggl.h.

00393                                                                 : m_AttrID(NullString)
00394         { TRACE( wxT("CommonAppliedAttribute copy constructor not implemented\n") ); }


Member Function Documentation

BOOL CommonAppliedAttribute::ApplyAttribute Operation OpToApplyWith  )  [virtual]
 

Applies the attribute using the given op (slight bodge here).

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Parameters:
OpToApplyWith,: the op to use to apply the attribute [INPUTS]
Returns:
TRUE always cos it can't fail
Notes: Applying a CommonAttribute does nothing

Implements AppliedAttribute.

Definition at line 1216 of file attraggl.cpp.

01217 {
01218     return TRUE;
01219 }

CommonAppliedAttribute::CC_DECLARE_MEMDUMP CommonAppliedAttribute   )  [private]
 

BOOL CommonAppliedAttribute::Display DialogOp Dialog  )  [virtual]
 

Displays some information about the applied attribute.

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 1154 of file attraggl.cpp.

01155 {
01156     BOOL Ok = TRUE;
01157 
01158     if (m_pVisibleAttribute != NULL)
01159     {
01160         m_pVisibleAttribute->Display(Dialog);
01161     }
01162     else
01163     {
01164         TRACE(_T("CommonAppliedAttribute::Display() : NULL Members"));
01165         Ok = FALSE;
01166     }
01167 
01168     return Ok;
01169 }

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

Implements AppliedAttribute.

Definition at line 405 of file attraggl.h.

00405 {   return m_AttrID;    }

StringBase & CommonAppliedAttribute::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 CommonAppliedAttribute, something like "Duplicate WizOp's"

Implements VisibleListItem.

Definition at line 1121 of file attraggl.cpp.

01122 {
01123     if (m_pVisibleAttribute != NULL)
01124     {
01125         String_64 AttrDescription;
01126         m_pVisibleAttribute->GetText(AttrDescription);
01127         Description.MakeMsg(_R(IDS_DUPLICATE), &AttrDescription);
01128     }
01129     else
01130     {
01131         String_64 AttrDescription(_R(IDS_ERRORS_UNKNOWN));
01132         Description.MakeMsg(_R(IDS_DUPLICATE), &AttrDescription);
01133     }
01134 
01135     return Description;
01136 }

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

Implements AppliedAttribute.

Definition at line 407 of file attraggl.h.

00407 {   return m_pVisibleAttribute; }

void CommonAppliedAttribute::Hide  )  [virtual]
 

Hides the information provided by Display().

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 1187 of file attraggl.cpp.

01188 {
01189     if (m_pVisibleAttribute != NULL)
01190     {
01191         m_pVisibleAttribute->Hide();
01192     }
01193     else
01194     {
01195         TRACE(_T("CommonAppliedAttribute::Hide() : NULL Members"));
01196     }
01197 }


Member Data Documentation

AttributeIdentifier CommonAppliedAttribute::m_AttrID [private]
 

Definition at line 412 of file attraggl.h.

VisibleAttribute* CommonAppliedAttribute::m_pVisibleAttribute [private]
 

Definition at line 411 of file attraggl.h.


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