Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::XML::Node * Inkscape::UI::ClipboardManagerImpl::_copyNode ( Inkscape::XML::Node node,
Inkscape::XML::Document target_doc,
Inkscape::XML::Node parent 
) [private]

Copy a single XML node from one document to another.

Parameters:
node The node to be copied
target_doc The document to which the node is to be copied
parent The node in the target document which will become the parent of the copied node
Returns:
Pointer to the copied node

Definition at line 757 of file clipboard.cpp.

References Inkscape::XML::Node::appendChild(), Inkscape::XML::Node::duplicate(), and Inkscape::GC::release().

Referenced by _copyGradient(), _copyPattern(), _copySelection(), _copyTextPath(), _copyUsedDefs(), _pasteDefs(), and _pasteDocument().

{
    Inkscape::XML::Node *dup = node->duplicate(target_doc);
    parent->appendChild(dup);
    Inkscape::GC::release(dup);
    return dup;
}


Generated by  Doxygen 1.6.0   Back to index