]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/docchfrm.tex
Removed some TODOs in the Latex docs; changed wxMotif wxClipboard to match
[wxWidgets.git] / docs / latex / wx / docchfrm.tex
CommitLineData
a660d684
KB
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{See also}
20
21\helpref{Document/view overview}{docviewoverview}, \helpref{wxFrame}{wxframe}
22
23\membersection{wxDocChildFrame::m\_childDocument}
24
25\member{wxDocument*}{m\_childDocument}
26
27The document associated with the frame.
28
29\membersection{wxDocChildFrame::m\_childView}
30
31\member{wxView*}{m\_childView}
32
33The view associated with the frame.
34
35\membersection{wxDocChildFrame::wxDocChildFrame}
36
37\func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent},
f7bd2698 38 \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
a660d684
KB
39 \param{const wxSize\&}{ size = wxDefaultSize},
40 \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
41
42Constructor.
43
44\membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}
45
46\func{}{\destruct{wxDocChildFrame}}{\void}
47
48Destructor.
49
50\membersection{wxDocChildFrame::GetDocument}
51
52\constfunc{wxDocument*}{GetDocument}{\void}
53
54Returns the document associated with this frame.
55
56\membersection{wxDocChildFrame::GetView}
57
58\constfunc{wxView*}{GetView}{\void}
59
60Returns the view associated with this frame.
61
62\membersection{wxDocChildFrame::OnActivate}
63
82540ef2 64\func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
a660d684
KB
65
66Sets the currently active view to be the frame's view. You may need
67to override (but still call) this function in order to set the keyboard
68focus for your subwindow.
69
82540ef2 70\membersection{wxDocChildFrame::OnCloseWindow}
a660d684 71
82540ef2 72\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
a660d684
KB
73
74Closes and deletes the current view and document.
75
76\membersection{wxDocChildFrame::SetDocument}
77
78\func{void}{SetDocument}{\param{wxDocument *}{doc}}
79
80Sets the document for this frame.
81
82\membersection{wxDocChildFrame::SetView}
83
84\func{void}{SetView}{\param{wxView *}{view}}
85
86Sets the view for this frame.
87
88