Hi rabbiaqaswar, rabbiaqaswar wrote:
> Hello > > I have just started working with OpenOffice so wanted to ask a basic > question. > > I want to create an AWT based application which shall incorporate the > OpenOffice Writer so that users can create documents through my application. > I have a simple java.awt.Panel and have added the > com.sun.star.comp.beans.OOoBean on my Panel. There is a button on the Panel > and when i click on the button the OpenOffice's Writer appears. All good so > far. But when i try to open some already written Writer document through the > Open in File Menu of Writer, the document does not open in my Panel instead > a separate window of OpenOffice Writer opens displaying the document i > selected. > > So how can i open the documents in my own Panel/application? Changing the internal handling of OOo in that way would require changes to the source code or reimplementing and exchanging a component in the framework. Another option is to use a dispatch interceptor to catch all opening requests for documents, change it a bit and pass it along to the frame belonging to the bean. The third option is to implement all functions opening documents yourself and call the corresponding methods of the bean. Best regards, 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]
