]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/applet/loadpage.cpp
Commited latest SciTech changes into CVS. This includes updates to the
[wxWidgets.git] / contrib / src / applet / loadpage.cpp
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 // For compilers that support precompilation
30 #include "wx/wxprec.h"
31 #include "wx/html/forcelnk.h"
32
33 // Include private headers
34 #include "wx/applet/loadpage.h"
35
36 /*------------------------- Implementation --------------------------------*/
37
38 // Implement the class functions for wxLoadPageEvent
39 IMPLEMENT_DYNAMIC_CLASS(wxLoadPageEvent, wxEvent)
40
41 // Implement the class functions for wxPageLoadedEvent
42 IMPLEMENT_DYNAMIC_CLASS(wxPageLoadedEvent, wxEvent)
43
44 // Define our custom event ID for load page
45 DEFINE_EVENT_TYPE(wxEVT_LOAD_PAGE);
46
47 // Define our custom event ID for page loaded
48 DEFINE_EVENT_TYPE(wxEVT_PAGE_LOADED);
49
50 /****************************************************************************
51 REMARKS:
52 Constructor for the wxLoadPageEvent class
53 ****************************************************************************/
54 wxLoadPageEvent::wxLoadPageEvent(
55 const wxString &hRef,
56 wxHtmlAppletWindow *htmlWindow)
57 : m_hRef(hRef), m_htmlWindow(htmlWindow)
58 {
59 m_eventType = wxEVT_LOAD_PAGE;
60 }
61
62 /****************************************************************************
63 REMARKS:
64 Function to copy the wxLoadPageEvent object
65 ****************************************************************************/
66 void wxLoadPageEvent::CopyObject(
67 wxObject& obj_d) const
68 {
69 wxLoadPageEvent *obj = (wxLoadPageEvent*)&obj_d;
70 wxEvent::CopyObject(obj_d);
71 obj->m_hRef = m_hRef;
72 obj->m_htmlWindow = m_htmlWindow;
73 }
74
75
76 /****************************************************************************
77 REMARKS:
78 Constructor for the wxPageLoadedEvent class
79 ****************************************************************************/
80 wxPageLoadedEvent::wxPageLoadedEvent()
81 {
82 m_eventType = wxEVT_LOAD_PAGE;
83 }
84
85 /****************************************************************************
86 REMARKS:
87 Function to copy the wxPageLoadedEvent object
88 ****************************************************************************/
89 void wxPageLoadedEvent::CopyObject(
90 wxObject& obj_d) const
91 {
92 wxPageLoadedEvent *obj = (wxPageLoadedEvent*)&obj_d;
93 wxEvent::CopyObject(obj_d);
94 }
95
96 // This is out little force link hack
97 FORCE_LINK_ME(loadpage)
98