Sascha Jensen wrote: > Hello, > > i use ::com::sun::star::frame::XDispatchProviderInterception and > ::com::sun::star::frame::XDispatch to intercept commands that are about > to close the document (.uno:CloseDoc) or window (.uno:CloseWin). The > .uno:CloseDoc is executed when file->close is selected. .uno:CloseWin is > executed when this tiny x-button in the upper right corner is clicked. > Thus I can prevent that the documents window or the document itself is > closed.
This only helps for the case where the GUI is used. If a script or any other code closed the document or frame directly (through its XCloseable interface) it would bypass your interceptor. The XCloseListener is the more general and safe approach. Ciao, 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]
