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