]>
Commit | Line | Data |
---|---|---|
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" | |
38caaa61 KB |
37 | #include "wx/html/htmlwin.h" |
38 | ||
39 | // Forward declaration | |
40 | class wxHtmlAppletWindow; | |
d9b91de7 KB |
41 | |
42 | /*--------------------------- Class Definitions ---------------------------*/ | |
43 | ||
44 | /**************************************************************************** | |
45 | REMARKS: | |
46 | Defines the abstract base class for wxApplet objects. | |
47 | ****************************************************************************/ | |
48 | class wxApplet : public wxPanel { | |
49 | private: | |
50 | DECLARE_ABSTRACT_CLASS(wxApplet); | |
51 | DECLARE_EVENT_TABLE(); | |
38caaa61 | 52 | |
d9b91de7 | 53 | protected: |
38caaa61 | 54 | wxHtmlAppletWindow *m_parent; |
d9b91de7 | 55 | |
38caaa61 | 56 | // Special handler for background erase messages |
67fc151d | 57 | void OnEraseBackground(wxEraseEvent&); |
38caaa61 | 58 | |
d9b91de7 | 59 | public: |
67fc151d | 60 | // Constructor (called during dynamic creation) |
38caaa61 KB |
61 | wxApplet() { m_parent = NULL; }; |
62 | ||
67fc151d KB |
63 | // Psuedo virtual constructor |
64 | virtual bool Create( | |
65 | wxHtmlAppletWindow *parent, | |
38caaa61 | 66 | const wxHtmlTag& params, |
67fc151d KB |
67 | const wxSize& size, |
68 | long style = wxTAB_TRAVERSAL | wxNO_BORDER); | |
38caaa61 | 69 | |
67fc151d KB |
70 | // Virtual destructor |
71 | virtual ~wxApplet(); | |
d9b91de7 | 72 | |
67fc151d | 73 | // Handle HTML navigation to a new URL |
38caaa61 KB |
74 | virtual void OnLinkClicked(const wxHtmlLinkInfo& link) = 0; |
75 | ||
67fc151d KB |
76 | // Handle HTML navigation forward command in applet |
77 | virtual void OnHistoryForward() = 0; | |
38caaa61 | 78 | |
67fc151d KB |
79 | // Handle HTML navigation back command in applet |
80 | virtual void OnHistoryBack() = 0; | |
38caaa61 | 81 | |
67fc151d KB |
82 | // Handle messages from the wxAppletManager and other applets |
83 | virtual void OnMessage(wxEvent& msg) = 0; | |
84 | }; | |
38caaa61 KB |
85 | |
86 | ||
87 | ||
d9b91de7 KB |
88 | #endif // __WX_APPLET_H |
89 |