18 #ifndef _WX_DOCMDIREF_H_
19 #define _WX_DOCMDIREF_H_
23 #if wxUSE_MDI_ARCHITECTURE && wxUSE_DOC_VIEW_ARCHITECTURE
51 const wxString& title,
const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxT(
"frame" ) );
70 const wxString& title = wxT(
"frame" ),
71 const wxPoint& pos = wxDefaultPosition,
72 const wxSize& size = wxDefaultSize,
73 long style = wxDEFAULT_FRAME_STYLE,
74 const wxString& name = wxT(
"frame" ) );
77 virtual bool ProcessEvent( wxEvent& event );
80 void OnExit( wxCommandEvent& event );
83 void OnMRUFile( wxCommandEvent& event );
86 void OnCloseWindow( wxCloseEvent& event );
116 void AddCmdMenu( wxMenu* parentMenu,
const a2dMenuIdItem& cmdId );
120 void AddCmdMenu( wxMenu* parentMenu, wxMenuItem* item );
126 void RemoveCmdMenu( wxMenu* parentMenu,
const a2dMenuIdItem& cmdId );
135 void OnCmdMenuId( wxCommandEvent& event );
140 DECLARE_EVENT_TABLE()
171 wxMDIParentFrame* frame,
174 const wxString& title = wxT(
"a2dDocumentMDIChildFrame" ),
175 const wxPoint& pos = wxDefaultPosition,
176 const wxSize& size = wxDefaultSize,
177 long style = wxDEFAULT_FRAME_STYLE,
178 const wxString& name = wxT(
"a2dDocumentMDIChildFrame" ) );
193 wxMDIParentFrame* frame,
196 const wxString& title = wxT(
"a2dDocumentMDIChildFrame" ),
197 const wxPoint& pos = wxDefaultPosition,
198 const wxSize& size = wxDefaultSize,
199 long style = wxDEFAULT_FRAME_STYLE,
200 const wxString& name = wxT(
"a2dDocumentMDIChildFrame" ) );
219 void SetDestroyOnCloseView(
bool destroyOnCloseView ) { m_destroyOnCloseView = destroyOnCloseView; }
222 virtual bool ProcessEvent( wxEvent& event );
224 void OnActivate( wxActivateEvent& event );
225 void OnCloseWindow( wxCloseEvent& event );
234 virtual void OnDraw( wxDC& dc );
264 void AddCmdMenu( wxMenu* parentMenu,
const a2dMenuIdItem& cmdId );
268 void AddCmdMenu( wxMenu* parentMenu, wxMenuItem* item );
274 void RemoveCmdMenu( wxMenu* parentMenu,
const a2dMenuIdItem& cmdId );
283 void OnCmdMenuId( wxCommandEvent& event );
286 void OnPaint( wxPaintEvent& event );
295 void OnActivateViewSentFromChild(
a2dViewEvent& viewevent );
306 DECLARE_EVENT_TABLE()
The a2dDocumentMDIChildFrame class provides a default frame for displaying documents.
a2dView * GetView(void) const
get the pointer to a a2dView to which view events are sent
a2dView event, to report events in the a2dView class
Holds a view on a a2dDocument.
Docview classes for document view, window and frame.
bool m_destroyOnCloseView
when closing the view the frame will be destroyed.
Use wxDocMDIParentFrame instead of wxDocMDIParentFrame.
a2dSmrtPtr< a2dView > m_view