3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
82 lines
2.4 KiB
C++
82 lines
2.4 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/html/htmlfilt.h
|
|
// Purpose: filters
|
|
// Author: Vaclav Slavik
|
|
// Copyright: (c) 1999 Vaclav Slavik
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_HTMLFILT_H_
|
|
#define _WX_HTMLFILT_H_
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#if wxUSE_HTML
|
|
|
|
#include "wx/filesys.h"
|
|
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// wxHtmlFilter
|
|
// This class is input filter. It can "translate" files
|
|
// in non-HTML format to HTML format
|
|
// interface to access certain
|
|
// kinds of files (HTPP, FTP, local, tar.gz etc..)
|
|
//--------------------------------------------------------------------------------
|
|
|
|
class WXDLLIMPEXP_HTML wxHtmlFilter : public wxObject
|
|
{
|
|
DECLARE_ABSTRACT_CLASS(wxHtmlFilter)
|
|
|
|
public:
|
|
wxHtmlFilter() : wxObject() {}
|
|
virtual ~wxHtmlFilter() {}
|
|
|
|
// returns true if this filter is able to open&read given file
|
|
virtual bool CanRead(const wxFSFile& file) const = 0;
|
|
|
|
// Reads given file and returns HTML document.
|
|
// Returns empty string if opening failed
|
|
virtual wxString ReadFile(const wxFSFile& file) const = 0;
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// wxHtmlFilterPlainText
|
|
// This filter is used as default filter if no other can
|
|
// be used (= uknown type of file). It is used by
|
|
// wxHtmlWindow itself.
|
|
//--------------------------------------------------------------------------------
|
|
|
|
|
|
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;
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_HTML
|
|
|
|
#endif // _WX_HTMLFILT_H_
|
|
|