File: prevwin.tex

package info (click to toggle)
wxwidgets2.8 2.8.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 239,052 kB
  • ctags: 289,550
  • sloc: cpp: 1,838,857; xml: 396,717; python: 282,506; ansic: 126,171; makefile: 51,406; sh: 14,581; asm: 299; sql: 258; lex: 194; perl: 139; yacc: 128; pascal: 95; php: 39; lisp: 38; tcl: 24; haskell: 20; java: 18; cs: 18; erlang: 17; ruby: 16; ada: 9; ml: 9; csh: 9
file content (189 lines) | stat: -rw-r--r-- 6,241 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
\section{\class{wxPreviewCanvas}}\label{wxpreviewcanvas}

A preview canvas is the default canvas used by the print preview
system to display the preview.

\wxheading{Derived from}

\helpref{wxScrolledWindow}{wxscrolledwindow}\\
\helpref{wxWindow}{wxwindow}\\
\helpref{wxevthandler}{wxevthandler}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/print.h>

\wxheading{See also}

\helpref{wxPreviewFrame}{wxpreviewframe}, \helpref{wxPreviewControlBar}{wxpreviewcontrolbar},\rtfsp
\helpref{wxPrintPreview}{wxprintpreview}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxPreviewCanvas::wxPreviewCanvas}\label{wxpreviewcanvasctor}

\func{}{wxPreviewCanvas}{\param{wxPrintPreview* }{preview}, \param{wxWindow* }{parent},
 \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},
 \param{long}{ style = 0}, \param{const wxString\& }{name = ``canvas"}}

Constructor.

\membersection{wxPreviewCanvas::\destruct{wxPreviewCanvas}}\label{wxpreviewcanvasdtor}

\func{}{\destruct{wxPreviewCanvas}}{\void}

Destructor.

\membersection{wxPreviewCanvas::OnPaint}\label{wxpreviewcanvasonpaint}

\func{void}{OnPaint}{\param{wxPaintEvent\& }{event}}

Calls \helpref{wxPrintPreview::PaintPage}{wxprintpreviewpaintpage} to refresh the canvas.

\section{\class{wxPreviewControlBar}}\label{wxpreviewcontrolbar}

This is the default implementation of the preview control bar, a panel
with buttons and a zoom control. You can derive a new class from this and
override some or all member functions to change the behaviour and appearance;
or you can leave it as it is.

\wxheading{Derived from}

\helpref{wxPanel}{wxpanel}\\
\helpref{wxWindow}{wxwindow}\\
\helpref{wxEvtHandler}{wxevthandler}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/print.h>

\wxheading{See also}

\helpref{wxPreviewFrame}{wxpreviewframe}, \helpref{wxPreviewCanvas}{wxpreviewcanvas},\rtfsp
\helpref{wxPrintPreview}{wxprintpreview}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxPreviewControlBar::wxPreviewControlbar}\label{wxpreviewcontrolbarctor}

\func{}{wxPreviewControlBar}{\param{wxPrintPreview* }{preview}, \param{long}{ buttons}, \param{wxWindow* }{parent},
 \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},
 \param{long}{ style = 0}, \param{const wxString\& }{name = ``panel"}}

Constructor.

The buttons parameter may be a combination of the following, using the bitwise `or' operator.

\begin{twocollist}\itemsep=0pt
\twocolitem{wxPREVIEW\_PRINT}{Create a print button.}
\twocolitem{wxPREVIEW\_NEXT}{Create a next page button.}
\twocolitem{wxPREVIEW\_PREVIOUS}{Create a previous page button.}
\twocolitem{wxPREVIEW\_ZOOM}{Create a zoom control.}
\twocolitem{wxPREVIEW\_DEFAULT}{Equivalent to a combination of wxPREVIEW\_PREVIOUS, wxPREVIEW\_NEXT and
wxPREVIEW\_ZOOM.}
\end{twocollist}

\membersection{wxPreviewControlBar::\destruct{wxPreviewControlBar}}\label{wxpreviewcontrolbardtor}

\func{}{\destruct{wxPreviewControlBar}}{\void}

Destructor.

\membersection{wxPreviewControlBar::CreateButtons}\label{wxpreviewcontrolbarcreatebuttons}

\func{void}{CreateButtons}{\void}

Creates buttons, according to value of the button style flags.

\membersection{wxPreviewControlBar::GetPrintPreview}\label{wxpreviewcontrolbargetprintpreview}

\func{wxPrintPreview *}{GetPrintPreview}{\void}

Gets the print preview object associated with the control bar.

\membersection{wxPreviewControlBar::GetZoomControl}\label{wxpreviewcontrolbargetzoomcontrol}

\func{int}{GetZoomControl}{\void}

Gets the current zoom setting in percent.

\membersection{wxPreviewControlBar::SetZoomControl}\label{wxpreviewcontrolbarsetzoomcontrol}

\func{void}{SetZoomControl}{\param{int }{percent}}

Sets the zoom control.

\section{\class{wxPreviewFrame}}\label{wxpreviewframe}

This class provides the default method of managing the print preview interface.
Member functions may be overridden to replace functionality, or the
class may be used without derivation.

\wxheading{Derived from}

\helpref{wxFrame}{wxframe}\\
\helpref{wxWindow}{wxwindow}\\
\helpref{wxEvtHandler}{wxevthandler}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/print.h>

\wxheading{See also}

\helpref{wxPreviewCanvas}{wxpreviewcanvas}, \helpref{wxPreviewControlBar}{wxpreviewcontrolbar},\rtfsp
\helpref{wxPrintPreview}{wxprintpreview}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxPreviewFrame::wxPreviewFrame}\label{wxpreviewframector}

\func{}{wxPreviewFrame}{\param{wxPrintPreview* }{preview}, \param{wxWindow* }{parent}, \param{const wxString\& }{title},
 \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& size }{size = wxDefaultSize},
 \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}

Constructor. Pass a print preview object plus other normal frame arguments.
The print preview object will be destroyed by the frame when it closes.

\membersection{wxPreviewFrame::\destruct{wxPreviewFrame}}\label{wxpreviewframedtor}

\func{}{\destruct{wxPreviewFrame}}{\void}

Destructor. 

\membersection{wxPreviewFrame::CreateControlBar}\label{wxpreviewframecreatecontrolbar}

\func{void}{CreateControlBar}{\void}

Creates a wxPreviewControlBar. Override this function to allow
a user-defined preview control bar object to be created.

\membersection{wxPreviewFrame::CreateCanvas}\label{wxpreviewframecreatecanvas}

\func{void}{CreateCanvas}{\void}

Creates a wxPreviewCanvas. Override this function to allow
a user-defined preview canvas object to be created.

\membersection{wxPreviewFrame::Initialize}\label{wxpreviewframeinitialize}

\func{void}{Initialize}{\void}

Creates the preview canvas and control bar, and calls
wxWindow::MakeModal(true) to disable other top-level windows
in the application.

This function should be called by the application prior to
showing the frame.

\membersection{wxPreviewFrame::OnCloseWindow}\label{wxpreviewframeonclosewindow}

\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}

Enables the other frames in the application, and deletes the print preview
object, implicitly deleting any printout objects associated with the print
preview object.