On Thu, 2007-10-18 at 09:30 -0700, John Bintz wrote:
Ted Gould said:
> Aaron is entirely right here. I'm not sure why we're avoiding the
> namedview, but we are. The offending function is:
>
> /src/extension/implementation/script.cpp:copy_doc
>
> Try taking it out and see what happens?
Giving the code a quick glance, removing that check should allow the
guides to copy over. The only other thing I'll need it to do is copy the
width and height attributes from the incoming XML doc root to the new doc
root, to allow the document to be resized by the effect. I'll experiment
with that code tonight or tomorrow night and see how far I can get with
it.
If I remember right, you won't be able to copy over the namedview
directly, you'll need to copy some of the components. I think there is
something about it being the document itself, stuff that doesn't get
reread. It might be easier to pull out the components that you want by
having it parse further into the structure.
--Ted