#include <isetattr.h>
Inheritance diagram for ImagesettingAttrRecordHandler:
Public Member Functions | |
ImagesettingAttrRecordHandler () | |
~ImagesettingAttrRecordHandler () | |
virtual UINT32 * | GetTagList () |
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) |
Definition at line 483 of file isetattr.h.
|
Definition at line 488 of file isetattr.h. 00488 : CamelotRecordHandler() {}
|
|
Definition at line 489 of file isetattr.h.
|
|
|
|
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).
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 }
|
|
Handles loading of the given imagesetting attribute record.
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 }
|