]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/docchfrm.tex
allow to optionally use vendor name component in standard paths (slightly modified...
[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
fc2171bd 6The class is part of the document/view framework supported by wxWidgets,
a660d684
KB
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}\\
7376079d 15\helpref{wxTopLevelWindow}{wxtoplevelwindow}\\
a660d684
KB
16\helpref{wxWindow}{wxwindow}\\
17\helpref{wxEvtHandler}{wxevthandler}\\
18\helpref{wxObject}{wxobject}
19
954b8ae6
JS
20\wxheading{Include files}
21
22<wx/docview.h>
23
a7af285d
VZ
24\wxheading{Library}
25
26\helpref{wxCore}{librarieslist}
27
a660d684
KB
28\wxheading{See also}
29
30\helpref{Document/view overview}{docviewoverview}, \helpref{wxFrame}{wxframe}
31
809e21b5
FM
32
33
34\latexignore{\rtfignore{\wxheading{Members}}}
35
b236c10f 36\membersection{wxDocChildFrame::m\_childDocument}\label{wxdocchildframemchilddocument}
a660d684
KB
37
38\member{wxDocument*}{m\_childDocument}
39
40The document associated with the frame.
41
b236c10f 42\membersection{wxDocChildFrame::m\_childView}\label{wxdocchildframemchildview}
a660d684
KB
43
44\member{wxView*}{m\_childView}
45
46The view associated with the frame.
47
b236c10f 48\membersection{wxDocChildFrame::wxDocChildFrame}\label{wxdocchildframector}
a660d684
KB
49
50\func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent},
f7bd2698 51 \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
a660d684
KB
52 \param{const wxSize\&}{ size = wxDefaultSize},
53 \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
54
55Constructor.
56
b236c10f 57\membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}\label{wxdocchildframedtor}
a660d684
KB
58
59\func{}{\destruct{wxDocChildFrame}}{\void}
60
61Destructor.
62
b236c10f 63\membersection{wxDocChildFrame::GetDocument}\label{wxdocchildframegetdocument}
a660d684
KB
64
65\constfunc{wxDocument*}{GetDocument}{\void}
66
67Returns the document associated with this frame.
68
b236c10f 69\membersection{wxDocChildFrame::GetView}\label{wxdocchildframegetview}
a660d684
KB
70
71\constfunc{wxView*}{GetView}{\void}
72
73Returns the view associated with this frame.
74
b236c10f 75\membersection{wxDocChildFrame::OnActivate}\label{wxdocchildframeonactivate}
a660d684 76
82540ef2 77\func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
a660d684
KB
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
b236c10f 83\membersection{wxDocChildFrame::OnCloseWindow}\label{wxdocchildframeonclosewindow}
a660d684 84
82540ef2 85\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
a660d684
KB
86
87Closes and deletes the current view and document.
88
b236c10f 89\membersection{wxDocChildFrame::SetDocument}\label{wxdocchildframesetdocument}
a660d684
KB
90
91\func{void}{SetDocument}{\param{wxDocument *}{doc}}
92
93Sets the document for this frame.
94
b236c10f 95\membersection{wxDocChildFrame::SetView}\label{wxdocchildframesetview}
a660d684
KB
96
97\func{void}{SetView}{\param{wxView *}{view}}
98
99Sets the view for this frame.
100
101