#include </home/zeitlin/src/wx/github/interface/wx/docview.h>
Inheritance diagram for wxDocChildFrame:The wxDocChildFrame class provides a default frame for displaying documents on separate windows.
This class can only be used for SDI (not MDI) child frames.
The class is part of the document/view framework supported by wxWidgets, and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate classes.
Notice that this class handles wxEVT_ACTIVATE event and activates the child view on receiving it. Don't intercept this event unless you want to prevent from this happening.
The same remark applies to wxEVT_CLOSE_WINDOW, as wxDocParentFrame the frame handles this event by trying to close the associated view.
Public Member Functions | |
| wxDocChildFrame (wxDocument *doc, wxView *view, wxFrame *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr) | |
| Constructor. | |
| virtual | ~wxDocChildFrame () |
| Destructor. | |
| wxDocument * | GetDocument () const |
| Returns the document associated with this frame. | |
| wxView * | GetView () const |
| Returns the view associated with this frame. | |
| void | SetDocument (wxDocument *doc) |
| Sets the document for this frame. | |
| void | SetView (wxView *view) |
| Sets the view for this frame. | |
Public Attributes | |
| wxDocument * | m_childDocument |
| The document associated with the frame. | |
| wxView * | m_childView |
| The view associated with the frame. | |
| wxDocChildFrame::wxDocChildFrame | ( | wxDocument * | doc, |
| wxView * | view, | ||
| wxFrame * | parent, | ||
| wxWindowID | id, | ||
| const wxString & | title, | ||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| long | style = wxDEFAULT_FRAME_STYLE, |
||
| const wxString & | name = wxFrameNameStr |
||
| ) |
Constructor.
| virtual wxDocChildFrame::~wxDocChildFrame | ( | ) | [virtual] |
Destructor.
| wxDocument* wxDocChildFrame::GetDocument | ( | ) | const |
Returns the document associated with this frame.
| wxView* wxDocChildFrame::GetView | ( | ) | const |
Returns the view associated with this frame.
| void wxDocChildFrame::SetDocument | ( | wxDocument * | doc | ) |
Sets the document for this frame.
| void wxDocChildFrame::SetView | ( | wxView * | view | ) |
Sets the view for this frame.
The document associated with the frame.
The view associated with the frame.