Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (36 sloc) 1.4 KB
/*******************************************************************************
*
* Copyright (C) 2009, Alexander Stigsen, e-texteditor.com
*
* This software is licensed under the Open Company License as described
* in the file license.txt, which you should have received as part of this
* distribution. The terms are also available at http://opencompany.org/license.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
******************************************************************************/
#ifndef __WEBKIT_HTML_WND_H__
#define __WEBKIT_HTML_WND_H__
#include "IHtmlWnd.h"
#ifdef FEAT_BROWSER
#include <wx/WebView.h>
class wxBrowser : public wxWebView, public virtual IHtmlWnd {
DECLARE_EVENT_TABLE()
public:
wxBrowser(wxWindow *parent, wxWindowID id = wxID_ANY,
const wxPoint& point = wxDefaultPosition, const wxSize& size = wxDefaultSize);
virtual ~wxBrowser();
virtual wxWindow* GetWindow();
virtual bool LoadString(const wxString& html, bool prependHtml=true);
virtual void LoadUrl(const wxString &_url, const wxString &_frame = wxEmptyString, bool keepHistory=false);
virtual bool Refresh(wxHtmlRefreshLevel level);
virtual bool GoBack();
virtual bool GoForward();
virtual wxString GetRealLocation();
protected:
void OnBeforeLoad(wxWebViewBeforeLoadEvent& event);
wxString m_realLocation;
};
#endif //FEAT_BROWSER
#endif