Browse CVS Repository
Diff of /malonnote/mnHtmlWindow.h
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 3 |
|
|
| 4 |
#include <wx/wxhtml.h> |
#include <wx/wxhtml.h> |
| 5 |
|
|
| 6 |
|
|
| 7 |
|
#ifdef __WXMAC__ |
| 8 |
|
#include <wx/html/webkit.h> |
| 9 |
|
#endif |
| 10 |
|
|
| 11 |
DECLARE_EVENT_TYPE(mnEVT_LINK_CLICK, -1) |
DECLARE_EVENT_TYPE(mnEVT_LINK_CLICK, -1) |
| 12 |
|
|
| 13 |
|
#ifdef __WXMAC__ |
| 14 |
|
class mnHtmlWindow : public wxWebKitCtrl { |
| 15 |
|
#else |
| 16 |
class mnHtmlWindow : public wxHtmlWindow { |
class mnHtmlWindow : public wxHtmlWindow { |
| 17 |
|
#endif |
| 18 |
|
|
| 19 |
DECLARE_DYNAMIC_CLASS(mnHtmlWindow) |
DECLARE_DYNAMIC_CLASS(mnHtmlWindow) |
| 20 |
public: |
public: |
| 21 |
|
#ifdef __WXMAC__ |
| 22 |
|
mnHtmlWindow() : wxWebKitCtrl() {} |
| 23 |
|
mnHtmlWindow(wxWindow *parent) : wxWebKitCtrl(parent, wxID_HIGHEST + 1, wxT("")) {} |
| 24 |
|
mnHtmlWindow(wxWindow *parent, wxWindowID id, const wxString& url, const wxPoint& pos, const wxSize& size) : wxWebKitCtrl(parent, id, url, pos, size) {} |
| 25 |
|
bool SetPage(const wxString& source); |
| 26 |
|
#else |
| 27 |
mnHtmlWindow() : wxHtmlWindow() {} |
mnHtmlWindow() : wxHtmlWindow() {} |
| 28 |
mnHtmlWindow(wxWindow *parent) : wxHtmlWindow(parent) {} |
mnHtmlWindow(wxWindow *parent) : wxHtmlWindow(parent) {} |
| 29 |
mnHtmlWindow(wxWindow *parent, wxWindowID id) : wxHtmlWindow(parent, id) {} |
mnHtmlWindow(wxWindow *parent, wxWindowID id) : wxHtmlWindow(parent, id) {} |
| 30 |
|
#endif |
| 31 |
|
|
| 32 |
virtual void mnHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link); |
virtual void mnHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link); |
| 33 |
}; |
}; |
| 34 |
|
|
|
|
Legend:
| Removed from v.1.2 |
|
| changed lines |
| |
Added in v.1.3 |
|
|
| |