]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/hteasypr.tex
on Linux, not GTK
[wxWidgets.git] / docs / latex / wx / hteasypr.tex
CommitLineData
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 8This class provides very simple interface to printing
448af9a4
JS
9architecture. It allows you to print HTML documents using
10only a few commands.
3ce369e6
VS
11
12\wxheading{Note}
448af9a4
JS
13
14Do not create this class on the stack only. You should create an instance on app
3ce369e6
VS
15startup and use this instance for all printing operations. The reason is that
16this 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
26
3ce369e6
VS
27\latexignore{\rtfignore{\wxheading{Members}}}
28
3ce369e6
VS
29\membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting}\label{wxhtmleasyprintingwxhtmleasyprinting}
30
a5ae8241 31\func{}{wxHtmlEasyPrinting}{\param{const wxString\& }{name = "Printing"}, \param{wxWindow* }{parentWindow = NULL}}
3ce369e6
VS
32
33Constructor.
34
35\wxheading{Parameters}
36
a5ae8241 37\docparam{name}{Name of the printing object. Used by preview frames and setup dialogs.}
3ce369e6 38
a5ae8241 39\docparam{parentWindow}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.}
3ce369e6 40
3ce369e6
VS
41\membersection{wxHtmlEasyPrinting::PreviewFile}\label{wxhtmleasyprintingpreviewfile}
42
f6bcfd97
BP
43\func{bool}{PreviewFile}{\param{const wxString\& }{htmlfile}}
44
45Preview HTML file.
46
cc81d32f 47Returns false in case of error -- call
f6bcfd97
BP
48\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
49information about the kind of the error.
3ce369e6 50
3ce369e6 51
3ce369e6
VS
52\membersection{wxHtmlEasyPrinting::PreviewText}\label{wxhtmleasyprintingpreviewtext}
53
f6bcfd97
BP
54\func{bool}{PreviewText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
55
56Preview HTML text (not file!).
3ce369e6 57
cc81d32f 58Returns false in case of error -- call
f6bcfd97
BP
59\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
60information about the kind of the error.
3ce369e6
VS
61
62\wxheading{Parameters}
63
64\docparam{htmltext}{HTML text.}
65
66\docparam{basepath}{base directory (html string would be stored there if it was in
67file). It is used to determine path for loading images, for example.}
68
3ce369e6
VS
69\membersection{wxHtmlEasyPrinting::PrintFile}\label{wxhtmleasyprintingprintfile}
70
f6bcfd97 71\func{bool}{PrintFile}{\param{const wxString\& }{htmlfile}}
3ce369e6 72
f6bcfd97
BP
73Print HTML file.
74
cc81d32f 75Returns false in case of error -- call
f6bcfd97
BP
76\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
77information about the kind of the error.
3ce369e6 78
3ce369e6
VS
79\membersection{wxHtmlEasyPrinting::PrintText}\label{wxhtmleasyprintingprinttext}
80
f6bcfd97
BP
81\func{bool}{PrintText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
82
83Print HTML text (not file!).
3ce369e6 84
cc81d32f 85Returns false in case of error -- call
f6bcfd97
BP
86\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
87information about the kind of the error.
3ce369e6
VS
88
89\wxheading{Parameters}
90
91\docparam{htmltext}{HTML text.}
92
93\docparam{basepath}{base directory (html string would be stored there if it was in
94file). It is used to determine path for loading images, for example.}
95
3ce369e6
VS
96\membersection{wxHtmlEasyPrinting::PrinterSetup}\label{wxhtmleasyprintingprintersetup}
97
98\func{void}{PrinterSetup}{\void}
99
f6bcfd97 100Display printer setup dialog and allows the user to modify settings.
3ce369e6 101
3ce369e6
VS
102\membersection{wxHtmlEasyPrinting::PageSetup}\label{wxhtmleasyprintingpagesetup}
103
104\func{void}{PageSetup}{\void}
105
f6bcfd97 106Display page setup dialog and allows the user to modify settings.
3ce369e6 107
4eecf115
VS
108\membersection{wxHtmlEasyPrinting::SetFonts}\label{wxhtmleasyprintingsetfonts}
109
110\func{void}{SetFonts}{\param{wxString }{normal\_face}, \param{wxString }{fixed\_face}, \param{const int }{*sizes = NULL}}
111
112Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for
113detailed description.
114
3ce369e6
VS
115\membersection{wxHtmlEasyPrinting::SetHeader}\label{wxhtmleasyprintingsetheader}
116
117\func{void}{SetHeader}{\param{const wxString\& }{header}, \param{int }{pg = wxPAGE\_ALL}}
118
f6bcfd97 119Set page header.
3ce369e6
VS
120
121\wxheading{Parameters}
122
123\docparam{header}{HTML text to be used as header. You can use macros in it:
448af9a4
JS
124
125\begin{itemize}\itemsep=0pt
3ce369e6
VS
126\item @PAGENUM@ is replaced by page number
127\item @PAGESCNT@ is replaced by total number of pages
128\end{itemize}
129}
130
131\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
132
3ce369e6
VS
133\membersection{wxHtmlEasyPrinting::SetFooter}\label{wxhtmleasyprintingsetfooter}
134
135\func{void}{SetFooter}{\param{const wxString\& }{footer}, \param{int }{pg = wxPAGE\_ALL}}
136
f6bcfd97 137Set page footer.
3ce369e6
VS
138
139\wxheading{Parameters}
140
141\docparam{footer}{HTML text to be used as footer. You can use macros in it:
448af9a4
JS
142
143\begin{itemize}\itemsep=0pt
3ce369e6
VS
144\item @PAGENUM@ is replaced by page number
145\item @PAGESCNT@ is replaced by total number of pages
146\end{itemize}
147}
148
3ce369e6
VS
149\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
150
3ce369e6
VS
151\membersection{wxHtmlEasyPrinting::GetPrintData}\label{wxhtmleasyprintinggetprintdata}
152
153\func{wxPrintData*}{GetPrintData}{\void}
154
155Returns pointer to \helpref{wxPrintData}{wxprintdata} instance used by this class. You can
156set its parameters (via SetXXXX methods).
157
158\membersection{wxHtmlEasyPrinting::GetPageSetupData}\label{wxhtmleasyprintinggetpagesetupdata}
159
160\func{wxPageSetupDialogData*}{GetPageSetupData}{\void}
161
448af9a4 162Returns a pointer to \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} instance used by
3ce369e6 163this class. You can set its parameters (via SetXXXX methods).
448af9a4 164