]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htfilter.tex
If somebody ever decides to actually check in fsfile.tex and
[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
6
7\section{\class{wxHtmlFilter}}\label{wxhtmlfilter}
8
9This class is input filter for \helpref{wxHtmlWindow}{wxhtmlwindow}.
10It allows you to read and display files of different file formats.
11
12\wxheading{Derived from}
13
14wxObject
15
16\wxheading{See Also}
17
18\helpref{Overview}{filters}
19
20\latexignore{\rtfignore{\wxheading{Members}}}
21
22
23\membersection{wxHtmlFilter::wxHtmlFilter}\label{wxhtmlfilterwxhtmlfilter}
24
25\func{}{wxHtmlFilter}{\void}
26
27Constructor.
28
29\membersection{wxHtmlFilter::CanRead}\label{wxhtmlfiltercanread}
30
31\func{bool}{CanRead}{\param{const wxFSFile\& }{file}}
32
33Returns TRUE if this filter is capable of reading file {\it file}.
34
35Example:
36
37\begin{verbatim}
38bool MyFilter::CanRead(const wxFSFile& file)
39{
40 return (file.GetMimeType() == "application/x-ugh");
41}
42\end{verbatim}
43
44\membersection{wxHtmlFilter::ReadFile}\label{wxhtmlfilterreadfile}
45
46\func{wxString}{ReadFile}{\param{const wxFSFile\& }{file}
47
48Reads the file and returns string with HTML document.
49
50Example:
51
52\begin{verbatim}
53wxString MyImgFilter::ReadFile(const wxFSFile& file)
54{
55 return "<html><body><img src=\"" +
56 file.GetLocation() +
57 "\"></body></html>";
58}
59\end{verbatim}