Abstract class providing the interface to basic DOM node functionality. IDOMNode is the base class for many of the other DOM node types, and defines many of the basic functions of DOM nodes. Exceptions of type IEDLError are thrown on outright failures. More...
#include <idomnode.h>
Public Member Functions | |
virtual | ~IDOMNode () |
virtual destructor | |
virtual DOMid | getDOMid () const =0 |
Retrieves the node ID. | |
virtual void | setDOMid (DOMid id)=0 |
Sets the node ID. | |
virtual eDOMNodeType | getNodeType () const =0 |
Retrieves the DOM node type. | |
virtual bool | getProperty (const EDLSysString &propertyName, PValue &propertyValue) const =0 |
Retrieves the value of a property. The EDL DOM node can store non-content or relationship information through the use of the "properties" feature of the node. The data is represented as key-value pairs; the key being a string and the value being an abstract container called a PValue. PValues can represent integers, strings, DOM nodes, and so on. | |
virtual void | setProperty (const EDLSysString &propertyName, const PValue &propertyValue)=0 |
Sets the value of a property. The EDL DOM node can store non-content or relationship information through the use of the "properties" feature of the node. The data is represented as key-value pairs; the key being a string and the value being an abstract container called a PValue. PValues can represent integers, strings, DOM nodes, and so on. | |
virtual void | removeProperty (const EDLSysString &propertyName)=0 |
Removes property. | |
virtual IEDLSysStringCollectionEnumPtr | getPropertyCollectionEnum ()=0 |
Retrieves a navigable list of the property names stored on this node. | |
virtual bool | hasChildNodes () const =0 |
Function that indicates whether this node is a parent to other nodes. | |
virtual IDOMNodePtr | getParentNode () const =0 |
Gets the parent node of this node. | |
virtual IDOMNodePtr | getFirstChild () const =0 |
Gets the first child node of this node. | |
virtual IDOMNodePtr | getLastChild () const =0 |
Gets the last child node of this node. | |
virtual IDOMNodePtr | getNextChild (const IDOMNodePtr &child) const =0 |
Gets the child node which follows the node passed in. | |
virtual IDOMNodePtr | getPreviousChild (const IDOMNodePtr &child) const =0 |
Gets the child node which precedes the node passed in. | |
virtual IDOMNodePtr | getPreviousSibling () const =0 |
Retrieves the node's previous sibling node. | |
virtual IDOMNodePtr | getNextSibling () const =0 |
Retrieves node's next sibling node. | |
virtual void | appendChild (const IDOMNodePtr &child)=0 |
Appends a node to the end of the node's child list. | |
virtual void | insertChild (const IDOMNodePtr &ptrPreviousSibling, const IDOMNodePtr &child, bool bCheckComplete=true)=0 |
Insert a child node after ptrPreviousSibling. | |
virtual IDOMNodePtr | extractChild (const IDOMNodePtr &child)=0 |
Extracts (that is, finds and removes) a child node from the node children. After extraction the child node is no longer a part of the DOM. If no node is specified, the first available node will be extracted from the node's children. | |
virtual void | replaceChild (const IDOMNodePtr &oldChild, const IDOMNodePtr &newChild)=0 |
Replaces the child node with another. | |
virtual bool | isComplete () const =0 |
Signals the completeness of the node. A complete node is one that has no more children to be added to it. | |
virtual void | setComplete ()=0 |
Sets the node's completeness status to "true". | |
virtual IDOMNodeFlags * | getFlags ()=0 |
Retrieves the node's flags property. | |
virtual void | setParentNode (const IDOMNodePtr &ptrParent)=0 |
Sets the parent node. | |
virtual void | setPreviousSibling (const IDOMNodePtr &ptrPreviousSibling)=0 |
Sets the previous sibling node. | |
virtual void | setNextSibling (const IDOMNodePtr &ptrNextSibling)=0 |
Sets the next sibling node. | |
virtual bool | isAncestor (const IDOMNodePtr &ptrCandidate)=0 |
Function tests whether a candidate node is a descendant of the node. | |
virtual FRect | getBounds (bool applyTransform=true, bool applyClip=true) |
Find the conservative bounding box of the marking content of the node. | |
virtual bool | copyNodeData (IDOMNode *pSourceNode)=0 |
Copy the properties collection, the flags and the DOM ID from the given source node to this one. | |
virtual IDOMNodePtr | cloneNode (IEDLClassFactory *pFactory) const =0 |
Simpified node cloning. An exception of type IEDLError will be thrown on failure. | |
virtual IDOMNodePtr | cloneTree (IEDLClassFactory *pFactory) const =0 |
Clone the tree of nodes beginning at this node. An exception of type IEDLError will be thrown on failure. | |
virtual void | cloneTreeAndAppend (IEDLClassFactory *pFactory, const IDOMNodePtr &dest) const =0 |
Clone the tree of nodes beginning at this node, and append the result to the destination tree. | |
virtual void | completeTree ()=0 |
Mark the entire tree from this point as complete. You should not ordinarily need to call this function. | |
virtual void | removeCompleteFlagFromTree ()=0 |
Mark the entire tree from this point as complete. | |
virtual void | findChildrenOfType (eDOMNodeType type, CDOMNodeVect &nodes, bool searchForms=false)=0 |
Find all children of this node with the given type, appending to the given vector. Does not descend into brushes. | |
virtual void | walkTree (WalkTreeFunc func, void *priv, bool descendIntoBrushes=false, bool descendIntoForms=false)=0 |
Walk through the DOM calling a given function on each node. The function is allowed to: | |
virtual void | notifyOnDestruct (NodeDeleteFunc func, void *priv)=0 |
Register interest in being told when this node is about to be destroyed. | |
virtual void | unregisterNotify (NodeDeleteFunc func, void *priv)=0 |
Unregister interest in being told when this node is about to be destroyed. | |
Public Member Functions inherited from IEDLObject | |
virtual const CClassID & | getClassID () const =0 |
Returns class ID of IEDLObject. | |
virtual bool | init (CClassParams *pData) |
The init() method is called to perform any post-construction initialization of an IEDLObject that has been created by the EDL class factory, before it is actually returned by the factory. | |
virtual bool | clone (IEDLObjectPtr &ptrObject, IEDLClassFactory *pFactory) |
Create a copy of EDLObject. | |
Public Member Functions inherited from IRCObject | |
virtual void | addRef () const =0 |
Increases the reference count of the actual object pointed to. This would take place during an assignment or copying. | |
virtual bool | decRef () const =0 |
Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to. | |
virtual int32 | getRefCount () const =0 |
Retrieve the current reference count of the actual object pointed to. | |
Static Public Member Functions | |
static EDL_API FMatrix | effectiveTransformationOfNode (const IDOMNodePtr &node) |
Attempt to find the effective transformation matrix external to the specified node relative to either a containing page or ultimate parent. | |
Additional Inherited Members | |
Protected Member Functions inherited from IRCObject | |
virtual | ~IRCObject () |
Virtual destructor. | |
Abstract class providing the interface to basic DOM node functionality. IDOMNode is the base class for many of the other DOM node types, and defines many of the basic functions of DOM nodes. Exceptions of type IEDLError are thrown on outright failures.
|
pure virtual |
Appends a node to the end of the node's child list.
child | The child node to append. |
|
pure virtual |
Simpified node cloning. An exception of type IEDLError will be thrown on failure.
pFactory | The EDL class factory. |
|
pure virtual |
Clone the tree of nodes beginning at this node. An exception of type IEDLError will be thrown on failure.
pFactory | The EDL class factory. |
|
pure virtual |
Clone the tree of nodes beginning at this node, and append the result to the destination tree.
pFactory | The EDL class factory. |
dest | The destination node |
|
pure virtual |
Copy the properties collection, the flags and the DOM ID from the given source node to this one.
pSourceNode | Smart pointer to the source node. |
|
static |
Attempt to find the effective transformation matrix external to the specified node relative to either a containing page or ultimate parent.
node | The specified node |
|
pure virtual |
Extracts (that is, finds and removes) a child node from the node children. After extraction the child node is no longer a part of the DOM. If no node is specified, the first available node will be extracted from the node's children.
child | A pointer to the child node to extract. If set to NULL, the first available child node will be extracted. |
|
pure virtual |
Find all children of this node with the given type, appending to the given vector. Does not descend into brushes.
type | the type of node to find |
nodes | Vector to receive the found nodes. |
searchForms | If true, search inside forms referenced from form instance nodes. |
|
inlinevirtual |
Find the conservative bounding box of the marking content of the node.
For composite objects such as canvases and pages, this function will recurse through its current children.
applyTransform | Controls whether or not the receiver's RenderTransform is applied to the bounds (if it has one)
|
applyClip | Controls whether or not the receiver's Clip is applied to the bounds (if it has a clip). This parameter only applies to the current node clip path, it does not apply to child nodes. It is generally used to test if the current nodes clip path is effective. |
|
pure virtual |
Retrieves the node ID.
|
pure virtual |
Gets the first child node of this node.
|
pure virtual |
Retrieves the node's flags property.
|
pure virtual |
Gets the last child node of this node.
|
pure virtual |
Gets the child node which follows the node passed in.
child | The "current" child node; the node whose next sibling is required. |
|
pure virtual |
Retrieves node's next sibling node.
|
pure virtual |
Retrieves the DOM node type.
|
pure virtual |
Gets the parent node of this node.
|
pure virtual |
Gets the child node which precedes the node passed in.
child | The "current" child node; the node whose previous sibling is required. |
|
pure virtual |
Retrieves the node's previous sibling node.
|
pure virtual |
Retrieves the value of a property. The EDL DOM node can store non-content or relationship information through the use of the "properties" feature of the node. The data is represented as key-value pairs; the key being a string and the value being an abstract container called a PValue. PValues can represent integers, strings, DOM nodes, and so on.
propertyName | The name of the property. |
propertyValue | Smart pointer to receive the value of the property. |
|
pure virtual |
Retrieves a navigable list of the property names stored on this node.
|
pure virtual |
Function that indicates whether this node is a parent to other nodes.
|
pure virtual |
Insert a child node after ptrPreviousSibling.
ptrPreviousSibling | Smart pointer to the previous sibling node. If ptrPreviousSibling is NULL then child will be inserted as the first node |
child | The child node to insert. |
bCheckComplete | If false insert node even if parent is complete. |
|
pure virtual |
Function tests whether a candidate node is a descendant of the node.
ptrCandidate | Smart pointer to the candidate node. |
|
pure virtual |
Signals the completeness of the node.
A complete node is one that has no more children to be added to it.
|
pure virtual |
Register interest in being told when this node is about to be destroyed.
func | The function to call when this node is about to be destroyed |
priv | A private pointer to be passed to the notification structure. |
|
pure virtual |
Removes property.
The EDL DOM node can store non-content or relationship information through the use of the "properties" feature of the node. The data is represented as key-value pairs; the key being a string and the value being an abstract container called a PValue. PValues can represent integers, strings, DOM nodes, and so on.
propertyName | The name of the property. |
|
pure virtual |
Replaces the child node with another.
oldChild | Pointer to the child node to be replaced. |
newChild | Pointer to the replacing node. |
|
pure virtual |
Sets the node ID.
id | The new DOM ID for the node. |
|
pure virtual |
Sets the next sibling node.
ptrNextSibling | Smart pointer to the new next sibling node. |
|
pure virtual |
Sets the parent node.
ptrParent | Smart pointer to the new parent node. |
|
pure virtual |
Sets the previous sibling node.
ptrPreviousSibling | Smart pointer to the new previous sibling node. |
|
pure virtual |
Sets the value of a property. The EDL DOM node can store non-content or relationship information through the use of the "properties" feature of the node. The data is represented as key-value pairs; the key being a string and the value being an abstract container called a PValue. PValues can represent integers, strings, DOM nodes, and so on.
propertyName | The name of the property. |
propertyValue | The new value for the property. |
|
pure virtual |
Unregister interest in being told when this node is about to be destroyed.
func | The function that was registered to be called when the node is destroyed. |
priv | The private pointer that was passed to notifyOnDestruct() along with func. |
|
pure virtual |
Walk through the DOM calling a given function on each node. The function is allowed to:
func | The function to be called for each node. Return false from this function if you wish to stop the walking. It is also safe to throw exceptions from this function. |
priv | A bare pointer that is passed to func for each call. |
descendIntoBrushes | If true, the walker will descend into composite brushes, only once per invocation. |
descendIntoForms | If true, the walker will descend into forms, only once per invocation. |