From 51aafd5683aba62dc4c919d57fc5725b52d1c5d7 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 23 Aug 2011 11:32:52 +0200 Subject: [PATCH] include: Added IHTMLAttributeCollection definition. --- include/mshtmdid.h | 11 +++++ include/mshtml.idl | 100 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) diff --git a/include/mshtmdid.h b/include/mshtmdid.h index cf03d64c62a..622581f5b11 100644 --- a/include/mshtmdid.h +++ b/include/mshtmdid.h @@ -1029,6 +1029,17 @@ /* IHTMLElementCollection3 */ #define DISPID_IHTMLELEMENTCOLLECTION3_NAMEDITEM DISPID_COLLECTION+6 + +/* IHTMLAttributeCollection */ +#define DISPID_IHTMLATTRIBUTECOLLECTION_LENGTH DISPID_COLLECTION +#define DISPID_IHTMLATTRIBUTECOLLECTION__NEWENUM DISPID_NEWENUM +#define DISPID_IHTMLATTRIBUTECOLLECTION_ITEM DISPID_VALUE + +/* IHTMLAttributeCollection2 */ +#define DISPID_IHTMLATTRIBUTECOLLECTION2_GETNAMEDITEM DISPID_COLLECTION+1 +#define DISPID_IHTMLATTRIBUTECOLLECTION2_SETNAMEDITEM DISPID_COLLECTION+2 +#define DISPID_IHTMLATTRIBUTECOLLECTION2_REMOVENAMEDITEM DISPID_COLLECTION+3 + /* IHTMLAttributeCollection3 */ #define DISPID_IHTMLATTRIBUTECOLLECTION3_IE8_GETNAMEDITEM DISPID_IE8_NAMEDNODEMAP #define DISPID_IHTMLATTRIBUTECOLLECTION3_IE8_SETNAMEDITEM DISPID_IE8_NAMEDNODEMAP+1 diff --git a/include/mshtml.idl b/include/mshtml.idl index 13c0fa30672..a840944a0a3 100644 --- a/include/mshtml.idl +++ b/include/mshtml.idl @@ -4148,6 +4148,58 @@ methods: WINE_HTMLDOMNODE_DISPINTERFACE_DECL; } +/***************************************************************************** + * IHTMLAttributeCollection interface + */ +[ + odl, + oleautomation, + dual, + uuid(3050f4c3-98b5-11cf-bb82-00aa00bdce0b) +] +interface IHTMLAttributeCollection : IDispatch +{ + [propget, id(DISPID_IHTMLATTRIBUTECOLLECTION_LENGTH)] + HRESULT length( + [retval, out] long *p); + + [propget, id(DISPID_IHTMLATTRIBUTECOLLECTION__NEWENUM), hidden, restricted] + HRESULT _newEnum( + [retval, out] IUnknown **p); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION_ITEM)] + HRESULT item( + [optional, in] VARIANT *name, + [retval, out] IDispatch **pdisp); +} + +/***************************************************************************** + * IHTMLAttributeCollection2 interface + */ +[ + odl, + oleautomation, + dual, + uuid(3050f80a-98b5-11cf-bb82-00aa00bdce0b) + ] +interface IHTMLAttributeCollection2 : IDispatch +{ + [id(DISPID_IHTMLATTRIBUTECOLLECTION2_GETNAMEDITEM)] + HRESULT getNamedItem( + [in] BSTR bstrName, + [retval, out] IHTMLDOMAttribute **newretNode); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION2_SETNAMEDITEM)] + HRESULT setNamedItem( + [in] IHTMLDOMAttribute *ppNode, + [retval, out] IHTMLDOMAttribute **newretNode); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION2_REMOVENAMEDITEM)] + HRESULT removeNamedItem( + [in] BSTR bstrName, + [retval, out] IHTMLDOMAttribute **newretNode); +} + /***************************************************************************** * IHTMLAttributeCollection3 interface */ @@ -4183,6 +4235,54 @@ interface IHTMLAttributeCollection3 : IDispatch HRESULT length([retval, out] long *p); } +/***************************************************************************** + * DispHTMLAttributeCollection dispinterface + */ +[ + hidden, + uuid(3050f56c-98b5-11cf-bb82-00aa00bdce0b) +] +dispinterface DispHTMLAttributeCollection +{ +properties: +methods: + [propget, id(DISPID_IHTMLATTRIBUTECOLLECTION_LENGTH)] + long length(); + + [propget, id(DISPID_IHTMLATTRIBUTECOLLECTION__NEWENUM), hidden, restricted] + IUnknown *_newEnum(); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION_ITEM)] + IDispatch *item([optional, in] VARIANT *name); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION2_GETNAMEDITEM)] + IHTMLDOMAttribute *getNamedItem([in] BSTR bstrName); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION2_SETNAMEDITEM)] + IHTMLDOMAttribute *setNamedItem([in] IHTMLDOMAttribute *ppNode); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION2_REMOVENAMEDITEM)] + IHTMLDOMAttribute *removeNamedItem([in] BSTR bstrName); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION3_IE8_GETNAMEDITEM)] + IHTMLDOMAttribute *ie8_getNamedItem([in] BSTR bstrName); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION3_IE8_SETNAMEDITEM)] + IHTMLDOMAttribute *ie8_setNamedItem([in] IHTMLDOMAttribute *pNodeIn); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION3_IE8_REMOVENAMEDITEM)] + IHTMLDOMAttribute *ie8_removeNamedItem([in] BSTR bstrName); + + [id(DISPID_IHTMLATTRIBUTECOLLECTION3_IE8_ITEM)] + IHTMLDOMAttribute *ie8_item([in] long index); + + [propget, id(DISPID_IHTMLATTRIBUTECOLLECTION3_IE8_LENGTH)] + long ie8_length(); + + [propget, id(DISPID_IHTMLDOMCONSTRUCTOR_CONSTRUCTOR), hidden] + IDispatch *constructor(); +} + /***************************************************************************** * IHTMLDOMChildrenCollection interface */