#include <lineattr.h>
Inheritance diagram for AttrStrokeColourChange:
Public Member Functions | |
AttrStrokeColourChange (BOOL bLineWidth=FALSE) | |
virtual AttributeValue * | GetAttributeValue () |
virtual CCRuntimeClass * | GetAttributeType () |
Determines the scope of the value change. | |
virtual AttrFillGeometry * | MutateFill (AttrFillGeometry *FillToMutate) |
Changes the stroke colour in some way. | |
virtual NodeAttribute * | GetOtherAttrToApply (BOOL *IsMutate) |
Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute to apply. | |
virtual UINT32 | GetAttrNameID (void) |
Returns a string resource ID describing the attribute. | |
virtual BOOL | EffectsParentBounds () |
Indicates that the stroke colour can effect the bounds of the object it is applied to (as it determines whether the path is stroked or not). | |
Protected Attributes | |
StrokeColourAttribute | Value |
Private Attributes | |
BOOL | m_bLineWidth |
Definition at line 327 of file lineattr.h.
|
Definition at line 334 of file lineattr.h. 00334 : AttrValueChange() { m_bLineWidth = bLineWidth;}
|
|
Indicates that the stroke colour can effect the bounds of the object it is applied to (as it determines whether the path is stroked or not).
Reimplemented from NodeAttribute. Definition at line 1144 of file lineattr.cpp. 01145 { 01146 return TRUE; 01147 }
|
|
Determines the scope of the value change.
Reimplemented from AttrValueChange. Definition at line 337 of file lineattr.h. 00337 { return CC_RUNTIME_CLASS(AttrStrokeColour); }
|
|
Implements AttrValueChange. Definition at line 336 of file lineattr.h. 00336 { return &Value; }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from AttrValueChange. Definition at line 1100 of file lineattr.cpp. 01101 { 01102 // if it's called in the line width combo-box then we return "line width" 01103 // rather than "line colour" 01104 if (m_bLineWidth) 01105 return (_R(IDS_LINE_WIDTH)); 01106 01107 return (_R(IDS_STROKECOLOUR_CHANGE)); 01108 }
|
|
Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute to apply.
Reimplemented from NodeAttribute. Definition at line 1061 of file lineattr.cpp. 01062 { 01063 return NULL; 01064 01065 /* ERROR3IF(IsMutate == NULL, "NULL flag pointer passed to GetOtherAttrToApply"); 01066 01067 // A stroke colour change also needs to set the Stroke Transparency 01068 01069 NodeAttribute* OtherAttr = new AttrStrokeTranspChange; 01070 if (OtherAttr == NULL) 01071 return NULL; 01072 01073 UINT32 Transp; 01074 01075 DocColour Col = *GetStartColour(); 01076 01077 if (Col.IsTransparent()) 01078 Transp = 255; 01079 else 01080 Transp = 0; 01081 01082 ((AttrStrokeTranspChange *)OtherAttr)->SetStartTransp(&Transp); 01083 01084 *IsMutate = TRUE; 01085 01086 return OtherAttr; */ 01087 }
|
|
Changes the stroke colour in some way.
Reimplemented from AttrValueChange. Definition at line 1036 of file lineattr.cpp. 01037 { 01038 // Make a copy of this Fill and change the copys' control point colours 01039 AttrFillGeometry* NewFill = (AttrFillGeometry*)FillToMutate->SimpleCopy(); 01040 if (NewFill == NULL) 01041 return NULL; 01042 01043 NewFill->SetStartColour(GetStartColour()); 01044 01045 return NewFill; 01046 }
|
|
Definition at line 358 of file lineattr.h. |
|
Definition at line 350 of file lineattr.h. |