#include <isetattr.h>
Inheritance diagram for AttrPrintOnAllPlates:
Public Member Functions | |
AttrPrintOnAllPlates () | |
Default constructor for AttrPrintOnAllPlates. | |
AttrPrintOnAllPlates (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Constructs an AttrPrintOnAllPlates Attribute. | |
virtual UINT32 | GetAttrNameID (void) |
Retrieves a string resource ID describing this attribute. | |
virtual AttrIndex | GetAttributeIndex () |
virtual void | GetDebugDetails (StringBase *Str) |
Produces debug details about this node. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node, in bytes. | |
virtual Node * | SimpleCopy () |
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes. | |
virtual INT32 | operator== (const NodeAttribute &NodeAttrib) |
Comparison operator - determines if the AttributeValues of both objects are ==. | |
virtual AttributeValue * | GetAttributeValue () |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Writes out a record that represents the node, to either Native or Web file format. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
PrintOnAllPlatesAttrValue | Value |
Definition at line 426 of file isetattr.h.
|
Default constructor for AttrPrintOnAllPlates.
Definition at line 1545 of file isetattr.cpp.
|
|
Constructs an AttrPrintOnAllPlates Attribute.
Definition at line 1566 of file isetattr.cpp. 01572 : AttrImagesetting(ContextNode, Direction, Locked, Mangled, Marked, Selected) 01573 { 01574 }
|
|
Reimplemented from NodeAttribute. Definition at line 441 of file isetattr.h. 00441 { return ATTR_PRINTONALLPLATES; }
|
|
Reimplemented from NodeAttribute. Definition at line 448 of file isetattr.h. 00448 { return(&Value); };
|
|
Retrieves a string resource ID describing this attribute.
Reimplemented from NodeAttribute. Definition at line 1622 of file isetattr.cpp. 01623 { 01624 return(_R(IDS_ATTRPRINTONALLPLATES)); 01625 }
|
|
Produces debug details about this node.
Reimplemented from NodeRenderable. Definition at line 1642 of file isetattr.cpp. 01643 { 01644 #ifdef _DEBUG 01645 NodeAttribute::GetDebugDetails(Str); 01646 01647 String_256 TempStr; 01648 TempStr._MakeMsg( _T("\r\nPrintOnAllPlates is #1%s\r\n"), (Value.IsPrintOnAllPlatesOn()) ? _T("ON") : _T("OFF") ); 01649 *Str += TempStr; 01650 #endif 01651 }
|
|
For finding the size of the node, in bytes.
Reimplemented from Node. Definition at line 1668 of file isetattr.cpp. 01669 { 01670 return(sizeof(AttrPrintOnAllPlates)); 01671 }
|
|
Comparison operator - determines if the AttributeValues of both objects are ==.
Reimplemented from NodeAttribute. Definition at line 1689 of file isetattr.cpp. 01690 { 01691 // First check they are of the same type 01692 if (((NodeAttribute*)&NodeAttrib)->GetAttributeType() != GetAttributeType()) 01693 return FALSE; 01694 01695 // Make a more sensible pointer 01696 AttrPrintOnAllPlates *Attr = (AttrPrintOnAllPlates *) &NodeAttrib; 01697 01698 // Now let the AttributeValues compare themselves 01699 return( *((PrintOnAllPlatesAttrValue *) Attr->GetAttributeValue()) == 01700 *((PrintOnAllPlatesAttrValue *) GetAttributeValue()) ); 01701 }
|
|
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes.
Reimplemented from NodeAttribute. Definition at line 1592 of file isetattr.cpp. 01593 { 01594 AttrPrintOnAllPlates* NodeCopy = new AttrPrintOnAllPlates; 01595 if (NodeCopy == NULL) 01596 return(NULL); 01597 01598 // Call the base class 01599 NodeAttribute::CopyNodeContents(NodeCopy); 01600 01601 // And call our AttributeValue to copy itself too 01602 NodeCopy->GetAttributeValue()->SimpleCopy(GetAttributeValue()); 01603 01604 return(NodeCopy); 01605 }
|
|
Reimplemented from Node. Definition at line 1745 of file isetattr.cpp. 01746 { 01747 #ifdef DO_EXPORT 01748 ERROR3IF(pFilter == NULL, "Illegal NULL param"); 01749 01750 CamelotFileRecord *Rec = NULL; 01751 if (Value.IsPrintOnAllPlatesOn()) 01752 Rec = new CamelotFileRecord(pFilter, TAG_PRINTONALLPLATESON, TAG_PRINTONALLPLATESON_SIZE); 01753 else 01754 Rec = new CamelotFileRecord(pFilter, TAG_PRINTONALLPLATESOFF, TAG_PRINTONALLPLATESOFF_SIZE); 01755 01756 BOOL ok = (Rec != NULL); 01757 01758 if (ok) ok = Rec->Init(); 01759 if (ok) ok = pFilter->Write(Rec); 01760 01761 if (!ok) 01762 pFilter->GotError(_R(IDE_FILE_WRITE_ERROR)); 01763 01764 if (Rec != NULL) // We've written the record - now delete it 01765 delete Rec; 01766 01767 return(ok); 01768 #else 01769 return FALSE; 01770 #endif 01771 }
|
|
Writes out a record that represents the node, to either Native or Web file format.
If the AttrPrintOnAllPlates writes out a record successfully to the file, it will return TRUE. If the AttrPrintOnAllPlates chooses not to write itself to the filter (e.g. because it is not appropriate for this filter), then this function will return FALSE.
Reimplemented from Node. Definition at line 1735 of file isetattr.cpp. 01736 { 01737 #ifdef DO_EXPORT 01738 // Imagesetting attributes are not saved in the web file format 01739 return FALSE; 01740 #else 01741 return FALSE; 01742 #endif 01743 }
|
|
Definition at line 462 of file isetattr.h. |