]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htprint.tex
Addition at simple wxObject*, support into wxVariant.
[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
4eecf115
VS
30\membersection{wxHtmlPrintout::SetFonts}\label{wxhtmlprintoutsetfonts}
31
32\func{void}{SetFonts}{\param{wxString }{normal\_face}, \param{wxString }{fixed\_face}, \param{const int }{*sizes = NULL}}
33
34Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for
35detailed description.
3ce369e6 36
09397bc6 37\membersection{wxHtmlPrintout::SetFooter}\label{wxhtmlprintoutsetfooter}
3ce369e6 38
09397bc6 39\func{void}{SetFooter}{\param{const wxString\& }{footer}, \param{int }{pg = wxPAGE\_ALL}}
3ce369e6 40
09397bc6 41Sets page footer.
3ce369e6 42
09397bc6 43\wxheading{Parameters}
3ce369e6 44
09397bc6
VS
45\docparam{footer}{HTML text to be used as footer. You can use macros in it:
46\begin{itemize}
47\item @PAGENUM@ is replaced by page number
48\item @PAGESCNT@ is replaced by total number of pages
49\end{itemize}
50}
3ce369e6 51
09397bc6 52\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
3ce369e6 53
3ce369e6 54
3ce369e6
VS
55\membersection{wxHtmlPrintout::SetHeader}\label{wxhtmlprintoutsetheader}
56
57\func{void}{SetHeader}{\param{const wxString\& }{header}, \param{int }{pg = wxPAGE\_ALL}}
58
59Sets page header.
60
61\wxheading{Parameters}
62
63\docparam{header}{HTML text to be used as header. You can use macros in it:
09397bc6 64\begin{itemize}
3ce369e6
VS
65\item @PAGENUM@ is replaced by page number
66\item @PAGESCNT@ is replaced by total number of pages
67\end{itemize}
68}
69
70\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
71
72
09397bc6 73\membersection{wxHtmlPrintout::SetHtmlFile}\label{wxhtmlprintoutsethtmlfile}
3ce369e6 74
09397bc6 75\func{void}{SetHtmlFile}{\param{const wxString\& }{htmlfile}}
3ce369e6 76
09397bc6
VS
77Prepare the class for printing this HTML {\bf file}. The file may be located on
78any virtual file system or it may be normal file.
79
80
81
82\membersection{wxHtmlPrintout::SetHtmlText}\label{wxhtmlprintoutsethtmltext}
83
cc81d32f 84\func{void}{SetHtmlText}{\param{const wxString\& }{html}, \param{const wxString\& }{basepath = wxEmptyString}, \param{bool }{isdir = true}}
09397bc6
VS
85
86Prepare the class for printing this HTML text.
3ce369e6
VS
87
88\wxheading{Parameters}
89
09397bc6
VS
90\docparam{html}{HTML text. (NOT file!)}
91
92\docparam{basepath}{base directory (html string would be stored there if it was in
93file). It is used to determine path for loading images, for example.}
94
cc81d32f 95\docparam{isdir}{false if basepath is filename, true if it is directory name
09397bc6 96(see \helpref{wxFileSystem}{wxfilesystem} for detailed explanation)}
448af9a4 97
3ce369e6 98
3ce369e6 99
3ce369e6
VS
100\membersection{wxHtmlPrintout::SetMargins}\label{wxhtmlprintoutsetmargins}
101
102\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}}
103
2edb0bde 104Sets margins in millimeters. Defaults to 1 inch for margins and 0.5cm for space
3ce369e6
VS
105between text and header and/or footer
106