AttrOverprintFill Class Reference

Attribute indicating if overprint-Fill is enabled or disabled. More...

#include <isetattr.h>

Inheritance diagram for AttrOverprintFill:

AttrImagesetting NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

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 NodeSimpleCopy ()
 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 AttributeValueGetAttributeValue ()
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

Detailed Description

Attribute indicating if overprint-Fill is enabled or disabled.

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

Definition at line 328 of file isetattr.h.


Constructor & Destructor Documentation

AttrOverprintFill::AttrOverprintFill  ) 
 

Default constructor for AttrOverprintFill.

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

Definition at line 1038 of file isetattr.cpp.

01039 {
01040 }

AttrOverprintFill::AttrOverprintFill Node ContextNode,
AttachNodeDirection  Direction,
BOOL  Locked = FALSE,
BOOL  Mangled = FALSE,
BOOL  Marked = FALSE,
BOOL  Selected = FALSE
 

Constructs an AttrOverprintFill Attribute.

Definition at line 1059 of file isetattr.cpp.

01065                 : AttrImagesetting(ContextNode, Direction, Locked, Mangled, Marked, Selected)
01066 {
01067 }


Member Function Documentation

virtual AttrIndex AttrOverprintFill::GetAttributeIndex  )  [inline, virtual]
 

Reimplemented from NodeAttribute.

Definition at line 343 of file isetattr.h.

00343 { return ATTR_OVERPRINTFILL; }

virtual AttributeValue* AttrOverprintFill::GetAttributeValue  )  [inline, virtual]
 

Reimplemented from NodeAttribute.

Definition at line 350 of file isetattr.h.

00350 { return(&Value); };

UINT32 AttrOverprintFill::GetAttrNameID void   )  [virtual]
 

Retrieves a string resource ID describing this attribute.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Returns:
Attribute description string-resource ID

Reimplemented from NodeAttribute.

Definition at line 1115 of file isetattr.cpp.

01116 {
01117     return(_R(IDS_ATTROVERPRINTFILL));
01118 }

void AttrOverprintFill::GetDebugDetails StringBase Str  )  [virtual]
 

Produces debug details about this node.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
On return, Str is filled in with details on this node [OUTPUTS]

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 }

UINT32 AttrOverprintFill::GetNodeSize  )  const [virtual]
 

For finding the size of the node, in bytes.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Returns:
The size of this node, in bytes

Reimplemented from Node.

Definition at line 1161 of file isetattr.cpp.

01162 {
01163     return(sizeof(AttrOverprintFill));
01164 }

INT32 AttrOverprintFill::operator== const NodeAttribute NodeAttrib  )  [virtual]
 

Comparison operator - determines if the AttributeValues of both objects are ==.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/7/96
Parameters:
NodeAttrib - The node to compare this node to [INPUTS]
Returns:
TRUE if the nodes are considered equal

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 }

Node * AttrOverprintFill::SimpleCopy void   )  [virtual]
 

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.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/7/96
Returns:
A copy of the node, or NULL if memory runs out

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 }

BOOL AttrOverprintFill::WritePreChildrenNative BaseCamelotFilter pFilter  )  [virtual]
 

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 }

BOOL AttrOverprintFill::WritePreChildrenWeb BaseCamelotFilter pFilter  )  [virtual]
 

Writes out a record that represents the node, to either Native or Web file format.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/7/96
Parameters:
pFilter - filter to write to [INPUTS]
Returns:
TRUE if the Node has written out a record to the filter
This function is called before any of the AttrOverprintFill's children are written to the filter.

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.

See also:
Node::WritePreChildrenNative; Node::WritePreChildrenWeb; ImagesettingAttrRecordHandler::HandleRecord

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 }


Member Data Documentation

OverprintFillAttrValue AttrOverprintFill::Value
 

Definition at line 364 of file isetattr.h.


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