1998-05-20 10:25:30 -04:00
|
|
|
\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}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/print.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxPreviewFrame}{wxpreviewframe}, \helpref{wxPreviewControlBar}{wxpreviewcontrolbar},\rtfsp
|
|
|
|
\helpref{wxPrintPreview}{wxprintpreview}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewCanvas::wxPreviewCanvas}\label{wxpreviewcanvasctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\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.
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewCanvas::\destruct{wxPreviewCanvas}}\label{wxpreviewcanvasdtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\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}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/print.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxPreviewFrame}{wxpreviewframe}, \helpref{wxPreviewCanvas}{wxpreviewcanvas},\rtfsp
|
|
|
|
\helpref{wxPrintPreview}{wxprintpreview}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxPreviewControlBar::wxPreviewControlbar}\label{wxpreviewcontrolbarctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\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}
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxPreviewControlBar::\destruct{wxPreviewControlBar}}\label{wxpreviewcontrolbardtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{\destruct{wxPreviewControlBar}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxPreviewControlBar::CreateButtons}\label{wxpreviewcontrolbarcreatebuttons}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{CreateButtons}{\void}
|
|
|
|
|
|
|
|
Creates buttons, according to value of the button style flags.
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxPreviewControlBar::GetPrintPreview}\label{wxpreviewcontrolbargetprintpreview}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{wxPrintPreview *}{GetPrintPreview}{\void}
|
|
|
|
|
|
|
|
Gets the print preview object associated with the control bar.
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxPreviewControlBar::GetZoomControl}\label{wxpreviewcontrolbargetzoomcontrol}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{int}{GetZoomControl}{\void}
|
|
|
|
|
|
|
|
Gets the current zoom setting in percent.
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxPreviewControlBar::SetZoomControl}\label{wxpreviewcontrolbarsetzoomcontrol}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\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}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/print.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxPreviewCanvas}{wxpreviewcanvas}, \helpref{wxPreviewControlBar}{wxpreviewcontrolbar},\rtfsp
|
|
|
|
\helpref{wxPrintPreview}{wxprintpreview}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewFrame::wxPreviewFrame}\label{wxpreviewframector}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2003-05-26 05:55:28 -04:00
|
|
|
\func{}{wxPreviewFrame}{\param{wxPrintPreview* }{preview}, \param{wxWindow* }{parent}, \param{const wxString\& }{title},
|
1998-05-20 10:25:30 -04:00
|
|
|
\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.
|
2003-05-21 11:45:57 -04:00
|
|
|
The print preview object will be destroyed by the frame when it closes.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewFrame::\destruct{wxPreviewFrame}}\label{wxpreviewframedtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{\destruct{wxPreviewFrame}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewFrame::CreateControlBar}\label{wxpreviewframecreatecontrolbar}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{CreateControlBar}{\void}
|
|
|
|
|
|
|
|
Creates a wxPreviewControlBar. Override this function to allow
|
|
|
|
a user-defined preview control bar object to be created.
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewFrame::CreateCanvas}\label{wxpreviewframecreatecanvas}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{CreateCanvas}{\void}
|
|
|
|
|
|
|
|
Creates a wxPreviewCanvas. Override this function to allow
|
|
|
|
a user-defined preview canvas object to be created.
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewFrame::Initialize}\label{wxpreviewframeinitialize}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{Initialize}{\void}
|
|
|
|
|
|
|
|
Creates the preview canvas and control bar, and calls
|
2003-01-17 19:16:34 -05:00
|
|
|
wxWindow::MakeModal(true) to disable other top-level windows
|
1998-05-20 10:25:30 -04:00
|
|
|
in the application.
|
|
|
|
|
|
|
|
This function should be called by the application prior to
|
|
|
|
showing the frame.
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxPreviewFrame::OnCloseWindow}\label{wxpreviewframeonclosewindow}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-02-05 18:55:04 -05:00
|
|
|
\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Enables the other frames in the application, and deletes the print preview
|
|
|
|
object, implicitly deleting any printout objects associated with the print
|
|
|
|
preview object.
|
|
|
|
|