]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/applet/applet.h
reverted the hack for accepting broken HHC files (new wxHF_xxxx flags provide same...
[wxWidgets.git] / contrib / include / wx / applet / applet.h
CommitLineData
d9b91de7
KB
1/****************************************************************************
2*
67fc151d 3* wxWindows HTML Applet Package
d9b91de7
KB
4*
5* Copyright (C) 1991-2001 SciTech Software, Inc.
6* All rights reserved.
7*
8* ======================================================================
9* |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
10* | |
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. |
18* | |
19* |If you received this code in error or you would like to report |
20* |improper use, please immediately contact SciTech Software, Inc. at |
21* |530-894-8400. |
22* | |
23* |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
24* ======================================================================
25*
67fc151d
KB
26* Language: ANSI C++
27* Environment: Any
d9b91de7
KB
28*
29* Description: Header file for the wxApplet class
30*
31****************************************************************************/
32
33#ifndef __WX_APPLET_H
34#define __WX_APPLET_H
35
36#include "wx/panel.h"
37#include "wx/applet/window.h"
38
39/*--------------------------- Class Definitions ---------------------------*/
40
41/****************************************************************************
42REMARKS:
43Defines the abstract base class for wxApplet objects.
44****************************************************************************/
45class wxApplet : public wxPanel {
46private:
47 DECLARE_ABSTRACT_CLASS(wxApplet);
48 DECLARE_EVENT_TABLE();
67fc151d 49
d9b91de7 50protected:
67fc151d 51 wxHtmlAppletWindow *m_Parent;
d9b91de7 52
67fc151d
KB
53 // Special handler for background erase messages
54 void OnEraseBackground(wxEraseEvent&);
55
d9b91de7 56public:
67fc151d
KB
57 // Constructor (called during dynamic creation)
58 wxApplet() { m_Parent = NULL; }
59
60 // Psuedo virtual constructor
61 virtual bool Create(
62 wxHtmlAppletWindow *parent,
63 const wxSize& size,
64 long style = wxTAB_TRAVERSAL | wxNO_BORDER);
65
66 // Virtual destructor
67 virtual ~wxApplet();
d9b91de7 68
67fc151d
KB
69 // Handle HTML navigation to a new URL
70 virtual void OnLinkClicked(const wxHtmlLinkInfo& link) = 0;
71
72 // Handle HTML navigation forward command in applet
73 virtual void OnHistoryForward() = 0;
74
75 // Handle HTML navigation back command in applet
76 virtual void OnHistoryBack() = 0;
77
78 // Handle messages from the wxAppletManager and other applets
79 virtual void OnMessage(wxEvent& msg) = 0;
80 };
81
d9b91de7
KB
82#endif // __WX_APPLET_H
83