Add missing declarations for IXMLDocument2 and IXMLElement2.

This commit is contained in:
Vijay Kiran Kamuju 2005-07-02 10:48:16 +00:00 committed by Alexandre Julliard
parent 112228dfe3
commit a52310a40c
1 changed files with 115 additions and 0 deletions

View File

@ -1,5 +1,6 @@
/*
* Copyright (C) 2005 Mike McCormack
* Copyright (C) 2005 Vijay Kiran Kamuju
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -23,6 +24,7 @@ import "wtypes.idl";
import "objidl.idl";
import "oaidl.idl";
[
local,
object,
@ -155,6 +157,119 @@ interface IXMLDocument : IDispatch
[retval, out] IXMLElement **ppElem );
};
[
local,
object,
uuid(2B8DE2FF-8D2D-11d1-B2FC-00C04FD915A9)
]
interface IXMLElement2 : IDispatch
{
[propget, id(DISPID_XMLELEMENT_TAGNAME)]
HRESULT tagName([retval, out] BSTR *p);
[propput, id(DISPID_XMLELEMENT_TAGNAME)]
HRESULT tagName([in] BSTR p);
[propget, id(DISPID_XMLELEMENT_PARENT)]
HRESULT parent([retval, out]IXMLElement2 **ppParent);
[id(DISPID_XMLELEMENT_SETATTRIBUTE)]
HRESULT setAttribute(
[in] BSTR strPropertyName,
[in] VARIANT PropertyValue);
[id(DISPID_XMLELEMENT_GETATTRIBUTE)]
HRESULT getAttribute(
[in] BSTR strPropertyName,
[retval, out] VARIANT *PropertyValue);
[id(DISPID_XMLELEMENT_REMOVEATTRIBUTE)]
HRESULT removeAttribute([in] BSTR strPropertyName);
[propget, id(DISPID_XMLELEMENT_CHILDREN)]
HRESULT children([retval, out] IXMLElementCollection **pp);
[propget, id(DISPID_XMLELEMENT_TYPE)]
HRESULT type([retval, out] long *plType);
[propget, id(DISPID_XMLELEMENT_TEXT)]
HRESULT text([retval, out] BSTR *p);
[propput, id(DISPID_XMLELEMENT_TEXT)]
HRESULT text([in] BSTR p);
[id(DISPID_XMLELEMENT_ADDCHILD)]
HRESULT addChild(
[in] IXMLElement2 *pChildElem,
[retval, out] long lIndex,
[retval, out] long lReserved);
[id(DISPID_XMLELEMENT_REMOVECHILD)]
HRESULT removeChild([in]IXMLElement2 *pChildElem);
[propget, id(DISPID_XMLELEMENT_ATTRIBUTES)]
HRESULT attributes([retval, out] IXMLElementCollection **pp);
};
[
local,
object,
uuid(2B8DE2FE-8D2D-11d1-B2FC-00C04FD915A9)
]
interface IXMLDocument2 : IDispatch
{
[propget, id(DISPID_XMLDOCUMENT_ROOT)]
HRESULT root([retval, out] IXMLElement2 **p);
[propget, id(DISPID_XMLDOCUMENT_FILESIZE)]
HRESULT fileSize([retval, out] BSTR *p);
[propget, id(DISPID_XMLDOCUMENT_FILEMODIFIEDDATE)]
HRESULT fileModifiedDate([retval, out] BSTR *p);
[propget, id(DISPID_XMLDOCUMENT_FILEUPDATEDDATE)]
HRESULT fileUpdatedDate([retval, out] BSTR *p);
[propget, id(DISPID_XMLDOCUMENT_URL)]
HRESULT URL([retval, out] BSTR *p);
[propput, id(DISPID_XMLDOCUMENT_URL)]
HRESULT URL([in] BSTR p);
[propget, id(DISPID_XMLDOCUMENT_MIMETYPE)]
HRESULT mimeType([retval, out] BSTR *p);
[propget, id(DISPID_XMLDOCUMENT_READYSTATE)]
HRESULT readyState([retval, out]long *pl);
[propget, id(DISPID_XMLDOCUMENT_CHARSET)]
HRESULT charset([retval, out]BSTR *p);
[propput, id(DISPID_XMLDOCUMENT_CHARSET)]
HRESULT charset([in]BSTR p);
[propget, id(DISPID_XMLDOCUMENT_VERSION)]
HRESULT version([retval, out]BSTR *p);
[propget, id(DISPID_XMLDOCUMENT_DOCTYPE)]
HRESULT doctype([retval, out]BSTR *p);
[propget, restricted, id(DISPID_XMLDOCUMENT_DTDURL)]
HRESULT dtdURL([retval, out]BSTR *p);
[id(DISPID_XMLDOCUMENT_CREATEELEMENT)]
HRESULT createElement(
[in] VARIANT vType,
[optional, in] VARIANT var,
[retval, out] IXMLElement2 **ppElem);
[propget, id(DISPID_XMLDOCUMENT_ASYNC)]
HRESULT async([retval, out] VARIANT_BOOL *pf);
[propput, id(DISPID_XMLDOCUMENT_ASYNC)]
HRESULT async([in] VARIANT_BOOL f);
};
typedef enum tagXMLEMEM_TYPE {
XMLELEMTYPE_ELEMENT = 0,
XMLELEMTYPE_TEXT = 1,