]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/applet/loadpage.cpp
1 /****************************************************************************
3 * wxWindows HTML Applet Package
5 * Copyright (C) 1991-2001 SciTech Software, Inc.
8 * ========================================================================
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
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.
20 * ========================================================================
25 * Description: Loadpage event class implementation
27 ****************************************************************************/
29 // For compilers that support precompilation
30 #include "wx/wxprec.h"
31 #include "wx/html/forcelnk.h"
33 // Include private headers
34 #include "wx/applet/loadpage.h"
36 /*------------------------- Implementation --------------------------------*/
38 // Implement the class functions for wxLoadPageEvent
39 IMPLEMENT_DYNAMIC_CLASS(wxLoadPageEvent
, wxEvent
)
41 // Implement the class functions for wxPageLoadedEvent
42 IMPLEMENT_DYNAMIC_CLASS(wxPageLoadedEvent
, wxEvent
)
44 // Define our custom event ID for load page
45 DEFINE_EVENT_TYPE(wxEVT_LOAD_PAGE
);
47 // Define our custom event ID for page loaded
48 DEFINE_EVENT_TYPE(wxEVT_PAGE_LOADED
);
50 /****************************************************************************
52 Constructor for the wxLoadPageEvent class
53 ****************************************************************************/
54 wxLoadPageEvent::wxLoadPageEvent(
56 wxHtmlAppletWindow
*htmlWindow
)
57 : m_hRef(hRef
), m_htmlWindow(htmlWindow
)
59 m_eventType
= wxEVT_LOAD_PAGE
;
62 /****************************************************************************
64 Function to copy the wxLoadPageEvent object
65 ****************************************************************************/
66 void wxLoadPageEvent::CopyObject(
67 wxObject
& obj_d
) const
69 wxLoadPageEvent
*obj
= (wxLoadPageEvent
*)&obj_d
;
70 wxEvent::CopyObject(obj_d
);
72 obj
->m_htmlWindow
= m_htmlWindow
;
76 /****************************************************************************
78 Constructor for the wxPageLoadedEvent class
79 ****************************************************************************/
80 wxPageLoadedEvent::wxPageLoadedEvent()
82 m_eventType
= wxEVT_LOAD_PAGE
;
85 /****************************************************************************
87 Function to copy the wxPageLoadedEvent object
88 ****************************************************************************/
89 void wxPageLoadedEvent::CopyObject(
90 wxObject
& obj_d
) const
92 wxPageLoadedEvent
*obj
= (wxPageLoadedEvent
*)&obj_d
;
93 wxEvent::CopyObject(obj_d
);
96 // This is out little force link hack
97 FORCE_LINK_ME(loadpage
)