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
}
13 \helpref{wxObject
}{wxobject
}
15 \wxheading{Include files
}
22 \helpref{Overview
}{filters
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxHtmlFilter::wxHtmlFilter
}\label{wxhtmlfilterwxhtmlfilter
}
28 \func{}{wxHtmlFilter
}{\void}
32 \membersection{wxHtmlFilter::CanRead
}\label{wxhtmlfiltercanread
}
34 \func{bool
}{CanRead
}{\param{const wxFSFile\&
}{file
}}
36 Returns TRUE if this filter is capable of reading file
{\it file
}.
41 bool MyFilter::CanRead(const wxFSFile& file)
43 return (file.GetMimeType() == "application/x-ugh");
47 \membersection{wxHtmlFilter::ReadFile
}\label{wxhtmlfilterreadfile
}
49 \func{wxString
}{ReadFile
}{\param{const wxFSFile\&
}{file
}}
51 Reads the file and returns string with HTML
document.
56 wxString MyImgFilter::ReadFile(const wxFSFile& file)
58 return "<html><body><img src=\"" +