#include "wx/setup.h"
-#if wxUSE_WEBVIEW_IE && defined(__WXMSW__)
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
#include "wx/control.h"
#include "wx/webview.h"
#include "wx/msw/ole/automtn.h"
#include "wx/msw/ole/activex.h"
+#include "wx/msw/missing.h"
#include "wx/sharedptr.h"
#include "wx/vector.h"
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 ClassFactory : public IClassFactory
{
-private:
- ULONG m_refCount;
public:
- ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_handler(handler) {}
+ ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_refCount(0), m_handler(handler) {}
//IUnknown
ULONG STDMETHODCALLTYPE AddRef();
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject);
REFIID riid, void** ppvObject);
HRESULT STDMETHODCALLTYPE LockServer(BOOL fLock);
private:
+ ULONG m_refCount;
wxSharedPtr<wxWebViewHandler> m_handler;
};
-#endif // wxUSE_WEBVIEW_IE && defined(__WXMSW__)
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
#endif // wxWebViewIE_H