]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/docchfrm.tex
no changes, just come cleanup and more comments
[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 wxWidgets,
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{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
40The document associated with the frame.
41
42\membersection{wxDocChildFrame::m\_childView}\label{wxdocchildframemchildview}
43
44\member{wxView*}{m\_childView}
45
46The 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
55Constructor.
56
57\membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}\label{wxdocchildframedtor}
58
59\func{}{\destruct{wxDocChildFrame}}{\void}
60
61Destructor.
62
63\membersection{wxDocChildFrame::GetDocument}\label{wxdocchildframegetdocument}
64
65\constfunc{wxDocument*}{GetDocument}{\void}
66
67Returns the document associated with this frame.
68
69\membersection{wxDocChildFrame::GetView}\label{wxdocchildframegetview}
70
71\constfunc{wxView*}{GetView}{\void}
72
73Returns the view associated with this frame.
74
75\membersection{wxDocChildFrame::OnActivate}\label{wxdocchildframeonactivate}
76
77\func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
78
79Sets the currently active view to be the frame's view. You may need
80to override (but still call) this function in order to set the keyboard
81focus for your subwindow.
82
83\membersection{wxDocChildFrame::OnCloseWindow}\label{wxdocchildframeonclosewindow}
84
85\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
86
87Closes and deletes the current view and document.
88
89\membersection{wxDocChildFrame::SetDocument}\label{wxdocchildframesetdocument}
90
91\func{void}{SetDocument}{\param{wxDocument *}{doc}}
92
93Sets the document for this frame.
94
95\membersection{wxDocChildFrame::SetView}\label{wxdocchildframesetview}
96
97\func{void}{SetView}{\param{wxView *}{view}}
98
99Sets the view for this frame.
100
101