Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void Inkscape::XML::CompositeNodeObserver::notifyChildOrderChanged ( Node node,
Node child,
Node old_prev,
Node new_prev 
) [virtual]

Child order change callback.

This method is called whenever the order of a node's children is changed using Node::changeOrder(). The old_prev parameter is NULL if the relocated node was first in the sibling order before the order change, and new_prev is NULL if it was moved to the first position by this operation.

node The changed XML node
child The child node that was relocated in the sibling order
old_prev The node that was before child prior to the order change
new_prev The node that is before child after the order change

Reimplemented from Inkscape::XML::NodeObserver.

Definition at line 55 of file composite-node-observer.cpp.

Referenced by Inkscape::XML::SimpleNode::changeOrder().

    for ( ObserverRecordList::iterator iter=_active.begin() ;
          iter != _active.end() ; ++iter )
        if (!iter->marked) {
            iter->observer.notifyChildOrderChanged(node, child, old_prev, new_prev);

Generated by  Doxygen 1.6.0   Back to index