[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: Persistence of KParts plugins
From: David Faure <dfaure () trolltech ! com>
Date: 2003-07-17 7:39:03
[Download RAW message or body]
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@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic