1999-10-17 13:03:40 +00: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 13:46:48 +00:00
|
|
|
architecture. It allows you to print HTML documents using
|
|
|
|
only a few commands.
|
1999-10-17 13:03:40 +00:00
|
|
|
|
|
|
|
\wxheading{Note}
|
1999-10-25 13:46:48 +00:00
|
|
|
|
|
|
|
Do not create this class on the stack only. You should create an instance on app
|
1999-10-17 13:03:40 +00: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 21:06:58 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/html/htmprint.h>
|
|
|
|
|
|
|
|
|
1999-10-17 13:03:40 +00:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting}\label{wxhtmleasyprintingwxhtmleasyprinting}
|
|
|
|
|
2003-05-26 09:55:28 +00:00
|
|
|
\func{}{wxHtmlEasyPrinting}{\param{const wxString\& }{name = "Printing"}, \param{wxWindow* }{parentWindow = NULL}}
|
1999-10-17 13:03:40 +00:00
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
2003-05-26 09:55:28 +00:00
|
|
|
\docparam{name}{Name of the printing object. Used by preview frames and setup dialogs.}
|
1999-10-17 13:03:40 +00:00
|
|
|
|
2003-05-26 09:55:28 +00:00
|
|
|
\docparam{parentWindow}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.}
|
1999-10-17 13:03:40 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PreviewFile}\label{wxhtmleasyprintingpreviewfile}
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
\func{bool}{PreviewFile}{\param{const wxString\& }{htmlfile}}
|
|
|
|
|
|
|
|
Preview HTML file.
|
|
|
|
|
2003-01-18 00:16:34 +00:00
|
|
|
Returns false in case of error -- call
|
2000-07-15 19:51:35 +00:00
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 13:03:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PreviewText}\label{wxhtmleasyprintingpreviewtext}
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
\func{bool}{PreviewText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
|
|
|
|
|
|
|
|
Preview HTML text (not file!).
|
1999-10-17 13:03:40 +00:00
|
|
|
|
2003-01-18 00:16:34 +00:00
|
|
|
Returns false in case of error -- call
|
2000-07-15 19:51:35 +00:00
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 13:03:40 +00: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 19:51:35 +00:00
|
|
|
\func{bool}{PrintFile}{\param{const wxString\& }{htmlfile}}
|
1999-10-17 13:03:40 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
Print HTML file.
|
|
|
|
|
2003-01-18 00:16:34 +00:00
|
|
|
Returns false in case of error -- call
|
2000-07-15 19:51:35 +00:00
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 13:03:40 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlEasyPrinting::PrintText}\label{wxhtmleasyprintingprinttext}
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
\func{bool}{PrintText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
|
|
|
|
|
|
|
|
Print HTML text (not file!).
|
1999-10-17 13:03:40 +00:00
|
|
|
|
2003-01-18 00:16:34 +00:00
|
|
|
Returns false in case of error -- call
|
2000-07-15 19:51:35 +00:00
|
|
|
\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
|
|
|
|
information about the kind of the error.
|
1999-10-17 13:03:40 +00: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::PageSetup}\label{wxhtmleasyprintingpagesetup}
|
|
|
|
|
|
|
|
\func{void}{PageSetup}{\void}
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
Display page setup dialog and allows the user to modify settings.
|
1999-10-17 13:03:40 +00:00
|
|
|
|
2003-03-16 20:30:26 +00:00
|
|
|
\membersection{wxHtmlEasyPrinting::SetFonts}\label{wxhtmleasyprintingsetfonts}
|
|
|
|
|
|
|
|
\func{void}{SetFonts}{\param{wxString }{normal\_face}, \param{wxString }{fixed\_face}, \param{const int }{*sizes = NULL}}
|
|
|
|
|
|
|
|
Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for
|
|
|
|
detailed description.
|
|
|
|
|
1999-10-17 13:03:40 +00:00
|
|
|
\membersection{wxHtmlEasyPrinting::SetHeader}\label{wxhtmleasyprintingsetheader}
|
|
|
|
|
|
|
|
\func{void}{SetHeader}{\param{const wxString\& }{header}, \param{int }{pg = wxPAGE\_ALL}}
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
Set page header.
|
1999-10-17 13:03:40 +00:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{header}{HTML text to be used as header. You can use macros in it:
|
1999-10-25 13:46:48 +00:00
|
|
|
|
|
|
|
\begin{itemize}\itemsep=0pt
|
1999-10-17 13:03:40 +00: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 19:51:35 +00:00
|
|
|
Set page footer.
|
1999-10-17 13:03:40 +00:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{footer}{HTML text to be used as footer. You can use macros in it:
|
1999-10-25 13:46:48 +00:00
|
|
|
|
|
|
|
\begin{itemize}\itemsep=0pt
|
1999-10-17 13:03:40 +00: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 13:46:48 +00:00
|
|
|
Returns a pointer to \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} instance used by
|
1999-10-17 13:03:40 +00:00
|
|
|
this class. You can set its parameters (via SetXXXX methods).
|
1999-10-25 13:46:48 +00:00
|
|
|
|