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
}
16 \wxheading{Include files
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxHtmlPrintout::wxHtmlPrintout
}\label{wxhtmlprintoutwxhtmlprintout
}
25 \func{}{wxHtmlPrintout
}{\param{const wxString\&
}{title = "Printout"
}}
30 \membersection{wxHtmlPrintout::AddFilter
}\label{wxhtmlprintoutaddfilter
}
32 \func{static void
}{AddFilter
}{\param{wxHtmlFilter*
}{filter
}}
34 Adds a filter to the static list of filters for wxHtmlPrintout. See
\helpref{wxHtmlFilter
}{wxhtmlfilter
} for
37 \membersection{wxHtmlPrintout::SetFonts
}\label{wxhtmlprintoutsetfonts
}
39 \func{void
}{SetFonts
}{\param{wxString
}{normal
\_face},
\param{wxString
}{fixed
\_face},
\param{const int
}{*sizes = NULL
}}
41 Sets fonts. See
\helpref{wxHtmlWindow::SetFonts
}{wxhtmlwindowsetfonts
} for
44 \membersection{wxHtmlPrintout::SetFooter
}\label{wxhtmlprintoutsetfooter
}
46 \func{void
}{SetFooter
}{\param{const wxString\&
}{footer
},
\param{int
}{pg = wxPAGE
\_ALL}}
50 \wxheading{Parameters
}
52 \docparam{footer
}{HTML text to be used as footer. You can use macros in it:
54 \item @PAGENUM@ is replaced by page number
55 \item @PAGESCNT@ is replaced by total number of pages
59 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
62 \membersection{wxHtmlPrintout::SetHeader
}\label{wxhtmlprintoutsetheader
}
64 \func{void
}{SetHeader
}{\param{const wxString\&
}{header
},
\param{int
}{pg = wxPAGE
\_ALL}}
68 \wxheading{Parameters
}
70 \docparam{header
}{HTML text to be used as header. You can use macros in it:
72 \item @PAGENUM@ is replaced by page number
73 \item @PAGESCNT@ is replaced by total number of pages
77 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
80 \membersection{wxHtmlPrintout::SetHtmlFile
}\label{wxhtmlprintoutsethtmlfile
}
82 \func{void
}{SetHtmlFile
}{\param{const wxString\&
}{htmlfile
}}
84 Prepare the class for printing this HTML
{\bf file
}. The file may be located on
85 any virtual file system or it may be normal file.
89 \membersection{wxHtmlPrintout::SetHtmlText
}\label{wxhtmlprintoutsethtmltext
}
91 \func{void
}{SetHtmlText
}{\param{const wxString\&
}{html
},
\param{const wxString\&
}{basepath = wxEmptyString
},
\param{bool
}{isdir = true
}}
93 Prepare the class for printing this HTML text.
95 \wxheading{Parameters
}
97 \docparam{html
}{HTML text. (NOT file!)
}
99 \docparam{basepath
}{base directory (html string would be stored there if it was in
100 file). It is used to determine path for loading images, for example.
}
102 \docparam{isdir
}{false if basepath is filename, true if it is directory name
103 (see
\helpref{wxFileSystem
}{wxfilesystem
} for detailed explanation)
}
107 \membersection{wxHtmlPrintout::SetMargins
}\label{wxhtmlprintoutsetmargins
}
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}}
111 Sets margins in millimeters. Defaults to
1 inch for margins and
0.5cm for space
112 between text and header and/or footer