]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/hteasypr.tex
API change: a single SELECTION_CHANGED not lots of SELECT and UNSELECT events
[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
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
37Constructor.
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
49Gets the parent window for dialogs.
50
51\membersection{wxHtmlEasyPrinting::GetPrintData}\label{wxhtmleasyprintinggetprintdata}
52
53\func{wxPrintData*}{GetPrintData}{\void}
54
55Returns pointer to \helpref{wxPrintData}{wxprintdata} instance used by this class. You can
56set its parameters (via SetXXXX methods).
57
58\membersection{wxHtmlEasyPrinting::GetPageSetupData}\label{wxhtmleasyprintinggetpagesetupdata}
59
60\func{wxPageSetupDialogData*}{GetPageSetupData}{\void}
61
62Returns a pointer to \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} instance used by
63this 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
69Preview HTML file.
70
cc81d32f 71Returns false in case of error -- call
f6bcfd97
BP
72\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
73information 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
80Preview HTML text (not file!).
3ce369e6 81
cc81d32f 82Returns false in case of error -- call
f6bcfd97
BP
83\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
84information 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
91file). 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
97Print HTML file.
98
cc81d32f 99Returns false in case of error -- call
f6bcfd97
BP
100\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
101information 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
107Print HTML text (not file!).
3ce369e6 108
cc81d32f 109Returns false in case of error -- call
f6bcfd97
BP
110\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
111information 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
118file). 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 124Display 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
130Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for
131detailed 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
137Set 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
150Set 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 163Sets the parent window for dialogs.
448af9a4 164