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