Commit 7f7e94d3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLDocument3 stub implementation.

parent e6b17d1b
...@@ -11,6 +11,7 @@ EXTRADEFS = -DCOM_NO_WINDOWS_H ...@@ -11,6 +11,7 @@ EXTRADEFS = -DCOM_NO_WINDOWS_H
C_SRCS = \ C_SRCS = \
hlink.c \ hlink.c \
htmldoc.c \ htmldoc.c \
htmldoc3.c \
main.c \ main.c \
nsembed.c \ nsembed.c \
nsservice.c\ nsservice.c\
......
...@@ -53,6 +53,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID ...@@ -53,6 +53,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
}else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) { }else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) {
TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppvObject); TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppvObject);
*ppvObject = HTMLDOC(This); *ppvObject = HTMLDOC(This);
}else if(IsEqualGUID(&IID_IHTMLDocument3, riid)) {
TRACE("(%p)->(IID_IHTMLDocument3, %p)\n", This, ppvObject);
*ppvObject = HTMLDOC3(This);
}else if(IsEqualGUID(&IID_IPersist, riid)) { }else if(IsEqualGUID(&IID_IPersist, riid)) {
TRACE("(%p)->(IID_IPersist, %p)\n", This, ppvObject); TRACE("(%p)->(IID_IPersist, %p)\n", This, ppvObject);
*ppvObject = PERSIST(This); *ppvObject = PERSIST(This);
...@@ -985,6 +988,7 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject) ...@@ -985,6 +988,7 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
LOCK_MODULE(); LOCK_MODULE();
HTMLDocument_HTMLDocument3_Init(ret);
HTMLDocument_Persist_Init(ret); HTMLDocument_Persist_Init(ret);
HTMLDocument_OleObj_Init(ret); HTMLDocument_OleObj_Init(ret);
HTMLDocument_View_Init(ret); HTMLDocument_View_Init(ret);
......
...@@ -43,6 +43,7 @@ typedef struct BindStatusCallback BindStatusCallback; ...@@ -43,6 +43,7 @@ typedef struct BindStatusCallback BindStatusCallback;
typedef struct { typedef struct {
const IHTMLDocument2Vtbl *lpHTMLDocument2Vtbl; const IHTMLDocument2Vtbl *lpHTMLDocument2Vtbl;
const IHTMLDocument3Vtbl *lpHTMLDocument3Vtbl;
const IPersistMonikerVtbl *lpPersistMonikerVtbl; const IPersistMonikerVtbl *lpPersistMonikerVtbl;
const IPersistFileVtbl *lpPersistFileVtbl; const IPersistFileVtbl *lpPersistFileVtbl;
const IMonikerPropVtbl *lpMonikerPropVtbl; const IMonikerPropVtbl *lpMonikerPropVtbl;
...@@ -97,6 +98,7 @@ struct NSContainer { ...@@ -97,6 +98,7 @@ struct NSContainer {
}; };
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl) #define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
#define HTMLDOC3(x) ((IHTMLDocument3*) &(x)->lpHTMLDocument3Vtbl)
#define PERSIST(x) ((IPersist*) &(x)->lpPersistFileVtbl) #define PERSIST(x) ((IPersist*) &(x)->lpPersistFileVtbl)
#define PERSISTMON(x) ((IPersistMoniker*) &(x)->lpPersistMonikerVtbl) #define PERSISTMON(x) ((IPersistMoniker*) &(x)->lpPersistMonikerVtbl)
#define PERSISTFILE(x) ((IPersistFile*) &(x)->lpPersistFileVtbl) #define PERSISTFILE(x) ((IPersistFile*) &(x)->lpPersistFileVtbl)
...@@ -125,6 +127,7 @@ struct NSContainer { ...@@ -125,6 +127,7 @@ struct NSContainer {
HRESULT HTMLDocument_Create(IUnknown*,REFIID,void**); HRESULT HTMLDocument_Create(IUnknown*,REFIID,void**);
void HTMLDocument_HTMLDocument3_Init(HTMLDocument*);
void HTMLDocument_Persist_Init(HTMLDocument*); void HTMLDocument_Persist_Init(HTMLDocument*);
void HTMLDocument_OleObj_Init(HTMLDocument*); void HTMLDocument_OleObj_Init(HTMLDocument*);
void HTMLDocument_View_Init(HTMLDocument*); void HTMLDocument_View_Init(HTMLDocument*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment