PrintOnAllPlatesAttrValue Class Reference

Attribute value indicating if "print on all plates" is enabled or disabled. More...

#include <isetattr.h>

Inheritance diagram for PrintOnAllPlatesAttrValue:

ImagesettingAttrValue AttributeValue CCObject SimpleCCObject List of all members.

Public Member Functions

 PrintOnAllPlatesAttrValue ()
 Default Constuctor for PrintOnAllPlatesAttrValue The "Print On All Plates" state is set to FALSE.
 PrintOnAllPlatesAttrValue (BOOL PrintOnAllPlatesIsOn)
 PrintOnAllPlatesAttrValue constructor.
virtual void Render (RenderRegion *pRegion, BOOL Temp=FALSE)
 Sets the PrintOnAllPlatesAttrValue attribute for the given render region.
virtual void Restore (RenderRegion *pRegion, BOOL Temp)
 Restores the PrintOnAllPlatesAttrValue 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 PrintOnAllPlatesAttrValueoperator= (PrintOnAllPlatesAttrValue &Attrib)
 Assignment operator.
virtual INT32 operator== (const ImagesettingAttrValue &Attrib)
 Comparison operator.
BOOL IsPrintOnAllPlatesOn (void) const
void SetPrintOnAllPlates (BOOL NewValue)

Static Public Member Functions

static BOOL Init (void)
 Registers a default attribute of this type with the attribute manager.

Protected Attributes

BOOL PrintOnAllPlates

Detailed Description

Attribute value indicating if "print on all plates" is enabled or disabled.

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

Definition at line 381 of file isetattr.h.


Constructor & Destructor Documentation

PrintOnAllPlatesAttrValue::PrintOnAllPlatesAttrValue  ) 
 

Default Constuctor for PrintOnAllPlatesAttrValue The "Print On All Plates" state is set to FALSE.

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

Definition at line 1289 of file isetattr.cpp.

01290 {
01291     PrintOnAllPlates = FALSE;
01292 } 

PrintOnAllPlatesAttrValue::PrintOnAllPlatesAttrValue BOOL  PrintOnAllPlatesIsOn  ) 
 

PrintOnAllPlatesAttrValue constructor.

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

Definition at line 1309 of file isetattr.cpp.

01310 { 
01311     PrintOnAllPlates = PrintOnAllPlatesIsOn;
01312 }


Member Function Documentation

BOOL PrintOnAllPlatesAttrValue::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 1329 of file isetattr.cpp.

01330 {
01331     PrintOnAllPlatesAttrValue *pAttr = new PrintOnAllPlatesAttrValue;
01332     if (pAttr == NULL)
01333         return FALSE;
01334 
01335     UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(PrintOnAllPlatesAttrValue),
01336                                                             pAttr);
01337 
01338     ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising PrintOnAllPlatesAttrValue");
01339 
01340     return(TRUE);
01341 }

BOOL PrintOnAllPlatesAttrValue::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 1465 of file isetattr.cpp.

01466 {
01467     ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(PrintOnAllPlatesAttrValue)),
01468                 "Different attribute types in PrintOnAllPlatesAttrValue::IsDifferent()");
01469 
01470     // Check they are NOT the same using the == operator
01471     return ( !(*((PrintOnAllPlatesAttrValue *)pAttr) == *this) );
01472 }

BOOL PrintOnAllPlatesAttrValue::IsPrintOnAllPlatesOn void   )  const [inline]
 

Definition at line 406 of file isetattr.h.

00406 { return(PrintOnAllPlates); };

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

01436 {
01437     // Create new attribute node
01438     AttrPrintOnAllPlates *pAttr = new AttrPrintOnAllPlates();
01439     if (pAttr == NULL)
01440         return NULL;
01441 
01442     // Copy attribute value into the new node.
01443     pAttr->Value.SimpleCopy(this);
01444 
01445     return(pAttr);
01446 }

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

01490 {
01491     PrintOnAllPlates = Attrib.PrintOnAllPlates;
01492 
01493     return(*this);
01494 }

INT32 PrintOnAllPlatesAttrValue::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 1513 of file isetattr.cpp.

01514 {
01515     ERROR3IF(!Attrib.IsKindOf(CC_RUNTIME_CLASS(PrintOnAllPlatesAttrValue)),
01516                 "Other attribute value isn't an PrintOnAllPlatesAttrValue");
01517 
01518     PrintOnAllPlatesAttrValue *Other = (PrintOnAllPlatesAttrValue *) &Attrib;
01519     return(Other->PrintOnAllPlates == PrintOnAllPlates);
01520 }

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

Sets the PrintOnAllPlatesAttrValue 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 1362 of file isetattr.cpp.

01363 {
01364     // Stack the current overprint attribute and set ourselves up as the new one
01365     pRegion->SetPrintOnAllPlates(this, Temp);
01366 }

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

Restores the PrintOnAllPlatesAttrValue 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 1389 of file isetattr.cpp.

01390 {
01391     pRegion->RestorePrintOnAllPlates(this, Temp);
01392 }

void PrintOnAllPlatesAttrValue::SetPrintOnAllPlates BOOL  NewValue  )  [inline]
 

Definition at line 407 of file isetattr.h.

00407 { PrintOnAllPlates = NewValue; };

void PrintOnAllPlatesAttrValue::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 1409 of file isetattr.cpp.

01410 {
01411     ERROR3IF(!IS_A(pValue, PrintOnAllPlatesAttrValue),
01412                 "Invalid Attribute value passed to PrintOnAllPlatesAttrValue::SimpleCopy");
01413 
01414     // Just uses the assignment operator
01415     *this = *((PrintOnAllPlatesAttrValue *) pValue);
01416 }


Member Data Documentation

BOOL PrintOnAllPlatesAttrValue::PrintOnAllPlates [protected]
 

Definition at line 407 of file isetattr.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:00:05 2007 for Camelot by  doxygen 1.4.4