]> git.saurik.com Git - wxWidgets.git/blob - include/wx/webviewarchivehandler.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / webviewarchivehandler.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewarchivehandler.h
3 // Purpose: Custom webview handler to allow archive browsing
4 // Author: Steven Lamerton
5 // Copyright: (c) 2011 Steven Lamerton
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _WX_WEBVIEW_FILE_HANDLER_H_
10 #define _WX_WEBVIEW_FILE_HANDLER_H_
11
12 #include "wx/setup.h"
13
14 #if wxUSE_WEBVIEW
15
16 class wxFSFile;
17 class wxFileSystem;
18
19 #include "wx/webview.h"
20
21 //Loads from uris such as scheme:///C:/example/example.html or archives such as
22 //scheme:///C:/example/example.zip;protocol=zip/example.html
23
24 class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler : public wxWebViewHandler
25 {
26 public:
27 wxWebViewArchiveHandler(const wxString& scheme);
28 virtual ~wxWebViewArchiveHandler();
29 virtual wxFSFile* GetFile(const wxString &uri);
30 private:
31 wxFileSystem* m_fileSystem;
32 };
33
34 #endif // wxUSE_WEBVIEW
35
36 #endif // _WX_WEBVIEW_FILE_HANDLER_H_