2 % automatically generated by HelpGen from
3 % htmlfilter.tex at 29/Mar/99 18:35:09
6 \section{\class{wxHtmlFilter
}}\label{wxhtmlfilter
}
8 This class is an input filter for
\helpref{wxHtmlWindow
}{wxhtmlwindow
}.
9 It allows you to read and display files of different file formats.
11 \wxheading{Derived from
}
17 \helpref{Overview
}{filters
}
19 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxHtmlFilter::wxHtmlFilter
}\label{wxhtmlfilterwxhtmlfilter
}
23 \func{}{wxHtmlFilter
}{\void}
27 \membersection{wxHtmlFilter::CanRead
}\label{wxhtmlfiltercanread
}
29 \func{bool
}{CanRead
}{\param{const wxFSFile\&
}{file
}}
31 Returns TRUE if this filter is capable of reading file
{\it file
}.
36 bool MyFilter::CanRead(const wxFSFile& file)
38 return (file.GetMimeType() == "application/x-ugh");
42 \membersection{wxHtmlFilter::ReadFile
}\label{wxhtmlfilterreadfile
}
44 \func{wxString
}{ReadFile
}{\param{const wxFSFile\&
}{file
}}
46 Reads the file and returns string with HTML
document.
51 wxString MyImgFilter::ReadFile(const wxFSFile& file)
53 return "<html><body><img src=\"" +