Public Member Functions | List of all members

sent to document before closing More...

#include <docviewref.h>

Inheritance diagram for a2dCloseDocumentEvent:
Inheritance graph
Collaboration diagram for a2dCloseDocumentEvent:
Collaboration graph

Public Member Functions

 a2dCloseDocumentEvent (int id=0)
 a2dCloseDocumentEvent (const a2dCloseDocumentEvent &event)
virtual wxEvent * Clone () const
 clone the event

Detailed Description

sent to document before closing

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 the view itself. Register your wxEvtHandler to recieve it. Views should either close or detach themselfs from the document.

Definition at line 558 of file docviewref.h.

The documentation for this class was generated from the following file:
a2dCloseDocumentEvent Class Reference -- Sun Oct 12 2014 17:04:31 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation