2 % automatically generated by HelpGen from
3 % htmprint.h at 17/Oct/99 12:48:02
6 \section{\class{wxHtmlEasyPrinting
}}\label{wxhtmleasyprinting
}
8 This class provides very simple interface to printing
9 architecture. It allows you to print HTML documents using
14 Do not create this class on the stack only. You should create an instance on app
15 startup and use this instance for all printing operations. The reason is that
16 this class stores various settings in it.
18 \wxheading{Derived from
}
20 \helpref{wxObject
}{wxobject
}
22 \wxheading{Include files
}
28 \helpref{wxHtml
}{librarieslist
}
31 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting
}\label{wxhtmleasyprintingwxhtmleasyprinting
}
35 \func{}{wxHtmlEasyPrinting
}{\param{const wxString\&
}{name = "Printing"
},
\param{wxWindow*
}{parentWindow = NULL
}}
39 \wxheading{Parameters
}
41 \docparam{name
}{Name of the printing object. Used by preview frames and setup dialogs.
}
43 \docparam{parentWindow
}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.
}
45 \membersection{wxHtmlEasyPrinting::GetParentWindow
}\label{wxhtmleasyprintinggetparentwindow
}
47 \constfunc{wxWindow*
}{GetParentWindow
}{\void}
49 Gets the parent window for dialogs.
51 \membersection{wxHtmlEasyPrinting::GetPrintData
}\label{wxhtmleasyprintinggetprintdata
}
53 \func{wxPrintData*
}{GetPrintData
}{\void}
55 Returns pointer to
\helpref{wxPrintData
}{wxprintdata
} instance used by this class. You can
56 set its parameters (via SetXXXX methods).
58 \membersection{wxHtmlEasyPrinting::GetPageSetupData
}\label{wxhtmleasyprintinggetpagesetupdata
}
60 \func{wxPageSetupDialogData*
}{GetPageSetupData
}{\void}
62 Returns a pointer to
\helpref{wxPageSetupDialogData
}{wxpagesetupdialogdata
} instance used by
63 this class. You can set its parameters (via SetXXXX methods).
65 \membersection{wxHtmlEasyPrinting::PreviewFile
}\label{wxhtmleasyprintingpreviewfile
}
67 \func{bool
}{PreviewFile
}{\param{const wxString\&
}{htmlfile
}}
71 Returns false in case of error -- call
72 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
73 information about the kind of the error.
76 \membersection{wxHtmlEasyPrinting::PreviewText
}\label{wxhtmleasyprintingpreviewtext
}
78 \func{bool
}{PreviewText
}{\param{const wxString\&
}{htmltext
},
\param{const wxString\&
}{basepath = wxEmptyString
}}
80 Preview HTML text (not file!).
82 Returns false in case of error -- call
83 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
84 information about the kind of the error.
86 \wxheading{Parameters
}
88 \docparam{htmltext
}{HTML text.
}
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.
}
93 \membersection{wxHtmlEasyPrinting::PrintFile
}\label{wxhtmleasyprintingprintfile
}
95 \func{bool
}{PrintFile
}{\param{const wxString\&
}{htmlfile
}}
99 Returns false in case of error -- call
100 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
101 information about the kind of the error.
103 \membersection{wxHtmlEasyPrinting::PrintText
}\label{wxhtmleasyprintingprinttext
}
105 \func{bool
}{PrintText
}{\param{const wxString\&
}{htmltext
},
\param{const wxString\&
}{basepath = wxEmptyString
}}
107 Print HTML text (not file!).
109 Returns false in case of error -- call
110 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
111 information about the kind of the error.
113 \wxheading{Parameters
}
115 \docparam{htmltext
}{HTML text.
}
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.
}
120 \membersection{wxHtmlEasyPrinting::PageSetup
}\label{wxhtmleasyprintingpagesetup
}
122 \func{void
}{PageSetup
}{\void}
124 Display page setup dialog and allows the user to modify settings.
126 \membersection{wxHtmlEasyPrinting::SetFonts
}\label{wxhtmleasyprintingsetfonts
}
128 \func{void
}{SetFonts
}{\param{const wxString\&
}{normal
\_face},
\param{const wxString\&
}{fixed
\_face},
\param{const int
}{*sizes = NULL
}}
130 Sets fonts. See
\helpref{wxHtmlWindow::SetFonts
}{wxhtmlwindowsetfonts
} for
131 detailed description.
133 \membersection{wxHtmlEasyPrinting::SetHeader
}\label{wxhtmleasyprintingsetheader
}
135 \func{void
}{SetHeader
}{\param{const wxString\&
}{header
},
\param{int
}{pg = wxPAGE
\_ALL}}
137 Set page header. The following macros can be used inside it:
138 \input htprintmacros.inc
140 \wxheading{Parameters
}
142 \docparam{header
}{HTML text to be used as header.
}
144 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
146 \membersection{wxHtmlEasyPrinting::SetFooter
}\label{wxhtmleasyprintingsetfooter
}
148 \func{void
}{SetFooter
}{\param{const wxString\&
}{footer
},
\param{int
}{pg = wxPAGE
\_ALL}}
150 Set page footer. The following macros can be used inside it:
151 \input htprintmacros.inc
153 \wxheading{Parameters
}
155 \docparam{footer
}{HTML text to be used as footer.
}
157 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
159 \membersection{wxHtmlEasyPrinting::SetParentWindow
}\label{wxhtmleasyprintingsetparentwindow
}
161 \func{void
}{SetParentWindow
}{\param{wxWindow*
}{ window
}}
163 Sets the parent window for dialogs.