ImagesettingAttrRecordHandler Class Reference

#include <isetattr.h>

Inheritance diagram for ImagesettingAttrRecordHandler:

CamelotRecordHandler CXaraFileRecordHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ImagesettingAttrRecordHandler ()
 ~ImagesettingAttrRecordHandler ()
virtual UINT32GetTagList ()
 Provides the record handler system with a list of records handled by this handler - all Imagesetting attributes: Overprint line (on/off) Overprint fill (on/off) Print on all plates (on/off).
virtual BOOL HandleRecord (CXaraFileRecord *pCXaraFileRecord)
 Handles loading of the given imagesetting attribute record.

Private Member Functions

 CC_DECLARE_DYNAMIC (ImagesettingAttrRecordHandler)

Detailed Description

Definition at line 483 of file isetattr.h.


Constructor & Destructor Documentation

ImagesettingAttrRecordHandler::ImagesettingAttrRecordHandler  )  [inline]
 

Definition at line 488 of file isetattr.h.

00488 : CamelotRecordHandler() {}

ImagesettingAttrRecordHandler::~ImagesettingAttrRecordHandler  )  [inline]
 

Definition at line 489 of file isetattr.h.

00489 {}


Member Function Documentation

ImagesettingAttrRecordHandler::CC_DECLARE_DYNAMIC ImagesettingAttrRecordHandler   )  [private]
 

UINT32 * ImagesettingAttrRecordHandler::GetTagList  )  [virtual]
 

Provides the record handler system with a list of records handled by this handler - all Imagesetting attributes: Overprint line (on/off) Overprint fill (on/off) Print on all plates (on/off).

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/7/96
Returns:
A list of tag values, terminated by CXFRH_TAG_LIST_END
See also:
ImagesettingAttrRecordHandler::HandleRecord

Implements CXaraFileRecordHandler.

Definition at line 1803 of file isetattr.cpp.

01804 {
01805     static UINT32 TagList[] =
01806     {
01807         TAG_OVERPRINTLINEON,
01808         TAG_OVERPRINTLINEOFF,
01809         TAG_OVERPRINTFILLON,
01810         TAG_OVERPRINTFILLOFF,
01811         TAG_PRINTONALLPLATESON,
01812         TAG_PRINTONALLPLATESOFF,
01813         CXFRH_TAG_LIST_END
01814     };
01815 
01816     return(TagList);
01817 }

BOOL ImagesettingAttrRecordHandler::HandleRecord CXaraFileRecord pCXaraFileRecord  )  [virtual]
 

Handles loading of the given imagesetting attribute record.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/7/96
Parameters:
pCXaraFileRecord - The record to handle - may not be NULL [INPUTS]
Returns:
TRUE if handled successfuly
See also:
AttrOverprintLine::WritePreChildrenNative; AttrOverprintFill::WritePreChildrenNative; AttrPrintOnAllPlates::WritePreChildrenNative

Implements CXaraFileRecordHandler.

Definition at line 1839 of file isetattr.cpp.

01840 {
01841     ERROR3IF(pCXaraFileRecord == NULL, "pCXaraFileRecord is NULL");
01842 
01843     NodeAttribute *NewNode = NULL;
01844     
01845     switch (pCXaraFileRecord->GetTag())
01846     {
01847         case TAG_OVERPRINTLINEON:
01848             NewNode = new AttrOverprintLine;
01849             if (NewNode != NULL)
01850                 ((OverprintLineAttrValue *)NewNode->GetAttributeValue())->SetOverprint(TRUE);
01851             break;
01852 
01853         case TAG_OVERPRINTLINEOFF:
01854             NewNode = new AttrOverprintLine;
01855             if (NewNode != NULL)
01856                 ((OverprintLineAttrValue *)NewNode->GetAttributeValue())->SetOverprint(FALSE);
01857             break;
01858 
01859         case TAG_OVERPRINTFILLON:
01860             NewNode = new AttrOverprintFill;
01861             if (NewNode != NULL)
01862                 ((OverprintFillAttrValue *)NewNode->GetAttributeValue())->SetOverprint(TRUE);
01863             break;
01864 
01865         case TAG_OVERPRINTFILLOFF:
01866             NewNode = new AttrOverprintFill;
01867             if (NewNode != NULL)
01868                 ((OverprintFillAttrValue *)NewNode->GetAttributeValue())->SetOverprint(FALSE);
01869             break;
01870 
01871         case TAG_PRINTONALLPLATESON:
01872             NewNode = new AttrPrintOnAllPlates;
01873             if (NewNode != NULL)
01874                 ((PrintOnAllPlatesAttrValue *)NewNode->GetAttributeValue())->SetPrintOnAllPlates(TRUE);
01875             break;
01876 
01877         case TAG_PRINTONALLPLATESOFF:
01878             NewNode = new AttrPrintOnAllPlates;
01879             if (NewNode != NULL)
01880                 ((PrintOnAllPlatesAttrValue *)NewNode->GetAttributeValue())->SetPrintOnAllPlates(FALSE);
01881             break;
01882 
01883         default:
01884             ERROR3_PF(("I don't handle records with the tag (%d)\n",pCXaraFileRecord->GetTag()));
01885             break;
01886     }
01887 
01888     if (NewNode == NULL)
01889         return(FALSE);
01890 
01891     // Get the base class to insert the new node for us
01892     InsertNode(NewNode);
01893     return(TRUE);
01894 }


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