1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewarchivehandler.h
3 // Purpose: Custom webview handler to allow archive browsing
4 // Author: Steven Lamerton
6 // Copyright: (c) 2011 Steven Lamerton
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_WEBVIEW_FILE_HANDLER_H_
11 #define _WX_WEBVIEW_FILE_HANDLER_H_
20 #include "wx/webview.h"
22 //Loads from uris such as scheme:///C:/example/example.html or archives such as
23 //scheme:///C:/example/example.zip;protocol=zip/example.html
25 class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler
: public wxWebViewHandler
28 wxWebViewArchiveHandler(const wxString
& scheme
);
29 virtual ~wxWebViewArchiveHandler();
30 virtual wxFSFile
* GetFile(const wxString
&uri
);
32 wxFileSystem
* m_fileSystem
;
35 #endif // wxUSE_WEBVIEW
37 #endif // _WX_WEBVIEW_FILE_HANDLER_H_