]>
Commit | Line | Data |
---|---|---|
1 | \section{\class{wxDocChildFrame}}\label{wxdocchildframe} | |
2 | ||
3 | The wxDocChildFrame class provides a default frame for displaying documents | |
4 | on separate windows. This class can only be used for SDI (not MDI) child frames. | |
5 | ||
6 | The class is part of the document/view framework supported by wxWidgets, | |
7 | and cooperates with the \helpref{wxView}{wxview}, \helpref{wxDocument}{wxdocument}, | |
8 | \rtfsp\helpref{wxDocManager}{wxdocmanager} and \helpref{wxDocTemplate}{wxdoctemplate} classes. | |
9 | ||
10 | See the example application in {\tt samples/docview}. | |
11 | ||
12 | \wxheading{Derived from} | |
13 | ||
14 | \helpref{wxFrame}{wxframe}\\ | |
15 | \helpref{wxTopLevelWindow}{wxtoplevelwindow}\\ | |
16 | \helpref{wxWindow}{wxwindow}\\ | |
17 | \helpref{wxEvtHandler}{wxevthandler}\\ | |
18 | \helpref{wxObject}{wxobject} | |
19 | ||
20 | \wxheading{Include files} | |
21 | ||
22 | <wx/docview.h> | |
23 | ||
24 | \wxheading{Library} | |
25 | ||
26 | \helpref{wxCore}{librarieslist} | |
27 | ||
28 | \wxheading{See also} | |
29 | ||
30 | \helpref{Document/view overview}{docviewoverview}, \helpref{wxFrame}{wxframe} | |
31 | ||
32 | ||
33 | ||
34 | \latexignore{\rtfignore{\wxheading{Members}}} | |
35 | ||
36 | \membersection{wxDocChildFrame::m\_childDocument}\label{wxdocchildframemchilddocument} | |
37 | ||
38 | \member{wxDocument*}{m\_childDocument} | |
39 | ||
40 | The document associated with the frame. | |
41 | ||
42 | \membersection{wxDocChildFrame::m\_childView}\label{wxdocchildframemchildview} | |
43 | ||
44 | \member{wxView*}{m\_childView} | |
45 | ||
46 | The view associated with the frame. | |
47 | ||
48 | \membersection{wxDocChildFrame::wxDocChildFrame}\label{wxdocchildframector} | |
49 | ||
50 | \func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent}, | |
51 | \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition}, | |
52 | \param{const wxSize\&}{ size = wxDefaultSize}, | |
53 | \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}} | |
54 | ||
55 | Constructor. | |
56 | ||
57 | \membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}\label{wxdocchildframedtor} | |
58 | ||
59 | \func{}{\destruct{wxDocChildFrame}}{\void} | |
60 | ||
61 | Destructor. | |
62 | ||
63 | \membersection{wxDocChildFrame::GetDocument}\label{wxdocchildframegetdocument} | |
64 | ||
65 | \constfunc{wxDocument*}{GetDocument}{\void} | |
66 | ||
67 | Returns the document associated with this frame. | |
68 | ||
69 | \membersection{wxDocChildFrame::GetView}\label{wxdocchildframegetview} | |
70 | ||
71 | \constfunc{wxView*}{GetView}{\void} | |
72 | ||
73 | Returns the view associated with this frame. | |
74 | ||
75 | \membersection{wxDocChildFrame::OnActivate}\label{wxdocchildframeonactivate} | |
76 | ||
77 | \func{void}{OnActivate}{\param{wxActivateEvent}{ event}} | |
78 | ||
79 | Sets the currently active view to be the frame's view. You may need | |
80 | to override (but still call) this function in order to set the keyboard | |
81 | focus for your subwindow. | |
82 | ||
83 | \membersection{wxDocChildFrame::OnCloseWindow}\label{wxdocchildframeonclosewindow} | |
84 | ||
85 | \func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}} | |
86 | ||
87 | Closes and deletes the current view and document. | |
88 | ||
89 | \membersection{wxDocChildFrame::SetDocument}\label{wxdocchildframesetdocument} | |
90 | ||
91 | \func{void}{SetDocument}{\param{wxDocument *}{doc}} | |
92 | ||
93 | Sets the document for this frame. | |
94 | ||
95 | \membersection{wxDocChildFrame::SetView}\label{wxdocchildframesetview} | |
96 | ||
97 | \func{void}{SetView}{\param{wxView *}{view}} | |
98 | ||
99 | Sets the view for this frame. | |
100 | ||
101 |