#include <insertnd.h>
Inheritance diagram for InsertionNode:
Public Member Functions | |
InsertionNode (Document *pownerDoc) | |
~InsertionNode () | |
This destructor was added by Simon 28/10/95 to solve a problem with Insertion Nodes being destroyed. If a layer is deleted which contains an Insertion Node (This can occur when throwing away undo info) then we must inform the document containing the InsertionNode, so that it can NULLIFY it's pointer to it. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual BOOL | IsAnInsertionNode () const |
Protected Member Functions | |
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. | |
Protected Attributes | |
Document * | pOwnerDoc |
There will be only one instance of an InsertionNode in each camelot document. It will live as a last child of the the selected spread's active layer.
Definition at line 123 of file insertnd.h.
|
Definition at line 128 of file insertnd.h.
|
|
This destructor was added by Simon 28/10/95 to solve a problem with Insertion Nodes being destroyed. If a layer is deleted which contains an Insertion Node (This can occur when throwing away undo info) then we must inform the document containing the InsertionNode, so that it can NULLIFY it's pointer to it.
Definition at line 179 of file insertnd.cpp. 00180 { 00181 ERROR3IF(!pOwnerDoc, "InsertionNode Has no owner doc"); 00182 if (pOwnerDoc) 00183 { 00184 pOwnerDoc->InsertionNodeDying(); 00185 } 00186 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 159 of file insertnd.cpp. 00160 { 00161 return (sizeof(InsertionNode)); 00162 }
|
|
Reimplemented from Node. Definition at line 131 of file insertnd.h. 00131 { return TRUE; }
|
|
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 Node. Definition at line 134 of file insertnd.cpp. 00135 { 00136 ERROR3("InsertionNode SimpleCopy called, is this good ???"); 00137 InsertionNode* NodeCopy; 00138 NodeCopy = new InsertionNode(pOwnerDoc); 00139 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 00140 CopyNodeContents(NodeCopy); 00141 return (NodeCopy); 00142 }
|
|
Definition at line 134 of file insertnd.h. |