]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/docmdi.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxDocMDIParentFrame and wxDocMDIChildFrame
4 // Author: wxWidgets team
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxDocMDIParentFrame
12 The wxDocMDIParentFrame class provides a default top-level frame for
13 applications using the document/view framework. This class can only be used
14 for MDI parent frames.
16 It cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
22 @see @ref overview_docview, @ref page_samples_docview, wxMDIParentFrame
24 class wxDocMDIParentFrame
: public wxMDIParentFrame
31 wxDocMDIParentFrame();
32 wxDocMDIParentFrame(wxDocManager
* manager
, wxFrame
* parent
,
34 const wxString
& title
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
37 long style
= wxDEFAULT_FRAME_STYLE
,
38 const wxString
& name
= wxFrameNameStr
);
44 virtual ~wxDocMDIParentFrame();
49 bool Create(wxDocManager
* manager
, wxFrame
* parent
,
50 wxWindowID id
, const wxString
& title
,
51 const wxPoint
& pos
= wxDefaultPosition
,
52 const wxSize
& size
= wxDefaultSize
,
53 long style
= wxDEFAULT_FRAME_STYLE
,
54 const wxString
& name
= wxFrameNameStr
);
60 @class wxDocMDIChildFrame
62 The wxDocMDIChildFrame class provides a default frame for displaying
63 documents on separate windows. This class can only be used for MDI child
66 The class is part of the document/view framework supported by wxWidgets,
67 and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
73 @see @ref overview_docview, @ref page_samples_docview, wxMDIChildFrame
75 class wxDocMDIChildFrame
: public wxMDIChildFrame
81 wxDocMDIChildFrame(wxDocument
* doc
, wxView
* view
,
82 wxMDIParentFrame
* parent
, wxWindowID id
,
83 const wxString
& title
,
84 const wxPoint
& pos
= wxDefaultPosition
,
85 const wxSize
& size
= wxDefaultSize
,
86 long style
= wxDEFAULT_FRAME_STYLE
,
87 const wxString
& name
= wxFrameNameStr
);
92 virtual ~wxDocMDIChildFrame();
95 Returns the document associated with this frame.
97 wxDocument
* GetDocument() const;
100 Returns the view associated with this frame.
102 wxView
* GetView() const;
105 Sets the document for this frame.
107 void SetDocument(wxDocument
* doc
);
110 Sets the view for this frame.
112 void SetView(wxView
* view
);