#include <isetattr.h>
Inheritance diagram for OverprintLineAttrValue:
Public Member Functions | |
OverprintLineAttrValue () | |
Default Constuctor for OverprintLineAttrValue The Overprint state is set to FALSE. | |
OverprintLineAttrValue (BOOL OverprintIsOn) | |
OverprintLineAttrValue constructor. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the OverprintLineAttrValue attribute for the given render region. | |
virtual void | Restore (RenderRegion *pRegion, BOOL Temp) |
Restores the OverprintLineAttrValue attribute for the given render region. | |
virtual void | SimpleCopy (AttributeValue *pValue) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Make a new attribute node for this type of attr value - see base class. | |
virtual BOOL | IsDifferent (AttributeValue *pAttr) |
Determines if this AttrValue is different from the given one. | |
virtual OverprintLineAttrValue & | operator= (OverprintLineAttrValue &Attrib) |
Assignment operator. | |
virtual INT32 | operator== (const ImagesettingAttrValue &Attrib) |
Comparison operator. | |
BOOL | IsOverprintOn (void) const |
void | SetOverprint (BOOL NewValue) |
Static Public Member Functions | |
static BOOL | Init (void) |
Registers a default attribute of this type with the attribute manager. | |
Protected Attributes | |
BOOL | OverprintOn |
Definition at line 183 of file isetattr.h.
|
Default Constuctor for OverprintLineAttrValue The Overprint state is set to FALSE.
Definition at line 275 of file isetattr.cpp. 00276 { 00277 OverprintOn = FALSE; 00278 }
|
|
OverprintLineAttrValue constructor.
Definition at line 295 of file isetattr.cpp. 00296 { 00297 OverprintOn = OverprintIsOn; 00298 }
|
|
Registers a default attribute of this type with the attribute manager.
Reimplemented from SimpleCCObject. Definition at line 315 of file isetattr.cpp. 00316 { 00317 OverprintLineAttrValue *pAttr = new OverprintLineAttrValue; 00318 if (pAttr == NULL) 00319 return FALSE; 00320 00321 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(OverprintLineAttrValue), 00322 pAttr); 00323 00324 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising OverprintLineAttrValue"); 00325 00326 return(TRUE); 00327 }
|
|
Determines if this AttrValue is different from the given one.
Reimplemented from AttributeValue. Definition at line 451 of file isetattr.cpp. 00452 { 00453 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(OverprintLineAttrValue)), 00454 "Different attribute types in OverprintLineAttrValue::IsDifferent()"); 00455 00456 // Check they are NOT the same using the == operator 00457 return ( !(*((OverprintLineAttrValue *)pAttr) == *this) ); 00458 }
|
|
Definition at line 208 of file isetattr.h. 00208 { return(OverprintOn); };
|
|
Make a new attribute node for this type of attr value - see base class.
Reimplemented from AttributeValue. Definition at line 421 of file isetattr.cpp. 00422 { 00423 // Create new attribute node 00424 AttrOverprintLine *pAttr = new AttrOverprintLine(); 00425 if (pAttr == NULL) 00426 return NULL; 00427 00428 // Copy attribute value into the new node. 00429 pAttr->Value.SimpleCopy(this); 00430 00431 return(pAttr); 00432 }
|
|
Assignment operator.
Definition at line 475 of file isetattr.cpp. 00476 { 00477 OverprintOn = Attrib.OverprintOn; 00478 00479 return(*this); 00480 }
|
|
Comparison operator.
Implements ImagesettingAttrValue. Definition at line 499 of file isetattr.cpp. 00500 { 00501 ERROR3IF(!Attrib.IsKindOf(CC_RUNTIME_CLASS(OverprintLineAttrValue)), 00502 "Other attribute value isn't an OverprintLineAttrValue"); 00503 00504 OverprintLineAttrValue *Other = (OverprintLineAttrValue *) &Attrib; 00505 return(Other->OverprintOn == OverprintOn); 00506 }
|
|
Sets the OverprintLineAttrValue attribute for the given render region.
Implements AttributeValue. Definition at line 348 of file isetattr.cpp. 00349 { 00350 // Stack the current overprint attribute and set ourselves up as the new one 00351 pRegion->SetLineOverprint(this, Temp); 00352 }
|
|
Restores the OverprintLineAttrValue attribute for the given render region.
Implements ImagesettingAttrValue. Definition at line 375 of file isetattr.cpp. 00376 { 00377 pRegion->RestoreLineOverprint(this, Temp); 00378 }
|
|
Definition at line 209 of file isetattr.h. 00209 { OverprintOn = NewValue; };
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 395 of file isetattr.cpp. 00396 { 00397 ERROR3IF(!IS_A(pValue, OverprintLineAttrValue), 00398 "Invalid Attribute value passed to OverprintLineAttrValue::SimpleCopy"); 00399 00400 // Just uses the assignment operator 00401 *this = *((OverprintLineAttrValue *) pValue); 00402 }
|
|
Definition at line 209 of file isetattr.h. |