X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69941f05864fa8b37856ccc1338124bfac756a2b..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/include/wx/html/htmlfilt.h diff --git a/include/wx/html/htmlfilt.h b/include/wx/html/htmlfilt.h index cffb72f211..fe97cbf983 100644 --- a/include/wx/html/htmlfilt.h +++ b/include/wx/html/htmlfilt.h @@ -1,20 +1,15 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: htmlfilt.h +// Name: wx/html/htmlfilt.h // Purpose: filters // Author: Vaclav Slavik // RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik -// Licence: wxWindows Licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - #ifndef _WX_HTMLFILT_H_ #define _WX_HTMLFILT_H_ -#ifdef __GNUG__ -#pragma interface -#endif - #include "wx/defs.h" #if wxUSE_HTML @@ -30,19 +25,20 @@ // kinds of files (HTPP, FTP, local, tar.gz etc..) //-------------------------------------------------------------------------------- -class WXDLLEXPORT wxHtmlFilter : public wxObject +class WXDLLIMPEXP_HTML wxHtmlFilter : public wxObject { DECLARE_ABSTRACT_CLASS(wxHtmlFilter) - public: - wxHtmlFilter() : wxObject() {} +public: + wxHtmlFilter() : wxObject() {} + virtual ~wxHtmlFilter() {} - virtual bool CanRead(const wxFSFile& file) const = 0; - // returns TRUE if this filter is able to open&read given file + // returns true if this filter is able to open&read given file + virtual bool CanRead(const wxFSFile& file) const = 0; - virtual wxString ReadFile(const wxFSFile& file) const = 0; - // reads given file and returns HTML document. - // Returns empty string if opening failed + // Reads given file and returns HTML document. + // Returns empty string if opening failed + virtual wxString ReadFile(const wxFSFile& file) const = 0; }; @@ -55,10 +51,24 @@ class WXDLLEXPORT wxHtmlFilter : public wxObject //-------------------------------------------------------------------------------- -class WXDLLEXPORT wxHtmlFilterPlainText : public wxHtmlFilter +class WXDLLIMPEXP_HTML wxHtmlFilterPlainText : public wxHtmlFilter { DECLARE_DYNAMIC_CLASS(wxHtmlFilterPlainText) +public: + virtual bool CanRead(const wxFSFile& file) const; + virtual wxString ReadFile(const wxFSFile& file) const; +}; + +//-------------------------------------------------------------------------------- +// wxHtmlFilterHTML +// filter for text/html +//-------------------------------------------------------------------------------- + +class wxHtmlFilterHTML : public wxHtmlFilter +{ + DECLARE_DYNAMIC_CLASS(wxHtmlFilterHTML) + public: virtual bool CanRead(const wxFSFile& file) const; virtual wxString ReadFile(const wxFSFile& file) const; @@ -66,6 +76,7 @@ class WXDLLEXPORT wxHtmlFilterPlainText : public wxHtmlFilter -#endif +#endif // wxUSE_HTML + #endif // _WX_HTMLFILT_H_