]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/applet/loadpage.cpp
Fixed an OOR related bug that happened when a class has been renamed.
[wxWidgets.git] / contrib / src / applet / loadpage.cpp
CommitLineData
716cd410
KB
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
39IMPLEMENT_DYNAMIC_CLASS(wxLoadPageEvent, wxEvent)
40
41// Implement the class functions for wxPageLoadedEvent
42IMPLEMENT_DYNAMIC_CLASS(wxPageLoadedEvent, wxEvent)
43
44// Define our custom event ID for load page
45DEFINE_EVENT_TYPE(wxEVT_LOAD_PAGE);
46
47// Define our custom event ID for page loaded
48DEFINE_EVENT_TYPE(wxEVT_PAGE_LOADED);
49
50/****************************************************************************
51REMARKS:
52Constructor for the wxLoadPageEvent class
53****************************************************************************/
54wxLoadPageEvent::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/****************************************************************************
63REMARKS:
64Function to copy the wxLoadPageEvent object
65****************************************************************************/
66void 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/****************************************************************************
77REMARKS:
78Constructor for the wxPageLoadedEvent class
79****************************************************************************/
80wxPageLoadedEvent::wxPageLoadedEvent()
81{
82 m_eventType = wxEVT_LOAD_PAGE;
83}
84
85/****************************************************************************
86REMARKS:
87Function to copy the wxPageLoadedEvent object
88****************************************************************************/
89void 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
97FORCE_LINK_ME(loadpage)
98