This class is the parent class of input filters for wxHtmlWindow. It allows you to read and display files of different file formats.
継承元
インクルードファイル
<wx/html/htmlfilt.h>
See Also
Members
wxHtmlFilter::wxHtmlFilter
wxHtmlFilter::CanRead
wxHtmlFilter::ReadFile
wxHtmlFilter()
Constructor.
bool CanRead(const wxFSFile& file)
Returns true if this filter is capable of reading file file.
例:
bool MyFilter::CanRead(const wxFSFile& file) { return (file.GetMimeType() == "application/x-ugh"); }
wxString ReadFile(const wxFSFile& file)
Reads the file and returns string with HTML document.
例:
wxString MyImgFilter::ReadFile(const wxFSFile& file) { return "<html><body><img src=\"" + file.GetLocation() + "\"></body></html>"; }