]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/applet/applet.h
Renderer should only be used for GTK+ 2
[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*
716cd410
KB
8* ========================================================================
9*
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
14*
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.
19*
20* ========================================================================
d9b91de7 21*
67fc151d
KB
22* Language: ANSI C++
23* Environment: Any
d9b91de7
KB
24*
25* Description: Header file for the wxApplet class
26*
27****************************************************************************/
28
29#ifndef __WX_APPLET_H
30#define __WX_APPLET_H
31
32#include "wx/panel.h"
38caaa61
KB
33#include "wx/html/htmlwin.h"
34
35// Forward declaration
36class wxHtmlAppletWindow;
574c939e 37class wxAppletEvent;
d9b91de7
KB
38/*--------------------------- Class Definitions ---------------------------*/
39
40/****************************************************************************
41REMARKS:
42Defines the abstract base class for wxApplet objects.
43****************************************************************************/
44class wxApplet : public wxPanel {
45private:
46 DECLARE_ABSTRACT_CLASS(wxApplet);
8cdb648e 47 DECLARE_EVENT_TABLE()
38caaa61 48
d9b91de7 49protected:
716cd410 50 //wxHtmlAppletWindow *m_parent;
d9b91de7 51
38caaa61 52 // Special handler for background erase messages
67fc151d 53 void OnEraseBackground(wxEraseEvent&);
38caaa61 54
d9b91de7 55public:
67fc151d 56 // Constructor (called during dynamic creation)
38caaa61
KB
57 wxApplet() { m_parent = NULL; };
58
67fc151d
KB
59 // Psuedo virtual constructor
60 virtual bool Create(
61 wxHtmlAppletWindow *parent,
38caaa61 62 const wxHtmlTag& params,
67fc151d
KB
63 const wxSize& size,
64 long style = wxTAB_TRAVERSAL | wxNO_BORDER);
38caaa61 65
67fc151d
KB
66 // Virtual destructor
67 virtual ~wxApplet();
d9b91de7 68
67fc151d 69 // Handle HTML navigation to a new URL
38caaa61
KB
70 virtual void OnLinkClicked(const wxHtmlLinkInfo& link) = 0;
71
67fc151d
KB
72 // Handle HTML navigation forward command in applet
73 virtual void OnHistoryForward() = 0;
38caaa61 74
67fc151d
KB
75 // Handle HTML navigation back command in applet
76 virtual void OnHistoryBack() = 0;
38caaa61 77
67fc151d 78 // Handle messages from the wxAppletManager and other applets
574c939e 79 virtual void OnMessage(wxAppletEvent& msg) = 0;
67fc151d 80 };
38caaa61
KB
81
82
83
d9b91de7
KB
84#endif // __WX_APPLET_H
85