]>
Commit | Line | Data |
---|---|---|
1 | /**************************************************************************** | |
2 | * | |
3 | * wxWindows HTML Applet Package | |
4 | * | |
5 | * Copyright (C) 1991-2001 SciTech Software, Inc. | |
6 | * All rights reserved. | |
7 | * | |
8 | * ======================================================================== | |
9 | * | |
10 | * The contents of this file are subject to the wxWindows License | |
11 | * Version 3.0 (the "License"); you may not use this file except in | |
12 | * compliance with the License. You may obtain a copy of the License at | |
13 | * http://www.wxwindows.org/licence3.txt | |
14 | * | |
15 | * Software distributed under the License is distributed on an | |
16 | * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | |
17 | * implied. See the License for the specific language governing | |
18 | * rights and limitations under the License. | |
19 | * | |
20 | * ======================================================================== | |
21 | * | |
22 | * Language: ANSI C++ | |
23 | * Environment: Any | |
24 | * | |
25 | * Description: Loadpage event class implementation | |
26 | * | |
27 | ****************************************************************************/ | |
28 | ||
29 | // Include private headers | |
30 | #include "wx/applet/loadpage.h" | |
31 | ||
32 | // wxWindows forcelink macro | |
33 | #include "wx/html/forcelnk.h" | |
34 | ||
35 | /*------------------------- Implementation --------------------------------*/ | |
36 | ||
37 | // Implement the class functions for wxLoadPageEvent | |
38 | IMPLEMENT_DYNAMIC_CLASS(wxLoadPageEvent, wxEvent) | |
39 | ||
40 | // Implement the class functions for wxPageLoadedEvent | |
41 | IMPLEMENT_DYNAMIC_CLASS(wxPageLoadedEvent, wxEvent) | |
42 | ||
43 | // Define our custom event ID for load page | |
44 | DEFINE_EVENT_TYPE(wxEVT_LOAD_PAGE) | |
45 | ||
46 | // Define our custom event ID for page loaded | |
47 | DEFINE_EVENT_TYPE(wxEVT_PAGE_LOADED) | |
48 | ||
49 | /**************************************************************************** | |
50 | REMARKS: | |
51 | Constructor for the wxLoadPageEvent class | |
52 | ****************************************************************************/ | |
53 | wxLoadPageEvent::wxLoadPageEvent( | |
54 | const wxString &hRef, | |
55 | wxHtmlAppletWindow *htmlWindow) | |
56 | : m_hRef(hRef), m_htmlWindow(htmlWindow) | |
57 | { | |
58 | m_eventType = wxEVT_LOAD_PAGE; | |
59 | } | |
60 | ||
61 | /**************************************************************************** | |
62 | REMARKS: | |
63 | Constructor for the wxPageLoadedEvent class | |
64 | ****************************************************************************/ | |
65 | wxPageLoadedEvent::wxPageLoadedEvent() | |
66 | { | |
67 | m_eventType = wxEVT_LOAD_PAGE; | |
68 | } | |
69 | ||
70 | // This is out little force link hack | |
71 | FORCE_LINK_ME(loadpage) | |
72 |