Persistence of KParts plugins

David Faure dfaure at trolltech.com
Thu Jul 17 08:39:03 BST 2003


On Thursday 17 July 2003 01:27, Antonio Larrosa Jiménez wrote:
> if(part->document().ownerDocument().isNull())
>   // my test page goes in this case
>     m_document=part->document().cloneNode(true);

NodeImpl *DocumentImpl::cloneNode ( bool /*deep*/ )
{
    // Spec says cloning Document nodes is "implementation dependent"
    // so we do not support it...
    return 0;
}

I'd create a document, and clone the document-element from the original
dom tree, and then "import" it into the new document using importNode.

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Qtella users - stability patches at http://blackie.dk/~dfaure/qtella.html




More information about the kfm-devel mailing list