]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/applet/window.h
reverted the hack for accepting broken HHC files (new wxHF_xxxx flags provide same...
[wxWidgets.git] / contrib / include / wx / applet / window.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 wxHtmlAppletWindow class
30*
31****************************************************************************/
32
33#ifndef __WX_APPLET_WINDOW_H
34#define __WX_APPLET_WINDOW_H
35
36#include "wx/html/htmlwin.h"
37
38/*--------------------------- Class Definitions ---------------------------*/
39
40// Declare a linked list of wxApplet pointers
41class wxApplet;
42WX_DECLARE_LIST(wxApplet, wxAppletList);
43
44/****************************************************************************
45MEMBERS:
67fc151d
KB
46appletModules - List of register applet modules
47appletList - List of all active applets instances
48cookies - Hash table for managing cookies
d9b91de7
KB
49
50REMARKS:
51Defines the class for wxAppletWindow. This class is derived from the
52wxHtmlWindow class and extends it with functionality to handle embedded
53wxApplet's on the HTML pages.
54****************************************************************************/
55class wxHtmlAppletWindow : public wxHtmlWindow {
56private:
57 DECLARE_CLASS(wxHtmlAppletWindow);
58 DECLARE_EVENT_TABLE();
67fc151d 59
d9b91de7 60protected:
67fc151d
KB
61 wxAppletList m_AppletList;
62 wxHashTable m_Cookies;
63
d9b91de7 64public:
67fc151d
KB
65 // Constructor
66 wxHtmlAppletWindow(
67 wxWindow *parent,
68 wxWindowID id = -1,
d9b91de7 69 const wxPoint& pos = wxDefaultPosition,
67fc151d
KB
70 const wxSize& size = wxDefaultSize,
71 long style = wxHW_SCROLLBAR_AUTO,
72 const wxString& name = "htmlAppletWindow");
73
74 // Destructor
75 ~wxHtmlAppletWindow();
76
77 // Create an instance of an applet based on it's class name
78 wxApplet *CreateApplet(
79 const wxString& className,
80 const wxSize& size);
81
82 // Find an instance of an applet based on it's class name
83 wxApplet *FindApplet(const wxString& className);
84
85 // Remove an applet from the window. Called during applet destruction
86 bool RemoveApplet(const wxApplet *applet);
d9b91de7 87
67fc151d
KB
88 // Load a new URL page
89 bool LoadPage(const wxString& hRef);
90
91 // Called when users clicked on hypertext link.
92 void OnLinkClicked(const wxHtmlLinkInfo& link);
93
94 // Handles forward navigation within the HTML stack
95 bool HistoryForward();
96
97 // Handles backwards navigation within the HTML stack
98 bool HistoryBack();
99
100 // Broadcast a message to all applets on the page
101 void SendMessage(wxEvent& msg);
102
103 // Register a cookie of data in the applet manager
104 bool RegisterCookie(const wxString& name,wxObject *cookie);
105
106 // UnRegister a cookie of data in the applet manager
107 bool UnRegisterCookie(const wxString& name);
108
109 // Find a cookie of data given it's public name
110 wxObject *FindCookie(const wxString& name);
111 };
112
d9b91de7
KB
113#endif // __WX_APPLET_WINDOW_H
114