]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htfilter.tex
Updated border style names
[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
f6e9a818 8This class is the parent class of input filters for \helpref{wxHtmlWindow}{wxhtmlwindow}.
704a4b75
VS
9It allows you to read and display files of different file formats.
10
11\wxheading{Derived from}
12
9704b250
VS
13\helpref{wxObject}{wxobject}
14
15\wxheading{Include files}
16
17<wx/html/htmlfilt.h>
18
a7af285d
VZ
19\wxheading{Library}
20
21\helpref{wxHtml}{librarieslist}
22
704a4b75
VS
23
24\wxheading{See Also}
25
26\helpref{Overview}{filters}
27
28\latexignore{\rtfignore{\wxheading{Members}}}
29
704a4b75
VS
30\membersection{wxHtmlFilter::wxHtmlFilter}\label{wxhtmlfilterwxhtmlfilter}
31
32\func{}{wxHtmlFilter}{\void}
33
34Constructor.
35
36\membersection{wxHtmlFilter::CanRead}\label{wxhtmlfiltercanread}
37
38\func{bool}{CanRead}{\param{const wxFSFile\& }{file}}
39
cc81d32f 40Returns true if this filter is capable of reading file {\it file}.
704a4b75
VS
41
42Example:
43
44\begin{verbatim}
45bool MyFilter::CanRead(const wxFSFile& file)
46{
47 return (file.GetMimeType() == "application/x-ugh");
48}
49\end{verbatim}
50
51\membersection{wxHtmlFilter::ReadFile}\label{wxhtmlfilterreadfile}
52
3660fc40
RD
53\func{wxString}{ReadFile}{\param{const wxFSFile\& }{file}}
54
704a4b75
VS
55Reads the file and returns string with HTML document.
56
57Example:
58
59\begin{verbatim}
60wxString MyImgFilter::ReadFile(const wxFSFile& file)
61{
3660fc40
RD
62 return "<html><body><img src=\"" +
63 file.GetLocation() +
704a4b75
VS
64 "\"></body></html>";
65}
66\end{verbatim}
3660fc40 67