how to embed openoffice [message #447288] |
Mon, 13 December 2004 11:09 |
Jochen Stärk Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi,
I've been using the Openoffice.org OfficeBean to embed OpenOffice in a
AWT application. Well, I used that app only to test OO-embedding and now
I'm looking for a decent java window toolkit.
AFAIK, it should theoretically be possible to embed OO in SWT (it isn't
in Swing, because Swing uses non-native-drawing-routines), the only
thing is: I have no idea how. Obviously, many widgets expect a
shell-parameter which notices the shell to draw them, but of course the
O.o O-Bean does not expect a shell-parameter in it's constructor beause
it is used to the process that the layout manager is explicitly told to
show this new widget.
Is there a way to get AWT-Components to work in SWT? If there was, maybe
that would be similar to the solution for my OO-problem? Or does anybody
happen to know how to embed OpenOffice?
thanks,
Jochen
|
|
|
Re: how to embed openoffice [message #447304 is a reply to message #447288] |
Mon, 13 December 2004 13:31 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
You can embed AWT in SWT using the SWT_AWT class. See:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet135.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
See also this SWT FAQ about support for AWT in SWT:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#swinginswt
"Jochen Staerk" <jstaerk@usegroup.de> wrote in message
news:cpjt97$2bi$1@www.eclipse.org...
> Hi,
>
> I've been using the Openoffice.org OfficeBean to embed OpenOffice in a AWT
> application. Well, I used that app only to test OO-embedding and now I'm
> looking for a decent java window toolkit.
>
> AFAIK, it should theoretically be possible to embed OO in SWT (it isn't in
> Swing, because Swing uses non-native-drawing-routines), the only thing is:
> I have no idea how. Obviously, many widgets expect a shell-parameter which
> notices the shell to draw them, but of course the O.o O-Bean does not
> expect a shell-parameter in it's constructor beause it is used to the
> process that the layout manager is explicitly told to show this new
> widget.
>
> Is there a way to get AWT-Components to work in SWT? If there was, maybe
> that would be similar to the solution for my OO-problem? Or does anybody
> happen to know how to embed OpenOffice?
>
>
> thanks,
> Jochen
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03425 seconds