FourColFillAttribute Class Reference

Specifies a Four colour fill for an object. More...

#include <fillval.h>

Inheritance diagram for FourColFillAttribute:

ThreeColFillAttribute GradFillAttribute ColourFillAttribute FillGeometryAttribute AttributeValue CCObject SimpleCCObject List of all members.

Public Member Functions

 FourColFillAttribute ()
 Default Constuctor for fill attribute values.
virtual INT32 operator== (const FillGeometryAttribute &Attrib)
 A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
virtual NodeAttributeMakeNode ()
 Make a AttrFourColFill node from this graduated fill attribute.
virtual DocColourGetEndColour3 ()
virtual void SetEndColour3 (DocColour *NewCol)
 Sets the third colour of this fill (default to Yellow).
virtual BOOL IsAFourColFill ()
virtual INT32 GetGeometryShape ()

Public Attributes

DocColour EndColour3

Detailed Description

Specifies a Four colour fill for an object.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/08/96
See also:
GradFillAttribute

Definition at line 720 of file fillval.h.


Constructor & Destructor Documentation

FourColFillAttribute::FourColFillAttribute  ) 
 

Default Constuctor for fill attribute values.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/8/96
See also:
AttrFillGeometry::AttrFillGeometry

Definition at line 4027 of file fillval.cpp.

04028 {
04029     AttributeManager::FindDefaultColour(ColourManager::GetCurrentColourList(),
04030                                         _R(IDS_YELLOWNAME), &EndColour3);
04031 }


Member Function Documentation

virtual DocColour* FourColFillAttribute::GetEndColour3  )  [inline, virtual]
 

Reimplemented from FillGeometryAttribute.

Definition at line 730 of file fillval.h.

00730 { return &EndColour3; }

virtual INT32 FourColFillAttribute::GetGeometryShape  )  [inline, virtual]
 

Reimplemented from ThreeColFillAttribute.

Definition at line 734 of file fillval.h.

00734 { return(FILLSHAPE_4POINT); }

virtual BOOL FourColFillAttribute::IsAFourColFill  )  [inline, virtual]
 

Reimplemented from FillGeometryAttribute.

Definition at line 733 of file fillval.h.

00733 { return TRUE; }

NodeAttribute * FourColFillAttribute::MakeNode  )  [virtual]
 

Make a AttrFourColFill node from this graduated fill attribute.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/8/96
Returns:
Pointer to the new node, or NULL if out of memory.

Errors: Out of memory

See also:
AttributeValue::MakeNode

Reimplemented from ThreeColFillAttribute.

Definition at line 4071 of file fillval.cpp.

04072 {
04073     // Create new attribute node
04074     AttrFourColFill *pAttr = new AttrFourColColourFill;
04075     if (pAttr==NULL)
04076         // error message has already been set by new
04077         return NULL;
04078 
04079     // Copy attribute value into the new node.
04080     pAttr->GetAttributeValue()->SimpleCopy(this);
04081 
04082     // Return the new node
04083     return pAttr;
04084 }

INT32 FourColFillAttribute::operator== const FillGeometryAttribute Attrib  )  [virtual]
 

A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/8/96
Parameters:
Attrib - the attribute to compare, which must be an AttrFillGeometry [INPUTS]
Returns:
Usual semantics for equality.

Errors: An ENSURE failure will occur if Attrib does not have a AttrFlatGeometry runtime class.

See also:
NodeAttribute::operator==

Reimplemented from ThreeColFillAttribute.

Definition at line 4050 of file fillval.cpp.

04051 {
04052     FourColFillAttribute* pAttrib = (FourColFillAttribute*) &Attrib;
04053     
04054     return(ThreeColFillAttribute::operator==(Attrib) && (EndColour3 == pAttrib->EndColour3));
04055 }

void FourColFillAttribute::SetEndColour3 DocColour NewCol  )  [virtual]
 

Sets the third colour of this fill (default to Yellow).

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/8/96
Parameters:
- [INPUTS]

Reimplemented from FillGeometryAttribute.

Definition at line 4097 of file fillval.cpp.

04098 {
04099     if (NewCol == NULL)
04100     {
04101         AttributeManager::FindDefaultColour(ColourManager::GetCurrentColourList(),
04102                                             _R(IDS_YELLOWNAME), &EndColour3);
04103     }
04104     else
04105         EndColour3 = *NewCol;
04106 }


Member Data Documentation

DocColour FourColFillAttribute::EndColour3
 

Definition at line 737 of file fillval.h.


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