Peter Eberlein wrote:

>> You could create a second, "hidden" view of the same document. I never
>> tried that by myself so I can't predict if this can create problems, but
>> OTOH - why should it?
>> 
> 
> Thanks, that works. I don't like dispatches, so is there a api-method 
> for .uno:NewView?

There's no direct, single API call.

> First, the property "OpenNewView" of the MediaDescriptor comes to my
> mind. But loading is to slow.
> 
> Also played with "creating Frames manually" [1]. The example runs, but 
> how to put the ComponentWindow into the frame?

That's the easy part - call setComponent(). The problem is creating it,
we currently don't have an API for that. You can do the following: a
frame implements the XComponentLoader interface and so you can call the
loadComponentFromURL() method on it. If you pass the document as "Model"
argument to the call, the document will not be loaded a second time but
instead of that the frame should create a second view. You can do it
even easier by not creating the frame manually but using the
XComponentLoader of the desktop.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to