#include <isetattr.h>
Inheritance diagram for AttrOverprintFill:
Public Member Functions | |
AttrOverprintFill () | |
Default constructor for AttrOverprintFill. | |
AttrOverprintFill (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Constructs an AttrOverprintFill 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 | |
OverprintFillAttrValue | Value |
Definition at line 328 of file isetattr.h.
|
Default constructor for AttrOverprintFill.
Definition at line 1038 of file isetattr.cpp.
|
|
Constructs an AttrOverprintFill Attribute.
Definition at line 1059 of file isetattr.cpp. 01065 : AttrImagesetting(ContextNode, Direction, Locked, Mangled, Marked, Selected) 01066 { 01067 }
|
|
Reimplemented from NodeAttribute. Definition at line 343 of file isetattr.h. 00343 { return ATTR_OVERPRINTFILL; }
|
|
Reimplemented from NodeAttribute. Definition at line 350 of file isetattr.h. 00350 { return(&Value); };
|
|
Retrieves a string resource ID describing this attribute.
Reimplemented from NodeAttribute. Definition at line 1115 of file isetattr.cpp. 01116 { 01117 return(_R(IDS_ATTROVERPRINTFILL)); 01118 }
|
|
Produces debug details about this node.
Reimplemented from NodeRenderable. Definition at line 1135 of file isetattr.cpp. 01136 { 01137 #ifdef _DEBUG 01138 NodeAttribute::GetDebugDetails(Str); 01139 01140 String_256 TempStr; 01141 TempStr._MakeMsg( _T("\r\nOverprint of Fill is #1%s\r\n"), (Value.IsOverprintOn()) ? _T("ON") : _T("OFF") ); 01142 *Str += TempStr; 01143 #endif 01144 }
|
|
For finding the size of the node, in bytes.
Reimplemented from Node. Definition at line 1161 of file isetattr.cpp. 01162 { 01163 return(sizeof(AttrOverprintFill)); 01164 }
|
|
Comparison operator - determines if the AttributeValues of both objects are ==.
Reimplemented from NodeAttribute. Definition at line 1182 of file isetattr.cpp. 01183 { 01184 // First check they are of the same type 01185 if (((NodeAttribute*)&NodeAttrib)->GetAttributeType() != GetAttributeType()) 01186 return FALSE; 01187 01188 // Make a more sensible pointer 01189 AttrOverprintFill *Attr = (AttrOverprintFill *) &NodeAttrib; 01190 01191 // Now let the AttributeValues compare themselves 01192 return( *((OverprintFillAttrValue *) Attr->GetAttributeValue()) == 01193 *((OverprintFillAttrValue *) GetAttributeValue()) ); 01194 }
|
|
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 1085 of file isetattr.cpp. 01086 { 01087 AttrOverprintFill* NodeCopy = new AttrOverprintFill; 01088 if (NodeCopy == NULL) 01089 return(NULL); 01090 01091 // Call the base class 01092 NodeAttribute::CopyNodeContents(NodeCopy); 01093 01094 // And call our AttributeValue to copy itself too 01095 NodeCopy->GetAttributeValue()->SimpleCopy(GetAttributeValue()); 01096 01097 return(NodeCopy); 01098 }
|
|
Reimplemented from Node. Definition at line 1238 of file isetattr.cpp. 01239 { 01240 #ifdef DO_EXPORT 01241 ERROR3IF(pFilter == NULL, "Illegal NULL param"); 01242 01243 CamelotFileRecord *Rec = NULL; 01244 if (Value.IsOverprintOn()) 01245 Rec = new CamelotFileRecord(pFilter, TAG_OVERPRINTFILLON, TAG_OVERPRINTFILLON_SIZE); 01246 else 01247 Rec = new CamelotFileRecord(pFilter, TAG_OVERPRINTFILLOFF, TAG_OVERPRINTFILLOFF_SIZE); 01248 01249 BOOL ok = (Rec != NULL); 01250 01251 if (ok) ok = Rec->Init(); 01252 if (ok) ok = pFilter->Write(Rec); 01253 01254 if (!ok) 01255 pFilter->GotError(_R(IDE_FILE_WRITE_ERROR)); 01256 01257 if (Rec != NULL) // We've written the record - now delete it 01258 delete Rec; 01259 01260 return(ok); 01261 #else 01262 return FALSE; 01263 #endif 01264 }
|
|
Writes out a record that represents the node, to either Native or Web file format.
If the AttrOverprintFill writes out a record successfully to the file, it will return TRUE. If the AttrOverprintFill 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 1228 of file isetattr.cpp. 01229 { 01230 #ifdef DO_EXPORT 01231 // Imagesetting attributes are not saved in the web file format 01232 return FALSE; 01233 #else 01234 return FALSE; 01235 #endif 01236 }
|
|
Definition at line 364 of file isetattr.h. |