]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/docchfrm.tex
corrected the 'Derived from' sections using the script from the patch 1765640
[wxWidgets.git] / docs / latex / wx / docchfrm.tex
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 \membersection{wxDocChildFrame::m\_childDocument}\label{wxdocchildframemchilddocument}
33
34 \member{wxDocument*}{m\_childDocument}
35
36 The document associated with the frame.
37
38 \membersection{wxDocChildFrame::m\_childView}\label{wxdocchildframemchildview}
39
40 \member{wxView*}{m\_childView}
41
42 The view associated with the frame.
43
44 \membersection{wxDocChildFrame::wxDocChildFrame}\label{wxdocchildframector}
45
46 \func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent},
47 \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
48 \param{const wxSize\&}{ size = wxDefaultSize},
49 \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
50
51 Constructor.
52
53 \membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}\label{wxdocchildframedtor}
54
55 \func{}{\destruct{wxDocChildFrame}}{\void}
56
57 Destructor.
58
59 \membersection{wxDocChildFrame::GetDocument}\label{wxdocchildframegetdocument}
60
61 \constfunc{wxDocument*}{GetDocument}{\void}
62
63 Returns the document associated with this frame.
64
65 \membersection{wxDocChildFrame::GetView}\label{wxdocchildframegetview}
66
67 \constfunc{wxView*}{GetView}{\void}
68
69 Returns the view associated with this frame.
70
71 \membersection{wxDocChildFrame::OnActivate}\label{wxdocchildframeonactivate}
72
73 \func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
74
75 Sets the currently active view to be the frame's view. You may need
76 to override (but still call) this function in order to set the keyboard
77 focus for your subwindow.
78
79 \membersection{wxDocChildFrame::OnCloseWindow}\label{wxdocchildframeonclosewindow}
80
81 \func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
82
83 Closes and deletes the current view and document.
84
85 \membersection{wxDocChildFrame::SetDocument}\label{wxdocchildframesetdocument}
86
87 \func{void}{SetDocument}{\param{wxDocument *}{doc}}
88
89 Sets the document for this frame.
90
91 \membersection{wxDocChildFrame::SetView}\label{wxdocchildframesetview}
92
93 \func{void}{SetView}{\param{wxView *}{view}}
94
95 Sets the view for this frame.
96
97