"New Window" on integrated OpenOffice.org

Java, C++, C#, Delphi, ??? - Using the UNO bridges

"New Window" on integrated OpenOffice.org

Postby mle » Mon Jun 27, 2011 2:40 pm

Hello,

i integrated open office in an swt composite and now i want to implement a function similar to "new window". I need a second composite, which displays the same document as in the first and where all changes to the contents are synchronized. Here is what i am doing:

I create a XWindowPeer with a XSystemChildFactory. Then i create a new frame and load the document in it via frame.loadComponentFromURL(...)

For the second view i do the same, i create a new XindowPeer and a new Frame. Just this time i am calling on the already loaded component "createDefaultViewController(newFrame)" (XModel2) to create a second view for my document. However, this does not work. The second composite is empty and i do not see an open office document.

Any Ideas what i am doing wrong?
OpenOffice 3.0 on Windows 7
mle
 
Posts: 1
Joined: Mon Jun 27, 2011 2:16 pm

Return to External Programs

Who is online

Users browsing this forum: No registered users and 3 guests