]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htprint.tex
define _HPUX_SOURCE under HP-UX, otherwise many things are not defined in standard...
[wxWidgets.git] / docs / latex / wx / htprint.tex
CommitLineData
3ce369e6
VS
1%
2% automatically generated by HelpGen from
3% htmprint.h at 17/Oct/99 12:48:02
4%
5
09397bc6 6
3ce369e6
VS
7\section{\class{wxHtmlPrintout}}\label{wxhtmlprintout}
8
09397bc6 9This class serves as printout class for HTML documents.
3ce369e6
VS
10
11\wxheading{Derived from}
12
13\helpref{wxPrintout}{wxprintout}
14
09397bc6 15
9704b250
VS
16\wxheading{Include files}
17
18<wx/html/htmprint.h>
19
3ce369e6
VS
20\latexignore{\rtfignore{\wxheading{Members}}}
21
09397bc6 22
3ce369e6
VS
23\membersection{wxHtmlPrintout::wxHtmlPrintout}\label{wxhtmlprintoutwxhtmlprintout}
24
25\func{}{wxHtmlPrintout}{\param{const wxString\& }{title = "Printout"}}
26
27Constructor.
28
3ce369e6 29
fa10c70c
JS
30\membersection{wxHtmlPrintout::AddFilter}\label{wxhtmlprintoutaddfilter}
31
32\func{static void}{AddFilter}{\param{wxHtmlFilter* }{filter}}
33
34Adds a filter to the static list of filters for wxHtmlPrintout. See \helpref{wxHtmlFilter}{wxhtmlfilter} for
35further information.
36
4eecf115
VS
37\membersection{wxHtmlPrintout::SetFonts}\label{wxhtmlprintoutsetfonts}
38
fbfb8bcc 39\func{void}{SetFonts}{\param{const wxString\& }{normal\_face}, \param{const wxString\& }{fixed\_face}, \param{const int }{*sizes = NULL}}
4eecf115
VS
40
41Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for
42detailed description.
3ce369e6 43
09397bc6 44\membersection{wxHtmlPrintout::SetFooter}\label{wxhtmlprintoutsetfooter}
3ce369e6 45
09397bc6 46\func{void}{SetFooter}{\param{const wxString\& }{footer}, \param{int }{pg = wxPAGE\_ALL}}
3ce369e6 47
09397bc6 48Sets page footer.
3ce369e6 49
09397bc6 50\wxheading{Parameters}
3ce369e6 51
09397bc6
VS
52\docparam{footer}{HTML text to be used as footer. You can use macros in it:
53\begin{itemize}
54\item @PAGENUM@ is replaced by page number
55\item @PAGESCNT@ is replaced by total number of pages
56\end{itemize}
57}
3ce369e6 58
09397bc6 59\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
3ce369e6 60
3ce369e6 61
3ce369e6
VS
62\membersection{wxHtmlPrintout::SetHeader}\label{wxhtmlprintoutsetheader}
63
64\func{void}{SetHeader}{\param{const wxString\& }{header}, \param{int }{pg = wxPAGE\_ALL}}
65
66Sets page header.
67
68\wxheading{Parameters}
69
70\docparam{header}{HTML text to be used as header. You can use macros in it:
09397bc6 71\begin{itemize}
3ce369e6
VS
72\item @PAGENUM@ is replaced by page number
73\item @PAGESCNT@ is replaced by total number of pages
74\end{itemize}
75}
76
77\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
78
79
09397bc6 80\membersection{wxHtmlPrintout::SetHtmlFile}\label{wxhtmlprintoutsethtmlfile}
3ce369e6 81
09397bc6 82\func{void}{SetHtmlFile}{\param{const wxString\& }{htmlfile}}
3ce369e6 83
09397bc6
VS
84Prepare the class for printing this HTML {\bf file}. The file may be located on
85any virtual file system or it may be normal file.
86
87
88
89\membersection{wxHtmlPrintout::SetHtmlText}\label{wxhtmlprintoutsethtmltext}
90
cc81d32f 91\func{void}{SetHtmlText}{\param{const wxString\& }{html}, \param{const wxString\& }{basepath = wxEmptyString}, \param{bool }{isdir = true}}
09397bc6
VS
92
93Prepare the class for printing this HTML text.
3ce369e6
VS
94
95\wxheading{Parameters}
96
09397bc6
VS
97\docparam{html}{HTML text. (NOT file!)}
98
99\docparam{basepath}{base directory (html string would be stored there if it was in
100file). It is used to determine path for loading images, for example.}
101
cc81d32f 102\docparam{isdir}{false if basepath is filename, true if it is directory name
09397bc6 103(see \helpref{wxFileSystem}{wxfilesystem} for detailed explanation)}
448af9a4 104
3ce369e6 105
3ce369e6 106
3ce369e6
VS
107\membersection{wxHtmlPrintout::SetMargins}\label{wxhtmlprintoutsetmargins}
108
109\func{void}{SetMargins}{\param{float }{top = 25.2}, \param{float }{bottom = 25.2}, \param{float }{left = 25.2}, \param{float }{right = 25.2}, \param{float }{spaces = 5}}
110
2edb0bde 111Sets margins in millimeters. Defaults to 1 inch for margins and 0.5cm for space
3ce369e6
VS
112between text and header and/or footer
113