1999-10-17 09:03:40 -04:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen from
|
|
|
|
% htmprint.h at 17/Oct/99 12:48:02
|
|
|
|
%
|
|
|
|
|
|
|
|
\section{\class{wxHtmlEasyPrinting}}\label{wxhtmleasyprinting}
|
|
|
|
|
|
|
|
This class provides very simple interface to printing
|
1999-10-25 09:46:48 -04:00
|
|
|
architecture. It allows you to print HTML documents using
|
|
|
|
only a few commands.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\wxheading{Note}
|
1999-10-25 09:46:48 -04:00
|
|
|
|
|
|
|
Do not create this class on the stack only. You should create an instance on app
|
1999-10-17 09:03:40 -04:00
|
|
|
startup and use this instance for all printing operations. The reason is that
|
|
|
|
this class stores various settings in it.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
2000-02-27 16:06:58 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/html/htmprint.h>
|
|
|
|
|
|
|
|
|
1999-10-17 09:03:40 -04:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting}\label{wxhtmleasyprintingwxhtmleasyprinting}
|
|
|
|
|
|
|
|
\func{}{wxHtmlEasyPrinting}{\param{const wxString\& }{name = "Printing"}, \param{wxFrame* }{parent\_frame = NULL}}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{name}{Name of the printing. Used by preview frames and setup dialogs.}
|
|
|
|
|
|
|
|
\docparam{parent\_frame}{pointer to the frame that will own preview frame and setup dialogs. May be NULL.}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PreviewFile}\label{wxhtmleasyprintingpreviewfile}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
\func{bool}{PreviewFile}{\param{const wxString\& }{htmlfile}}
|
|
|
|
|
|
|
|
Preview HTML file.
|
|
|
|
|
|
|
|
Returns FALSE in case of error -- call
|
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PreviewText}\label{wxhtmleasyprintingpreviewtext}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
\func{bool}{PreviewText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
|
|
|
|
|
|
|
|
Preview HTML text (not file!).
|
1999-10-17 09:03:40 -04:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Returns FALSE in case of error -- call
|
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{htmltext}{HTML text.}
|
|
|
|
|
|
|
|
\docparam{basepath}{base directory (html string would be stored there if it was in
|
|
|
|
file). It is used to determine path for loading images, for example.}
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PrintFile}\label{wxhtmleasyprintingprintfile}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
\func{bool}{PrintFile}{\param{const wxString\& }{htmlfile}}
|
1999-10-17 09:03:40 -04:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Print HTML file.
|
|
|
|
|
|
|
|
Returns FALSE in case of error -- call
|
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PrintText}\label{wxhtmleasyprintingprinttext}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
\func{bool}{PrintText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
|
|
|
|
|
|
|
|
Print HTML text (not file!).
|
1999-10-17 09:03:40 -04:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Returns FALSE in case of error -- call
|
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{htmltext}{HTML text.}
|
|
|
|
|
|
|
|
\docparam{basepath}{base directory (html string would be stored there if it was in
|
|
|
|
file). It is used to determine path for loading images, for example.}
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PrinterSetup}\label{wxhtmleasyprintingprintersetup}
|
|
|
|
|
|
|
|
\func{void}{PrinterSetup}{\void}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Display printer setup dialog and allows the user to modify settings.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PageSetup}\label{wxhtmleasyprintingpagesetup}
|
|
|
|
|
|
|
|
\func{void}{PageSetup}{\void}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Display page setup dialog and allows the user to modify settings.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::SetHeader}\label{wxhtmleasyprintingsetheader}
|
|
|
|
|
|
|
|
\func{void}{SetHeader}{\param{const wxString\& }{header}, \param{int }{pg = wxPAGE\_ALL}}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Set page header.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{header}{HTML text to be used as header. You can use macros in it:
|
1999-10-25 09:46:48 -04:00
|
|
|
|
|
|
|
\begin{itemize}\itemsep=0pt
|
1999-10-17 09:03:40 -04:00
|
|
|
\item @PAGENUM@ is replaced by page number
|
|
|
|
\item @PAGESCNT@ is replaced by total number of pages
|
|
|
|
\end{itemize}
|
|
|
|
}
|
|
|
|
|
|
|
|
\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::SetFooter}\label{wxhtmleasyprintingsetfooter}
|
|
|
|
|
|
|
|
\func{void}{SetFooter}{\param{const wxString\& }{footer}, \param{int }{pg = wxPAGE\_ALL}}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Set page footer.
|
1999-10-17 09:03:40 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{footer}{HTML text to be used as footer. You can use macros in it:
|
1999-10-25 09:46:48 -04:00
|
|
|
|
|
|
|
\begin{itemize}\itemsep=0pt
|
1999-10-17 09:03:40 -04:00
|
|
|
\item @PAGENUM@ is replaced by page number
|
|
|
|
\item @PAGESCNT@ is replaced by total number of pages
|
|
|
|
\end{itemize}
|
|
|
|
}
|
|
|
|
|
|
|
|
\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::GetPrintData}\label{wxhtmleasyprintinggetprintdata}
|
|
|
|
|
|
|
|
\func{wxPrintData*}{GetPrintData}{\void}
|
|
|
|
|
|
|
|
Returns pointer to \helpref{wxPrintData}{wxprintdata} instance used by this class. You can
|
|
|
|
set its parameters (via SetXXXX methods).
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::GetPageSetupData}\label{wxhtmleasyprintinggetpagesetupdata}
|
|
|
|
|
|
|
|
\func{wxPageSetupDialogData*}{GetPageSetupData}{\void}
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
Returns a pointer to \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} instance used by
|
1999-10-17 09:03:40 -04:00
|
|
|
this class. You can set its parameters (via SetXXXX methods).
|
1999-10-25 09:46:48 -04:00
|
|
|
|