]>
Commit | Line | Data |
---|---|---|
3ce369e6 VS |
1 | % |
2 | % automatically generated by HelpGen from | |
3 | % htmprint.h at 17/Oct/99 12:48:02 | |
4 | % | |
5 | ||
3ce369e6 VS |
6 | \section{\class{wxHtmlEasyPrinting}}\label{wxhtmleasyprinting} |
7 | ||
3ce369e6 | 8 | This class provides very simple interface to printing |
448af9a4 JS |
9 | architecture. It allows you to print HTML documents using |
10 | only a few commands. | |
3ce369e6 VS |
11 | |
12 | \wxheading{Note} | |
448af9a4 JS |
13 | |
14 | Do not create this class on the stack only. You should create an instance on app | |
3ce369e6 VS |
15 | startup and use this instance for all printing operations. The reason is that |
16 | this class stores various settings in it. | |
17 | ||
3ce369e6 VS |
18 | \wxheading{Derived from} |
19 | ||
20 | \helpref{wxObject}{wxobject} | |
21 | ||
9704b250 VS |
22 | \wxheading{Include files} |
23 | ||
24 | <wx/html/htmprint.h> | |
25 | ||
a7af285d VZ |
26 | \wxheading{Library} |
27 | ||
28 | \helpref{wxHtml}{librarieslist} | |
29 | ||
9704b250 | 30 | |
3ce369e6 VS |
31 | \latexignore{\rtfignore{\wxheading{Members}}} |
32 | ||
3ce369e6 VS |
33 | \membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting}\label{wxhtmleasyprintingwxhtmleasyprinting} |
34 | ||
a5ae8241 | 35 | \func{}{wxHtmlEasyPrinting}{\param{const wxString\& }{name = "Printing"}, \param{wxWindow* }{parentWindow = NULL}} |
3ce369e6 VS |
36 | |
37 | Constructor. | |
38 | ||
39 | \wxheading{Parameters} | |
40 | ||
a5ae8241 | 41 | \docparam{name}{Name of the printing object. Used by preview frames and setup dialogs.} |
3ce369e6 | 42 | |
a5ae8241 | 43 | \docparam{parentWindow}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.} |
3ce369e6 | 44 | |
2a225ba6 JS |
45 | \membersection{wxHtmlEasyPrinting::GetParentWindow}\label{wxhtmleasyprintinggetparentwindow} |
46 | ||
47 | \constfunc{wxWindow*}{GetParentWindow}{\void} | |
48 | ||
49 | Gets the parent window for dialogs. | |
50 | ||
51 | \membersection{wxHtmlEasyPrinting::GetPrintData}\label{wxhtmleasyprintinggetprintdata} | |
52 | ||
53 | \func{wxPrintData*}{GetPrintData}{\void} | |
54 | ||
55 | Returns pointer to \helpref{wxPrintData}{wxprintdata} instance used by this class. You can | |
56 | set its parameters (via SetXXXX methods). | |
57 | ||
58 | \membersection{wxHtmlEasyPrinting::GetPageSetupData}\label{wxhtmleasyprintinggetpagesetupdata} | |
59 | ||
60 | \func{wxPageSetupDialogData*}{GetPageSetupData}{\void} | |
61 | ||
62 | Returns a pointer to \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} instance used by | |
63 | this class. You can set its parameters (via SetXXXX methods). | |
64 | ||
3ce369e6 VS |
65 | \membersection{wxHtmlEasyPrinting::PreviewFile}\label{wxhtmleasyprintingpreviewfile} |
66 | ||
f6bcfd97 BP |
67 | \func{bool}{PreviewFile}{\param{const wxString\& }{htmlfile}} |
68 | ||
69 | Preview HTML file. | |
70 | ||
cc81d32f | 71 | Returns false in case of error -- call |
f6bcfd97 BP |
72 | \helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed |
73 | information about the kind of the error. | |
3ce369e6 | 74 | |
3ce369e6 | 75 | |
3ce369e6 VS |
76 | \membersection{wxHtmlEasyPrinting::PreviewText}\label{wxhtmleasyprintingpreviewtext} |
77 | ||
f6bcfd97 BP |
78 | \func{bool}{PreviewText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}} |
79 | ||
80 | Preview HTML text (not file!). | |
3ce369e6 | 81 | |
cc81d32f | 82 | Returns false in case of error -- call |
f6bcfd97 BP |
83 | \helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed |
84 | information about the kind of the error. | |
3ce369e6 VS |
85 | |
86 | \wxheading{Parameters} | |
87 | ||
88 | \docparam{htmltext}{HTML text.} | |
89 | ||
90 | \docparam{basepath}{base directory (html string would be stored there if it was in | |
91 | file). It is used to determine path for loading images, for example.} | |
92 | ||
3ce369e6 VS |
93 | \membersection{wxHtmlEasyPrinting::PrintFile}\label{wxhtmleasyprintingprintfile} |
94 | ||
f6bcfd97 | 95 | \func{bool}{PrintFile}{\param{const wxString\& }{htmlfile}} |
3ce369e6 | 96 | |
f6bcfd97 BP |
97 | Print HTML file. |
98 | ||
cc81d32f | 99 | Returns false in case of error -- call |
f6bcfd97 BP |
100 | \helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed |
101 | information about the kind of the error. | |
3ce369e6 | 102 | |
3ce369e6 VS |
103 | \membersection{wxHtmlEasyPrinting::PrintText}\label{wxhtmleasyprintingprinttext} |
104 | ||
f6bcfd97 BP |
105 | \func{bool}{PrintText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}} |
106 | ||
107 | Print HTML text (not file!). | |
3ce369e6 | 108 | |
cc81d32f | 109 | Returns false in case of error -- call |
f6bcfd97 BP |
110 | \helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed |
111 | information about the kind of the error. | |
3ce369e6 VS |
112 | |
113 | \wxheading{Parameters} | |
114 | ||
115 | \docparam{htmltext}{HTML text.} | |
116 | ||
117 | \docparam{basepath}{base directory (html string would be stored there if it was in | |
118 | file). It is used to determine path for loading images, for example.} | |
119 | ||
3ce369e6 VS |
120 | \membersection{wxHtmlEasyPrinting::PageSetup}\label{wxhtmleasyprintingpagesetup} |
121 | ||
122 | \func{void}{PageSetup}{\void} | |
123 | ||
f6bcfd97 | 124 | Display page setup dialog and allows the user to modify settings. |
3ce369e6 | 125 | |
4eecf115 VS |
126 | \membersection{wxHtmlEasyPrinting::SetFonts}\label{wxhtmleasyprintingsetfonts} |
127 | ||
fbfb8bcc | 128 | \func{void}{SetFonts}{\param{const wxString\& }{normal\_face}, \param{const wxString\& }{fixed\_face}, \param{const int }{*sizes = NULL}} |
4eecf115 VS |
129 | |
130 | Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for | |
131 | detailed description. | |
132 | ||
3ce369e6 VS |
133 | \membersection{wxHtmlEasyPrinting::SetHeader}\label{wxhtmleasyprintingsetheader} |
134 | ||
135 | \func{void}{SetHeader}{\param{const wxString\& }{header}, \param{int }{pg = wxPAGE\_ALL}} | |
136 | ||
309b26a7 VZ |
137 | Set page header. The following macros can be used inside it: |
138 | \input htprintmacros.inc | |
3ce369e6 VS |
139 | |
140 | \wxheading{Parameters} | |
141 | ||
309b26a7 | 142 | \docparam{header}{HTML text to be used as header.} |
3ce369e6 VS |
143 | |
144 | \docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.} | |
145 | ||
3ce369e6 VS |
146 | \membersection{wxHtmlEasyPrinting::SetFooter}\label{wxhtmleasyprintingsetfooter} |
147 | ||
148 | \func{void}{SetFooter}{\param{const wxString\& }{footer}, \param{int }{pg = wxPAGE\_ALL}} | |
149 | ||
309b26a7 VZ |
150 | Set page footer. The following macros can be used inside it: |
151 | \input htprintmacros.inc | |
3ce369e6 VS |
152 | |
153 | \wxheading{Parameters} | |
154 | ||
309b26a7 | 155 | \docparam{footer}{HTML text to be used as footer.} |
3ce369e6 | 156 | |
3ce369e6 VS |
157 | \docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.} |
158 | ||
2a225ba6 | 159 | \membersection{wxHtmlEasyPrinting::SetParentWindow}\label{wxhtmleasyprintingsetparentwindow} |
3ce369e6 | 160 | |
2a225ba6 | 161 | \func{void}{SetParentWindow}{\param{wxWindow*}{ window}} |
3ce369e6 | 162 | |
2a225ba6 | 163 | Sets the parent window for dialogs. |
448af9a4 | 164 |