#include <docviewref.h>
Public Member Functions | |
| a2dCloseDocumentEvent (int id=0) | |
| constructor | |
| a2dCloseDocumentEvent (const a2dCloseDocumentEvent &event) | |
| constructor | |
| virtual wxEvent * | Clone () const |
| clone the event | |
The event Object is a a2dDocument. The type of the event is wxEVT_CLOSE_DOCUMENT. This event is sent form bool a2dDocument::Close( bool force ) to the a2dDocument itself.
The default handler is a2dDocument::OnCloseDocument(). Which, if not vetod, disconnects ( and maybe closes ) the views on the document using a2dDocument::DisconnectAllViews(). This will generate a wxEVT_DISCONNECT_ALLVIEWS event for the a2dDocument, and the same event is sent to the a2dEventDistributer for distribution. Views should either close or detach themselfs from the document.
Definition at line 683 of file docviewref.h.