1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewfshandler.h
3 // Purpose: Custom webview handler for virtual file system
4 // Author: Nick Matthews
5 // Copyright: (c) 2012 Steven Lamerton
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 // Based on webviewarchivehandler.h file by Steven Lamerton
11 #ifndef _WX_WEBVIEW_FS_HANDLER_H_
12 #define _WX_WEBVIEW_FS_HANDLER_H_
21 #include "wx/webview.h"
23 //Loads from uris such as scheme:example.html
25 class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler
: public wxWebViewHandler
28 wxWebViewFSHandler(const wxString
& scheme
);
29 virtual ~wxWebViewFSHandler();
30 virtual wxFSFile
* GetFile(const wxString
&uri
);
32 wxFileSystem
* m_fileSystem
;
35 #endif // wxUSE_WEBVIEW
37 #endif // _WX_WEBVIEW_FS_HANDLER_H_