]>
git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/applet/applet.h
1 /****************************************************************************
3 * wxWindows HTML Applet Package
5 * Copyright (C) 1991-2001 SciTech Software, Inc.
8 * ======================================================================
9 * |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
11 * |This copyrighted computer code is a proprietary trade secret of |
12 * |SciTech Software, Inc., located at 505 Wall Street, Chico, CA 95928 |
13 * |USA (www.scitechsoft.com). ANY UNAUTHORIZED POSSESSION, USE, |
14 * |VIEWING, COPYING, MODIFICATION OR DISSEMINATION OF THIS CODE IS |
15 * |STRICTLY PROHIBITED BY LAW. Unless you have current, express |
16 * |written authorization from SciTech to possess or use this code, you |
17 * |may be subject to civil and/or criminal penalties. |
19 * |If you received this code in error or you would like to report |
20 * |improper use, please immediately contact SciTech Software, Inc. at |
23 * |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
24 * ======================================================================
29 * Description: Header file for the wxApplet class
31 ****************************************************************************/
37 #include "wx/html/htmlwin.h"
39 // Forward declaration
40 class wxHtmlAppletWindow
;
42 /*--------------------------- Class Definitions ---------------------------*/
44 /****************************************************************************
46 Defines the abstract base class for wxApplet objects.
47 ****************************************************************************/
48 class wxApplet
: public wxPanel
{
50 DECLARE_ABSTRACT_CLASS(wxApplet
);
51 DECLARE_EVENT_TABLE();
54 wxHtmlAppletWindow
*m_parent
;
56 // Special handler for background erase messages
57 void OnEraseBackground(wxEraseEvent
&);
60 // Constructor (called during dynamic creation)
61 wxApplet() { m_parent
= NULL
; };
63 // Psuedo virtual constructor
65 wxHtmlAppletWindow
*parent
,
66 const wxHtmlTag
& params
,
68 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
);
73 // Handle HTML navigation to a new URL
74 virtual void OnLinkClicked(const wxHtmlLinkInfo
& link
) = 0;
76 // Handle HTML navigation forward command in applet
77 virtual void OnHistoryForward() = 0;
79 // Handle HTML navigation back command in applet
80 virtual void OnHistoryBack() = 0;
82 // Handle messages from the wxAppletManager and other applets
83 virtual void OnMessage(wxEvent
& msg
) = 0;
88 #endif // __WX_APPLET_H