AttrPrintOnAllPlates Class Reference

Attribute indicating if "print on all plates" is enabled or disabled. More...

#include <isetattr.h>

Inheritance diagram for AttrPrintOnAllPlates:

AttrImagesetting NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

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 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

PrintOnAllPlatesAttrValue Value

Detailed Description

Attribute indicating if "print on all plates" is enabled or disabled.

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

Definition at line 426 of file isetattr.h.


Constructor & Destructor Documentation

AttrPrintOnAllPlates::AttrPrintOnAllPlates  ) 
 

Default constructor for AttrPrintOnAllPlates.

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

Definition at line 1545 of file isetattr.cpp.

01546 {
01547 }

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

Constructs an AttrPrintOnAllPlates Attribute.

Definition at line 1566 of file isetattr.cpp.

01572                 : AttrImagesetting(ContextNode, Direction, Locked, Mangled, Marked, Selected)
01573 {
01574 }


Member Function Documentation

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

Reimplemented from NodeAttribute.

Definition at line 441 of file isetattr.h.

00441 { return ATTR_PRINTONALLPLATES; }

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

Reimplemented from NodeAttribute.

Definition at line 448 of file isetattr.h.

00448 { return(&Value); };

UINT32 AttrPrintOnAllPlates::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 1622 of file isetattr.cpp.

01623 {
01624     return(_R(IDS_ATTRPRINTONALLPLATES));
01625 }

void AttrPrintOnAllPlates::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 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 }

UINT32 AttrPrintOnAllPlates::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 1668 of file isetattr.cpp.

01669 {
01670     return(sizeof(AttrPrintOnAllPlates));
01671 }

INT32 AttrPrintOnAllPlates::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 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 }

Node * AttrPrintOnAllPlates::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 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 }

BOOL AttrPrintOnAllPlates::WritePreChildrenNative BaseCamelotFilter pFilter  )  [virtual]
 

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 }

BOOL AttrPrintOnAllPlates::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 AttrPrintOnAllPlates's children are written to the filter.

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.

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

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 }


Member Data Documentation

PrintOnAllPlatesAttrValue AttrPrintOnAllPlates::Value
 

Definition at line 462 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