Lines Matching defs:node
2 * @brief Interface for XML node observers
34 * @brief Interface for XML node observers
37 * XML node state change notifications. The observer has to be registered using
38 * the Node::addObserver() method to be notified of changes of this node only,
43 * Be careful when e.g. changing an attribute of @c node in notifyAttributeChanged().
65 * This method is called whenever a child is added to the observed node. The @c prev
68 * @param node The changed XML node
69 * @param child The newly added child node
70 * @param prev The node after which the new child was inserted into the sibling order, or NULL
72 virtual void notifyChildAdded(Node &node, Node &child, Node *prev) {
73 INK_UNUSED(node);
81 * This method is called whenever a child is removed from the observed node. The @c prev
84 * @param node The changed XML node
85 * @param child The removed child node
86 * @param prev The node that was before the removed node in sibling order, or NULL
88 virtual void notifyChildRemoved(Node &node, Node &child, Node *prev) {
89 INK_UNUSED(node);
97 * This method is called whenever the order of a node's children is changed using
98 * Node::changeOrder(). The @c old_prev parameter is NULL if the relocated node
102 * @param node The changed XML node
103 * @param child The child node that was relocated in the sibling order
104 * @param old_prev The node that was before @c child prior to the order change
105 * @param new_prev The node that is before @c child after the order change
107 virtual void notifyChildOrderChanged(Node &node, Node &child,
109 INK_UNUSED(node);
118 * This method is called whenever a node's content is changed using Node::setContent(),
121 * @param node The changed XML node
122 * @param old_content Old content of @c node
123 * @param new_content New content of @c node
125 virtual void notifyContentChanged(Node &node,
128 INK_UNUSED(node);
136 * This method is called whenever one of a node's attributes is changed.
138 * @param node The changed XML node
143 virtual void notifyAttributeChanged(Node &node, GQuark name,
146 INK_UNUSED(node);