]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/docmdi.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxDocMDIParentFrame and wxDocMDIChildFrame
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
9 @class wxDocMDIParentFrame
11 The wxDocMDIParentFrame class provides a default top-level frame for
12 applications using the document/view framework. This class can only be used
13 for MDI parent frames.
15 It cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
21 @see @ref overview_docview, @ref page_samples_docview, wxMDIParentFrame
23 class wxDocMDIParentFrame
: public wxMDIParentFrame
30 wxDocMDIParentFrame();
31 wxDocMDIParentFrame(wxDocManager
* manager
, wxFrame
* parent
,
33 const wxString
& title
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
36 long style
= wxDEFAULT_FRAME_STYLE
,
37 const wxString
& name
= wxFrameNameStr
);
43 virtual ~wxDocMDIParentFrame();
48 bool Create(wxDocManager
* manager
, wxFrame
* parent
,
49 wxWindowID id
, const wxString
& title
,
50 const wxPoint
& pos
= wxDefaultPosition
,
51 const wxSize
& size
= wxDefaultSize
,
52 long style
= wxDEFAULT_FRAME_STYLE
,
53 const wxString
& name
= wxFrameNameStr
);
59 @class wxDocMDIChildFrame
61 The wxDocMDIChildFrame class provides a default frame for displaying
62 documents on separate windows. This class can only be used for MDI child
65 The class is part of the document/view framework supported by wxWidgets,
66 and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
72 @see @ref overview_docview, @ref page_samples_docview, wxMDIChildFrame
74 class wxDocMDIChildFrame
: public wxMDIChildFrame
80 wxDocMDIChildFrame(wxDocument
* doc
, wxView
* view
,
81 wxMDIParentFrame
* parent
, wxWindowID id
,
82 const wxString
& title
,
83 const wxPoint
& pos
= wxDefaultPosition
,
84 const wxSize
& size
= wxDefaultSize
,
85 long style
= wxDEFAULT_FRAME_STYLE
,
86 const wxString
& name
= wxFrameNameStr
);
91 virtual ~wxDocMDIChildFrame();
94 Returns the document associated with this frame.
96 wxDocument
* GetDocument() const;
99 Returns the view associated with this frame.
101 wxView
* GetView() const;
104 Sets the document for this frame.
106 void SetDocument(wxDocument
* doc
);
109 Sets the view for this frame.
111 void SetView(wxView
* view
);