From kde-devel Fri May 18 23:30:37 2001 From: Andreas Schlapbach Date: Fri, 18 May 2001 23:30:37 +0000 To: kde-devel Subject: Re: part->document() Deep Copy? X-MARC-Message: https://marc.info/?l=kde-devel&m=99022883017944 On Fri, 18 May 2001, Rick Ramcharitar wrote: > Hi all, > > Is there any way of making a deep copy of the document loaded in a part? Specifically Konqueror? > > DOM::Document *docCopy = new DOM::Document( part->document() ); > DOM::HTMLDocument *docCopyHTML = new DOM::HTMLDocument( part->htmlDocument() ); > > The code above gives me a reference to the currently loaded document/html document in Konqueror. > I need modify the html document to rewrite the src tags of the images to point to local files but > doing this affects the rendered page in Konqueror. Can this be done? khtml_part.h doesn't show a > function for returning copies of the document. > > Thanks > > Rick Are you by any chance working on kdeaddons/webarchiver? If yes, I think I got something for you ;) Andreas -- Andreas Schlapbach schlpbch@iam.unibe.ch http://www.iam.unibe.ch/~schlpbch "/home sweet /home." >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<