]>
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 // Include private headers
30 #include "wx/applet/loadpage.h"
32 // wxWindows forcelink macro
33 #include "wx/html/forcelnk.h"
35 /*------------------------- Implementation --------------------------------*/
37 // Implement the class functions for wxLoadPageEvent
38 IMPLEMENT_DYNAMIC_CLASS(wxLoadPageEvent
, wxEvent
)
40 // Implement the class functions for wxPageLoadedEvent
41 IMPLEMENT_DYNAMIC_CLASS(wxPageLoadedEvent
, wxEvent
)
43 // Define our custom event ID for load page
44 DEFINE_EVENT_TYPE(wxEVT_LOAD_PAGE
)
46 // Define our custom event ID for page loaded
47 DEFINE_EVENT_TYPE(wxEVT_PAGE_LOADED
)
49 /****************************************************************************
51 Constructor for the wxLoadPageEvent class
52 ****************************************************************************/
53 wxLoadPageEvent::wxLoadPageEvent(
55 wxHtmlAppletWindow
*htmlWindow
)
56 : m_hRef(hRef
), m_htmlWindow(htmlWindow
)
58 m_eventType
= wxEVT_LOAD_PAGE
;
61 /****************************************************************************
63 Constructor for the wxPageLoadedEvent class
64 ****************************************************************************/
65 wxPageLoadedEvent::wxPageLoadedEvent()
67 m_eventType
= wxEVT_LOAD_PAGE
;
70 // This is out little force link hack
71 FORCE_LINK_ME(loadpage
)