2 % automatically generated by HelpGen from
3 % htmprint.h at 17/Oct/99 12:48:02
7 \section{\class{wxHtmlPrintout
}}\label{wxhtmlprintout
}
9 This class serves as printout class for HTML documents.
11 \wxheading{Derived from
}
13 \helpref{wxPrintout
}{wxprintout
}\\
14 \helpref{wxObject
}{wxobject
}
17 \wxheading{Include files
}
23 \helpref{wxHtml
}{librarieslist
}
25 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxHtmlPrintout::wxHtmlPrintout
}\label{wxhtmlprintoutwxhtmlprintout
}
30 \func{}{wxHtmlPrintout
}{\param{const wxString\&
}{title = "Printout"
}}
35 \membersection{wxHtmlPrintout::AddFilter
}\label{wxhtmlprintoutaddfilter
}
37 \func{static void
}{AddFilter
}{\param{wxHtmlFilter*
}{filter
}}
39 Adds a filter to the static list of filters for wxHtmlPrintout. See
\helpref{wxHtmlFilter
}{wxhtmlfilter
} for
42 \membersection{wxHtmlPrintout::SetFonts
}\label{wxhtmlprintoutsetfonts
}
44 \func{void
}{SetFonts
}{\param{const wxString\&
}{normal
\_face},
\param{const wxString\&
}{fixed
\_face},
\param{const int
}{*sizes = NULL
}}
46 Sets fonts. See
\helpref{wxHtmlWindow::SetFonts
}{wxhtmlwindowsetfonts
} for
49 \membersection{wxHtmlPrintout::SetFooter
}\label{wxhtmlprintoutsetfooter
}
51 \func{void
}{SetFooter
}{\param{const wxString\&
}{footer
},
\param{int
}{pg = wxPAGE
\_ALL}}
53 Set page footer. The following macros can be used inside it:
54 \input htprintmacros.inc
56 \wxheading{Parameters
}
58 \docparam{footer
}{HTML text to be used as footer.
}
60 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
63 \membersection{wxHtmlPrintout::SetHeader
}\label{wxhtmlprintoutsetheader
}
65 \func{void
}{SetHeader
}{\param{const wxString\&
}{header
},
\param{int
}{pg = wxPAGE
\_ALL}}
67 Set page header. The following macros can be used inside it:
68 \input htprintmacros.inc
70 \wxheading{Parameters
}
72 \docparam{header
}{HTML text to be used as header.
}
74 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
77 \membersection{wxHtmlPrintout::SetHtmlFile
}\label{wxhtmlprintoutsethtmlfile
}
79 \func{void
}{SetHtmlFile
}{\param{const wxString\&
}{htmlfile
}}
81 Prepare the class for printing this HTML
{\bf file
}. The file may be located on
82 any virtual file system or it may be normal file.
86 \membersection{wxHtmlPrintout::SetHtmlText
}\label{wxhtmlprintoutsethtmltext
}
88 \func{void
}{SetHtmlText
}{\param{const wxString\&
}{html
},
\param{const wxString\&
}{basepath = wxEmptyString
},
\param{bool
}{isdir = true
}}
90 Prepare the class for printing this HTML text.
92 \wxheading{Parameters
}
94 \docparam{html
}{HTML text. (NOT file!)
}
96 \docparam{basepath
}{base directory (html string would be stored there if it was in
97 file). It is used to determine path for loading images, for example.
}
99 \docparam{isdir
}{false if basepath is filename, true if it is directory name
100 (see
\helpref{wxFileSystem
}{wxfilesystem
} for detailed explanation)
}
104 \membersection{wxHtmlPrintout::SetMargins
}\label{wxhtmlprintoutsetmargins
}
106 \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}}
108 Sets margins in millimeters. Defaults to
1 inch for margins and
0.5cm for space
109 between text and header and/or footer