1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewfshandler.h
3 // Purpose: Custom webview handler for virtual file system
4 // Author: Nick Matthews
6 // Copyright: (c) 2012 Steven Lamerton
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // Based on webviewarchivehandler.h file by Steven Lamerton
12 #ifndef _WX_WEB_VIEW_FS_HANDLER_H_
13 #define _WX_WEB_VIEW_FS_HANDLER_H_
22 #include "wx/webview.h"
24 //Loads from uris such as scheme:example.html
26 class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler
: public wxWebViewHandler
29 wxWebViewFSHandler(const wxString
& scheme
);
30 virtual ~wxWebViewFSHandler();
31 virtual wxFSFile
* GetFile(const wxString
&uri
);
33 wxFileSystem
* m_fileSystem
;
36 #endif // wxUSE_WEBVIEW
38 #endif // _WX_WEB_VIEW_FS_HANDLER_H_