OverprintLineAttrValue Class Reference

Attribute value indicating if overprint-line is enabled or disabled. More...

#include <isetattr.h>

Inheritance diagram for OverprintLineAttrValue:

ImagesettingAttrValue AttributeValue CCObject SimpleCCObject List of all members.

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 NodeAttributeMakeNode ()
 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 OverprintLineAttrValueoperator= (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

Detailed Description

Attribute value indicating if overprint-line is enabled or disabled.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96

Definition at line 183 of file isetattr.h.


Constructor & Destructor Documentation

OverprintLineAttrValue::OverprintLineAttrValue  ) 
 

Default Constuctor for OverprintLineAttrValue The Overprint state is set to FALSE.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96

Definition at line 275 of file isetattr.cpp.

00276 {
00277     OverprintOn = FALSE;
00278 } 

OverprintLineAttrValue::OverprintLineAttrValue BOOL  OverprintIsOn  ) 
 

OverprintLineAttrValue constructor.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
OverprintIsOn - Initial state of line overprint for this attribute [INPUTS]

Definition at line 295 of file isetattr.cpp.

00296 { 
00297     OverprintOn = OverprintIsOn;
00298 }


Member Function Documentation

BOOL OverprintLineAttrValue::Init void   )  [static]
 

Registers a default attribute of this type with the attribute manager.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Returns:
TRUE if it initilised successfully

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 }

BOOL OverprintLineAttrValue::IsDifferent AttributeValue pAttr  )  [virtual]
 

Determines if this AttrValue is different from the given one.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Returns:
Errors: ERROR3 if the two attributes are not of the same type
See also:
AttributeValue::IsDifferent

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 }

BOOL OverprintLineAttrValue::IsOverprintOn void   )  const [inline]
 

Definition at line 208 of file isetattr.h.

00208 { return(OverprintOn); };

NodeAttribute * OverprintLineAttrValue::MakeNode  )  [virtual]
 

Make a new attribute node for this type of attr value - see base class.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Returns:
Pointer to the new node, or NULL if out of memory.
See also:
AttributeValue::MakeNode

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 }

OverprintLineAttrValue & OverprintLineAttrValue::operator= OverprintLineAttrValue Attrib  )  [virtual]
 

Assignment operator.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
Attrib - the attribute to copy [INPUTS]

Definition at line 475 of file isetattr.cpp.

00476 {
00477     OverprintOn = Attrib.OverprintOn;
00478 
00479     return(*this);
00480 }

INT32 OverprintLineAttrValue::operator== const ImagesettingAttrValue Attrib  )  [virtual]
 

Comparison operator.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
Attrib - the attribute to compare this attribute with [INPUTS]
Returns:
TRUE if the attributes are considered equal

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 }

void OverprintLineAttrValue::Render RenderRegion pRegion,
BOOL  Temp = FALSE
[virtual]
 

Sets the OverprintLineAttrValue attribute for the given render region.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
pRegion - the render region to render this attribute into. [INPUTS]
Notes: This attribute is so simple that its state can be read directly off the render region's stack. Thus, there is minimal special render region support for this attribute - we just stack and unstack it directly here.

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 }

void OverprintLineAttrValue::Restore RenderRegion pRegion,
BOOL  Temp
[virtual]
 

Restores the OverprintLineAttrValue attribute for the given render region.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
pRegion - the render region to restore the attribute into. [INPUTS] Temp - TRUE if this is a temporary attribute, FALSE if it is permanent (e.g. it's in a document tree).
Notes: This attribute is so simple that its state can be read directly off the render region's stack. Thus, there is minimal special render region support for this attribute - we just stack and unstack it directly here.

Implements ImagesettingAttrValue.

Definition at line 375 of file isetattr.cpp.

00376 {
00377     pRegion->RestoreLineOverprint(this, Temp);
00378 }

void OverprintLineAttrValue::SetOverprint BOOL  NewValue  )  [inline]
 

Definition at line 209 of file isetattr.h.

00209 { OverprintOn = NewValue; };

void OverprintLineAttrValue::SimpleCopy AttributeValue pValue  )  [virtual]
 

See AttributeValue::SimpleCopy.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
pValue - pointer to the AttributeValue to copy [INPUTS]

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 }


Member Data Documentation

BOOL OverprintLineAttrValue::OverprintOn [protected]
 

Definition at line 209 of file isetattr.h.


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