wxhtmlfilterthis class is the parent class of input filters for wxhtmlwindow. it allows you to read and display files of different file formats. derived from include files <wx/html/htmlfilt.h> see also members
wxhtmlfilter::wxhtmlfilter
wxhtmlfilter::wxhtmlfilterwxhtmlfilter() constructor.
wxhtmlfilter::canreadbool canread(const wxfsfile& file) returns true if this filter is capable of reading file file. example:
bool myfilter::canread(const wxfsfile& file) { return (file.getmimetype() == "application/x-ugh"); } wxhtmlfilter::readfilewxstring readfile(const wxfsfile& file) reads the file and returns string with html document. example:
wxstring myimgfilter::readfile(const wxfsfile& file) { return "<html><body><img src=\"" + file.getlocation() + "\"></body></html>"; } |