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.

HTH,
Sascha

Robert Vojta schrieb:
Hallo,

is there a way how to consume event receieved from document's XEventListenrr?

I can listen for events, but I have no idea how to consume them. The
goal is simple  - when I have non-modal JFrame opened, I would like to
remove possibility to close document until my JFrame disappears.

Best regards,
Robert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to