Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / embedding / browser / activex / src / xml / activexml.idl
blob04e1fe9bf3826d208078f956d6a35648fad71179
1 // activexml.idl : IDL source for activexml.dll
2 //
4 // This file will be processed by the MIDL tool to
5 // produce the type library (activexml.tlb) and marshalling code.
7 #include "msxmldid.h"
9 //import "oaidl.idl";
10 //import "ocidl.idl";
13 uuid(45E5B410-2805-11D3-9425-000000000000),
14 version(1.0),
15 helpstring("Mozilla XML 1.0 Type Library")
17 library MozActiveXMLLib
19 importlib("stdole32.tlb");
20 importlib("stdole2.tlb");
22 typedef enum mozxmlelemTYPE {
23 XMLELEMTYPE_ELEMENT,
24 XMLELEMTYPE_TEXT,
25 XMLELEMTYPE_COMMENT,
26 XMLELEMTYPE_DOCUMENT,
27 XMLELEMTYPE_DTD,
28 XMLELEMTYPE_PI,
29 XMLELEMTYPE_OTHER
30 } XMLELEM_TYPE;
32 interface IXMLElement;
35 object,
36 local,
37 uuid(65725580-9B5D-11d0-9BFE-00C04FC99C8E) // IID_IXMLElementCollection
39 interface IXMLElementCollection : IDispatch
41 [propput, id(DISPID_XMLELEMENTCOLLECTION_LENGTH)] HRESULT length([in] long v);
42 [propget, id(DISPID_XMLELEMENTCOLLECTION_LENGTH)] HRESULT length([retval, out] long * p);
43 [propget, restricted, hidden, id(DISPID_XMLELEMENTCOLLECTION_NEWENUM)] HRESULT _newEnum([retval, out] IUnknown ** ppUnk);
44 [id(DISPID_XMLELEMENTCOLLECTION_ITEM)] HRESULT item([optional, in] VARIANT var1,[optional, in] VARIANT var2,[retval, out] IDispatch ** ppDisp);
48 object,
49 local,
50 uuid(F52E2B61-18A1-11d1-B105-00805F49916B) // IID_IXMLDocument
52 interface IXMLDocument : IDispatch
54 [propget, id(DISPID_XMLDOCUMENT_ROOT)] HRESULT root ([retval, out] IXMLElement * * p);
55 [propget, id(DISPID_XMLDOCUMENT_FILESIZE)] HRESULT fileSize([retval, out] BSTR * p);
56 [propget, id(DISPID_XMLDOCUMENT_FILEMODIFIEDDATE)] HRESULT fileModifiedDate([retval, out] BSTR * p);
57 [propget, id(DISPID_XMLDOCUMENT_FILEUPDATEDDATE)] HRESULT fileUpdatedDate([retval, out] BSTR * p);
58 [propget, id(DISPID_XMLDOCUMENT_URL)] HRESULT URL([retval, out] BSTR * p);
59 [propput, id(DISPID_XMLDOCUMENT_URL)] HRESULT URL([in] BSTR p);
60 [propget, id(DISPID_XMLDOCUMENT_MIMETYPE)] HRESULT mimeType([retval, out] BSTR * p);
61 [propget, id(DISPID_XMLDOCUMENT_READYSTATE)] HRESULT readyState([retval, out]long *pl);
62 [propget, id(DISPID_XMLDOCUMENT_CHARSET)] HRESULT charset([retval, out]BSTR *p);
63 [propput, id(DISPID_XMLDOCUMENT_CHARSET)] HRESULT charset([in]BSTR p);
64 [propget, id(DISPID_XMLDOCUMENT_VERSION)] HRESULT version([retval, out]BSTR *p);
65 [propget, id(DISPID_XMLDOCUMENT_DOCTYPE)] HRESULT doctype([retval, out]BSTR *p);
66 [propget, id(DISPID_XMLDOCUMENT_DTDURL)] HRESULT dtdURL([retval, out]BSTR *p);
67 [id(DISPID_XMLDOCUMENT_CREATEELEMENT)] HRESULT createElement([in] VARIANT vType, [optional, in] VARIANT var1, [retval, out] IXMLElement * * ppElem);
72 object,
73 local,
74 uuid(3F7F31AC-E15F-11d0-9C25-00C04FC99C8E) // IID_IXMLElement
76 interface IXMLElement : IDispatch
78 [propget, id(DISPID_XMLELEMENT_TAGNAME)] HRESULT tagName([retval, out] BSTR * p);
79 [propput, id(DISPID_XMLELEMENT_TAGNAME)] HRESULT tagName([in] BSTR p);
80 [propget, id(DISPID_XMLELEMENT_PARENT)] HRESULT parent([retval, out]IXMLElement **ppParent);
81 [id(DISPID_XMLELEMENT_SETATTRIBUTE)] HRESULT setAttribute([in] BSTR strPropertyName,[in] VARIANT PropertyValue);
82 [id(DISPID_XMLELEMENT_GETATTRIBUTE)] HRESULT getAttribute([in] BSTR strPropertyName,[retval, out] VARIANT* PropertyValue);
83 [id(DISPID_XMLELEMENT_REMOVEATTRIBUTE)] HRESULT removeAttribute([in] BSTR strPropertyName);
84 [propget, id(DISPID_XMLELEMENT_CHILDREN)] HRESULT children([retval, out] IXMLElementCollection * * pp);
85 [propget, id(DISPID_XMLELEMENT_TYPE)] HRESULT type([retval, out] long *plType);
86 [propget, id(DISPID_XMLELEMENT_TEXT)] HRESULT text([retval, out] BSTR *p);
87 [propput, id(DISPID_XMLELEMENT_TEXT)] HRESULT text([in] BSTR p);
88 [id(DISPID_XMLELEMENT_ADDCHILD)] HRESULT addChild([in] IXMLElement *pChildElem, long lIndex, long lReserved); // lReserved must be -1
89 [id(DISPID_XMLELEMENT_REMOVECHILD)] HRESULT removeChild([in]IXMLElement *pChildElem);
92 typedef struct __xml_error {
93 unsigned _nLine; // line number
94 BSTR _pchBuf; // current input buffer
95 unsigned _cchBuf; // number of chars in buffer
96 unsigned _ich; // index of the char when error occurred
97 BSTR _pszFound; // token found
98 BSTR _pszExpected; // token expected
99 DWORD _reserved1; // reserved
100 DWORD _reserved2; // reserved
101 } XML_ERROR;
104 object,
105 local,
106 uuid(948C5AD3-C58D-11d0-9C0B-00C04FC99C8E) // IID_IXMLError
109 interface IXMLError : IUnknown
111 HRESULT GetErrorInfo(XML_ERROR *pErrorReturn);
117 uuid(45E5B41D-2805-11D3-9425-000000000000),
118 helpstring("MozXMLDocument Class")
120 coclass MozXMLDocument
122 interface IDispatch;
123 [default] interface IXMLDocument;
126 uuid(45E5B420-2805-11D3-9425-000000000000),
127 helpstring("MozXMLElement Class")
129 coclass MozXMLElement
131 interface IDispatch;
132 [default] interface IXMLElement;
135 uuid(45E5B422-2805-11D3-9425-000000000000),
136 helpstring("MozXMLElementCollection Class")
138 coclass MozXMLElementCollection
140 interface IDispatch;
141 [default] interface IXMLElementCollection;