2012-09-17 19:35:26 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: webviewfshandler.h
|
|
|
|
// Purpose: Custom webview handler for virtual file system
|
|
|
|
// Author: Nick Matthews
|
|
|
|
// Copyright: (c) 2012 Steven Lamerton
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Based on webviewarchivehandler.h file by Steven Lamerton
|
|
|
|
|
2013-02-01 04:38:53 -05:00
|
|
|
#ifndef _WX_WEBVIEW_FS_HANDLER_H_
|
|
|
|
#define _WX_WEBVIEW_FS_HANDLER_H_
|
2012-09-17 19:35:26 -04:00
|
|
|
|
|
|
|
#include "wx/setup.h"
|
|
|
|
|
|
|
|
#if wxUSE_WEBVIEW
|
|
|
|
|
|
|
|
class wxFSFile;
|
|
|
|
class wxFileSystem;
|
|
|
|
|
|
|
|
#include "wx/webview.h"
|
|
|
|
|
|
|
|
//Loads from uris such as scheme:example.html
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxWebViewFSHandler(const wxString& scheme);
|
|
|
|
virtual ~wxWebViewFSHandler();
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual wxFSFile* GetFile(const wxString &uri) wxOVERRIDE;
|
2012-09-17 19:35:26 -04:00
|
|
|
private:
|
|
|
|
wxFileSystem* m_fileSystem;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_WEBVIEW
|
|
|
|
|
2013-02-01 04:38:53 -05:00
|
|
|
#endif // _WX_WEBVIEW_FS_HANDLER_H_
|