-/////////////////////////////////////////////////////////////////////////////\r
-// Name: webviewfshandler.h\r
-// Purpose: Custom webview handler for virtual file system\r
-// Author: Nick Matthews\r
-// Id: $Id$\r
-// Copyright: (c) 2012 Steven Lamerton\r
-// Licence: wxWindows licence\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-// Based on webviewarchivehandler.h file by Steven Lamerton\r
-\r
-#ifndef _WX_WEB_VIEW_FS_HANDLER_H_\r
-#define _WX_WEB_VIEW_FS_HANDLER_H_\r
-\r
-#include "wx/setup.h"\r
-\r
-#if wxUSE_WEBVIEW\r
-\r
-class wxFSFile;\r
-class wxFileSystem;\r
-\r
-#include "wx/webview.h"\r
-\r
-//Loads from uris such as scheme:example.html\r
-\r
-class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler\r
-{\r
-public:\r
- wxWebViewFSHandler(const wxString& scheme);\r
- virtual ~wxWebViewFSHandler();\r
- virtual wxFSFile* GetFile(const wxString &uri);\r
-private:\r
- wxFileSystem* m_fileSystem;\r
-};\r
-\r
-#endif // wxUSE_WEBVIEW\r
-\r
-#endif // _WX_WEB_VIEW_FS_HANDLER_H_\r
+/////////////////////////////////////////////////////////////////////////////
+// Name: webviewfshandler.h
+// Purpose: Custom webview handler for virtual file system
+// Author: Nick Matthews
+// Id: $Id$
+// Copyright: (c) 2012 Steven Lamerton
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+// Based on webviewarchivehandler.h file by Steven Lamerton
+
+#ifndef _WX_WEB_VIEW_FS_HANDLER_H_
+#define _WX_WEB_VIEW_FS_HANDLER_H_
+
+#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();
+ virtual wxFSFile* GetFile(const wxString &uri);
+private:
+ wxFileSystem* m_fileSystem;
+};
+
+#endif // wxUSE_WEBVIEW
+
+#endif // _WX_WEB_VIEW_FS_HANDLER_H_
-/////////////////////////////////////////////////////////////////////////////\r
-// Name: webviewfshandler.h\r
-// Purpose: interface of wxWebViewFSHandler\r
-// Author: wxWidgets team\r
-// RCS-ID: $Id$\r
-// Licence: wxWindows licence\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-/**\r
- @class wxWebViewFSHandler\r
-\r
- A wxWebView file system handler to support standard wxFileSystem protocols\r
- of the form <code> example:page.htm </code> The handler allows wxWebView to\r
- use wxFileSystem in a similar fashion to its use with wxHtml.\r
-\r
- The wxMemoryFSHandler documentation gives an example of how it may be used.\r
-\r
- @since 2.9.5\r
- @library{wxwebview}\r
- @category{webview}\r
-\r
- @see wxWebView, wxWebViewHandler, wxWebViewArchiveHandler\r
- */\r
-class wxWebViewFSHandler : public wxWebViewHandler\r
-{\r
-public:\r
- /**\r
- Constructor.\r
- */\r
- wxWebViewFSHandler(const wxString& scheme);\r
- virtual wxFSFile* GetFile(const wxString &uri);\r
-};\r
+/////////////////////////////////////////////////////////////////////////////
+// Name: webviewfshandler.h
+// Purpose: interface of wxWebViewFSHandler
+// Author: wxWidgets team
+// RCS-ID: $Id$
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+/**
+ @class wxWebViewFSHandler
+
+ A wxWebView file system handler to support standard wxFileSystem protocols
+ of the form <code> example:page.htm </code> The handler allows wxWebView to
+ use wxFileSystem in a similar fashion to its use with wxHtml.
+
+ The wxMemoryFSHandler documentation gives an example of how it may be used.
+
+ @since 2.9.5
+ @library{wxwebview}
+ @category{webview}
+
+ @see wxWebView, wxWebViewHandler, wxWebViewArchiveHandler
+ */
+class wxWebViewFSHandler : public wxWebViewHandler
+{
+public:
+ /**
+ Constructor.
+ */
+ wxWebViewFSHandler(const wxString& scheme);
+ virtual wxFSFile* GetFile(const wxString &uri);
+};
-/////////////////////////////////////////////////////////////////////////////\r
-// Name: webviewfshandler.cpp\r
-// Purpose: Custom webview handler for virtual file system\r
-// Author: Nick Matthews\r
-// Id: $Id$\r
-// Copyright: (c) 2012 Steven Lamerton\r
-// Licence: wxWindows licence\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-// For compilers that support precompilation, includes "wx.h".\r
-#include "wx/wxprec.h"\r
-\r
-#if wxUSE_WEBVIEW\r
-\r
-#if defined(__BORLANDC__)\r
- #pragma hdrstop\r
-#endif\r
-\r
-#include "wx/webviewfshandler.h"\r
-#include "wx/filesys.h"\r
-\r
-wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) :\r
- wxWebViewHandler(scheme)\r
-{\r
- m_fileSystem = new wxFileSystem();\r
-}\r
-\r
-wxWebViewFSHandler::~wxWebViewFSHandler()\r
-{\r
- wxDELETE(m_fileSystem);\r
-}\r
-\r
-wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri)\r
-{\r
- return m_fileSystem->OpenFile(uri);\r
-}\r
-\r
-#endif // wxUSE_WEBVIEW\r
+/////////////////////////////////////////////////////////////////////////////
+// Name: webviewfshandler.cpp
+// Purpose: Custom webview handler for virtual file system
+// Author: Nick Matthews
+// Id: $Id$
+// Copyright: (c) 2012 Steven Lamerton
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#if wxUSE_WEBVIEW
+
+#if defined(__BORLANDC__)
+ #pragma hdrstop
+#endif
+
+#include "wx/webviewfshandler.h"
+#include "wx/filesys.h"
+
+wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) :
+ wxWebViewHandler(scheme)
+{
+ m_fileSystem = new wxFileSystem();
+}
+
+wxWebViewFSHandler::~wxWebViewFSHandler()
+{
+ wxDELETE(m_fileSystem);
+}
+
+wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri)
+{
+ return m_fileSystem->OpenFile(uri);
+}
+
+#endif // wxUSE_WEBVIEW