]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/docmdi.h
Implement setFont on the iOS port of wxStaticText.
[wxWidgets.git] / interface / wx / docmdi.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: docmdi.h
0c1fe6e9 3// Purpose: interface of wxDocMDIParentFrame and wxDocMDIChildFrame
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxDocMDIParentFrame
7c913512 10
23324ae1 11 The wxDocMDIParentFrame class provides a default top-level frame for
0c1fe6e9
BP
12 applications using the document/view framework. This class can only be used
13 for MDI parent frames.
7c913512 14
0c1fe6e9
BP
15 It cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
16 classes.
7c913512 17
23324ae1 18 @library{wxcore}
0c1fe6e9 19 @category{docview}
7c913512 20
0c1fe6e9 21 @see @ref overview_docview, @ref page_samples_docview, wxMDIParentFrame
23324ae1
FM
22*/
23class wxDocMDIParentFrame : public wxMDIParentFrame
24{
25public:
26 //@{
27 /**
28 Constructor.
29 */
30 wxDocMDIParentFrame();
4cc4bfaf 31 wxDocMDIParentFrame(wxDocManager* manager, wxFrame* parent,
7c913512
FM
32 wxWindowID id,
33 const wxString& title,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = wxDEFAULT_FRAME_STYLE,
408776d0 37 const wxString& name = wxFrameNameStr);
23324ae1
FM
38 //@}
39
40 /**
41 Destructor.
42 */
adaaa686 43 virtual ~wxDocMDIParentFrame();
23324ae1
FM
44
45 /**
46 Creates the window.
47 */
4cc4bfaf 48 bool Create(wxDocManager* manager, wxFrame* parent,
23324ae1
FM
49 wxWindowID id, const wxString& title,
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& size = wxDefaultSize,
52 long style = wxDEFAULT_FRAME_STYLE,
408776d0 53 const wxString& name = wxFrameNameStr);
23324ae1
FM
54};
55
56
e54c96f1 57
23324ae1
FM
58/**
59 @class wxDocMDIChildFrame
7c913512 60
0c1fe6e9
BP
61 The wxDocMDIChildFrame class provides a default frame for displaying
62 documents on separate windows. This class can only be used for MDI child
63 frames.
7c913512 64
23324ae1 65 The class is part of the document/view framework supported by wxWidgets,
0c1fe6e9
BP
66 and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
67 classes.
7c913512 68
23324ae1 69 @library{wxcore}
0c1fe6e9 70 @category{docview}
7c913512 71
0c1fe6e9 72 @see @ref overview_docview, @ref page_samples_docview, wxMDIChildFrame
23324ae1
FM
73*/
74class wxDocMDIChildFrame : public wxMDIChildFrame
75{
76public:
77 /**
78 Constructor.
79 */
80 wxDocMDIChildFrame(wxDocument* doc, wxView* view,
408776d0 81 wxMDIParentFrame* parent, wxWindowID id,
23324ae1
FM
82 const wxString& title,
83 const wxPoint& pos = wxDefaultPosition,
84 const wxSize& size = wxDefaultSize,
85 long style = wxDEFAULT_FRAME_STYLE,
408776d0 86 const wxString& name = wxFrameNameStr);
23324ae1
FM
87
88 /**
89 Destructor.
90 */
adaaa686 91 virtual ~wxDocMDIChildFrame();
23324ae1
FM
92
93 /**
94 Returns the document associated with this frame.
95 */
328f5751 96 wxDocument* GetDocument() const;
23324ae1
FM
97
98 /**
99 Returns the view associated with this frame.
100 */
328f5751 101 wxView* GetView() const;
23324ae1 102
23324ae1
FM
103 /**
104 Sets the document for this frame.
105 */
4cc4bfaf 106 void SetDocument(wxDocument* doc);
23324ae1
FM
107
108 /**
109 Sets the view for this frame.
110 */
4cc4bfaf 111 void SetView(wxView* view);
23324ae1 112};
e54c96f1 113