⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 print.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 4 页
字号:
\section{\class{wxPrintDialog}}\label{wxprintdialog}This class represents the print and print setup common dialogs.You may obtain a \helpref{wxPrinterDC}{wxprinterdc} device context froma successfully dismissed print dialog.\wxheading{Derived from}\helpref{wxDialog}{wxdialog}\\\helpref{wxWindow}{wxwindow}\\\helpref{wxEvtHandler}{wxevthandler}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/printdlg.h>\wxheading{See also}\helpref{Printing framework overview}{printingoverview}, \helpref{wxPrintDialog Overview}{wxprintdialogoverview}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxPrintDialog::wxPrintDialog}\label{wxprintdialogctor}\func{}{wxPrintDialog}{\param{wxWindow* }{parent}, \param{wxPrintDialogData* }{data = NULL}}Constructor. Pass a parent window, and optionally a pointer to a block of printdata, which will be copied to the print dialog's print data.\wxheading{See also}\helpref{wxPrintDialogData}{wxprintdialogdata}\membersection{wxPrintDialog::\destruct{wxPrintDialog}}\label{wxprintdialogdtor}\func{}{\destruct{wxPrintDialog}}{\void}Destructor. If wxPrintDialog::GetPrintDC has {\it not} been called,the device context obtained by the dialog (if any) will be deleted.\membersection{wxPrintDialog::GetPrintDialogData}\label{wxprintdialoggetprintdialogdata}\func{wxPrintDialogData\&}{GetPrintDialogData}{\void}Returns the \helpref{print dialog data}{wxprintdialogdata} associated with the print dialog.\membersection{wxPrintDialog::GetPrintDC}\label{wxprintdialoggetprintdc}\func{wxDC* }{GetPrintDC}{\void}Returns the device context created by the print dialog, if any.When this function has been called, the ownership of the device contextis transferred to the application, so it must then be deletedexplicitly.\membersection{wxPrintDialog::ShowModal}\label{wxprintdialogshowmodal}\func{int}{ShowModal}{\void}Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCELotherwise. After this function is called, a device context maybe retrievable using \helpref{wxPrintDialog::GetPrintDC}{wxprintdialoggetprintdc}.\section{\class{wxPrintDialogData}}\label{wxprintdialogdata}This class holds information related to the visual characteristics of wxPrintDialog.It contains a wxPrintData object with underlying printing settings.\wxheading{Derived from}\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/cmndata.h>\wxheading{See also}\helpref{Printing framework overview}{printingoverview}, \helpref{wxPrintDialog}{wxprintdialog}, \helpref{wxPrintDialog Overview}{wxprintdialogoverview}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxPrintDialogData::wxPrintDialogData}\label{wxprintdialogdatactor}\func{}{wxPrintDialogData}{\void}Default constructor.\func{}{wxPrintDialogData}{\param{wxPrintDialogData\&}{ dialogData}}Copy constructor.\func{}{wxPrintDialogData}{\param{wxPrintData\&}{ printData}}Construct an object from a print dialog data object.\membersection{wxPrintDialogData::\destruct{wxPrintDialogData}}\label{wxprintdialogdatadtor}\func{}{\destruct{wxPrintDialogData}}{\void}Destructor.\membersection{wxPrintDialogData::EnableHelp}\label{wxprintdialogdataenablehelp}\func{void}{EnableHelp}{\param{bool }{flag}}Enables or disables the `Help' button.\membersection{wxPrintDialogData::EnablePageNumbers}\label{wxprintdialogdataenablepagenumbers}\func{void}{EnablePageNumbers}{\param{bool }{flag}}Enables or disables the `Page numbers' controls.\membersection{wxPrintDialogData::EnablePrintToFile}\label{wxprintdialogdataenableprinttofile}\func{void}{EnablePrintToFile}{\param{bool }{flag}}Enables or disables the `Print to file' checkbox.\membersection{wxPrintDialogData::EnableSelection}\label{wxprintdialogdataenableselection}\func{void}{EnableSelection}{\param{bool }{flag}}Enables or disables the `Selection' radio button.\membersection{wxPrintDialogData::GetAllPages}\label{wxprintdialogdatagetallpages}\constfunc{bool}{GetAllPages}{\void}Returns true if the user requested that all pages be printed.\membersection{wxPrintDialogData::GetCollate}\label{wxprintdialogdatagetcollate}\constfunc{bool}{GetCollate}{\void}Returns true if the user requested that the document(s) be collated.\membersection{wxPrintDialogData::GetFromPage}\label{wxprintdialogdatagetfrompage}\constfunc{int}{GetFromPage}{\void}Returns the {\it from} page number, as entered by the user.\membersection{wxPrintDialogData::GetMaxPage}\label{wxprintdialogdatagetmaxpage}\constfunc{int}{GetMaxPage}{\void}Returns the {\it maximum} page number.\membersection{wxPrintDialogData::GetMinPage}\label{wxprintdialogdatagetminpage}\constfunc{int}{GetMinPage}{\void}Returns the {\it minimum} page number.\membersection{wxPrintDialogData::GetNoCopies}\label{wxprintdialogdatagetnocopies}\constfunc{int}{GetNoCopies}{\void}Returns the number of copies requested by the user.\membersection{wxPrintDialogData::GetPrintData}\label{wxprintdialogdatagetprintdata}\func{wxPrintData\&}{GetPrintData}{\void}Returns a reference to the internal wxPrintData object.\membersection{wxPrintDialogData::GetPrintToFile}\label{wxprintdialogdatagetprinttofile}\constfunc{bool}{GetPrintToFile}{\void}Returns true if the user has selected printing to a file.\membersection{wxPrintDialogData::GetSelection}\label{wxprintdialogdatagetselection}\constfunc{bool}{GetSelection}{\void}Returns true if the user requested that the selection be printed (where 'selection' isa concept specific to the application).\membersection{wxPrintDialogData::GetToPage}\label{wxprintdialogdatagettopage}\constfunc{int}{GetToPage}{\void}Returns the {\it to} page number, as entered by the user.\membersection{wxPrintDialogData::IsOk}\label{wxprintdialogdataisok}\constfunc{bool}{IsOk}{\void}Returns true if the print data is valid for using in print dialogs.This can return false on Windows if the current printer is not set, for example.On all other platforms, it returns true.\membersection{wxPrintDialogData::SetCollate}\label{wxprintdialogdatasetcollate}\func{void}{SetCollate}{\param{bool }{flag}}Sets the 'Collate' checkbox to true or false.\membersection{wxPrintDialogData::SetFromPage}\label{wxprintdialogdatasetfrompage}\func{void}{SetFromPage}{\param{int }{page}}Sets the {\it from} page number.\membersection{wxPrintDialogData::SetMaxPage}\label{wxprintdialogdatasetmaxpage}\func{void}{SetMaxPage}{\param{int }{page}}Sets the {\it maximum} page number.\membersection{wxPrintDialogData::SetMinPage}\label{wxprintdialogdatasetminpage}\func{void}{SetMinPage}{\param{int }{page}}Sets the {\it minimum} page number.\membersection{wxPrintDialogData::SetNoCopies}\label{wxprintdialogdatasetnocopies}\func{void}{SetNoCopies}{\param{int }{n}}Sets the default number of copies the user has requested to be printed out.\membersection{wxPrintDialogData::SetPrintData}\label{wxprintdialogdatasetprintdata}\func{void}{SetPrintData}{\param{const wxPrintData\& }{printData}}Sets the internal wxPrintData.\membersection{wxPrintDialogData::SetPrintToFile}\label{wxprintdialogdatasetprinttofile}\func{void}{SetPrintToFile}{\param{bool }{flag}}Sets the 'Print to file' checkbox to true or false.\membersection{wxPrintDialogData::SetSelection}\label{wxprintdialogdatasetselection}\func{void}{SetSelection}{\param{bool}{ flag}}Selects the 'Selection' radio button. The effect of printing the selection depends on how the applicationimplements this command, if at all.\membersection{wxPrintDialogData::SetSetupDialog}\label{wxprintdialogdatasetsetupdialog}\func{void}{SetSetupDialog}{\param{bool }{flag}}Determines whether the dialog to be shown will be the Print dialog(pass false) or Print Setup dialog (pass true).This function has been deprecated since version 2.5.4.\membersection{wxPrintDialogData::SetToPage}\label{wxprintdialogdatasettopage}\func{void}{SetToPage}{\param{int }{page}}Sets the {\it to} page number.\membersection{wxPrintDialogData::operator $=$}\label{wxprintdialogdataassign}\func{void}{operator $=$}{\param{const wxPrintData\&}{ data}}Assigns print data to this object.\func{void}{operator $=$}{\param{const wxPrintDialogData\&}{ data}}Assigns another print dialog data object to this object.\section{\class{wxPrinter}}\label{wxprinter}This class represents the Windows or PostScript printer, and is the vehicle throughwhich printing may be launched by an application. Printing can alsobe achieved through using of lower functions and classes, butthis and associated classes provide a more convenient and generalmethod of printing.\wxheading{Derived from}\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/print.h>\wxheading{See also}\helpref{Printing framework overview}{printingoverview}, \helpref{wxPrinterDC}{wxprinterdc}, \helpref{wxPrintDialog}{wxprintdialog}, \helpref{wxPrintout}{wxprintout}, \helpref{wxPrintPreview}{wxprintpreview}.\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxPrinter::wxPrinter}\label{wxprinterctor}\func{}{wxPrinter}{\param{wxPrintDialogData* }{data = NULL}}Constructor. Pass an optional pointer to a block of printdialog data, which will be copied to the printer object's local data.\wxheading{See also}\helpref{wxPrintDialogData}{wxprintdialogdata},\helpref{wxPrintData}{wxprintdata}\membersection{wxPrinter::CreateAbortWindow}\label{wxprintercreateabortwindow}\func{void}{CreateAbortWindow}{\param{wxWindow* }{parent}, \param{wxPrintout* }{printout}}Creates the default printing abort window, with a cancel button.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -