struct IHTMLDocument2;
class wxFSFile;
+class ClassFactory;
class WXDLLIMPEXP_WEBVIEW wxWebViewIE : public wxWebView
{
Create(parent, id, url, pos, size, style, name);
}
+ ~wxWebViewIE();
+
bool Create(wxWindow* parent,
wxWindowID id,
const wxString& url = wxWebViewDefaultURLStr,
//an item from the history. The position is stored as an int, and reflects
//where we are in the history list.
wxVector<wxSharedPtr<wxWebViewHistoryItem> > m_historyList;
+ wxVector<ClassFactory*> m_factories;
int m_historyPosition;
bool m_historyLoadingFromList;
bool m_historyEnabled;
class WXDLLIMPEXP_WEBVIEW wxWebView : public wxControl
{
public:
+ virtual ~wxWebView() {}
virtual bool Create(wxWindow* parent,
wxWindowID id,
return true;
}
+wxWebViewIE::~wxWebViewIE()
+{
+ for(unsigned int i = 0; i < m_factories.size(); i++)
+ {
+ m_factories[i]->Release();
+ }
+}
void wxWebViewIE::LoadURL(const wxString& url)
{
{
wxFAIL_MSG("Could not register protocol");
}
+ m_factories.push_back(cf);
}
else
{