OverprintFillAttrValue Class Reference

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

#include <isetattr.h>

Inheritance diagram for OverprintFillAttrValue:

ImagesettingAttrValue AttributeValue CCObject SimpleCCObject List of all members.

Public Member Functions

 OverprintFillAttrValue ()
 Default Constuctor for OverprintFillAttrValue The Overprint state is set to FALSE.
 OverprintFillAttrValue (BOOL OverprintIsOn)
 OverprintFillAttrValue constructor.
virtual void Render (RenderRegion *pRegion, BOOL Temp=FALSE)
 Sets the OverprintFillAttrValue attribute for the given render region.
virtual void Restore (RenderRegion *pRegion, BOOL Temp)
 Restores the OverprintFillAttrValue 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 OverprintFillAttrValueoperator= (OverprintFillAttrValue &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-Fill is enabled or disabled.

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

Definition at line 281 of file isetattr.h.


Constructor & Destructor Documentation

OverprintFillAttrValue::OverprintFillAttrValue  ) 
 

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

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

Definition at line 782 of file isetattr.cpp.

00783 {
00784     OverprintOn = FALSE;
00785 } 

OverprintFillAttrValue::OverprintFillAttrValue BOOL  OverprintIsOn  ) 
 

OverprintFillAttrValue constructor.

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

Definition at line 802 of file isetattr.cpp.

00803 { 
00804     OverprintOn = OverprintIsOn;
00805 }


Member Function Documentation

BOOL OverprintFillAttrValue::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 822 of file isetattr.cpp.

00823 {
00824     OverprintFillAttrValue *pAttr = new OverprintFillAttrValue;
00825     if (pAttr == NULL)
00826         return FALSE;
00827 
00828     UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(OverprintFillAttrValue),
00829                                                             pAttr);
00830 
00831     ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising OverprintFillAttrValue");
00832 
00833     return(TRUE);
00834 }

BOOL OverprintFillAttrValue::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 958 of file isetattr.cpp.

00959 {
00960     ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(OverprintFillAttrValue)),
00961                 "Different attribute types in OverprintFillAttrValue::IsDifferent()");
00962 
00963     // Check they are NOT the same using the == operator
00964     return ( !(*((OverprintFillAttrValue *)pAttr) == *this) );
00965 }

BOOL OverprintFillAttrValue::IsOverprintOn void   )  const [inline]
 

Definition at line 306 of file isetattr.h.

00306 { return(OverprintOn); };

NodeAttribute * OverprintFillAttrValue::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 928 of file isetattr.cpp.

00929 {
00930     // Create new attribute node
00931     AttrOverprintFill *pAttr = new AttrOverprintFill();
00932     if (pAttr == NULL)
00933         return NULL;
00934 
00935     // Copy attribute value into the new node.
00936     pAttr->Value.SimpleCopy(this);
00937 
00938     return(pAttr);
00939 }

OverprintFillAttrValue & OverprintFillAttrValue::operator= OverprintFillAttrValue 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 982 of file isetattr.cpp.

00983 {
00984     OverprintOn = Attrib.OverprintOn;
00985 
00986     return(*this);
00987 }

INT32 OverprintFillAttrValue::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 1006 of file isetattr.cpp.

01007 {
01008     ERROR3IF(!Attrib.IsKindOf(CC_RUNTIME_CLASS(OverprintFillAttrValue)),
01009                 "Other attribute value isn't an OverprintFillAttrValue");
01010 
01011     OverprintFillAttrValue *Other = (OverprintFillAttrValue *) &Attrib;
01012     return(Other->OverprintOn == OverprintOn);
01013 }

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

Sets the OverprintFillAttrValue 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 855 of file isetattr.cpp.

00856 {
00857     // Stack the current overprint attribute and set ourselves up as the new one
00858     pRegion->SetFillOverprint(this, Temp);
00859 }

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

Restores the OverprintFillAttrValue 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 882 of file isetattr.cpp.

00883 {
00884     pRegion->RestoreFillOverprint(this, Temp);
00885 }

void OverprintFillAttrValue::SetOverprint BOOL  NewValue  )  [inline]
 

Definition at line 307 of file isetattr.h.

00307 { OverprintOn = NewValue; };

void OverprintFillAttrValue::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 902 of file isetattr.cpp.

00903 {
00904     ERROR3IF(!IS_A(pValue, OverprintFillAttrValue),
00905                 "Invalid Attribute value passed to OverprintFillAttrValue::SimpleCopy");
00906 
00907     // Just uses the assignment operator
00908     *this = *((OverprintFillAttrValue *) pValue);
00909 }


Member Data Documentation

BOOL OverprintFillAttrValue::OverprintOn [protected]
 

Definition at line 307 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