Re: [api-dev] prevent document closing

2006-09-30 Thread Mathias Bauer
Adam Patacchiola wrote: So how do I prevent the inner document window from being closed? As I wrote already: Of course you can't prevent the window from being closed here - in fact you can't do it at all as I have to admit. Sorry for the bad news. Best regards, Mathias -- Mathias Bauer -

Re: [api-dev] prevent document closing

2006-09-29 Thread Mathias Bauer
Adam Patacchiola wrote: Hi, How can I prevent a document from closing? I've figured out how to do it for the frame by adding a CloseListener and throwing a CloseVetoException in queryClosing, but this does not seem to work for the internal document. It works the same way. The document

Re: [api-dev] prevent document closing

2006-09-29 Thread Adam Patacchiola
Can you tell me why this code doesn't work then: public void someMethod() { unoidl.com.sun.star.uno.XComponentContext localContext = uno.util.Bootstrap.bootstrap(); unoidl.com.sun.star.lang.XMultiServiceFactory multiServiceFactory =

Re: [api-dev] prevent document closing

2006-09-29 Thread Mathias Bauer
Adam Patacchiola wrote: //If i add the listener to the frame here, the outer most frame is prevented from closing, but the user can still click the internal document window's close button and the document will close which is not the behavior I want /* XCloseBroadcaster

Re: [api-dev] prevent document closing

2006-09-29 Thread Adam Patacchiola
So how do I prevent the inner document window from being closed? Mathias Bauer wrote: Adam Patacchiola wrote: //If i add the listener to the frame here, the outer most frame is prevented from closing, but the user can still click the internal document window's close button and

[api-dev] prevent document closing

2006-09-28 Thread Adam Patacchiola
Hi, How can I prevent a document from closing? I've figured out how to do it for the frame by adding a CloseListener and throwing a CloseVetoException in queryClosing, but this does not seem to work for the internal document. Adam