]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/hteasypr.tex
compilation fix for wxUSE_STL==1 in DoGetSibling()
[wxWidgets.git] / docs / latex / wx / hteasypr.tex
... / ...
CommitLineData
1%
2% automatically generated by HelpGen from
3% htmprint.h at 17/Oct/99 12:48:02
4%
5
6\section{\class{wxHtmlEasyPrinting}}\label{wxhtmleasyprinting}
7
8This class provides very simple interface to printing
9architecture. It allows you to print HTML documents using
10only a few commands.
11
12\wxheading{Note}
13
14Do not create this class on the stack only. You should create an instance on app
15startup and use this instance for all printing operations. The reason is that
16this class stores various settings in it.
17
18\wxheading{Derived from}
19
20\helpref{wxObject}{wxobject}
21
22\wxheading{Include files}
23
24<wx/html/htmprint.h>
25
26\wxheading{Library}
27
28\helpref{wxHtml}{librarieslist}
29
30
31\latexignore{\rtfignore{\wxheading{Members}}}
32
33\membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting}\label{wxhtmleasyprintingwxhtmleasyprinting}
34
35\func{}{wxHtmlEasyPrinting}{\param{const wxString\& }{name = "Printing"}, \param{wxWindow* }{parentWindow = NULL}}
36
37Constructor.
38
39\wxheading{Parameters}
40
41\docparam{name}{Name of the printing object. Used by preview frames and setup dialogs.}
42
43\docparam{parentWindow}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.}
44
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
65\membersection{wxHtmlEasyPrinting::PreviewFile}\label{wxhtmleasyprintingpreviewfile}
66
67\func{bool}{PreviewFile}{\param{const wxString\& }{htmlfile}}
68
69Preview HTML file.
70
71Returns false in case of error -- call
72\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
73information about the kind of the error.
74
75
76\membersection{wxHtmlEasyPrinting::PreviewText}\label{wxhtmleasyprintingpreviewtext}
77
78\func{bool}{PreviewText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
79
80Preview HTML text (not file!).
81
82Returns false in case of error -- call
83\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
84information about the kind of the error.
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
93\membersection{wxHtmlEasyPrinting::PrintFile}\label{wxhtmleasyprintingprintfile}
94
95\func{bool}{PrintFile}{\param{const wxString\& }{htmlfile}}
96
97Print HTML file.
98
99Returns false in case of error -- call
100\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
101information about the kind of the error.
102
103\membersection{wxHtmlEasyPrinting::PrintText}\label{wxhtmleasyprintingprinttext}
104
105\func{bool}{PrintText}{\param{const wxString\& }{htmltext}, \param{const wxString\& }{basepath = wxEmptyString}}
106
107Print HTML text (not file!).
108
109Returns false in case of error -- call
110\helpref{wxPrinter::GetLastError}{wxprintergetlasterror} to get detailed
111information about the kind of the error.
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
120\membersection{wxHtmlEasyPrinting::PageSetup}\label{wxhtmleasyprintingpagesetup}
121
122\func{void}{PageSetup}{\void}
123
124Display page setup dialog and allows the user to modify settings.
125
126\membersection{wxHtmlEasyPrinting::SetFonts}\label{wxhtmleasyprintingsetfonts}
127
128\func{void}{SetFonts}{\param{const wxString\& }{normal\_face}, \param{const wxString\& }{fixed\_face}, \param{const int }{*sizes = NULL}}
129
130Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for
131detailed description.
132
133\membersection{wxHtmlEasyPrinting::SetHeader}\label{wxhtmleasyprintingsetheader}
134
135\func{void}{SetHeader}{\param{const wxString\& }{header}, \param{int }{pg = wxPAGE\_ALL}}
136
137Set page header. The following macros can be used inside it:
138\input htprintmacros.inc
139
140\wxheading{Parameters}
141
142\docparam{header}{HTML text to be used as header.}
143
144\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
145
146\membersection{wxHtmlEasyPrinting::SetFooter}\label{wxhtmleasyprintingsetfooter}
147
148\func{void}{SetFooter}{\param{const wxString\& }{footer}, \param{int }{pg = wxPAGE\_ALL}}
149
150Set page footer. The following macros can be used inside it:
151\input htprintmacros.inc
152
153\wxheading{Parameters}
154
155\docparam{footer}{HTML text to be used as footer.}
156
157\docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
158
159\membersection{wxHtmlEasyPrinting::SetParentWindow}\label{wxhtmleasyprintingsetparentwindow}
160
161\func{void}{SetParentWindow}{\param{wxWindow*}{ window}}
162
163Sets the parent window for dialogs.
164