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 -
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
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 =
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
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
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