]>
Commit | Line | Data |
---|---|---|
0bfd90b3 SL |
1 | /////////////////////////////////////////////////////////////////////////////\r |
2 | // Name: webviewfshandler.h\r | |
3 | // Purpose: Custom webview handler for virtual file system\r | |
4 | // Author: Nick Matthews\r | |
5 | // Id: $Id$\r | |
6 | // Copyright: (c) 2012 Steven Lamerton\r | |
7 | // Licence: wxWindows licence\r | |
8 | /////////////////////////////////////////////////////////////////////////////\r | |
9 | \r | |
10 | // Based on webviewarchivehandler.h file by Steven Lamerton\r | |
11 | \r | |
12 | #ifndef _WX_WEB_VIEW_FS_HANDLER_H_\r | |
13 | #define _WX_WEB_VIEW_FS_HANDLER_H_\r | |
14 | \r | |
15 | #include "wx/setup.h"\r | |
16 | \r | |
17 | #if wxUSE_WEBVIEW\r | |
18 | \r | |
19 | class wxFSFile;\r | |
20 | class wxFileSystem;\r | |
21 | \r | |
22 | #include "wx/webview.h"\r | |
23 | \r | |
24 | //Loads from uris such as scheme:example.html\r | |
25 | \r | |
26 | class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler\r | |
27 | {\r | |
28 | public:\r | |
29 | wxWebViewFSHandler(const wxString& scheme);\r | |
30 | virtual ~wxWebViewFSHandler();\r | |
31 | virtual wxFSFile* GetFile(const wxString &uri);\r | |
32 | private:\r | |
33 | wxFileSystem* m_fileSystem;\r | |
34 | };\r | |
35 | \r | |
36 | #endif // wxUSE_WEBVIEW\r | |
37 | \r | |
38 | #endif // _WX_WEB_VIEW_FS_HANDLER_H_\r |