ReactOS  0.4.13-dev-92-gf251225
htmldoc.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmldoc.c:

Go to the source code of this file.

Functions

static HRESULT create_document_fragment (nsIDOMNode *nsnode, HTMLDocumentNode *doc_node, HTMLDocumentNode **ret)
 
HRESULT get_doc_elem_by_id (HTMLDocumentNode *doc, const WCHAR *id, HTMLElement **ret)
 
UINT get_document_charset (HTMLDocumentNode *doc)
 
static HTMLDocumentimpl_from_IHTMLDocument2 (IHTMLDocument2 *iface)
 
static HRESULT WINAPI HTMLDocument_QueryInterface (IHTMLDocument2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLDocument_AddRef (IHTMLDocument2 *iface)
 
static ULONG WINAPI HTMLDocument_Release (IHTMLDocument2 *iface)
 
static HRESULT WINAPI HTMLDocument_GetTypeInfoCount (IHTMLDocument2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLDocument_GetTypeInfo (IHTMLDocument2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLDocument_GetIDsOfNames (IHTMLDocument2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLDocument_Invoke (IHTMLDocument2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLDocument_get_Script (IHTMLDocument2 *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLDocument_get_all (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_get_body (IHTMLDocument2 *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLDocument_get_activeElement (IHTMLDocument2 *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLDocument_get_images (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_get_applets (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_get_links (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_get_forms (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_get_anchors (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_put_title (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument_get_title (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_scripts (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_put_designMode (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument_get_designMode (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_selection (IHTMLDocument2 *iface, IHTMLSelectionObject **p)
 
static HRESULT WINAPI HTMLDocument_get_readyState (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_frames (IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
 
static HRESULT WINAPI HTMLDocument_get_embeds (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_get_plugins (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument_put_alinkColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_alinkColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_bgColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_bgColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_fgColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_fgColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_linkColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_linkColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_vlinkColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_vlinkColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_get_referrer (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_location (IHTMLDocument2 *iface, IHTMLLocation **p)
 
static HRESULT WINAPI HTMLDocument_get_lastModified (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_put_URL (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument_get_URL (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_put_domain (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument_get_domain (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_put_cookie (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument_get_cookie (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_put_expando (IHTMLDocument2 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLDocument_get_expando (IHTMLDocument2 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLDocument_put_charset (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument_get_charset (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_put_defaultCharset (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument_get_defaultCharset (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_mimeType (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_fileSize (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_fileCreatedDate (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_fileModifiedDate (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_security (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_protocol (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument_get_nameProp (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT document_write (HTMLDocument *This, SAFEARRAY *psarray, BOOL ln)
 
static HRESULT WINAPI HTMLDocument_write (IHTMLDocument2 *iface, SAFEARRAY *psarray)
 
static HRESULT WINAPI HTMLDocument_writeln (IHTMLDocument2 *iface, SAFEARRAY *psarray)
 
static HRESULT WINAPI HTMLDocument_open (IHTMLDocument2 *iface, BSTR url, VARIANT name, VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
 
static HRESULT WINAPI HTMLDocument_close (IHTMLDocument2 *iface)
 
static HRESULT WINAPI HTMLDocument_clear (IHTMLDocument2 *iface)
 
static BOOL cmdid_from_string (const WCHAR *str, OLECMDID *cmdid)
 
static HRESULT WINAPI HTMLDocument_queryCommandSupported (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI HTMLDocument_queryCommandEnabled (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI HTMLDocument_queryCommandState (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI HTMLDocument_queryCommandIndeterm (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI HTMLDocument_queryCommandText (IHTMLDocument2 *iface, BSTR cmdID, BSTR *pfRet)
 
static HRESULT WINAPI HTMLDocument_queryCommandValue (IHTMLDocument2 *iface, BSTR cmdID, VARIANT *pfRet)
 
static HRESULT WINAPI HTMLDocument_execCommand (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI HTMLDocument_execCommandShowHelp (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI HTMLDocument_createElement (IHTMLDocument2 *iface, BSTR eTag, IHTMLElement **newElem)
 
static HRESULT WINAPI HTMLDocument_put_onhelp (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onhelp (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onclick (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onclick (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_ondblclick (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_ondblclick (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onkeyup (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onkeyup (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onkeydown (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onkeydown (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onkeypress (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onkeypress (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onmouseup (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onmouseup (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onmousedown (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onmousedown (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onmousemove (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onmousemove (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onmouseout (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onmouseout (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onmouseover (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onmouseover (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onreadystatechange (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onreadystatechange (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onafterupdate (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onafterupdate (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onrowexit (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onrowexit (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onrowenter (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onrowenter (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_ondragstart (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_ondragstart (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onselectstart (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onselectstart (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_elementFromPoint (IHTMLDocument2 *iface, LONG x, LONG y, IHTMLElement **elementHit)
 
static HRESULT WINAPI HTMLDocument_get_parentWindow (IHTMLDocument2 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI HTMLDocument_get_styleSheets (IHTMLDocument2 *iface, IHTMLStyleSheetsCollection **p)
 
static HRESULT WINAPI HTMLDocument_put_onbeforeupdate (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onbeforeupdate (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_put_onerrorupdate (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument_get_onerrorupdate (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument_toString (IHTMLDocument2 *iface, BSTR *String)
 
static HRESULT WINAPI HTMLDocument_createStyleSheet (IHTMLDocument2 *iface, BSTR bstrHref, LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
 
static HTMLDocumentimpl_from_IHTMLDocument3 (IHTMLDocument3 *iface)
 
static HRESULT WINAPI HTMLDocument3_QueryInterface (IHTMLDocument3 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLDocument3_AddRef (IHTMLDocument3 *iface)
 
static ULONG WINAPI HTMLDocument3_Release (IHTMLDocument3 *iface)
 
static HRESULT WINAPI HTMLDocument3_GetTypeInfoCount (IHTMLDocument3 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLDocument3_GetTypeInfo (IHTMLDocument3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLDocument3_GetIDsOfNames (IHTMLDocument3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLDocument3_Invoke (IHTMLDocument3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLDocument3_releaseCapture (IHTMLDocument3 *iface)
 
static HRESULT WINAPI HTMLDocument3_recalc (IHTMLDocument3 *iface, VARIANT_BOOL fForce)
 
static HRESULT WINAPI HTMLDocument3_createTextNode (IHTMLDocument3 *iface, BSTR text, IHTMLDOMNode **newTextNode)
 
static HRESULT WINAPI HTMLDocument3_get_documentElement (IHTMLDocument3 *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLDocument3_uniqueID (IHTMLDocument3 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument3_attachEvent (IHTMLDocument3 *iface, BSTR event, IDispatch *pDisp, VARIANT_BOOL *pfResult)
 
static HRESULT WINAPI HTMLDocument3_detachEvent (IHTMLDocument3 *iface, BSTR event, IDispatch *pDisp)
 
static HRESULT WINAPI HTMLDocument3_put_onrowsdelete (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_onrowsdelete (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_onrowsinserted (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_onrowsinserted (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_oncellchange (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_oncellchange (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_ondatasetchanged (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_ondatasetchanged (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_ondataavailable (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_ondataavailable (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_ondatasetcomplete (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_ondatasetcomplete (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_onpropertychange (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_onpropertychange (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_dir (IHTMLDocument3 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument3_get_dir (IHTMLDocument3 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument3_put_oncontextmenu (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_oncontextmenu (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_put_onstop (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_onstop (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_createDocumentFragment (IHTMLDocument3 *iface, IHTMLDocument2 **ppNewDoc)
 
static HRESULT WINAPI HTMLDocument3_get_parentDocument (IHTMLDocument3 *iface, IHTMLDocument2 **p)
 
static HRESULT WINAPI HTMLDocument3_put_enableDownload (IHTMLDocument3 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLDocument3_get_enableDownload (IHTMLDocument3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLDocument3_put_baseUrl (IHTMLDocument3 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument3_get_baseUrl (IHTMLDocument3 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument3_get_childNodes (IHTMLDocument3 *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLDocument3_put_inheritStyleSheets (IHTMLDocument3 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLDocument3_get_inheritStyleSheets (IHTMLDocument3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLDocument3_put_onbeforeeditfocus (IHTMLDocument3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument3_get_onbeforeeditfocus (IHTMLDocument3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument3_getElementsByName (IHTMLDocument3 *iface, BSTR v, IHTMLElementCollection **ppelColl)
 
static HRESULT WINAPI HTMLDocument3_getElementById (IHTMLDocument3 *iface, BSTR v, IHTMLElement **pel)
 
static HRESULT WINAPI HTMLDocument3_getElementsByTagName (IHTMLDocument3 *iface, BSTR v, IHTMLElementCollection **pelColl)
 
static HTMLDocumentimpl_from_IHTMLDocument4 (IHTMLDocument4 *iface)
 
static HRESULT WINAPI HTMLDocument4_QueryInterface (IHTMLDocument4 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLDocument4_AddRef (IHTMLDocument4 *iface)
 
static ULONG WINAPI HTMLDocument4_Release (IHTMLDocument4 *iface)
 
static HRESULT WINAPI HTMLDocument4_GetTypeInfoCount (IHTMLDocument4 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLDocument4_GetTypeInfo (IHTMLDocument4 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLDocument4_GetIDsOfNames (IHTMLDocument4 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLDocument4_Invoke (IHTMLDocument4 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLDocument4_focus (IHTMLDocument4 *iface)
 
static HRESULT WINAPI HTMLDocument4_hasFocus (IHTMLDocument4 *iface, VARIANT_BOOL *pfFocus)
 
static HRESULT WINAPI HTMLDocument4_put_onselectionchange (IHTMLDocument4 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument4_get_onselectionchange (IHTMLDocument4 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument4_get_namespace (IHTMLDocument4 *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLDocument4_createDocumentFromUrl (IHTMLDocument4 *iface, BSTR bstrUrl, BSTR bstrOptions, IHTMLDocument2 **newDoc)
 
static HRESULT WINAPI HTMLDocument4_put_media (IHTMLDocument4 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument4_get_media (IHTMLDocument4 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument4_createEventObject (IHTMLDocument4 *iface, VARIANT *pvarEventObject, IHTMLEventObj **ppEventObj)
 
static HRESULT WINAPI HTMLDocument4_fireEvent (IHTMLDocument4 *iface, BSTR bstrEventName, VARIANT *pvarEventObject, VARIANT_BOOL *pfCanceled)
 
static HRESULT WINAPI HTMLDocument4_createRenderStyle (IHTMLDocument4 *iface, BSTR v, IHTMLRenderStyle **ppIHTMLRenderStyle)
 
static HRESULT WINAPI HTMLDocument4_put_oncontrolselect (IHTMLDocument4 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument4_get_oncontrolselect (IHTMLDocument4 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument4_get_URLEncoded (IHTMLDocument4 *iface, BSTR *p)
 
static HTMLDocumentimpl_from_IHTMLDocument5 (IHTMLDocument5 *iface)
 
static HRESULT WINAPI HTMLDocument5_QueryInterface (IHTMLDocument5 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLDocument5_AddRef (IHTMLDocument5 *iface)
 
static ULONG WINAPI HTMLDocument5_Release (IHTMLDocument5 *iface)
 
static HRESULT WINAPI HTMLDocument5_GetTypeInfoCount (IHTMLDocument5 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLDocument5_GetTypeInfo (IHTMLDocument5 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLDocument5_GetIDsOfNames (IHTMLDocument5 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLDocument5_Invoke (IHTMLDocument5 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLDocument5_put_onmousewheel (IHTMLDocument5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument5_get_onmousewheel (IHTMLDocument5 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument5_get_doctype (IHTMLDocument5 *iface, IHTMLDOMNode **p)
 
static HRESULT WINAPI HTMLDocument5_get_implementation (IHTMLDocument5 *iface, IHTMLDOMImplementation **p)
 
static HRESULT WINAPI HTMLDocument5_createAttribute (IHTMLDocument5 *iface, BSTR bstrattrName, IHTMLDOMAttribute **ppattribute)
 
static HRESULT WINAPI HTMLDocument5_createComment (IHTMLDocument5 *iface, BSTR bstrdata, IHTMLDOMNode **ppRetNode)
 
static HRESULT WINAPI HTMLDocument5_put_onfocusin (IHTMLDocument5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument5_get_onfocusin (IHTMLDocument5 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument5_put_onfocusout (IHTMLDocument5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument5_get_onfocusout (IHTMLDocument5 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument5_put_onactivate (IHTMLDocument5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument5_get_onactivate (IHTMLDocument5 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument5_put_ondeactivate (IHTMLDocument5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument5_get_ondeactivate (IHTMLDocument5 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument5_put_onbeforeactivate (IHTMLDocument5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument5_get_onbeforeactivate (IHTMLDocument5 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument5_put_onbeforedeactivate (IHTMLDocument5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument5_get_onbeforedeactivate (IHTMLDocument5 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument5_get_compatMode (IHTMLDocument5 *iface, BSTR *p)
 
static HTMLDocumentimpl_from_IHTMLDocument6 (IHTMLDocument6 *iface)
 
static HRESULT WINAPI HTMLDocument6_QueryInterface (IHTMLDocument6 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLDocument6_AddRef (IHTMLDocument6 *iface)
 
static ULONG WINAPI HTMLDocument6_Release (IHTMLDocument6 *iface)
 
static HRESULT WINAPI HTMLDocument6_GetTypeInfoCount (IHTMLDocument6 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLDocument6_GetTypeInfo (IHTMLDocument6 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLDocument6_GetIDsOfNames (IHTMLDocument6 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLDocument6_Invoke (IHTMLDocument6 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLDocument6_get_compatible (IHTMLDocument6 *iface, IHTMLDocumentCompatibleInfoCollection **p)
 
static HRESULT WINAPI HTMLDocument6_get_documentMode (IHTMLDocument6 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument6_get_onstorage (IHTMLDocument6 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument6_put_onstorage (IHTMLDocument6 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument6_get_onstoragecommit (IHTMLDocument6 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument6_put_onstoragecommit (IHTMLDocument6 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument6_getElementById (IHTMLDocument6 *iface, BSTR bstrId, IHTMLElement2 **p)
 
static HRESULT WINAPI HTMLDocument6_updateSettings (IHTMLDocument6 *iface)
 
static HTMLDocumentimpl_from_IHTMLDocument7 (IHTMLDocument7 *iface)
 
static HRESULT WINAPI HTMLDocument7_QueryInterface (IHTMLDocument7 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLDocument7_AddRef (IHTMLDocument7 *iface)
 
static ULONG WINAPI HTMLDocument7_Release (IHTMLDocument7 *iface)
 
static HRESULT WINAPI HTMLDocument7_GetTypeInfoCount (IHTMLDocument7 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLDocument7_GetTypeInfo (IHTMLDocument7 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLDocument7_GetIDsOfNames (IHTMLDocument7 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLDocument7_Invoke (IHTMLDocument7 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLDocument7_get_defaultView (IHTMLDocument7 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI HTMLDocument7_createCDATASection (IHTMLDocument7 *iface, BSTR text, IHTMLDOMNode **newCDATASectionNode)
 
static HRESULT WINAPI HTMLDocument7_getSelection (IHTMLDocument7 *iface, IHTMLSelection **ppIHTMLSelection)
 
static HRESULT WINAPI HTMLDocument7_getElementsByTagNameNS (IHTMLDocument7 *iface, VARIANT *pvarNS, BSTR bstrLocalName, IHTMLElementCollection **pelColl)
 
static HRESULT WINAPI HTMLDocument7_createElementNS (IHTMLDocument7 *iface, VARIANT *pvarNS, BSTR bstrTag, IHTMLElement **newElem)
 
static HRESULT WINAPI HTMLDocument7_createAttributeNS (IHTMLDocument7 *iface, VARIANT *pvarNS, BSTR bstrAttrName, IHTMLDOMAttribute **ppAttribute)
 
static HRESULT WINAPI HTMLDocument7_put_onmsthumbnailclick (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onmsthumbnailclick (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_get_characterSet (IHTMLDocument7 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument7_createElement (IHTMLDocument7 *iface, BSTR bstrTag, IHTMLElement **newElem)
 
static HRESULT WINAPI HTMLDocument7_createAttribute (IHTMLDocument7 *iface, BSTR bstrAttrName, IHTMLDOMAttribute **ppAttribute)
 
static HRESULT WINAPI HTMLDocument7_getElementByClassName (IHTMLDocument7 *iface, BSTR v, IHTMLElementCollection **pel)
 
static HRESULT WINAPI HTMLDocument7_createProcessingInstruction (IHTMLDocument7 *iface, BSTR target, BSTR data, IDOMProcessingInstruction **newProcessingInstruction)
 
static HRESULT WINAPI HTMLDocument7_adoptNode (IHTMLDocument7 *iface, IHTMLDOMNode *pNodeSource, IHTMLDOMNode3 **ppNodeDest)
 
static HRESULT WINAPI HTMLDocument7_put_onmssitemodejumplistitemremoved (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onmssitemodejumplistitemremoved (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_get_all (IHTMLDocument7 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLDocument7_get_inputEncoding (IHTMLDocument7 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument7_get_xmlEncoding (IHTMLDocument7 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument7_put_xmlStandalone (IHTMLDocument7 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLDocument7_get_xmlStandalone (IHTMLDocument7 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLDocument7_put_xmlVersion (IHTMLDocument7 *iface, BSTR v)
 
static HRESULT WINAPI HTMLDocument7_get_xmlVersion (IHTMLDocument7 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLDocument7_hasAttributes (IHTMLDocument7 *iface, VARIANT_BOOL *pfHasAttributes)
 
static HRESULT WINAPI HTMLDocument7_put_onabort (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onabort (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onblur (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onblur (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_oncanplay (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_oncanplay (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_oncanplaythrough (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_oncanplaythrough (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onchange (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onchange (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ondrag (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ondrag (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ondragend (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ondragend (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ondragenter (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ondragenter (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ondragleave (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ondragleave (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ondragover (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ondragover (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ondrop (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ondrop (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ondurationchange (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ondurationchange (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onemptied (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onemptied (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onended (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onended (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onerror (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onerror (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onfocus (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onfocus (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_oninput (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_oninput (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onload (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onload (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onloadeddata (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onloadeddata (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onloadedmetadata (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onloadedmetadata (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onloadstart (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onloadstart (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onpause (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onpause (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onplay (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onplay (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onplaying (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onplaying (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onprogress (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onprogress (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onratechange (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onratechange (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onreset (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onreset (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onscroll (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onscroll (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onseekend (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onseekend (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onseeking (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onseeking (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onselect (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onselect (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onstalled (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onstalled (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onsubmit (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onsubmit (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onsuspend (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onsuspend (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_ontimeupdate (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_ontimeupdate (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onvolumechange (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onvolumechange (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_put_onwaiting (IHTMLDocument7 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLDocument7_get_onwaiting (IHTMLDocument7 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLDocument7_normalize (IHTMLDocument7 *iface)
 
static HRESULT WINAPI HTMLDocument7_importNode (IHTMLDocument7 *iface, IHTMLDOMNode *pNodeSource, VARIANT_BOOL fDeep, IHTMLDOMNode3 **ppNodeDest)
 
static HRESULT WINAPI HTMLDocument7_get_parentWindow (IHTMLDocument7 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI HTMLDocument7_put_body (IHTMLDocument7 *iface, IHTMLElement *v)
 
static HRESULT WINAPI HTMLDocument7_get_body (IHTMLDocument7 *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLDocument7_get_head (IHTMLDocument7 *iface, IHTMLElement **p)
 
static void HTMLDocument_on_advise (IUnknown *iface, cp_static_data_t *cp)
 
static HTMLDocumentimpl_from_ISupportErrorInfo (ISupportErrorInfo *iface)
 
static HRESULT WINAPI SupportErrorInfo_QueryInterface (ISupportErrorInfo *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI SupportErrorInfo_AddRef (ISupportErrorInfo *iface)
 
static ULONG WINAPI SupportErrorInfo_Release (ISupportErrorInfo *iface)
 
static HRESULT WINAPI SupportErrorInfo_InterfaceSupportsErrorInfo (ISupportErrorInfo *iface, REFIID riid)
 
static HTMLDocumentimpl_from_IDispatchEx (IDispatchEx *iface)
 
static HRESULT dispid_from_elem_name (HTMLDocumentNode *This, BSTR name, DISPID *dispid)
 
static HRESULT WINAPI DocDispatchEx_QueryInterface (IDispatchEx *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI DocDispatchEx_AddRef (IDispatchEx *iface)
 
static ULONG WINAPI DocDispatchEx_Release (IDispatchEx *iface)
 
static HRESULT WINAPI DocDispatchEx_GetTypeInfoCount (IDispatchEx *iface, UINT *pctinfo)
 
static HRESULT WINAPI DocDispatchEx_GetTypeInfo (IDispatchEx *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI DocDispatchEx_GetIDsOfNames (IDispatchEx *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI DocDispatchEx_Invoke (IDispatchEx *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI DocDispatchEx_GetDispID (IDispatchEx *iface, BSTR bstrName, DWORD grfdex, DISPID *pid)
 
static HRESULT WINAPI DocDispatchEx_InvokeEx (IDispatchEx *iface, DISPID id, LCID lcid, WORD wFlags, DISPPARAMS *pdp, VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller)
 
static HRESULT WINAPI DocDispatchEx_DeleteMemberByName (IDispatchEx *iface, BSTR bstrName, DWORD grfdex)
 
static HRESULT WINAPI DocDispatchEx_DeleteMemberByDispID (IDispatchEx *iface, DISPID id)
 
static HRESULT WINAPI DocDispatchEx_GetMemberProperties (IDispatchEx *iface, DISPID id, DWORD grfdexFetch, DWORD *pgrfdex)
 
static HRESULT WINAPI DocDispatchEx_GetMemberName (IDispatchEx *iface, DISPID id, BSTR *pbstrName)
 
static HRESULT WINAPI DocDispatchEx_GetNextDispID (IDispatchEx *iface, DWORD grfdex, DISPID id, DISPID *pid)
 
static HRESULT WINAPI DocDispatchEx_GetNameSpaceParent (IDispatchEx *iface, IUnknown **ppunk)
 
static HTMLDocumentimpl_from_IProvideClassInfo (IProvideClassInfo *iface)
 
static HRESULT WINAPI ProvideClassInfo_QueryInterface (IProvideClassInfo *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI ProvideClassInfo_AddRef (IProvideClassInfo *iface)
 
static ULONG WINAPI ProvideClassInfo_Release (IProvideClassInfo *iface)
 
static HRESULT WINAPI ProvideClassInfo_GetClassInfo (IProvideClassInfo *iface, ITypeInfo **ppTI)
 
static BOOL htmldoc_qi (HTMLDocument *This, REFIID riid, void **ppv)
 
static void init_doc (HTMLDocument *doc, IUnknown *unk_impl, IDispatchEx *dispex)
 
static void destroy_htmldoc (HTMLDocument *This)
 
static HTMLDocumentNodeimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLDocumentNode_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLDocumentNode_destructor (HTMLDOMNode *iface)
 
static HRESULT HTMLDocumentNode_clone (HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
 
static void HTMLDocumentNode_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLDocumentNode_unlink (HTMLDOMNode *iface)
 
static HRESULT HTMLDocumentFragment_clone (HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
 
static HTMLDocumentNodeimpl_from_DispatchEx (DispatchEx *iface)
 
static HRESULT HTMLDocumentNode_invoke (DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
static void HTMLDocumentNode_bind_event (DispatchEx *dispex, int eid)
 
static HTMLDocumentNodealloc_doc_node (HTMLDocumentObj *doc_obj, HTMLInnerWindow *window)
 
HRESULT create_doc_from_nsdoc (nsIDOMHTMLDocument *nsdoc, HTMLDocumentObj *doc_obj, HTMLInnerWindow *window, HTMLDocumentNode **ret)
 
static HTMLDocumentObjimpl_from_ICustomDoc (ICustomDoc *iface)
 
static HRESULT WINAPI CustomDoc_QueryInterface (ICustomDoc *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI CustomDoc_AddRef (ICustomDoc *iface)
 
static ULONG WINAPI CustomDoc_Release (ICustomDoc *iface)
 
static HRESULT WINAPI CustomDoc_SetUIHandler (ICustomDoc *iface, IDocHostUIHandler *pUIHandler)
 
HRESULT HTMLDocument_Create (IUnknown *pUnkOuter, REFIID riid, void **ppvObject)
 

Variables

static const WCHAR copyW []
 
static const WCHAR cutW []
 
static const WCHAR fontnameW []
 
static const WCHAR fontsizeW []
 
static const WCHAR indentW []
 
static const WCHAR insertorderedlistW []
 
static const WCHAR insertunorderedlistW []
 
static const WCHAR outdentW []
 
static const WCHAR pasteW []
 
static const WCHAR respectvisibilityindesignW []
 
struct {
   const WCHAR *   name
 
   OLECMDID   id
 
command_names []
 
static const IHTMLDocument2Vtbl HTMLDocumentVtbl
 
static const IHTMLDocument3Vtbl HTMLDocument3Vtbl
 
static const IHTMLDocument4Vtbl HTMLDocument4Vtbl
 
static const IHTMLDocument5Vtbl HTMLDocument5Vtbl
 
static const IHTMLDocument6Vtbl HTMLDocument6Vtbl
 
static const IHTMLDocument7Vtbl HTMLDocument7Vtbl
 
static const ISupportErrorInfoVtbl SupportErrorInfoVtbl
 
static const IDispatchExVtbl DocDispatchExVtbl
 
static const IProvideClassInfoVtbl ProvideClassInfoVtbl
 
static cp_static_data_t HTMLDocumentEvents_data = { HTMLDocumentEvents_tid, HTMLDocument_on_advise }
 
static const cpc_entry_t HTMLDocument_cpc []
 
static const NodeImplVtbl HTMLDocumentNodeImplVtbl
 
static const dispex_static_data_vtbl_t HTMLDocumentNode_dispex_vtbl
 
static const NodeImplVtbl HTMLDocumentFragmentImplVtbl
 
static const tid_t HTMLDocumentNode_iface_tids []
 
static dispex_static_data_t HTMLDocumentNode_dispex
 
static const ICustomDocVtbl CustomDocVtbl
 
static const tid_t HTMLDocumentObj_iface_tids []
 
static dispex_static_data_t HTMLDocumentObj_dispex
 

Function Documentation

◆ alloc_doc_node()

static HTMLDocumentNode* alloc_doc_node ( HTMLDocumentObj doc_obj,
HTMLInnerWindow window 
)
static

Definition at line 4589 of file htmldoc.c.

4590 {
4591  HTMLDocumentNode *doc;
4592 
4593  doc = heap_alloc_zero(sizeof(HTMLDocumentNode));
4594  if(!doc)
4595  return NULL;
4596 
4597  doc->ref = 1;
4598  doc->basedoc.doc_node = doc;
4599  doc->basedoc.doc_obj = doc_obj;
4600  doc->basedoc.window = window->base.outer_window;
4601  doc->window = window;
4602 
4608 
4609  list_init(&doc->selection_list);
4610  list_init(&doc->range_list);
4611  list_init(&doc->plugin_hosts);
4612 
4613  return doc;
4614 }
struct list plugin_hosts
DispatchEx dispex
HTMLDocumentObj * doc_obj
struct list range_list
HTMLInnerWindow * window
HTMLOuterWindow * window
HTMLDocument basedoc
static dispex_static_data_t HTMLDocumentNode_dispex
Definition: htmldoc.c:4582
HTMLDocumentNode * doc_node
smooth NULL
Definition: ftsmooth.c:416
struct list selection_list
IDispatchEx IDispatchEx_iface
static void init_doc(HTMLDocument *doc, IUnknown *unk_impl, IDispatchEx *dispex)
Definition: htmldoc.c:4352
HTMLDOMNode node
void HTMLDocumentNode_SecMgr_Init(HTMLDocumentNode *) DECLSPEC_HIDDEN
Definition: secmgr.c:230
static IHTMLWindow2 * window
Definition: events.c:77
EventTarget event_target
IHTMLDOMNode IHTMLDOMNode_iface
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:940
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149

Referenced by create_doc_from_nsdoc(), and create_document_fragment().

◆ cmdid_from_string()

static BOOL cmdid_from_string ( const WCHAR str,
OLECMDID *  cmdid 
)
static

Definition at line 1151 of file htmldoc.c.

1152 {
1153  int i;
1154 
1155  for(i = 0; i < sizeof(command_names)/sizeof(*command_names); i++) {
1156  if(!strcmpiW(command_names[i].name, str)) {
1157  *cmdid = command_names[i].id;
1158  return TRUE;
1159  }
1160  }
1161 
1162  FIXME("Unknown command %s\n", debugstr_w(str));
1163  return FALSE;
1164 }
#define TRUE
Definition: types.h:120
static const struct @464 command_names[]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const WCHAR * str
#define strcmpiW(s1, s2)
Definition: unicode.h:39
Definition: name.c:36

Referenced by HTMLDocument_execCommand().

◆ create_doc_from_nsdoc()

HRESULT create_doc_from_nsdoc ( nsIDOMHTMLDocument nsdoc,
HTMLDocumentObj doc_obj,
HTMLInnerWindow window,
HTMLDocumentNode **  ret 
)

Definition at line 4616 of file htmldoc.c.

4617 {
4618  HTMLDocumentNode *doc;
4619 
4620  doc = alloc_doc_node(doc_obj, window);
4621  if(!doc)
4622  return E_OUTOFMEMORY;
4623 
4624  if(!doc_obj->basedoc.window || window->base.outer_window == doc_obj->basedoc.window)
4626 
4627  HTMLDOMNode_Init(doc, &doc->node, (nsIDOMNode*)nsdoc);
4628 
4629  nsIDOMHTMLDocument_AddRef(nsdoc);
4630  doc->nsdoc = nsdoc;
4631 
4633  doc_init_events(doc);
4634 
4636  doc->node.cp_container = &doc->basedoc.cp_container;
4637 
4638  *ret = doc;
4639  return S_OK;
4640 }
nsIDOMHTMLDocument * nsdoc
void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsnode)
Definition: htmlnode.c:1196
HTMLOuterWindow * window
HTMLDocument basedoc
ConnectionPointContainer * cp_container
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const NodeImplVtbl HTMLDocumentNodeImplVtbl
Definition: htmldoc.c:4469
HTMLDocument basedoc
void init_document_mutation(HTMLDocumentNode *) DECLSPEC_HIDDEN
Definition: mutation.c:726
ConnectionPointContainer cp_container
int ret
HRESULT doc_init_events(HTMLDocumentNode *doc)
Definition: htmlevent.c:1591
HTMLDOMNode node
static IHTMLWindow2 * window
Definition: events.c:77
struct ConnectionPointContainer * forward_container
#define S_OK
Definition: intsafe.h:59
const NodeImplVtbl * vtbl
static HTMLDocumentNode * alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLInnerWindow *window)
Definition: htmldoc.c:4589

Referenced by update_window_doc().

◆ create_document_fragment()

static HRESULT create_document_fragment ( nsIDOMNode nsnode,
HTMLDocumentNode doc_node,
HTMLDocumentNode **  ret 
)
static

Definition at line 4642 of file htmldoc.c.

4643 {
4644  HTMLDocumentNode *doc_frag;
4645 
4646  doc_frag = alloc_doc_node(doc_node->basedoc.doc_obj, doc_node->window);
4647  if(!doc_frag)
4648  return E_OUTOFMEMORY;
4649 
4650  IHTMLWindow2_AddRef(&doc_frag->window->base.IHTMLWindow2_iface);
4651 
4652  HTMLDOMNode_Init(doc_node, &doc_frag->node, nsnode);
4653  doc_frag->node.vtbl = &HTMLDocumentFragmentImplVtbl;
4654  doc_frag->node.cp_container = &doc_frag->basedoc.cp_container;
4655 
4656  *ret = doc_frag;
4657  return S_OK;
4658 }
static const NodeImplVtbl HTMLDocumentFragmentImplVtbl
Definition: htmldoc.c:4565
HTMLDocumentObj * doc_obj
void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsnode)
Definition: htmlnode.c:1196
HTMLInnerWindow * window
HTMLDocument basedoc
ConnectionPointContainer * cp_container
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
ConnectionPointContainer cp_container
int ret
HTMLDOMNode node
#define S_OK
Definition: intsafe.h:59
IHTMLWindow2 IHTMLWindow2_iface
const NodeImplVtbl * vtbl
static HTMLDocumentNode * alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLInnerWindow *window)
Definition: htmldoc.c:4589

Referenced by HTMLDocument3_createDocumentFragment(), and HTMLDocumentFragment_clone().

◆ CustomDoc_AddRef()

static ULONG WINAPI CustomDoc_AddRef ( ICustomDoc iface)
static

Definition at line 4694 of file htmldoc.c.

4695 {
4698 
4699  TRACE("(%p) ref = %u\n", This, ref);
4700 
4701  return ref;
4702 }
static HTMLDocumentObj * impl_from_ICustomDoc(ICustomDoc *iface)
Definition: htmldoc.c:4664
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
unsigned int ULONG
Definition: retypes.h:1

◆ CustomDoc_QueryInterface()

static HRESULT WINAPI CustomDoc_QueryInterface ( ICustomDoc iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 4669 of file htmldoc.c.

4670 {
4672 
4673  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
4674 
4675  if(htmldoc_qi(&This->basedoc, riid, ppv))
4676  return *ppv ? S_OK : E_NOINTERFACE;
4677 
4678  if(IsEqualGUID(&IID_ICustomDoc, riid)) {
4679  *ppv = &This->ICustomDoc_iface;
4680  }else if(IsEqualGUID(&IID_ITargetContainer, riid)) {
4681  *ppv = &This->ITargetContainer_iface;
4682  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
4683  return *ppv ? S_OK : E_NOINTERFACE;
4684  }else {
4685  FIXME("Unimplemented interface %s\n", debugstr_mshtml_guid(riid));
4686  *ppv = NULL;
4687  return E_NOINTERFACE;
4688  }
4689 
4690  IUnknown_AddRef((IUnknown*)*ppv);
4691  return S_OK;
4692 }
static HTMLDocumentObj * impl_from_ICustomDoc(ICustomDoc *iface)
Definition: htmldoc.c:4664
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021
static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
Definition: htmldoc.c:4237

◆ CustomDoc_Release()

static ULONG WINAPI CustomDoc_Release ( ICustomDoc iface)
static

Definition at line 4704 of file htmldoc.c.

4705 {
4708 
4709  TRACE("(%p) ref = %u\n", This, ref);
4710 
4711  if(!ref) {
4712  nsIDOMWindowUtils *window_utils = NULL;
4713 
4714  if(This->basedoc.window && This->basedoc.window->nswindow)
4715  get_nsinterface((nsISupports*)This->basedoc.window->nswindow, &IID_nsIDOMWindowUtils, (void**)&window_utils);
4716 
4717  if(This->basedoc.doc_node) {
4718  This->basedoc.doc_node->basedoc.doc_obj = NULL;
4719  htmldoc_release(&This->basedoc.doc_node->basedoc);
4720  }
4721  if(This->basedoc.window) {
4722  This->basedoc.window->doc_obj = NULL;
4723  IHTMLWindow2_Release(&This->basedoc.window->base.IHTMLWindow2_iface);
4724  }
4725  if(This->basedoc.advise_holder)
4726  IOleAdviseHolder_Release(This->basedoc.advise_holder);
4727 
4728  if(This->view_sink)
4729  IAdviseSink_Release(This->view_sink);
4730  if(This->client)
4731  IOleObject_SetClientSite(&This->basedoc.IOleObject_iface, NULL);
4732  if(This->hostui)
4733  ICustomDoc_SetUIHandler(&This->ICustomDoc_iface, NULL);
4734  if(This->in_place_active)
4735  IOleInPlaceObjectWindowless_InPlaceDeactivate(&This->basedoc.IOleInPlaceObjectWindowless_iface);
4736  if(This->ipsite)
4737  IOleDocumentView_SetInPlaceSite(&This->basedoc.IOleDocumentView_iface, NULL);
4738  if(This->undomgr)
4739  IOleUndoManager_Release(This->undomgr);
4740  if(This->editsvcs)
4741  IHTMLEditServices_Release(This->editsvcs);
4742  if(This->tooltips_hwnd)
4743  DestroyWindow(This->tooltips_hwnd);
4744 
4745  if(This->hwnd)
4746  DestroyWindow(This->hwnd);
4747  heap_free(This->mime);
4748 
4749  destroy_htmldoc(&This->basedoc);
4750  release_dispex(&This->dispex);
4751 
4752  if(This->nscontainer)
4753  NSContainer_Release(This->nscontainer);
4754  heap_free(This);
4755 
4756  /* Force cycle collection */
4757  if(window_utils) {
4758  nsIDOMWindowUtils_CycleCollect(window_utils, NULL, 0);
4759  nsIDOMWindowUtils_Release(window_utils);
4760  }
4761  }
4762 
4763  return ref;
4764 }
static HTMLDocumentObj * impl_from_ICustomDoc(ICustomDoc *iface)
Definition: htmldoc.c:4664
static void destroy_htmldoc(HTMLDocument *This)
Definition: htmldoc.c:4379
BOOL WINAPI DestroyWindow(_In_ HWND)
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
static ULONG htmldoc_release(HTMLDocument *This)
nsresult get_nsinterface(nsISupports *, REFIID, void **) DECLSPEC_HIDDEN
Definition: nsembed.c:907
void NSContainer_Release(NSContainer *) DECLSPEC_HIDDEN
Definition: nsembed.c:2107
unsigned int ULONG
Definition: retypes.h:1
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ CustomDoc_SetUIHandler()

static HRESULT WINAPI CustomDoc_SetUIHandler ( ICustomDoc iface,
IDocHostUIHandler pUIHandler 
)
static

Definition at line 4766 of file htmldoc.c.

4767 {
4769  IOleCommandTarget *cmdtrg;
4770  HRESULT hres;
4771 
4772  TRACE("(%p)->(%p)\n", This, pUIHandler);
4773 
4774  if(This->custom_hostui && This->hostui == pUIHandler)
4775  return S_OK;
4776 
4777  This->custom_hostui = TRUE;
4778 
4779  if(This->hostui)
4780  IDocHostUIHandler_Release(This->hostui);
4781  if(pUIHandler)
4782  IDocHostUIHandler_AddRef(pUIHandler);
4783  This->hostui = pUIHandler;
4784  if(!pUIHandler)
4785  return S_OK;
4786 
4787  hres = IDocHostUIHandler_QueryInterface(pUIHandler, &IID_IOleCommandTarget, (void**)&cmdtrg);
4788  if(SUCCEEDED(hres)) {
4789  FIXME("custom UI handler supports IOleCommandTarget\n");
4790  IOleCommandTarget_Release(cmdtrg);
4791  }
4792 
4793  return S_OK;
4794 }
static HTMLDocumentObj * impl_from_ICustomDoc(ICustomDoc *iface)
Definition: htmldoc.c:4664
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ destroy_htmldoc()

static void destroy_htmldoc ( HTMLDocument This)
static

Definition at line 4379 of file htmldoc.c.

4380 {
4381  remove_target_tasks(This->task_magic);
4382 
4383  ConnectionPointContainer_Destroy(&This->cp_container);
4384 }
void remove_target_tasks(LONG) DECLSPEC_HIDDEN
Definition: task.c:107
void ConnectionPointContainer_Destroy(ConnectionPointContainer *This)
Definition: events.c:442

Referenced by CustomDoc_Release(), and HTMLDocumentNode_destructor().

◆ dispid_from_elem_name()

static HRESULT dispid_from_elem_name ( HTMLDocumentNode This,
BSTR  name,
DISPID dispid 
)
static

Definition at line 3985 of file htmldoc.c.

3986 {
3987  nsIDOMNodeList *node_list;
3988  nsAString name_str;
3989  UINT32 len;
3990  unsigned i;
3991  nsresult nsres;
3992 
3993  if(!This->nsdoc)
3994  return DISP_E_UNKNOWNNAME;
3995 
3996  nsAString_InitDepend(&name_str, name);
3997  nsres = nsIDOMHTMLDocument_GetElementsByName(This->nsdoc, &name_str, &node_list);
3998  nsAString_Finish(&name_str);
3999  if(NS_FAILED(nsres))
4000  return E_FAIL;
4001 
4002  nsres = nsIDOMNodeList_GetLength(node_list, &len);
4003  nsIDOMNodeList_Release(node_list);
4004  if(NS_FAILED(nsres))
4005  return E_FAIL;
4006 
4007  if(!len)
4008  return DISP_E_UNKNOWNNAME;
4009 
4010  for(i=0; i < This->elem_vars_cnt; i++) {
4011  if(!strcmpW(name, This->elem_vars[i])) {
4012  *dispid = MSHTML_DISPID_CUSTOM_MIN+i;
4013  return S_OK;
4014  }
4015  }
4016 
4017  if(This->elem_vars_cnt == This->elem_vars_size) {
4018  WCHAR **new_vars;
4019 
4020  if(This->elem_vars_size) {
4021  new_vars = heap_realloc(This->elem_vars, This->elem_vars_size*2*sizeof(WCHAR*));
4022  if(!new_vars)
4023  return E_OUTOFMEMORY;
4024  This->elem_vars_size *= 2;
4025  }else {
4026  new_vars = heap_alloc(16*sizeof(WCHAR*));
4027  if(!new_vars)
4028  return E_OUTOFMEMORY;
4029  This->elem_vars_size = 16;
4030  }
4031 
4032  This->elem_vars = new_vars;
4033  }
4034 
4035  This->elem_vars[This->elem_vars_cnt] = heap_strdupW(name);
4036  if(!This->elem_vars[This->elem_vars_cnt])
4037  return E_OUTOFMEMORY;
4038 
4039  *dispid = MSHTML_DISPID_CUSTOM_MIN+This->elem_vars_cnt++;
4040  return S_OK;
4041 }
#define DISP_E_UNKNOWNNAME
Definition: winerror.h:2515
#define MSHTML_DISPID_CUSTOM_MIN
#define E_FAIL
Definition: ddrawi.h:102
static void * heap_realloc(void *mem, size_t len)
Definition: appwiz.h:70
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
unsigned int UINT32
static WCHAR * heap_strdupW(const WCHAR *str)
Definition: propsheet.c:178
#define NS_FAILED(res)
__wchar_t WCHAR
Definition: xmlstorage.h:180
GLenum GLsizei len
Definition: glext.h:6722
#define S_OK
Definition: intsafe.h:59
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
Definition: name.c:36
WINE_UNICODE_INLINE int strcmpW(const WCHAR *str1, const WCHAR *str2)
Definition: unicode.h:229
HRESULT nsresult
Definition: nsiface.idl:39

Referenced by DocDispatchEx_GetDispID().

◆ DocDispatchEx_AddRef()

static ULONG WINAPI DocDispatchEx_AddRef ( IDispatchEx *  iface)
static

Definition at line 4050 of file htmldoc.c.

4051 {
4053 
4054  return htmldoc_addref(This);
4055 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980
static ULONG htmldoc_addref(HTMLDocument *This)

◆ DocDispatchEx_DeleteMemberByDispID()

static HRESULT WINAPI DocDispatchEx_DeleteMemberByDispID ( IDispatchEx *  iface,
DISPID  id 
)
static

Definition at line 4145 of file htmldoc.c.

4146 {
4148 
4149  return IDispatchEx_DeleteMemberByDispID(This->dispex, id);
4150 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_DeleteMemberByName()

static HRESULT WINAPI DocDispatchEx_DeleteMemberByName ( IDispatchEx *  iface,
BSTR  bstrName,
DWORD  grfdex 
)
static

Definition at line 4138 of file htmldoc.c.

4139 {
4141 
4142  return IDispatchEx_DeleteMemberByName(This->dispex, bstrName, grfdex);
4143 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_GetDispID()

static HRESULT WINAPI DocDispatchEx_GetDispID ( IDispatchEx *  iface,
BSTR  bstrName,
DWORD  grfdex,
DISPID pid 
)
static

Definition at line 4113 of file htmldoc.c.

4114 {
4116  HRESULT hres;
4117 
4118  hres = IDispatchEx_GetDispID(This->dispex, bstrName, grfdex, pid);
4119  if(hres != DISP_E_UNKNOWNNAME)
4120  return hres;
4121 
4122  return dispid_from_elem_name(This->doc_node, bstrName, pid);
4123 }
#define DISP_E_UNKNOWNNAME
Definition: winerror.h:2515
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3835
static HRESULT dispid_from_elem_name(HTMLDocumentNode *This, BSTR name, DISPID *dispid)
Definition: htmldoc.c:3985
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77

◆ DocDispatchEx_GetIDsOfNames()

static HRESULT WINAPI DocDispatchEx_GetIDsOfNames ( IDispatchEx *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 4079 of file htmldoc.c.

4082 {
4084 
4085  return IDispatchEx_GetIDsOfNames(This->dispex, riid, rgszNames, cNames, lcid, rgDispId);
4086 }
REFIID riid
Definition: precomp.h:44
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_GetMemberName()

static HRESULT WINAPI DocDispatchEx_GetMemberName ( IDispatchEx *  iface,
DISPID  id,
BSTR pbstrName 
)
static

Definition at line 4159 of file htmldoc.c.

4160 {
4162 
4163  return IDispatchEx_GetMemberName(This->dispex, id, pbstrName);
4164 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_GetMemberProperties()

static HRESULT WINAPI DocDispatchEx_GetMemberProperties ( IDispatchEx *  iface,
DISPID  id,
DWORD  grfdexFetch,
DWORD pgrfdex 
)
static

Definition at line 4152 of file htmldoc.c.

4153 {
4155 
4156  return IDispatchEx_GetMemberProperties(This->dispex, id, grfdexFetch, pgrfdex);
4157 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_GetNameSpaceParent()

static HRESULT WINAPI DocDispatchEx_GetNameSpaceParent ( IDispatchEx *  iface,
IUnknown **  ppunk 
)
static

Definition at line 4173 of file htmldoc.c.

4174 {
4176 
4177  return IDispatchEx_GetNameSpaceParent(This->dispex, ppunk);
4178 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_GetNextDispID()

static HRESULT WINAPI DocDispatchEx_GetNextDispID ( IDispatchEx *  iface,
DWORD  grfdex,
DISPID  id,
DISPID pid 
)
static

Definition at line 4166 of file htmldoc.c.

4167 {
4169 
4170  return IDispatchEx_GetNextDispID(This->dispex, grfdex, id, pid);
4171 }
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3835
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_GetTypeInfo()

static HRESULT WINAPI DocDispatchEx_GetTypeInfo ( IDispatchEx *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 4071 of file htmldoc.c.

4073 {
4075 
4076  return IDispatchEx_GetTypeInfo(This->dispex, iTInfo, lcid, ppTInfo);
4077 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_GetTypeInfoCount()

static HRESULT WINAPI DocDispatchEx_GetTypeInfoCount ( IDispatchEx *  iface,
UINT pctinfo 
)
static

Definition at line 4064 of file htmldoc.c.

4065 {
4067 
4068  return IDispatchEx_GetTypeInfoCount(This->dispex, pctinfo);
4069 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980

◆ DocDispatchEx_Invoke()

static HRESULT WINAPI DocDispatchEx_Invoke ( IDispatchEx *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 4088 of file htmldoc.c.

4091 {
4093 
4094  TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
4095  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4096 
4097  switch(dispIdMember) {
4098  case DISPID_READYSTATE:
4099  TRACE("DISPID_READYSTATE\n");
4100 
4101  if(!(wFlags & DISPATCH_PROPERTYGET))
4102  return E_INVALIDARG;
4103 
4104  V_VT(pVarResult) = VT_I4;
4105  V_I4(pVarResult) = This->window->readystate;
4106  return S_OK;
4107  }
4108 
4109  return IDispatchEx_Invoke(This->dispex, dispIdMember, riid, lcid, wFlags, pDispParams,
4110  pVarResult, pExcepInfo, puArgErr);
4111 }
Definition: compat.h:1939
#define DISPATCH_PROPERTYGET
Definition: oleauto.h:1007
REFIID riid
Definition: precomp.h:44
#define V_I4(A)
Definition: oleauto.h:247
#define E_INVALIDARG
Definition: ddrawi.h:101
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980
#define V_VT(A)
Definition: oleauto.h:211
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
#define S_OK
Definition: intsafe.h:59
#define DISPID_READYSTATE
Definition: idispids.h:22

◆ DocDispatchEx_InvokeEx()

static HRESULT WINAPI DocDispatchEx_InvokeEx ( IDispatchEx *  iface,
DISPID  id,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pdp,
VARIANT pvarRes,
EXCEPINFO *  pei,
IServiceProvider pspCaller 
)
static

Definition at line 4125 of file htmldoc.c.

4127 {
4129 
4131  return IDispatchEx_InvokeEx(&This->window->base.IDispatchEx_iface, DISPID_IHTMLWINDOW2_LOCATION,
4132  lcid, wFlags, pdp, pvarRes, pei, pspCaller);
4133 
4134 
4135  return IDispatchEx_InvokeEx(This->dispex, id, lcid, wFlags, pdp, pvarRes, pei, pspCaller);
4136 }
#define DISPID_IHTMLWINDOW2_LOCATION
Definition: mshtmdid.h:1845
#define DISPATCH_PROPERTYPUT
Definition: oleauto.h:1008
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
#define DISPID_IHTMLDOCUMENT2_LOCATION
Definition: mshtmdid.h:962

◆ DocDispatchEx_QueryInterface()

static HRESULT WINAPI DocDispatchEx_QueryInterface ( IDispatchEx *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 4043 of file htmldoc.c.

4044 {
4046 
4048 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980
static HRESULT htmldoc_query_interface(HTMLDocument *This, REFIID riid, void **ppv)

◆ DocDispatchEx_Release()

static ULONG WINAPI DocDispatchEx_Release ( IDispatchEx *  iface)
static

Definition at line 4057 of file htmldoc.c.

4058 {
4060 
4061  return htmldoc_release(This);
4062 }
static HTMLDocument * impl_from_IDispatchEx(IDispatchEx *iface)
Definition: htmldoc.c:3980
static ULONG htmldoc_release(HTMLDocument *This)

◆ document_write()

static HRESULT document_write ( HTMLDocument This,
SAFEARRAY psarray,
BOOL  ln 
)
static

Definition at line 960 of file htmldoc.c.

961 {
962  VARIANT *var, tmp;
963  JSContext *jsctx;
964  nsAString nsstr;
965  ULONG i, argc;
966  nsresult nsres;
967  HRESULT hres;
968 
969  if(!This->doc_node->nsdoc) {
970  WARN("NULL nsdoc\n");
971  return E_UNEXPECTED;
972  }
973 
974  if (!psarray)
975  return S_OK;
976 
977  if(psarray->cDims != 1) {
978  FIXME("cDims=%d\n", psarray->cDims);
979  return E_INVALIDARG;
980  }
981 
982  hres = SafeArrayAccessData(psarray, (void**)&var);
983  if(FAILED(hres)) {
984  WARN("SafeArrayAccessData failed: %08x\n", hres);
985  return hres;
986  }
987 
988  V_VT(&tmp) = VT_EMPTY;
989 
990  jsctx = get_context_from_document(This->doc_node->nsdoc);
991  argc = psarray->rgsabound[0].cElements;
992  for(i=0; i < argc; i++) {
993  if(V_VT(var+i) == VT_BSTR) {
994  nsAString_InitDepend(&nsstr, V_BSTR(var+i));
995  }else {
997  if(FAILED(hres)) {
998  WARN("Could not convert %s to string\n", debugstr_variant(var+i));
999  break;
1000  }
1001  nsAString_InitDepend(&nsstr, V_BSTR(&tmp));
1002  }
1003 
1004  if(!ln || i != argc-1)
1005  nsres = nsIDOMHTMLDocument_Write(This->doc_node->nsdoc, &nsstr, jsctx);
1006  else
1007  nsres = nsIDOMHTMLDocument_Writeln(This->doc_node->nsdoc, &nsstr, jsctx);
1008  nsAString_Finish(&nsstr);
1009  if(V_VT(var+i) != VT_BSTR)
1010  VariantClear(&tmp);
1011  if(NS_FAILED(nsres)) {
1012  ERR("Write failed: %08x\n", nsres);
1013  hres = E_FAIL;
1014  break;
1015  }
1016  }
1017 
1018  SafeArrayUnaccessData(psarray);
1019 
1020  return hres;
1021 }
static int argc
Definition: ServiceArgs.c:12
#define MAKELCID(lgid, srtid)
JSContext * get_context_from_document(nsIDOMHTMLDocument *) DECLSPEC_HIDDEN
Definition: mutation.c:758
SAFEARRAYBOUND rgsabound[1]
Definition: compat.h:2001
#define WARN(fmt,...)
Definition: debug.h:111
#define E_FAIL
Definition: ddrawi.h:102
#define SUBLANG_ENGLISH_US
Definition: nls.h:222
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
HRESULT WINAPI SafeArrayAccessData(SAFEARRAY *psa, void **ppvData)
Definition: safearray.c:1139
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_INVALIDARG
Definition: ddrawi.h:101
USHORT cDims
Definition: compat.h:1996
#define NS_FAILED(res)
HRESULT hres
Definition: protocol.c:465
#define SORT_DEFAULT
LONG HRESULT
Definition: typedefs.h:77
#define LANG_ENGLISH
Definition: nls.h:52
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
Definition: variant.c:651
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#define ERR(fmt,...)
Definition: debug.h:109
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
#define E_UNEXPECTED
Definition: winerror.h:2456
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39
unsigned int ULONG
Definition: retypes.h:1
#define MAKELANGID(p, s)
Definition: nls.h:15
HRESULT WINAPI SafeArrayUnaccessData(SAFEARRAY *psa)
Definition: safearray.c:1170
HRESULT WINAPI VariantChangeTypeEx(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, LCID lcid, USHORT wFlags, VARTYPE vt)
Definition: variant.c:991

Referenced by HTMLDocument_write(), and HTMLDocument_writeln().

◆ get_doc_elem_by_id()

HRESULT get_doc_elem_by_id ( HTMLDocumentNode doc,
const WCHAR id,
HTMLElement **  ret 
)

Definition at line 23 of file htmldoc.c.

24 {
25  nsIDOMNodeList *nsnode_list;
26  nsIDOMElement *nselem;
27  nsIDOMNode *nsnode;
28  nsAString id_str;
29  nsresult nsres;
30  HRESULT hres;
31 
32  if(!doc->nsdoc) {
33  WARN("NULL nsdoc\n");
34  return E_UNEXPECTED;
35  }
36 
37  nsAString_InitDepend(&id_str, id);
38  /* get element by id attribute */
39  nsres = nsIDOMHTMLDocument_GetElementById(doc->nsdoc, &id_str, &nselem);
40  if(FAILED(nsres)) {
41  ERR("GetElementById failed: %08x\n", nsres);
42  nsAString_Finish(&id_str);
43  return E_FAIL;
44  }
45 
46  /* get first element by name attribute */
47  nsres = nsIDOMHTMLDocument_GetElementsByName(doc->nsdoc, &id_str, &nsnode_list);
48  nsAString_Finish(&id_str);
49  if(FAILED(nsres)) {
50  ERR("getElementsByName failed: %08x\n", nsres);
51  if(nselem)
52  nsIDOMElement_Release(nselem);
53  return E_FAIL;
54  }
55 
56  nsres = nsIDOMNodeList_Item(nsnode_list, 0, &nsnode);
57  nsIDOMNodeList_Release(nsnode_list);
58  assert(nsres == NS_OK);
59 
60  if(nsnode && nselem) {
61  UINT16 pos;
62 
63  nsres = nsIDOMNode_CompareDocumentPosition(nsnode, (nsIDOMNode*)nselem, &pos);
64  if(NS_FAILED(nsres)) {
65  FIXME("CompareDocumentPosition failed: 0x%08x\n", nsres);
66  nsIDOMNode_Release(nsnode);
67  nsIDOMElement_Release(nselem);
68  return E_FAIL;
69  }
70 
71  TRACE("CompareDocumentPosition gave: 0x%x\n", pos);
72  if(!(pos & (DOCUMENT_POSITION_PRECEDING | DOCUMENT_POSITION_CONTAINS))) {
73  nsIDOMElement_Release(nselem);
74  nselem = NULL;
75  }
76  }
77 
78  if(nsnode) {
79  if(!nselem) {
80  nsres = nsIDOMNode_QueryInterface(nsnode, &IID_nsIDOMElement, (void**)&nselem);
81  assert(nsres == NS_OK);
82  }
83  nsIDOMNode_Release(nsnode);
84  }
85 
86  if(!nselem) {
87  *ret = NULL;
88  return S_OK;
89  }
90 
91  hres = get_elem(doc, nselem, ret);
92  nsIDOMElement_Release(nselem);
93  return hres;
94 }
nsIDOMHTMLDocument * nsdoc
#define WARN(fmt,...)
Definition: debug.h:111
#define assert(x)
Definition: debug.h:53
#define E_FAIL
Definition: ddrawi.h:102
#define NS_OK
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
HRESULT get_elem(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **ret)
Definition: htmlelem.c:4078
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
int ret
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
unsigned short UINT16
#define E_UNEXPECTED
Definition: winerror.h:2456
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

Referenced by find_event_target(), and HTMLDocument3_getElementById().

◆ get_document_charset()

UINT get_document_charset ( HTMLDocumentNode doc)

Definition at line 96 of file htmldoc.c.

97 {
98  nsAString charset_str;
99  UINT ret = 0;
100  nsresult nsres;
101 
102  if(doc->charset)
103  return doc->charset;
104 
105  nsAString_Init(&charset_str, NULL);
106  nsres = nsIDOMHTMLDocument_GetCharacterSet(doc->nsdoc, &charset_str);
107  if(NS_SUCCEEDED(nsres)) {
108  const PRUnichar *charset;
109 
110  nsAString_GetData(&charset_str, &charset);
111 
112  if(*charset) {
116  }
117  }else {
118  ERR("GetCharset failed: %08x\n", nsres);
119  }
120  nsAString_Finish(&charset_str);
121 
122  if(!ret)
123  return CP_UTF8;
124 
125  return doc->charset = ret;
126 }
CFF_Charset charset
Definition: cffcmap.c:138
nsIDOMHTMLDocument * nsdoc
OLECHAR * BSTR
Definition: compat.h:1934
#define CP_UTF8
Definition: nls.h:20
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
UINT cp_from_charset_string(BSTR charset)
Definition: main.c:38
#define NS_SUCCEEDED(res)
int ret
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
#define ERR(fmt,...)
Definition: debug.h:109
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:274
unsigned int UINT
Definition: ndis.h:50
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39
WCHAR PRUnichar
Definition: nsiface.idl:48

Referenced by bind_script_to_text().

◆ htmldoc_qi()

static BOOL htmldoc_qi ( HTMLDocument This,
REFIID  riid,
void **  ppv 
)
static

Definition at line 4237 of file htmldoc.c.

4238 {
4239  *ppv = NULL;
4240 
4242  *ppv = &This->IHTMLDocument2_iface;
4243  else if(IsEqualGUID(&IID_IDispatch, riid))
4244  *ppv = &This->IDispatchEx_iface;
4245  else if(IsEqualGUID(&IID_IDispatchEx, riid))
4246  *ppv = &This->IDispatchEx_iface;
4247  else if(IsEqualGUID(&IID_IHTMLDocument, riid))
4248  *ppv = &This->IHTMLDocument2_iface;
4249  else if(IsEqualGUID(&IID_IHTMLDocument2, riid))
4250  *ppv = &This->IHTMLDocument2_iface;
4251  else if(IsEqualGUID(&IID_IHTMLDocument3, riid))
4252  *ppv = &This->IHTMLDocument3_iface;
4253  else if(IsEqualGUID(&IID_IHTMLDocument4, riid))
4254  *ppv = &This->IHTMLDocument4_iface;
4255  else if(IsEqualGUID(&IID_IHTMLDocument5, riid))
4256  *ppv = &This->IHTMLDocument5_iface;
4257  else if(IsEqualGUID(&IID_IHTMLDocument6, riid))
4258  *ppv = &This->IHTMLDocument6_iface;
4259  else if(IsEqualGUID(&IID_IHTMLDocument7, riid))
4260  *ppv = &This->IHTMLDocument7_iface;
4261  else if(IsEqualGUID(&IID_IPersist, riid))
4262  *ppv = &This->IPersistFile_iface;
4263  else if(IsEqualGUID(&IID_IPersistMoniker, riid))
4264  *ppv = &This->IPersistMoniker_iface;
4265  else if(IsEqualGUID(&IID_IPersistFile, riid))
4266  *ppv = &This->IPersistFile_iface;
4267  else if(IsEqualGUID(&IID_IMonikerProp, riid))
4268  *ppv = &This->IMonikerProp_iface;
4269  else if(IsEqualGUID(&IID_IOleObject, riid))
4270  *ppv = &This->IOleObject_iface;
4271  else if(IsEqualGUID(&IID_IOleDocument, riid))
4272  *ppv = &This->IOleDocument_iface;
4273  else if(IsEqualGUID(&IID_IOleDocumentView, riid))
4274  *ppv = &This->IOleDocumentView_iface;
4276  *ppv = &This->IOleInPlaceActiveObject_iface;
4277  else if(IsEqualGUID(&IID_IViewObject, riid))
4278  *ppv = &This->IViewObjectEx_iface;
4279  else if(IsEqualGUID(&IID_IViewObject2, riid))
4280  *ppv = &This->IViewObjectEx_iface;
4281  else if(IsEqualGUID(&IID_IViewObjectEx, riid))
4282  *ppv = &This->IViewObjectEx_iface;
4283  else if(IsEqualGUID(&IID_IOleWindow, riid))
4284  *ppv = &This->IOleInPlaceActiveObject_iface;
4286  *ppv = &This->IOleInPlaceObjectWindowless_iface;
4287  else if(IsEqualGUID(&IID_IOleInPlaceObjectWindowless, riid))
4288  *ppv = &This->IOleInPlaceObjectWindowless_iface;
4289  else if(IsEqualGUID(&IID_IServiceProvider, riid))
4290  *ppv = &This->IServiceProvider_iface;
4291  else if(IsEqualGUID(&IID_IOleCommandTarget, riid))
4292  *ppv = &This->IOleCommandTarget_iface;
4293  else if(IsEqualGUID(&IID_IOleControl, riid))
4294  *ppv = &This->IOleControl_iface;
4295  else if(IsEqualGUID(&IID_IHlinkTarget, riid))
4296  *ppv = &This->IHlinkTarget_iface;
4298  *ppv = &This->cp_container.IConnectionPointContainer_iface;
4300  *ppv = &This->IPersistStreamInit_iface;
4301  else if(IsEqualGUID(&DIID_DispHTMLDocument, riid))
4302  *ppv = &This->IHTMLDocument2_iface;
4303  else if(IsEqualGUID(&IID_ISupportErrorInfo, riid))
4304  *ppv = &This->ISupportErrorInfo_iface;
4305  else if(IsEqualGUID(&IID_IPersistHistory, riid))
4306  *ppv = &This->IPersistHistory_iface;
4308  *ppv = &This->IObjectWithSite_iface;
4309  else if(IsEqualGUID(&IID_IOleContainer, riid))
4310  *ppv = &This->IOleContainer_iface;
4311  else if(IsEqualGUID(&IID_IObjectSafety, riid))
4312  *ppv = &This->IObjectSafety_iface;
4314  *ppv = &This->IProvideClassInfo_iface;
4315  else if(IsEqualGUID(&CLSID_CMarkup, riid)) {
4316  FIXME("(%p)->(CLSID_CMarkup %p)\n", This, ppv);
4317  *ppv = NULL;
4318  }else if(IsEqualGUID(&IID_IRunnableObject, riid)) {
4319  TRACE("(%p)->(IID_IRunnableObject %p) returning NULL\n", This, ppv);
4320  *ppv = NULL;
4322  TRACE("(%p)->(IID_IPersistPropertyBag %p) returning NULL\n", This, ppv);
4323  *ppv = NULL;
4324  }else if(IsEqualGUID(&IID_IMarshal, riid)) {
4325  TRACE("(%p)->(IID_IMarshal %p) returning NULL\n", This, ppv);
4326  *ppv = NULL;
4327  }else if(IsEqualGUID(&IID_IExternalConnection, riid)) {
4328  TRACE("(%p)->(IID_IExternalConnection %p) returning NULL\n", This, ppv);
4329  *ppv = NULL;
4330  }else if(IsEqualGUID(&IID_IStdMarshalInfo, riid)) {
4331  TRACE("(%p)->(IID_IStdMarshalInfo %p) returning NULL\n", This, ppv);
4332  *ppv = NULL;
4333  }else {
4334  return FALSE;
4335  }
4336 
4337  if(*ppv)
4338  IUnknown_AddRef((IUnknown*)*ppv);
4339  return TRUE;
4340 }
#define TRUE
Definition: types.h:120
const GUID IID_IViewObject
REFIID riid
Definition: precomp.h:44
const GUID IID_IPersist
Definition: proxy.cpp:14
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IConnectionPointContainer
const GUID IID_IPersistPropertyBag
Definition: proxy.cpp:11
const GUID IID_IProvideClassInfo
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
const GUID IID_IOleInPlaceObject
const GUID IID_IOleObject
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IOleContainer
const GUID IID_IUnknown
const IID IID_IObjectWithSite
const GUID IID_IDispatch
const GUID IID_IOleControl
const GUID IID_IPersistStreamInit
const GUID IID_IRunnableObject
const GUID IID_IViewObject2
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021
const GUID IID_IPersistFile
const GUID IID_IOleWindow
const GUID IID_IOleInPlaceActiveObject

Referenced by CustomDoc_QueryInterface(), and HTMLDocumentNode_QI().

◆ HTMLDocument3_AddRef()

static ULONG WINAPI HTMLDocument3_AddRef ( IHTMLDocument3 *  iface)
static

Definition at line 1862 of file htmldoc.c.

1863 {
1865  return htmldoc_addref(This);
1866 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
static ULONG htmldoc_addref(HTMLDocument *This)

◆ HTMLDocument3_attachEvent()

static HRESULT WINAPI HTMLDocument3_attachEvent ( IHTMLDocument3 *  iface,
BSTR  event,
IDispatch pDisp,
VARIANT_BOOL pfResult 
)
static

Definition at line 2004 of file htmldoc.c.

2006 {
2008 
2009  TRACE("(%p)->(%s %p %p)\n", This, debugstr_w(event), pDisp, pfResult);
2010 
2011  return attach_event(&This->doc_node->node.event_target, event, pDisp, pfResult);
2012 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
struct _cl_event * event
Definition: glext.h:7739
HRESULT attach_event(EventTarget *event_target, BSTR name, IDispatch *disp, VARIANT_BOOL *res)
Definition: htmlevent.c:1469

◆ HTMLDocument3_createDocumentFragment()

static HRESULT WINAPI HTMLDocument3_createDocumentFragment ( IHTMLDocument3 *  iface,
IHTMLDocument2 **  ppNewDoc 
)
static

Definition at line 2168 of file htmldoc.c.

2170 {
2172  nsIDOMDocumentFragment *doc_frag;
2173  HTMLDocumentNode *docnode;
2174  nsresult nsres;
2175  HRESULT hres;
2176 
2177  TRACE("(%p)->(%p)\n", This, ppNewDoc);
2178 
2179  if(!This->doc_node->nsdoc) {
2180  FIXME("NULL nsdoc\n");
2181  return E_NOTIMPL;
2182  }
2183 
2184  nsres = nsIDOMHTMLDocument_CreateDocumentFragment(This->doc_node->nsdoc, &doc_frag);
2185  if(NS_FAILED(nsres)) {
2186  ERR("CreateDocumentFragment failed: %08x\n", nsres);
2187  return E_FAIL;
2188  }
2189 
2190  hres = create_document_fragment((nsIDOMNode*)doc_frag, This->doc_node, &docnode);
2191  nsIDOMDocumentFragment_Release(doc_frag);
2192  if(FAILED(hres))
2193  return hres;
2194 
2195  *ppNewDoc = &docnode->basedoc.IHTMLDocument2_iface;
2196  return S_OK;
2197 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
HTMLDocument basedoc
#define E_FAIL
Definition: ddrawi.h:102
#define FIXME(fmt,...)
Definition: debug.h:110
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
#define E_NOTIMPL
Definition: ddrawi.h:99
IHTMLDocument2 IHTMLDocument2_iface
HRESULT nsresult
Definition: nsiface.idl:39
static HRESULT create_document_fragment(nsIDOMNode *nsnode, HTMLDocumentNode *doc_node, HTMLDocumentNode **ret)
Definition: htmldoc.c:4642

◆ HTMLDocument3_createTextNode()

static HRESULT WINAPI HTMLDocument3_createTextNode ( IHTMLDocument3 *  iface,
BSTR  text,
IHTMLDOMNode **  newTextNode 
)
static

Definition at line 1922 of file htmldoc.c.

1924 {
1926  nsIDOMText *nstext;
1927  HTMLDOMNode *node;
1928  nsAString text_str;
1929  nsresult nsres;
1930  HRESULT hres;
1931 
1932  TRACE("(%p)->(%s %p)\n", This, debugstr_w(text), newTextNode);
1933 
1934  if(!This->doc_node->nsdoc) {
1935  WARN("NULL nsdoc\n");
1936  return E_UNEXPECTED;
1937  }
1938 
1939  nsAString_InitDepend(&text_str, text);
1940  nsres = nsIDOMHTMLDocument_CreateTextNode(This->doc_node->nsdoc, &text_str, &nstext);
1941  nsAString_Finish(&text_str);
1942  if(NS_FAILED(nsres)) {
1943  ERR("CreateTextNode failed: %08x\n", nsres);
1944  return E_FAIL;
1945  }
1946 
1947  hres = HTMLDOMTextNode_Create(This->doc_node, (nsIDOMNode*)nstext, &node);
1948  nsIDOMText_Release(nstext);
1949  if(FAILED(hres))
1950  return hres;
1951 
1952  *newTextNode = &node->IHTMLDOMNode_iface;
1953  return S_OK;
1954 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
const WCHAR * text
Definition: package.c:1827
#define WARN(fmt,...)
Definition: debug.h:111
HRESULT HTMLDOMTextNode_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDOMNode **node)
Definition: htmltextnode.c:352
#define E_FAIL
Definition: ddrawi.h:102
struct node node
#define debugstr_w
Definition: kernel32.h:32
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
#define E_UNEXPECTED
Definition: winerror.h:2456
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39
Definition: dlist.c:348

◆ HTMLDocument3_detachEvent()

static HRESULT WINAPI HTMLDocument3_detachEvent ( IHTMLDocument3 *  iface,
BSTR  event,
IDispatch pDisp 
)
static

Definition at line 2014 of file htmldoc.c.

2016 {
2018 
2019  TRACE("(%p)->(%s %p)\n", This, debugstr_w(event), pDisp);
2020 
2021  return detach_event(&This->doc_node->node.event_target, event, pDisp);
2022 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT detach_event(EventTarget *event_target, BSTR name, IDispatch *disp)
Definition: htmlevent.c:1504
struct _cl_event * event
Definition: glext.h:7739

◆ HTMLDocument3_get_baseUrl()

static HRESULT WINAPI HTMLDocument3_get_baseUrl ( IHTMLDocument3 *  iface,
BSTR p 
)
static

Definition at line 2230 of file htmldoc.c.

2231 {
2233  FIXME("(%p)->(%p)\n", This, p);
2234  return E_NOTIMPL;
2235 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_childNodes()

static HRESULT WINAPI HTMLDocument3_get_childNodes ( IHTMLDocument3 *  iface,
IDispatch **  p 
)
static

Definition at line 2237 of file htmldoc.c.

2238 {
2240 
2241  TRACE("(%p)->(%p)\n", This, p);
2242 
2243  return IHTMLDOMNode_get_childNodes(&This->doc_node->node.IHTMLDOMNode_iface, p);
2244 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_dir()

static HRESULT WINAPI HTMLDocument3_get_dir ( IHTMLDocument3 *  iface,
BSTR p 
)
static

Definition at line 2129 of file htmldoc.c.

2130 {
2132  FIXME("(%p)->(%p)\n", This, p);
2133  return E_NOTIMPL;
2134 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_documentElement()

static HRESULT WINAPI HTMLDocument3_get_documentElement ( IHTMLDocument3 *  iface,
IHTMLElement **  p 
)
static

Definition at line 1956 of file htmldoc.c.

1957 {
1959  nsIDOMElement *nselem = NULL;
1960  HTMLDOMNode *node;
1961  nsresult nsres;
1962  HRESULT hres;
1963 
1964  TRACE("(%p)->(%p)\n", This, p);
1965 
1966  if(This->window->readystate == READYSTATE_UNINITIALIZED) {
1967  *p = NULL;
1968  return S_OK;
1969  }
1970 
1971  if(!This->doc_node->nsdoc) {
1972  WARN("NULL nsdoc\n");
1973  return E_UNEXPECTED;
1974  }
1975 
1976  nsres = nsIDOMHTMLDocument_GetDocumentElement(This->doc_node->nsdoc, &nselem);
1977  if(NS_FAILED(nsres)) {
1978  ERR("GetDocumentElement failed: %08x\n", nsres);
1979  return E_FAIL;
1980  }
1981 
1982  if(!nselem) {
1983  *p = NULL;
1984  return S_OK;
1985  }
1986 
1987  hres = get_node(This->doc_node, (nsIDOMNode *)nselem, TRUE, &node);
1988  nsIDOMElement_Release(nselem);
1989  if(FAILED(hres))
1990  return hres;
1991 
1992  hres = IHTMLDOMNode_QueryInterface(&node->IHTMLDOMNode_iface, &IID_IHTMLElement, (void**)p);
1993  node_release(node);
1994  return hres;
1995 }
#define TRUE
Definition: types.h:120
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define WARN(fmt,...)
Definition: debug.h:111
#define E_FAIL
Definition: ddrawi.h:102
struct node node
static void node_release(HTMLDOMNode *node)
smooth NULL
Definition: ftsmooth.c:416
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
Definition: htmlnode.c:1339
#define E_UNEXPECTED
Definition: winerror.h:2456
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902
Definition: dlist.c:348

◆ HTMLDocument3_get_enableDownload()

static HRESULT WINAPI HTMLDocument3_get_enableDownload ( IHTMLDocument3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 2215 of file htmldoc.c.

2217 {
2219  FIXME("(%p)->(%p)\n", This, p);
2220  return E_NOTIMPL;
2221 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_inheritStyleSheets()

static HRESULT WINAPI HTMLDocument3_get_inheritStyleSheets ( IHTMLDocument3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 2254 of file htmldoc.c.

2256 {
2258  FIXME("(%p)->(%p)\n", This, p);
2259  return E_NOTIMPL;
2260 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_onbeforeeditfocus()

static HRESULT WINAPI HTMLDocument3_get_onbeforeeditfocus ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2269 of file htmldoc.c.

2270 {
2272  FIXME("(%p)->(%p)\n", This, p);
2273  return E_NOTIMPL;
2274 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_oncellchange()

static HRESULT WINAPI HTMLDocument3_get_oncellchange ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2059 of file htmldoc.c.

2060 {
2062  FIXME("(%p)->(%p)\n", This, p);
2063  return E_NOTIMPL;
2064 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_oncontextmenu()

static HRESULT WINAPI HTMLDocument3_get_oncontextmenu ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2145 of file htmldoc.c.

2146 {
2148 
2149  TRACE("(%p)->(%p)\n", This, p);
2150 
2152 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_doc_event(HTMLDocument *doc, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:95
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_ondataavailable()

static HRESULT WINAPI HTMLDocument3_get_ondataavailable ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2087 of file htmldoc.c.

2088 {
2090  FIXME("(%p)->(%p)\n", This, p);
2091  return E_NOTIMPL;
2092 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_ondatasetchanged()

static HRESULT WINAPI HTMLDocument3_get_ondatasetchanged ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2073 of file htmldoc.c.

2074 {
2076  FIXME("(%p)->(%p)\n", This, p);
2077  return E_NOTIMPL;
2078 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_ondatasetcomplete()

static HRESULT WINAPI HTMLDocument3_get_ondatasetcomplete ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2101 of file htmldoc.c.

2102 {
2104  FIXME("(%p)->(%p)\n", This, p);
2105  return E_NOTIMPL;
2106 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_onpropertychange()

static HRESULT WINAPI HTMLDocument3_get_onpropertychange ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2115 of file htmldoc.c.

2116 {
2118  FIXME("(%p)->(%p)\n", This, p);
2119  return E_NOTIMPL;
2120 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_onrowsdelete()

static HRESULT WINAPI HTMLDocument3_get_onrowsdelete ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2031 of file htmldoc.c.

2032 {
2034  FIXME("(%p)->(%p)\n", This, p);
2035  return E_NOTIMPL;
2036 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_onrowsinserted()

static HRESULT WINAPI HTMLDocument3_get_onrowsinserted ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2045 of file htmldoc.c.

2046 {
2048  FIXME("(%p)->(%p)\n", This, p);
2049  return E_NOTIMPL;
2050 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_onstop()

static HRESULT WINAPI HTMLDocument3_get_onstop ( IHTMLDocument3 *  iface,
VARIANT p 
)
static

Definition at line 2161 of file htmldoc.c.

2162 {
2164  FIXME("(%p)->(%p)\n", This, p);
2165  return E_NOTIMPL;
2166 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_get_parentDocument()

static HRESULT WINAPI HTMLDocument3_get_parentDocument ( IHTMLDocument3 *  iface,
IHTMLDocument2 **  p 
)
static

Definition at line 2199 of file htmldoc.c.

2201 {
2203  FIXME("(%p)->(%p)\n", This, p);
2204  return E_NOTIMPL;
2205 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument3_getElementById()

static HRESULT WINAPI HTMLDocument3_getElementById ( IHTMLDocument3 *  iface,
BSTR  v,
IHTMLElement **  pel 
)
static

Definition at line 2320 of file htmldoc.c.

2322 {
2324  HTMLElement *elem;
2325  HRESULT hres;
2326 
2327  TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pel);
2328 
2329  hres = get_doc_elem_by_id(This->doc_node, v, &elem);
2330  if(FAILED(hres) || !elem) {
2331  *pel = NULL;
2332  return hres;
2333  }
2334 
2335  *pel = &elem->IHTMLElement_iface;
2336  return S_OK;
2337 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define debugstr_w
Definition: kernel32.h:32
static size_t elem
Definition: string.c:68
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
HRESULT get_doc_elem_by_id(HTMLDocumentNode *doc, const WCHAR *id, HTMLElement **ret)
Definition: htmldoc.c:23
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040

◆ HTMLDocument3_getElementsByName()

static HRESULT WINAPI HTMLDocument3_getElementsByName ( IHTMLDocument3 *  iface,
BSTR  v,
IHTMLElementCollection **  ppelColl 
)
static

Definition at line 2276 of file htmldoc.c.

2278 {
2280  nsIDOMNodeList *node_list;
2281  nsAString selector_str;
2282  WCHAR *selector;
2283  nsresult nsres;
2284 
2285  static const WCHAR formatW[] = {'*','[','i','d','=','%','s',']',',','*','[','n','a','m','e','=','%','s',']',0};
2286 
2287  TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), ppelColl);
2288 
2289  if(!This->doc_node || !This->doc_node->nsdoc) {
2290  /* We should probably return an empty collection. */
2291  FIXME("No nsdoc\n");
2292  return E_NOTIMPL;
2293  }
2294 
2295  selector = heap_alloc(2*SysStringLen(v)*sizeof(WCHAR) + sizeof(formatW));
2296  if(!selector)
2297  return E_OUTOFMEMORY;
2298  sprintfW(selector, formatW, v, v);
2299 
2300  /*
2301  * NOTE: IE getElementsByName implementation differs from Gecko. It searches both name and id attributes.
2302  * That's why we use CSS selector instead. We should also use name only when it applies to given element
2303  * types and search should be case insensitive. Those are currently not supported properly.
2304  */
2305  nsAString_InitDepend(&selector_str, selector);
2306  nsres = nsIDOMHTMLDocument_QuerySelectorAll(This->doc_node->nsdoc, &selector_str, &node_list);
2307  nsAString_Finish(&selector_str);
2308  heap_free(selector);
2309  if(NS_FAILED(nsres)) {
2310  ERR("QuerySelectorAll failed: %08x\n", nsres);
2311  return E_FAIL;
2312  }
2313 
2314  *ppelColl = create_collection_from_nodelist(This->doc_node, node_list);
2315  nsIDOMNodeList_Release(node_list);
2316  return S_OK;
2317 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define E_FAIL
Definition: ddrawi.h:102
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
IHTMLElementCollection * create_collection_from_nodelist(HTMLDocumentNode *doc, nsIDOMNodeList *nslist)
Definition: htmlelemcol.c:670
UINT WINAPI SysStringLen(BSTR str)
Definition: oleaut.c:199
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
#define sprintfW
Definition: unicode.h:58
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ HTMLDocument3_getElementsByTagName()

static HRESULT WINAPI HTMLDocument3_getElementsByTagName ( IHTMLDocument3 *  iface,
BSTR  v,
IHTMLElementCollection **  pelColl 
)
static

Definition at line 2340 of file htmldoc.c.

2342 {
2344  nsIDOMNodeList *nslist;
2345  nsAString id_str;
2346  nsresult nsres;
2347 
2348  TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
2349 
2350  if(!This->doc_node->nsdoc) {
2351  WARN("NULL nsdoc\n");
2352  return E_UNEXPECTED;
2353  }
2354 
2355  nsAString_InitDepend(&id_str, v);
2356  nsres = nsIDOMHTMLDocument_GetElementsByTagName(This->doc_node->nsdoc, &id_str, &nslist);
2357  nsAString_Finish(&id_str);
2358  if(FAILED(nsres)) {
2359  ERR("GetElementByName failed: %08x\n", nsres);
2360  return E_FAIL;
2361  }
2362 
2363  *pelColl = create_collection_from_nodelist(This->doc_node, nslist);
2364  nsIDOMNodeList_Release(nslist);
2365 
2366  return S_OK;
2367 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define WARN(fmt,...)
Definition: debug.h:111
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
IHTMLElementCollection * create_collection_from_nodelist(HTMLDocumentNode *doc, nsIDOMNodeList *nslist)
Definition: htmlelemcol.c:670
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
#define E_UNEXPECTED
Definition: winerror.h:2456
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLDocument3_GetIDsOfNames()

static HRESULT WINAPI HTMLDocument3_GetIDsOfNames ( IHTMLDocument3 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 1887 of file htmldoc.c.

1890 {
1892  return IDispatchEx_GetIDsOfNames(&This->IDispatchEx_iface, riid, rgszNames, cNames, lcid,
1893  rgDispId);
1894 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
REFIID riid
Definition: precomp.h:44

◆ HTMLDocument3_GetTypeInfo()

static HRESULT WINAPI HTMLDocument3_GetTypeInfo ( IHTMLDocument3 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 1880 of file htmldoc.c.

1882 {
1884  return IDispatchEx_GetTypeInfo(&This->IDispatchEx_iface, iTInfo, lcid, ppTInfo);
1885 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850

◆ HTMLDocument3_GetTypeInfoCount()

static HRESULT WINAPI HTMLDocument3_GetTypeInfoCount ( IHTMLDocument3 *  iface,
UINT pctinfo 
)
static

Definition at line 1874 of file htmldoc.c.

1875 {
1877  return IDispatchEx_GetTypeInfoCount(&This->IDispatchEx_iface, pctinfo);
1878 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850

◆ HTMLDocument3_Invoke()

static HRESULT WINAPI HTMLDocument3_Invoke ( IHTMLDocument3 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 1896 of file htmldoc.c.

1899 {
1901  return IDispatchEx_Invoke(&This->IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
1902  pDispParams, pVarResult, pExcepInfo, puArgErr);
1903 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLDocument3_put_baseUrl()

static HRESULT WINAPI HTMLDocument3_put_baseUrl ( IHTMLDocument3 *  iface,
BSTR  v 
)
static

Definition at line 2223 of file htmldoc.c.

2224 {
2226  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
2227  return E_NOTIMPL;
2228 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_dir()

static HRESULT WINAPI HTMLDocument3_put_dir ( IHTMLDocument3 *  iface,
BSTR  v 
)
static

Definition at line 2122 of file htmldoc.c.

2123 {
2125  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
2126  return E_NOTIMPL;
2127 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_enableDownload()

static HRESULT WINAPI HTMLDocument3_put_enableDownload ( IHTMLDocument3 *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 2207 of file htmldoc.c.

2209 {
2211  FIXME("(%p)->(%x)\n", This, v);
2212  return E_NOTIMPL;
2213 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_inheritStyleSheets()

static HRESULT WINAPI HTMLDocument3_put_inheritStyleSheets ( IHTMLDocument3 *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 2246 of file htmldoc.c.

2248 {
2250  FIXME("(%p)->()\n", This);
2251  return E_NOTIMPL;
2252 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_onbeforeeditfocus()

static HRESULT WINAPI HTMLDocument3_put_onbeforeeditfocus ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2262 of file htmldoc.c.

2263 {
2265  FIXME("(%p)->()\n", This);
2266  return E_NOTIMPL;
2267 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_oncellchange()

static HRESULT WINAPI HTMLDocument3_put_oncellchange ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2052 of file htmldoc.c.

2053 {
2055  FIXME("(%p)->()\n", This);
2056  return E_NOTIMPL;
2057 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_oncontextmenu()

static HRESULT WINAPI HTMLDocument3_put_oncontextmenu ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2136 of file htmldoc.c.

2137 {
2139 
2140  TRACE("(%p)->()\n", This);
2141 
2143 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define TRACE(s)
Definition: solgame.cpp:4
const GLdouble * v
Definition: gl.h:2040
static HRESULT set_doc_event(HTMLDocument *doc, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:90

◆ HTMLDocument3_put_ondataavailable()

static HRESULT WINAPI HTMLDocument3_put_ondataavailable ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2080 of file htmldoc.c.

2081 {
2083  FIXME("(%p)->()\n", This);
2084  return E_NOTIMPL;
2085 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_ondatasetchanged()

static HRESULT WINAPI HTMLDocument3_put_ondatasetchanged ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2066 of file htmldoc.c.

2067 {
2069  FIXME("(%p)->()\n", This);
2070  return E_NOTIMPL;
2071 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_ondatasetcomplete()

static HRESULT WINAPI HTMLDocument3_put_ondatasetcomplete ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2094 of file htmldoc.c.

2095 {
2097  FIXME("(%p)->()\n", This);
2098  return E_NOTIMPL;
2099 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_onpropertychange()

static HRESULT WINAPI HTMLDocument3_put_onpropertychange ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2108 of file htmldoc.c.

2109 {
2111  FIXME("(%p)->()\n", This);
2112  return E_NOTIMPL;
2113 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_onrowsdelete()

static HRESULT WINAPI HTMLDocument3_put_onrowsdelete ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2024 of file htmldoc.c.

2025 {
2027  FIXME("(%p)->()\n", This);
2028  return E_NOTIMPL;
2029 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_onrowsinserted()

static HRESULT WINAPI HTMLDocument3_put_onrowsinserted ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2038 of file htmldoc.c.

2039 {
2041  FIXME("(%p)->()\n", This);
2042  return E_NOTIMPL;
2043 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_put_onstop()

static HRESULT WINAPI HTMLDocument3_put_onstop ( IHTMLDocument3 *  iface,
VARIANT  v 
)
static

Definition at line 2154 of file htmldoc.c.

2155 {
2157  FIXME("(%p)->()\n", This);
2158  return E_NOTIMPL;
2159 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_QueryInterface()

static HRESULT WINAPI HTMLDocument3_QueryInterface ( IHTMLDocument3 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1855 of file htmldoc.c.

1857 {
1860 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HRESULT htmldoc_query_interface(HTMLDocument *This, REFIID riid, void **ppv)

◆ HTMLDocument3_recalc()

static HRESULT WINAPI HTMLDocument3_recalc ( IHTMLDocument3 *  iface,
VARIANT_BOOL  fForce 
)
static

Definition at line 1912 of file htmldoc.c.

1913 {
1915 
1916  WARN("(%p)->(%x)\n", This, fForce);
1917 
1918  /* Doing nothing here should be fine for us. */
1919  return S_OK;
1920 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define WARN(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:59

◆ HTMLDocument3_Release()

static ULONG WINAPI HTMLDocument3_Release ( IHTMLDocument3 *  iface)
static

Definition at line 1868 of file htmldoc.c.

1869 {
1871  return htmldoc_release(This);
1872 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
static ULONG htmldoc_release(HTMLDocument *This)

◆ HTMLDocument3_releaseCapture()

static HRESULT WINAPI HTMLDocument3_releaseCapture ( IHTMLDocument3 *  iface)
static

Definition at line 1905 of file htmldoc.c.

1906 {
1908  FIXME("(%p)\n", This);
1909  return E_NOTIMPL;
1910 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument3_uniqueID()

static HRESULT WINAPI HTMLDocument3_uniqueID ( IHTMLDocument3 *  iface,
BSTR p 
)
static

Definition at line 1997 of file htmldoc.c.

1998 {
2000  FIXME("(%p)->(%p)\n", This, p);
2001  return E_NOTIMPL;
2002 }
static HTMLDocument * impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
Definition: htmldoc.c:1850
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument4_AddRef()

static ULONG WINAPI HTMLDocument4_AddRef ( IHTMLDocument4 *  iface)
static

Definition at line 2432 of file htmldoc.c.

2433 {
2435  return htmldoc_addref(This);
2436 }
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
static ULONG htmldoc_addref(HTMLDocument *This)

◆ HTMLDocument4_createDocumentFromUrl()

static HRESULT WINAPI HTMLDocument4_createDocumentFromUrl ( IHTMLDocument4 *  iface,
BSTR  bstrUrl,
BSTR  bstrOptions,
IHTMLDocument2 **  newDoc 
)
static

Definition at line 2527 of file htmldoc.c.

2529 {
2531  FIXME("(%p)->(%s %s %p)\n", This, debugstr_w(bstrUrl), debugstr_w(bstrOptions), newDoc);
2532  return E_NOTIMPL;
2533 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument4_createEventObject()

static HRESULT WINAPI HTMLDocument4_createEventObject ( IHTMLDocument4 *  iface,
VARIANT pvarEventObject,
IHTMLEventObj **  ppEventObj 
)
static

Definition at line 2549 of file htmldoc.c.

2551 {
2553 
2554  TRACE("(%p)->(%s %p)\n", This, debugstr_variant(pvarEventObject), ppEventObj);
2555 
2556  if(pvarEventObject && V_VT(pvarEventObject) != VT_ERROR && V_VT(pvarEventObject) != VT_EMPTY) {
2557  FIXME("unsupported pvarEventObject %s\n", debugstr_variant(pvarEventObject));
2558  return E_NOTIMPL;
2559  }
2560 
2561  return create_event_obj(ppEventObj);
2562 }
#define FIXME(fmt,...)
Definition: debug.h:110
HRESULT create_event_obj(IHTMLEventObj **ret)
Definition: htmlevent.c:858
#define TRACE(s)
Definition: solgame.cpp:4
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
#define V_VT(A)
Definition: oleauto.h:211
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument4_createRenderStyle()

static HRESULT WINAPI HTMLDocument4_createRenderStyle ( IHTMLDocument4 *  iface,
BSTR  v,
IHTMLRenderStyle **  ppIHTMLRenderStyle 
)
static

Definition at line 2574 of file htmldoc.c.

2576 {
2578  FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), ppIHTMLRenderStyle);
2579  return E_NOTIMPL;
2580 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLDocument4_fireEvent()

static HRESULT WINAPI HTMLDocument4_fireEvent ( IHTMLDocument4 *  iface,
BSTR  bstrEventName,
VARIANT pvarEventObject,
VARIANT_BOOL pfCanceled 
)
static

Definition at line 2564 of file htmldoc.c.

2566 {
2568 
2569  TRACE("(%p)->(%s %p %p)\n", This, debugstr_w(bstrEventName), pvarEventObject, pfCanceled);
2570 
2571  return dispatch_event(&This->doc_node->node, bstrEventName, pvarEventObject, pfCanceled);
2572 }
HRESULT dispatch_event(HTMLDOMNode *node, const WCHAR *event_name, VARIANT *event_var, VARIANT_BOOL *cancelled)
Definition: htmlevent.c:1225
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420

◆ HTMLDocument4_focus()

static HRESULT WINAPI HTMLDocument4_focus ( IHTMLDocument4 *  iface)
static

Definition at line 2475 of file htmldoc.c.

2476 {
2478  nsIDOMHTMLElement *nsbody;
2479  nsresult nsres;
2480 
2481  TRACE("(%p)->()\n", This);
2482 
2483  nsres = nsIDOMHTMLDocument_GetBody(This->doc_node->nsdoc, &nsbody);
2484  if(NS_FAILED(nsres) || !nsbody) {
2485  ERR("GetBody failed: %08x\n", nsres);
2486  return E_FAIL;
2487  }
2488 
2489  nsres = nsIDOMHTMLElement_Focus(nsbody);
2490  nsIDOMHTMLElement_Release(nsbody);
2491  if(NS_FAILED(nsres)) {
2492  ERR("Focus failed: %08x\n", nsres);
2493  return E_FAIL;
2494  }
2495 
2496  return S_OK;
2497 }
#define E_FAIL
Definition: ddrawi.h:102
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLDocument4_get_media()

static HRESULT WINAPI HTMLDocument4_get_media ( IHTMLDocument4 *  iface,
BSTR p 
)
static

Definition at line 2542 of file htmldoc.c.

2543 {
2545  FIXME("(%p)->(%p)\n", This, p);
2546  return E_NOTIMPL;
2547 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument4_get_namespace()

static HRESULT WINAPI HTMLDocument4_get_namespace ( IHTMLDocument4 *  iface,
IDispatch **  p 
)
static

Definition at line 2520 of file htmldoc.c.

2521 {
2523  FIXME("(%p)->(%p)\n", This, p);
2524  return E_NOTIMPL;
2525 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument4_get_oncontrolselect()

static HRESULT WINAPI HTMLDocument4_get_oncontrolselect ( IHTMLDocument4 *  iface,
VARIANT p 
)
static

Definition at line 2589 of file htmldoc.c.

2590 {
2592  FIXME("(%p)->(%p)\n", This, p);
2593  return E_NOTIMPL;
2594 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument4_get_onselectionchange()

static HRESULT WINAPI HTMLDocument4_get_onselectionchange ( IHTMLDocument4 *  iface,
VARIANT p 
)
static

Definition at line 2513 of file htmldoc.c.

2514 {
2516  FIXME("(%p)->(%p)\n", This, p);
2517  return E_NOTIMPL;
2518 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLDocument * impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
Definition: htmldoc.c:2420
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLDocument4_get_URLEncoded()

static HRESULT WINAPI HTMLDocument4_get_URLEncoded ( IHTMLDocument4 *  iface,
BSTR p 
)
static

Definition at line 2596 of file htmldoc.c.

2597 {
2599  FIXME("(%p)->(%p)\n", This, p);
2600