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