]>
Commit | Line | Data |
---|---|---|
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 | 9 | This 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 | ||
a7af285d VZ |
20 | \wxheading{Library} |
21 | ||
22 | \helpref{wxHtml}{librarieslist} | |
23 | ||
3ce369e6 VS |
24 | \latexignore{\rtfignore{\wxheading{Members}}} |
25 | ||
09397bc6 | 26 | |
3ce369e6 VS |
27 | \membersection{wxHtmlPrintout::wxHtmlPrintout}\label{wxhtmlprintoutwxhtmlprintout} |
28 | ||
29 | \func{}{wxHtmlPrintout}{\param{const wxString\& }{title = "Printout"}} | |
30 | ||
31 | Constructor. | |
32 | ||
3ce369e6 | 33 | |
fa10c70c JS |
34 | \membersection{wxHtmlPrintout::AddFilter}\label{wxhtmlprintoutaddfilter} |
35 | ||
36 | \func{static void}{AddFilter}{\param{wxHtmlFilter* }{filter}} | |
37 | ||
38 | Adds a filter to the static list of filters for wxHtmlPrintout. See \helpref{wxHtmlFilter}{wxhtmlfilter} for | |
39 | further information. | |
40 | ||
4eecf115 VS |
41 | \membersection{wxHtmlPrintout::SetFonts}\label{wxhtmlprintoutsetfonts} |
42 | ||
fbfb8bcc | 43 | \func{void}{SetFonts}{\param{const wxString\& }{normal\_face}, \param{const wxString\& }{fixed\_face}, \param{const int }{*sizes = NULL}} |
4eecf115 VS |
44 | |
45 | Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for | |
46 | detailed description. | |
3ce369e6 | 47 | |
09397bc6 | 48 | \membersection{wxHtmlPrintout::SetFooter}\label{wxhtmlprintoutsetfooter} |
3ce369e6 | 49 | |
09397bc6 | 50 | \func{void}{SetFooter}{\param{const wxString\& }{footer}, \param{int }{pg = wxPAGE\_ALL}} |
3ce369e6 | 51 | |
309b26a7 VZ |
52 | Set page footer. The following macros can be used inside it: |
53 | \input htprintmacros.inc | |
3ce369e6 | 54 | |
09397bc6 | 55 | \wxheading{Parameters} |
3ce369e6 | 56 | |
309b26a7 | 57 | \docparam{footer}{HTML text to be used as footer.} |
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 | ||
309b26a7 VZ |
66 | Set page header. The following macros can be used inside it: |
67 | \input htprintmacros.inc | |
3ce369e6 VS |
68 | |
69 | \wxheading{Parameters} | |
70 | ||
309b26a7 | 71 | \docparam{header}{HTML text to be used as header.} |
3ce369e6 VS |
72 | |
73 | \docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.} | |
74 | ||
75 | ||
09397bc6 | 76 | \membersection{wxHtmlPrintout::SetHtmlFile}\label{wxhtmlprintoutsethtmlfile} |
3ce369e6 | 77 | |
09397bc6 | 78 | \func{void}{SetHtmlFile}{\param{const wxString\& }{htmlfile}} |
3ce369e6 | 79 | |
09397bc6 VS |
80 | Prepare the class for printing this HTML {\bf file}. The file may be located on |
81 | any virtual file system or it may be normal file. | |
82 | ||
83 | ||
84 | ||
85 | \membersection{wxHtmlPrintout::SetHtmlText}\label{wxhtmlprintoutsethtmltext} | |
86 | ||
cc81d32f | 87 | \func{void}{SetHtmlText}{\param{const wxString\& }{html}, \param{const wxString\& }{basepath = wxEmptyString}, \param{bool }{isdir = true}} |
09397bc6 VS |
88 | |
89 | Prepare the class for printing this HTML text. | |
3ce369e6 VS |
90 | |
91 | \wxheading{Parameters} | |
92 | ||
09397bc6 VS |
93 | \docparam{html}{HTML text. (NOT file!)} |
94 | ||
95 | \docparam{basepath}{base directory (html string would be stored there if it was in | |
96 | file). It is used to determine path for loading images, for example.} | |
97 | ||
cc81d32f | 98 | \docparam{isdir}{false if basepath is filename, true if it is directory name |
09397bc6 | 99 | (see \helpref{wxFileSystem}{wxfilesystem} for detailed explanation)} |
448af9a4 | 100 | |
3ce369e6 | 101 | |
3ce369e6 | 102 | |
3ce369e6 VS |
103 | \membersection{wxHtmlPrintout::SetMargins}\label{wxhtmlprintoutsetmargins} |
104 | ||
105 | \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}} | |
106 | ||
2edb0bde | 107 | Sets margins in millimeters. Defaults to 1 inch for margins and 0.5cm for space |
3ce369e6 VS |
108 | between text and header and/or footer |
109 |