2007-09-26 20:43:52 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2007 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "ole2.h"
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
#include "mshtml_private.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
|
|
|
|
|
2010-12-22 10:43:37 +01:00
|
|
|
static inline HTMLDocument *impl_from_IHTMLDocument5(IHTMLDocument5 *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLDocument, IHTMLDocument5_iface);
|
|
|
|
}
|
2007-09-26 20:43:52 +02:00
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_QueryInterface(IHTMLDocument5 *iface,
|
|
|
|
REFIID riid, void **ppv)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2010-12-16 14:59:51 +01:00
|
|
|
return htmldoc_query_interface(This, riid, ppv);
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLDocument5_AddRef(IHTMLDocument5 *iface)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2010-12-16 14:59:51 +01:00
|
|
|
return htmldoc_addref(This);
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLDocument5_Release(IHTMLDocument5 *iface)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2010-12-16 14:59:51 +01:00
|
|
|
return htmldoc_release(This);
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_GetTypeInfoCount(IHTMLDocument5 *iface, UINT *pctinfo)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->IDispatchEx_iface, pctinfo);
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_GetTypeInfo(IHTMLDocument5 *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->IDispatchEx_iface, iTInfo, lcid, ppTInfo);
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_GetIDsOfNames(IHTMLDocument5 *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->IDispatchEx_iface, riid, rgszNames, cNames, lcid,
|
|
|
|
rgDispId);
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_Invoke(IHTMLDocument5 *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_Invoke(&This->IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
|
|
|
|
pDispParams, pVarResult, pExcepInfo, puArgErr);
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_put_onmousewheel(IHTMLDocument5 *iface, VARIANT v)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2007-09-26 20:43:52 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_onmousewheel(IHTMLDocument5 *iface, VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_doctype(IHTMLDocument5 *iface, IHTMLDOMNode **p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_implementation(IHTMLDocument5 *iface, IHTMLDOMImplementation **p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_createAttribute(IHTMLDocument5 *iface, BSTR bstrattrName,
|
|
|
|
IHTMLDOMAttribute **ppattribute)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrattrName), ppattribute);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_createComment(IHTMLDocument5 *iface, BSTR bstrdata,
|
|
|
|
IHTMLDOMNode **ppRetNode)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2009-01-16 09:59:28 +01:00
|
|
|
nsIDOMComment *nscomment;
|
2010-12-01 22:42:03 +01:00
|
|
|
HTMLElement *elem;
|
2009-01-16 09:59:28 +01:00
|
|
|
nsAString str;
|
|
|
|
nsresult nsres;
|
2010-12-01 22:42:03 +01:00
|
|
|
HRESULT hres;
|
2009-01-16 09:59:28 +01:00
|
|
|
|
|
|
|
TRACE("(%p)->(%s %p)\n", This, debugstr_w(bstrdata), ppRetNode);
|
|
|
|
|
2009-10-21 21:27:42 +02:00
|
|
|
if(!This->doc_node->nsdoc) {
|
2009-01-16 09:59:28 +01:00
|
|
|
WARN("NULL nsdoc\n");
|
|
|
|
return E_UNEXPECTED;
|
|
|
|
}
|
|
|
|
|
2010-01-28 23:55:51 +01:00
|
|
|
nsAString_InitDepend(&str, bstrdata);
|
2009-10-21 21:27:42 +02:00
|
|
|
nsres = nsIDOMHTMLDocument_CreateComment(This->doc_node->nsdoc, &str, &nscomment);
|
2009-01-16 09:59:28 +01:00
|
|
|
nsAString_Finish(&str);
|
|
|
|
if(NS_FAILED(nsres)) {
|
|
|
|
ERR("CreateTextNode failed: %08x\n", nsres);
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
|
2010-12-01 22:42:03 +01:00
|
|
|
hres = HTMLCommentElement_Create(This->doc_node, (nsIDOMNode*)nscomment, &elem);
|
2009-01-16 09:59:28 +01:00
|
|
|
nsIDOMElement_Release(nscomment);
|
2010-12-01 22:42:03 +01:00
|
|
|
if(FAILED(hres))
|
|
|
|
return hres;
|
2009-01-16 09:59:28 +01:00
|
|
|
|
2010-12-30 01:39:16 +01:00
|
|
|
*ppRetNode = &elem->node.IHTMLDOMNode_iface;
|
2009-01-16 09:59:28 +01:00
|
|
|
return S_OK;
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_put_onfocusin(IHTMLDocument5 *iface, VARIANT v)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2007-09-26 20:43:52 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_onfocusin(IHTMLDocument5 *iface, VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_put_onfocusout(IHTMLDocument5 *iface, VARIANT v)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2007-09-26 20:43:52 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_onfocusout(IHTMLDocument5 *iface, VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_put_onactivate(IHTMLDocument5 *iface, VARIANT v)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2007-09-26 20:43:52 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_onactivate(IHTMLDocument5 *iface, VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_put_ondeactivate(IHTMLDocument5 *iface, VARIANT v)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2007-09-26 20:43:52 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_ondeactivate(IHTMLDocument5 *iface, VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_put_onbeforeactivate(IHTMLDocument5 *iface, VARIANT v)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2007-09-26 20:43:52 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_onbeforeactivate(IHTMLDocument5 *iface, VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_put_onbeforedeactivate(IHTMLDocument5 *iface, VARIANT v)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2007-09-26 20:43:52 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_onbeforedeactivate(IHTMLDocument5 *iface, VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:43:52 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument5_get_compatMode(IHTMLDocument5 *iface, BSTR *p)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument5(iface);
|
2007-09-26 20:44:14 +02:00
|
|
|
nsAString mode_str;
|
|
|
|
const PRUnichar *mode;
|
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2009-10-21 21:27:42 +02:00
|
|
|
if(!This->doc_node->nsdoc) {
|
2008-10-08 20:27:44 +02:00
|
|
|
WARN("NULL nsdoc\n");
|
|
|
|
return E_UNEXPECTED;
|
|
|
|
}
|
2007-09-26 20:44:14 +02:00
|
|
|
|
|
|
|
nsAString_Init(&mode_str, NULL);
|
2011-11-09 18:11:42 +01:00
|
|
|
nsIDOMHTMLDocument_GetCompatMode(This->doc_node->nsdoc, &mode_str);
|
2007-09-26 20:44:14 +02:00
|
|
|
|
2007-12-17 01:38:30 +01:00
|
|
|
nsAString_GetData(&mode_str, &mode);
|
2007-09-26 20:44:14 +02:00
|
|
|
*p = SysAllocString(mode);
|
|
|
|
nsAString_Finish(&mode_str);
|
|
|
|
|
|
|
|
return S_OK;
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLDocument5Vtbl HTMLDocument5Vtbl = {
|
|
|
|
HTMLDocument5_QueryInterface,
|
|
|
|
HTMLDocument5_AddRef,
|
|
|
|
HTMLDocument5_Release,
|
|
|
|
HTMLDocument5_GetTypeInfoCount,
|
|
|
|
HTMLDocument5_GetTypeInfo,
|
|
|
|
HTMLDocument5_GetIDsOfNames,
|
|
|
|
HTMLDocument5_Invoke,
|
|
|
|
HTMLDocument5_put_onmousewheel,
|
|
|
|
HTMLDocument5_get_onmousewheel,
|
|
|
|
HTMLDocument5_get_doctype,
|
|
|
|
HTMLDocument5_get_implementation,
|
|
|
|
HTMLDocument5_createAttribute,
|
|
|
|
HTMLDocument5_createComment,
|
|
|
|
HTMLDocument5_put_onfocusin,
|
|
|
|
HTMLDocument5_get_onfocusin,
|
|
|
|
HTMLDocument5_put_onfocusout,
|
|
|
|
HTMLDocument5_get_onfocusout,
|
|
|
|
HTMLDocument5_put_onactivate,
|
|
|
|
HTMLDocument5_get_onactivate,
|
|
|
|
HTMLDocument5_put_ondeactivate,
|
|
|
|
HTMLDocument5_get_ondeactivate,
|
|
|
|
HTMLDocument5_put_onbeforeactivate,
|
|
|
|
HTMLDocument5_get_onbeforeactivate,
|
|
|
|
HTMLDocument5_put_onbeforedeactivate,
|
|
|
|
HTMLDocument5_get_onbeforedeactivate,
|
|
|
|
HTMLDocument5_get_compatMode
|
|
|
|
};
|
|
|
|
|
2010-12-22 10:45:14 +01:00
|
|
|
static inline HTMLDocument *impl_from_IHTMLDocument6(IHTMLDocument6 *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLDocument, IHTMLDocument6_iface);
|
|
|
|
}
|
2009-10-12 20:39:23 +02:00
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_QueryInterface(IHTMLDocument6 *iface,
|
|
|
|
REFIID riid, void **ppv)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2010-12-16 14:59:51 +01:00
|
|
|
return htmldoc_query_interface(This, riid, ppv);
|
2009-10-12 20:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLDocument6_AddRef(IHTMLDocument6 *iface)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2010-12-16 14:59:51 +01:00
|
|
|
return htmldoc_addref(This);
|
2009-10-12 20:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLDocument6_Release(IHTMLDocument6 *iface)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2010-12-16 14:59:51 +01:00
|
|
|
return htmldoc_release(This);
|
2009-10-12 20:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_GetTypeInfoCount(IHTMLDocument6 *iface, UINT *pctinfo)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->IDispatchEx_iface, pctinfo);
|
2009-10-12 20:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_GetTypeInfo(IHTMLDocument6 *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->IDispatchEx_iface, iTInfo, lcid, ppTInfo);
|
2009-10-12 20:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_GetIDsOfNames(IHTMLDocument6 *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->IDispatchEx_iface, riid, rgszNames, cNames, lcid,
|
|
|
|
rgDispId);
|
2009-10-12 20:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_Invoke(IHTMLDocument6 *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2010-12-31 11:02:05 +01:00
|
|
|
return IDispatchEx_Invoke(&This->IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
|
|
|
|
pDispParams, pVarResult, pExcepInfo, puArgErr);
|
2009-10-12 20:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_get_compatible(IHTMLDocument6 *iface,
|
|
|
|
IHTMLDocumentCompatibleInfoCollection **p)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2009-10-12 20:39:23 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_get_documentMode(IHTMLDocument6 *iface,
|
|
|
|
VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2009-10-12 20:39:23 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_get_onstorage(IHTMLDocument6 *iface,
|
|
|
|
VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2009-10-12 20:39:23 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2012-03-28 14:27:07 +02:00
|
|
|
static HRESULT WINAPI HTMLDocument6_put_onstorage(IHTMLDocument6 *iface, VARIANT v)
|
2009-10-12 20:39:23 +02:00
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2009-10-12 20:39:23 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_get_onstoragecommit(IHTMLDocument6 *iface,
|
|
|
|
VARIANT *p)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2009-10-12 20:39:23 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2012-03-28 14:27:07 +02:00
|
|
|
static HRESULT WINAPI HTMLDocument6_put_onstoragecommit(IHTMLDocument6 *iface, VARIANT v)
|
2009-10-12 20:39:23 +02:00
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2012-03-28 14:27:07 +02:00
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
2009-10-12 20:39:23 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_getElementById(IHTMLDocument6 *iface,
|
|
|
|
BSTR bstrId, IHTMLElement2 **p)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2009-10-12 20:39:23 +02:00
|
|
|
FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrId), p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLDocument6_updateSettings(IHTMLDocument6 *iface)
|
|
|
|
{
|
2010-12-22 10:45:14 +01:00
|
|
|
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
|
2009-10-12 20:39:23 +02:00
|
|
|
FIXME("(%p)->()\n", This);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLDocument6Vtbl HTMLDocument6Vtbl = {
|
|
|
|
HTMLDocument6_QueryInterface,
|
|
|
|
HTMLDocument6_AddRef,
|
|
|
|
HTMLDocument6_Release,
|
|
|
|
HTMLDocument6_GetTypeInfoCount,
|
|
|
|
HTMLDocument6_GetTypeInfo,
|
|
|
|
HTMLDocument6_GetIDsOfNames,
|
|
|
|
HTMLDocument6_Invoke,
|
|
|
|
HTMLDocument6_get_compatible,
|
|
|
|
HTMLDocument6_get_documentMode,
|
|
|
|
HTMLDocument6_put_onstorage,
|
|
|
|
HTMLDocument6_get_onstorage,
|
|
|
|
HTMLDocument6_put_onstoragecommit,
|
|
|
|
HTMLDocument6_get_onstoragecommit,
|
|
|
|
HTMLDocument6_getElementById,
|
|
|
|
HTMLDocument6_updateSettings
|
|
|
|
};
|
|
|
|
|
2007-09-26 20:43:52 +02:00
|
|
|
void HTMLDocument_HTMLDocument5_Init(HTMLDocument *This)
|
|
|
|
{
|
2010-12-22 10:43:37 +01:00
|
|
|
This->IHTMLDocument5_iface.lpVtbl = &HTMLDocument5Vtbl;
|
2010-12-22 10:45:14 +01:00
|
|
|
This->IHTMLDocument6_iface.lpVtbl = &HTMLDocument6Vtbl;
|
2007-09-26 20:43:52 +02:00
|
|
|
}
|