See #13500
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69314
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
struct IHTMLDocument2;
class wxFSFile;
struct IHTMLDocument2;
class wxFSFile;
class WXDLLIMPEXP_WEBVIEW wxWebViewIE : public wxWebView
{
class WXDLLIMPEXP_WEBVIEW wxWebViewIE : public wxWebView
{
Create(parent, id, url, pos, size, style, name);
}
Create(parent, id, url, pos, size, style, name);
}
bool Create(wxWindow* parent,
wxWindowID id,
const wxString& url = wxWebViewDefaultURLStr,
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;
//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;
int m_historyPosition;
bool m_historyLoadingFromList;
bool m_historyEnabled;
class WXDLLIMPEXP_WEBVIEW wxWebView : public wxControl
{
public:
class WXDLLIMPEXP_WEBVIEW wxWebView : public wxControl
{
public:
+ virtual ~wxWebView() {}
virtual bool Create(wxWindow* parent,
wxWindowID id,
virtual bool Create(wxWindow* parent,
wxWindowID id,
+wxWebViewIE::~wxWebViewIE()
+{
+ for(unsigned int i = 0; i < m_factories.size(); i++)
+ {
+ m_factories[i]->Release();
+ }
+}
void wxWebViewIE::LoadURL(const wxString& url)
{
void wxWebViewIE::LoadURL(const wxString& url)
{
{
wxFAIL_MSG("Could not register protocol");
}
{
wxFAIL_MSG("Could not register protocol");
}
+ m_factories.push_back(cf);