Added Ok() member for print data, print dialog, page dialog, page dialog data

so we can test in advance whether the print/page setup dialogs will fail.
Removed assertions that would fire if the default printer was not found, for example.
Added call to Ok() from HTML print code with suitable error message.
Commented out my erroneous fix to wxStaticText.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-05-08 19:00:43 +00:00
parent c0187f69d6
commit 58cf0491e3
6 changed files with 79 additions and 8 deletions

View File

@@ -50,6 +50,14 @@ Destructor.
Returns the \helpref{page setup data}{wxpagesetupdialogdata} associated with the dialog.
\membersection{wxPageSetupDialog::Ok}\label{wxpagesetupdialogok}
\constfunc{bool}{Ok}{\void}
Returns TRUE if the print data associated with the dialog data is valid.
This can return FALSE on Windows if the current printer is not set, for example.
On all other platforms, it returns TRUE.
\membersection{wxPageSetupDialog::ShowModal}\label{wxpagesetupdialogshowmodal}
\func{int}{ShowModal}{\void}
@@ -218,6 +226,14 @@ Returns the paper size in millimetres.
Returns a reference to the \helpref{print data}{wxprintdata} associated with this object.
\membersection{wxPageSetupDialogData::Ok}\label{wxpagesetupdialogdataok}
\constfunc{bool}{Ok}{\void}
Returns TRUE if the print data associated with the dialog data is valid.
This can return FALSE on Windows if the current printer is not set, for example.
On all other platforms, it returns TRUE.
\membersection{wxPageSetupDialogData::SetDefaultInfo}\label{wxpagesetupdialogdatasetdefaultinfo}
\func{void}{SetDefaultInfo}{\param{bool}{ flag}}

View File

@@ -134,6 +134,14 @@ wxPRINT_QUALITY_DRAFT
On input you should pass one of these identifiers, but on return you may get back a positive integer
indicating the current resolution setting.
\membersection{wxPrintData::Ok}\label{wxprintdataok}
\constfunc{bool}{Ok}{\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{wxPrintData::SetCollate}\label{wxprintdatasetcollate}
\func{void}{SetCollate}{\param{bool }{flag}}
@@ -338,6 +346,14 @@ When this function has been called, the ownership of the device context
is transferred to the application, so it must then be deleted
explicitly.
\membersection{wxPrintDialog::Ok}\label{wxprintdialogok}
\constfunc{bool}{Ok}{\void}
Returns TRUE if the print data associated with the dialog is valid.
This can return FALSE on Windows if the current printer is not set, for example.
On all other platforms, it returns TRUE.
\membersection{wxPrintDialog::ShowModal}\label{wxprintdialogshowmodal}
\func{int}{ShowModal}{\void}
@@ -470,6 +486,14 @@ a concept specific to the application).
Returns the {\it to} page number, as entered by the user.
\membersection{wxPrintDialogData::Ok}\label{wxprintdialogdataok}
\constfunc{bool}{Ok}{\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}}