]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htfilter.tex
correction for Mac OS compilation
[wxWidgets.git] / docs / latex / wx / htfilter.tex
CommitLineData
704a4b75
VS
1%
2% automatically generated by HelpGen from
3% htmlfilter.tex at 29/Mar/99 18:35:09
4%
5
704a4b75
VS
6\section{\class{wxHtmlFilter}}\label{wxhtmlfilter}
7
448af9a4 8This class is an input filter for \helpref{wxHtmlWindow}{wxhtmlwindow}.
704a4b75
VS
9It allows you to read and display files of different file formats.
10
11\wxheading{Derived from}
12
9704b250
VS
13\helpref{wxObject}{wxobject}
14
15\wxheading{Include files}
16
17<wx/html/htmlfilt.h>
18
704a4b75
VS
19
20\wxheading{See Also}
21
22\helpref{Overview}{filters}
23
24\latexignore{\rtfignore{\wxheading{Members}}}
25
704a4b75
VS
26\membersection{wxHtmlFilter::wxHtmlFilter}\label{wxhtmlfilterwxhtmlfilter}
27
28\func{}{wxHtmlFilter}{\void}
29
30Constructor.
31
32\membersection{wxHtmlFilter::CanRead}\label{wxhtmlfiltercanread}
33
34\func{bool}{CanRead}{\param{const wxFSFile\& }{file}}
35
3660fc40 36Returns TRUE if this filter is capable of reading file {\it file}.
704a4b75
VS
37
38Example:
39
40\begin{verbatim}
41bool MyFilter::CanRead(const wxFSFile& file)
42{
43 return (file.GetMimeType() == "application/x-ugh");
44}
45\end{verbatim}
46
47\membersection{wxHtmlFilter::ReadFile}\label{wxhtmlfilterreadfile}
48
3660fc40
RD
49\func{wxString}{ReadFile}{\param{const wxFSFile\& }{file}}
50
704a4b75
VS
51Reads the file and returns string with HTML document.
52
53Example:
54
55\begin{verbatim}
56wxString MyImgFilter::ReadFile(const wxFSFile& file)
57{
3660fc40
RD
58 return "<html><body><img src=\"" +
59 file.GetLocation() +
704a4b75
VS
60 "\"></body></html>";
61}
62\end{verbatim}
3660fc40 63