#include <fillattr2.h>
Inheritance diagram for AttrTranspTypeChange:
Public Member Functions | |
AttrTranspTypeChange () | |
virtual UINT32 | GetAttrNameID (void) |
Returns a string resource ID describing the attribute. | |
virtual AttrFillGeometry * | MutateFill (AttrFillGeometry *FillToMutate) |
Changes the transparency type of a fill. | |
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. |
Definition at line 401 of file fillattr2.h.
|
Definition at line 406 of file fillattr2.h. 00406 : AttrTranspChange() { }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from AttrTranspChange. Definition at line 4501 of file fillattr.cpp. 04502 { 04503 return (_R(IDS_TRANSPTYPE_CHANGE)); 04504 }
|
|
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 AttrTranspChange. Definition at line 4323 of file fillattr.cpp. 04324 { 04325 #if !defined(EXCLUDE_FROM_RALPH) 04326 ERROR3IF(IsMutate == NULL, "NULL flag pointer passed to GetOtherAttrToApply"); 04327 04328 // A transparency type change also needs to set the Stroke Transparency type 04329 04330 NodeAttribute* OtherAttr = new AttrStrokeTranspTypeChange; 04331 if (OtherAttr == NULL) 04332 return NULL; 04333 04334 UINT32 TranspType = GetTranspType(); 04335 04336 ((AttrStrokeTranspTypeChange *)OtherAttr)->SetTranspType(TranspType); 04337 04338 *IsMutate = TRUE; 04339 04340 return OtherAttr; 04341 #else 04342 return NULL; 04343 #endif 04344 }
|
|
Changes the transparency type of a fill.
Reimplemented from AttrTranspChange. Definition at line 4265 of file fillattr.cpp. 04266 { 04267 #if !defined(EXCLUDE_FROM_RALPH) 04268 // Make a copy of this Fill to change 04269 AttrFillGeometry* NewFill = (AttrFillGeometry*)FillToMutate->SimpleCopy(); 04270 if (NewFill == NULL) 04271 return NULL; 04272 04273 NewFill->SetTranspType(GetTranspType()); 04274 04275 return NewFill; 04276 #else 04277 return NULL; 04278 #endif 04279 }
|