Develop and Download Open Source Software

Browse CVS Repository

Contents of /malonnote/mnHtmlWindow.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Thu Dec 22 10:48:29 2005 UTC (18 years, 3 months ago) by maloninc
Branch: MAIN
CVS Tags: rel_1_7_1, dev_1_6-0005, dev_1_6-0004, dev_1_6-0003, dev_1_6-0002, dev_1_6-0001, HEAD
Changes since 1.2: +17 -0 lines
File MIME type: text/x-chdr
for webkit, only for mac

1 #ifndef MNHTMLWINDOW_H
2 #define MNHTMLWINDOW_H
3
4 #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)
12
13 #ifdef __WXMAC__
14 class mnHtmlWindow : public wxWebKitCtrl {
15 #else
16 class mnHtmlWindow : public wxHtmlWindow {
17 #endif
18
19 DECLARE_DYNAMIC_CLASS(mnHtmlWindow)
20 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() {}
28 mnHtmlWindow(wxWindow *parent) : wxHtmlWindow(parent) {}
29 mnHtmlWindow(wxWindow *parent, wxWindowID id) : wxHtmlWindow(parent, id) {}
30 #endif
31
32 virtual void mnHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link);
33 };
34
35
36 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26