2011-07-30 14:22:15 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-08-14 12:15:34 +00:00
|
|
|
// Name: webviewarchivehandler.h
|
|
|
|
// Purpose: Custom webview handler to allow archive browsing
|
2011-07-30 14:22:15 +00:00
|
|
|
// Author: Steven Lamerton
|
|
|
|
// Copyright: (c) 2011 Steven Lamerton
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2013-02-01 09:38:53 +00:00
|
|
|
#ifndef _WX_WEBVIEW_FILE_HANDLER_H_
|
|
|
|
#define _WX_WEBVIEW_FILE_HANDLER_H_
|
2011-07-30 14:22:15 +00:00
|
|
|
|
|
|
|
#include "wx/setup.h"
|
|
|
|
|
2011-09-16 22:44:17 +00:00
|
|
|
#if wxUSE_WEBVIEW
|
2011-07-30 14:22:15 +00:00
|
|
|
|
|
|
|
class wxFSFile;
|
|
|
|
class wxFileSystem;
|
|
|
|
|
|
|
|
#include "wx/webview.h"
|
|
|
|
|
2011-08-14 12:15:34 +00:00
|
|
|
//Loads from uris such as scheme:///C:/example/example.html or archives such as
|
2012-03-28 18:00:30 +00:00
|
|
|
//scheme:///C:/example/example.zip;protocol=zip/example.html
|
2011-07-30 14:22:15 +00:00
|
|
|
|
2011-08-19 10:45:16 +00:00
|
|
|
class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler : public wxWebViewHandler
|
2011-07-30 14:22:15 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-08-14 12:15:34 +00:00
|
|
|
wxWebViewArchiveHandler(const wxString& scheme);
|
2011-10-05 21:21:51 +00:00
|
|
|
virtual ~wxWebViewArchiveHandler();
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual wxFSFile* GetFile(const wxString &uri) wxOVERRIDE;
|
2011-07-30 14:22:15 +00:00
|
|
|
private:
|
|
|
|
wxFileSystem* m_fileSystem;
|
|
|
|
};
|
|
|
|
|
2011-09-16 22:44:17 +00:00
|
|
|
#endif // wxUSE_WEBVIEW
|
2011-07-30 14:22:15 +00:00
|
|
|
|
2013-02-01 09:38:53 +00:00
|
|
|
#endif // _WX_WEBVIEW_FILE_HANDLER_H_
|