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