]>
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 * ========================================================================
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: Header file for the wxApplet class
27 ****************************************************************************/
33 #include "wx/html/htmlwin.h"
35 // Forward declaration
36 class wxHtmlAppletWindow
;
38 /*--------------------------- Class Definitions ---------------------------*/
40 /****************************************************************************
42 Defines the abstract base class for wxApplet objects.
43 ****************************************************************************/
44 class wxApplet
: public wxPanel
{
46 DECLARE_ABSTRACT_CLASS(wxApplet
);
50 //wxHtmlAppletWindow *m_parent;
52 // Special handler for background erase messages
53 void OnEraseBackground(wxEraseEvent
&);
56 // Constructor (called during dynamic creation)
57 wxApplet() { m_parent
= NULL
; };
59 // Psuedo virtual constructor
61 wxHtmlAppletWindow
*parent
,
62 const wxHtmlTag
& params
,
64 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
);
69 // Handle HTML navigation to a new URL
70 virtual void OnLinkClicked(const wxHtmlLinkInfo
& link
) = 0;
72 // Handle HTML navigation forward command in applet
73 virtual void OnHistoryForward() = 0;
75 // Handle HTML navigation back command in applet
76 virtual void OnHistoryBack() = 0;
78 // Handle messages from the wxAppletManager and other applets
79 virtual void OnMessage(wxAppletEvent
& msg
) = 0;
84 #endif // __WX_APPLET_H