1 | /*
|
---|
2 | * Copyright (C) 2005 Mike McCormack
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #include <xmldomdid.h>
|
---|
29 | #include <idispids.h>
|
---|
30 |
|
---|
31 | import "ocidl.idl";
|
---|
32 |
|
---|
33 | interface IXMLDOMImplementation;
|
---|
34 | interface IXMLDOMNode;
|
---|
35 | interface IXMLDOMDocumentFragment;
|
---|
36 | interface IXMLDOMDocument;
|
---|
37 | interface IXMLDOMNodeList;
|
---|
38 | interface IXMLDOMNamedNodeMap;
|
---|
39 | interface IXMLDOMCharacterData;
|
---|
40 | interface IXMLDOMAttribute;
|
---|
41 | interface IXMLDOMElement;
|
---|
42 | interface IXMLDOMText;
|
---|
43 | interface IXMLDOMComment;
|
---|
44 | interface IXMLDOMProcessingInstruction;
|
---|
45 | interface IXMLDOMCDATASection;
|
---|
46 | interface IXMLDOMDocumentType;
|
---|
47 | interface IXMLDOMNotation;
|
---|
48 | interface IXMLDOMEntity;
|
---|
49 | interface IXMLDOMEntityReference;
|
---|
50 | interface IXMLDOMParseError;
|
---|
51 | interface IXTLRuntime;
|
---|
52 |
|
---|
53 | typedef enum tagDOMNodeType {
|
---|
54 | NODE_INVALID,
|
---|
55 | NODE_ELEMENT,
|
---|
56 | NODE_ATTRIBUTE,
|
---|
57 | NODE_TEXT,
|
---|
58 | NODE_CDATA_SECTION,
|
---|
59 | NODE_ENTITY_REFERENCE,
|
---|
60 | NODE_ENTITY,
|
---|
61 | NODE_PROCESSING_INSTRUCTION,
|
---|
62 | NODE_COMMENT,
|
---|
63 | NODE_DOCUMENT,
|
---|
64 | NODE_DOCUMENT_TYPE,
|
---|
65 | NODE_DOCUMENT_FRAGMENT,
|
---|
66 | NODE_NOTATION
|
---|
67 | } DOMNodeType;
|
---|
68 |
|
---|
69 | [
|
---|
70 | local,
|
---|
71 | object,
|
---|
72 | odl,
|
---|
73 | dual,
|
---|
74 | oleautomation,
|
---|
75 | /*nonextensible,*/
|
---|
76 | uuid(2933bf80-7b36-11d2-b20e-00c04f983e60),
|
---|
77 | pointer_default(unique)
|
---|
78 | ]
|
---|
79 | interface IXMLDOMNode : IDispatch
|
---|
80 | {
|
---|
81 | [propget, id(DISPID_DOM_NODE_NODENAME)]
|
---|
82 | HRESULT nodeName( [out,retval] BSTR *name );
|
---|
83 |
|
---|
84 | [propget, id(DISPID_DOM_NODE_NODEVALUE)]
|
---|
85 | HRESULT nodeValue( [out,retval] VARIANT *value );
|
---|
86 |
|
---|
87 | [propput, id(DISPID_DOM_NODE_NODEVALUE)]
|
---|
88 | HRESULT nodeValue( [in] VARIANT value );
|
---|
89 |
|
---|
90 | [propget, id(DISPID_DOM_NODE_NODETYPE)]
|
---|
91 | HRESULT nodeType( [out,retval] DOMNodeType *type );
|
---|
92 |
|
---|
93 | [propget, id(DISPID_DOM_NODE_PARENTNODE)]
|
---|
94 | HRESULT parentNode( [out,retval] IXMLDOMNode **parent );
|
---|
95 |
|
---|
96 | [propget, id(DISPID_DOM_NODE_CHILDNODES)]
|
---|
97 | HRESULT childNodes( [out,retval] IXMLDOMNodeList **childList );
|
---|
98 |
|
---|
99 | [propget, id(DISPID_DOM_NODE_FIRSTCHILD)]
|
---|
100 | HRESULT firstChild( [out,retval] IXMLDOMNode **firstChild );
|
---|
101 |
|
---|
102 | [propget, id(DISPID_DOM_NODE_LASTCHILD)]
|
---|
103 | HRESULT lastChild( [out,retval] IXMLDOMNode **lastChild );
|
---|
104 |
|
---|
105 | [propget, id(DISPID_DOM_NODE_PREVIOUSSIBLING)]
|
---|
106 | HRESULT previousSibling( [out,retval] IXMLDOMNode **previousSibling );
|
---|
107 |
|
---|
108 | [propget, id(DISPID_DOM_NODE_NEXTSIBLING)]
|
---|
109 | HRESULT nextSibling( [out,retval] IXMLDOMNode **nextSibling );
|
---|
110 |
|
---|
111 | [propget, id(DISPID_DOM_NODE_ATTRIBUTES)]
|
---|
112 | HRESULT attributes( [out,retval] IXMLDOMNamedNodeMap **attributeMap );
|
---|
113 |
|
---|
114 | [id(DISPID_DOM_NODE_INSERTBEFORE)]
|
---|
115 | HRESULT insertBefore( [in] IXMLDOMNode * newChild,
|
---|
116 | [in] VARIANT refChild,
|
---|
117 | [out,retval] IXMLDOMNode **outNewChild );
|
---|
118 |
|
---|
119 | [id(DISPID_DOM_NODE_REPLACECHILD)]
|
---|
120 | HRESULT replaceChild( [in] IXMLDOMNode *newChild,
|
---|
121 | [in] IXMLDOMNode *oldChild,
|
---|
122 | [out,retval] IXMLDOMNode **outOldChild );
|
---|
123 |
|
---|
124 | [id(DISPID_DOM_NODE_REMOVECHILD)]
|
---|
125 | HRESULT removeChild( [in] IXMLDOMNode *childNode,
|
---|
126 | [out,retval] IXMLDOMNode **oldChild );
|
---|
127 |
|
---|
128 | [id(DISPID_DOM_NODE_APPENDCHILD)]
|
---|
129 | HRESULT appendChild( [in] IXMLDOMNode *newChild,
|
---|
130 | [out,retval] IXMLDOMNode **outNewChild );
|
---|
131 |
|
---|
132 | [id(DISPID_DOM_NODE_HASCHILDNODES)]
|
---|
133 | HRESULT hasChildNodes( [out,retval] VARIANT_BOOL *hasChild );
|
---|
134 |
|
---|
135 | [propget, id(DISPID_DOM_NODE_OWNERDOC)]
|
---|
136 | HRESULT ownerDocument( [out,retval] IXMLDOMDocument **DOMDocument );
|
---|
137 |
|
---|
138 | [id(DISPID_DOM_NODE_CLONENODE)]
|
---|
139 | HRESULT cloneNode( [in] VARIANT_BOOL deep,
|
---|
140 | [out,retval] IXMLDOMNode **cloneRoot );
|
---|
141 |
|
---|
142 | [propget, id(DISPID_XMLDOM_NODE_STRINGTYPE)]
|
---|
143 | HRESULT nodeTypeString( [out,retval] BSTR *nodeType );
|
---|
144 |
|
---|
145 | [propget, id(DISPID_XMLDOM_NODE_TEXT)]
|
---|
146 | HRESULT text( [out,retval] BSTR *text );
|
---|
147 |
|
---|
148 | [propput, id(DISPID_XMLDOM_NODE_TEXT)]
|
---|
149 | HRESULT text( [in] BSTR text );
|
---|
150 |
|
---|
151 | [propget, id(DISPID_XMLDOM_NODE_SPECIFIED)]
|
---|
152 | HRESULT specified( [out,retval] VARIANT_BOOL *isSpecified );
|
---|
153 |
|
---|
154 | [propget, id(DISPID_XMLDOM_NODE_DEFINITION)]
|
---|
155 | HRESULT definition( [out,retval] IXMLDOMNode **definitionNode );
|
---|
156 |
|
---|
157 | [propget, id(DISPID_XMLDOM_NODE_NODETYPEDVALUE)]
|
---|
158 | HRESULT nodeTypedValue( [out,retval] VARIANT *typedValue );
|
---|
159 |
|
---|
160 | [propput, id(DISPID_XMLDOM_NODE_NODETYPEDVALUE)]
|
---|
161 | HRESULT nodeTypedValue( [in] VARIANT typedValue );
|
---|
162 |
|
---|
163 | [propget, id(DISPID_XMLDOM_NODE_DATATYPE)]
|
---|
164 | HRESULT dataType( [out,retval] VARIANT *dataTypeName );
|
---|
165 |
|
---|
166 | [propput, id(DISPID_XMLDOM_NODE_DATATYPE)]
|
---|
167 | HRESULT dataType( [in] BSTR dataTypeName );
|
---|
168 |
|
---|
169 | [propget, id(DISPID_XMLDOM_NODE_XML)]
|
---|
170 | HRESULT xml( [out,retval] BSTR *xmlString );
|
---|
171 |
|
---|
172 | [id(DISPID_XMLDOM_NODE_TRANSFORMNODE)]
|
---|
173 | HRESULT transformNode( [in] IXMLDOMNode *styleSheet,
|
---|
174 | [out,retval] BSTR *xmlString );
|
---|
175 |
|
---|
176 | [id(DISPID_XMLDOM_NODE_SELECTNODES)]
|
---|
177 | HRESULT selectNodes( [in] BSTR queryString,
|
---|
178 | [out,retval] IXMLDOMNodeList **resultList );
|
---|
179 |
|
---|
180 | [id(DISPID_XMLDOM_NODE_SELECTSINGLENODE)]
|
---|
181 | HRESULT selectSingleNode( [in] BSTR queryString,
|
---|
182 | [out,retval] IXMLDOMNode **resultNode );
|
---|
183 |
|
---|
184 | [propget, id(DISPID_XMLDOM_NODE_PARSED)]
|
---|
185 | HRESULT parsed( [out,retval] VARIANT_BOOL *isParsed );
|
---|
186 |
|
---|
187 | [propget, id(DISPID_XMLDOM_NODE_NAMESPACE)]
|
---|
188 | HRESULT namespaceURI( [out,retval] BSTR *namespaceURI );
|
---|
189 |
|
---|
190 | [propget, id(DISPID_XMLDOM_NODE_PREFIX)]
|
---|
191 | HRESULT prefix( [out,retval] BSTR *prefixString );
|
---|
192 |
|
---|
193 | [propget, id(DISPID_XMLDOM_NODE_BASENAME)]
|
---|
194 | HRESULT baseName( [out,retval] BSTR *nameString );
|
---|
195 |
|
---|
196 | [id(DISPID_XMLDOM_NODE_TRANSFORMNODETOOBJECT)]
|
---|
197 | HRESULT transformNodeToObject( [in] IXMLDOMNode *stylesheet,
|
---|
198 | [in] VARIANT outputObject );
|
---|
199 | }
|
---|
200 |
|
---|
201 | [
|
---|
202 | local,
|
---|
203 | object,
|
---|
204 | odl,
|
---|
205 | dual,
|
---|
206 | /*nonextensible,*/
|
---|
207 | oleautomation,
|
---|
208 | uuid(2933bf81-7b36-11d2-b20e-00c04f983e60),
|
---|
209 | pointer_default(unique)
|
---|
210 | ]
|
---|
211 | interface IXMLDOMDocument : IXMLDOMNode
|
---|
212 | {
|
---|
213 | [propget, id(DISPID_DOM_DOCUMENT_DOCTYPE)]
|
---|
214 | HRESULT doctype( [out,retval] IXMLDOMDocumentType **documentType );
|
---|
215 |
|
---|
216 | [propget, id(DISPID_DOM_DOCUMENT_IMPLEMENTATION)]
|
---|
217 | HRESULT implementation( [out,retval] IXMLDOMImplementation **impl );
|
---|
218 |
|
---|
219 | [propget, id(DISPID_DOM_DOCUMENT_DOCUMENTELEMENT)]
|
---|
220 | HRESULT documentElement( [out,retval] IXMLDOMElement **DOMElement );
|
---|
221 |
|
---|
222 | [propputref, id(DISPID_DOM_DOCUMENT_DOCUMENTELEMENT)]
|
---|
223 | HRESULT documentElement( [in] IXMLDOMElement *DOMElement );
|
---|
224 |
|
---|
225 | [id(DISPID_DOM_DOCUMENT_CREATEELEMENT)]
|
---|
226 | HRESULT createElement( [in] BSTR tagname,
|
---|
227 | [out,retval] IXMLDOMElement **element );
|
---|
228 |
|
---|
229 | [id(DISPID_DOM_DOCUMENT_CREATEDOCUMENTFRAGMENT)]
|
---|
230 | HRESULT createDocumentFragment( [out,retval] IXMLDOMDocumentFragment **docFrag );
|
---|
231 |
|
---|
232 | [id(DISPID_DOM_DOCUMENT_CREATETEXTNODE)]
|
---|
233 | HRESULT createTextNode( [in] BSTR data,
|
---|
234 | [out,retval] IXMLDOMText **text );
|
---|
235 |
|
---|
236 | [id(DISPID_DOM_DOCUMENT_CREATECOMMENT)]
|
---|
237 | HRESULT createComment( [in] BSTR data,
|
---|
238 | [out,retval] IXMLDOMComment **comment );
|
---|
239 |
|
---|
240 | [id(DISPID_DOM_DOCUMENT_CREATECDATASECTION)]
|
---|
241 | HRESULT createCDATASection( [in] BSTR data,
|
---|
242 | [out,retval] IXMLDOMCDATASection **cdata );
|
---|
243 |
|
---|
244 | [id(DISPID_DOM_DOCUMENT_CREATEPROCESSINGINSTRUCTION)]
|
---|
245 | HRESULT createProcessingInstruction( [in] BSTR target,
|
---|
246 | [in] BSTR data,
|
---|
247 | [out,retval] IXMLDOMProcessingInstruction **pi );
|
---|
248 |
|
---|
249 | [id(DISPID_DOM_DOCUMENT_CREATEATTRIBUTE)]
|
---|
250 | HRESULT createAttribute( [in] BSTR name,
|
---|
251 | [out,retval] IXMLDOMAttribute **attribute );
|
---|
252 |
|
---|
253 | [id(DISPID_DOM_DOCUMENT_CREATEENTITYREFERENCE)]
|
---|
254 | HRESULT createEntityReference( [in] BSTR name,
|
---|
255 | [out,retval] IXMLDOMEntityReference **entityRef );
|
---|
256 |
|
---|
257 | [id(DISPID_DOM_DOCUMENT_GETELEMENTSBYTAGNAME)]
|
---|
258 | HRESULT getElementsByTagName( [in] BSTR tagName,
|
---|
259 | [out,retval] IXMLDOMNodeList **resultList );
|
---|
260 |
|
---|
261 | [id(DISPID_XMLDOM_DOCUMENT_CREATENODE)]
|
---|
262 | HRESULT createNode( [in] VARIANT Type,
|
---|
263 | [in] BSTR name,
|
---|
264 | [in] BSTR namespaceURI,
|
---|
265 | [out,retval] IXMLDOMNode **node );
|
---|
266 |
|
---|
267 | [id(DISPID_XMLDOM_DOCUMENT_NODEFROMID)]
|
---|
268 | HRESULT nodeFromID( [in] BSTR idString,
|
---|
269 | [out,retval] IXMLDOMNode **node );
|
---|
270 |
|
---|
271 | [id(DISPID_XMLDOM_DOCUMENT_LOAD)]
|
---|
272 | HRESULT load( [in] VARIANT xmlSource,
|
---|
273 | [out,retval] VARIANT_BOOL *isSuccessful );
|
---|
274 |
|
---|
275 | [propget, id(DISPID_READYSTATE)]
|
---|
276 | HRESULT readyState( [out,retval] LONG *value );
|
---|
277 |
|
---|
278 | [propget, id(DISPID_XMLDOM_DOCUMENT_PARSEERROR)]
|
---|
279 | HRESULT parseError( [out,retval] IXMLDOMParseError **errorObj );
|
---|
280 |
|
---|
281 | [propget, id(DISPID_XMLDOM_DOCUMENT_URL)]
|
---|
282 | HRESULT url( [out,retval] BSTR *urlString );
|
---|
283 |
|
---|
284 | /* FIXME: these is meant to be async, but widl parses that as a keyword */
|
---|
285 | [propget, id(DISPID_XMLDOM_DOCUMENT_ASYNC)]
|
---|
286 | HRESULT async( [out,retval] VARIANT_BOOL *isAsync );
|
---|
287 |
|
---|
288 | [propput, id(DISPID_XMLDOM_DOCUMENT_ASYNC)]
|
---|
289 | HRESULT async( [in] VARIANT_BOOL isAsync );
|
---|
290 |
|
---|
291 | [id(DISPID_XMLDOM_DOCUMENT_ABORT)]
|
---|
292 | HRESULT abort();
|
---|
293 |
|
---|
294 | [id(DISPID_XMLDOM_DOCUMENT_LOADXML)]
|
---|
295 | HRESULT loadXML( [in] BSTR bstrXML,
|
---|
296 | [out,retval] VARIANT_BOOL *isSuccessful );
|
---|
297 |
|
---|
298 | [id(DISPID_XMLDOM_DOCUMENT_SAVE)]
|
---|
299 | HRESULT save( [in] VARIANT destination );
|
---|
300 |
|
---|
301 | [propget, id(DISPID_XMLDOM_DOCUMENT_VALIDATE)]
|
---|
302 | HRESULT validateOnParse( [out,retval] VARIANT_BOOL *isValidating );
|
---|
303 |
|
---|
304 | [propput, id(DISPID_XMLDOM_DOCUMENT_VALIDATE)]
|
---|
305 | HRESULT validateOnParse( [in] VARIANT_BOOL isValidating );
|
---|
306 |
|
---|
307 | [propget, id(DISPID_XMLDOM_DOCUMENT_RESOLVENAMESPACE)]
|
---|
308 | HRESULT resolveExternals( [out,retval] VARIANT_BOOL *isResolving );
|
---|
309 |
|
---|
310 | [propput, id(DISPID_XMLDOM_DOCUMENT_RESOLVENAMESPACE)]
|
---|
311 | HRESULT resolveExternals( [in] VARIANT_BOOL isValidating );
|
---|
312 |
|
---|
313 | [propget, id(DISPID_XMLDOM_DOCUMENT_PRESERVEWHITESPACE)]
|
---|
314 | HRESULT preserveWhiteSpace( [out,retval] VARIANT_BOOL *isPreserving );
|
---|
315 |
|
---|
316 | [propput, id(DISPID_XMLDOM_DOCUMENT_PRESERVEWHITESPACE)]
|
---|
317 | HRESULT preserveWhiteSpace( [in] VARIANT_BOOL isPreserving );
|
---|
318 |
|
---|
319 | [propput, id(DISPID_XMLDOM_DOCUMENT_ONREADYSTATECHANGE)]
|
---|
320 | HRESULT onreadystatechange( [in] VARIANT readystatechangeSink );
|
---|
321 |
|
---|
322 | [propput, id(DISPID_XMLDOM_DOCUMENT_ONDATAAVAILABLE)]
|
---|
323 | HRESULT ondataavailable( [in] VARIANT ondataavailableSink );
|
---|
324 |
|
---|
325 | [propput, id(DISPID_XMLDOM_DOCUMENT_ONTRANSFORMNODE)]
|
---|
326 | HRESULT ontransformnode( [in] VARIANT ontransformnodeSink );
|
---|
327 | }
|
---|
328 |
|
---|
329 | [
|
---|
330 | local,
|
---|
331 | object,
|
---|
332 | odl,
|
---|
333 | dual,
|
---|
334 | /*nonextensible,*/
|
---|
335 | oleautomation,
|
---|
336 | uuid(2933bf82-7b36-11d2-b20e-00c04f983e60),
|
---|
337 | pointer_default(unique)
|
---|
338 | ]
|
---|
339 | interface IXMLDOMNodeList : IDispatch
|
---|
340 | {
|
---|
341 | [propget, id(DISPID_VALUE)]
|
---|
342 | HRESULT item( [in] LONG index,
|
---|
343 | [out,retval] IXMLDOMNode **listItem );
|
---|
344 |
|
---|
345 | [propget, id(DISPID_DOM_NODELIST_LENGTH)]
|
---|
346 | HRESULT length( [out,retval] LONG *listLength );
|
---|
347 |
|
---|
348 | [id(DISPID_XMLDOM_NODELIST_NEXTNODE)]
|
---|
349 | HRESULT nextNode( [out,retval] IXMLDOMNode **nextItem );
|
---|
350 |
|
---|
351 | [id(DISPID_XMLDOM_NODELIST_RESET)]
|
---|
352 | HRESULT reset();
|
---|
353 |
|
---|
354 | [id(DISPID_NEWENUM)]
|
---|
355 | HRESULT _newEnum( [out,retval] IUnknown **ppUnk );
|
---|
356 | }
|
---|
357 |
|
---|
358 | [
|
---|
359 | local,
|
---|
360 | object,
|
---|
361 | odl,
|
---|
362 | dual,
|
---|
363 | /*nonextensible,*/
|
---|
364 | oleautomation,
|
---|
365 | uuid(2933bf83-7b36-11d2-b20e-00c04f983e60),
|
---|
366 | pointer_default(unique)
|
---|
367 | ]
|
---|
368 | interface IXMLDOMNamedNodeMap : IDispatch
|
---|
369 | {
|
---|
370 | [id(DISPID_DOM_NAMEDNODEMAP_GETNAMEDITEM)]
|
---|
371 | HRESULT getNamedItem( [in] BSTR name,
|
---|
372 | [out,retval] IXMLDOMNode **namedItem );
|
---|
373 |
|
---|
374 | [id(DISPID_DOM_NAMEDNODEMAP_SETNAMEDITEM)]
|
---|
375 | HRESULT setNamedItem( [in] IXMLDOMNode *newItem,
|
---|
376 | [out,retval] IXMLDOMNode **namedItem );
|
---|
377 |
|
---|
378 | [id(DISPID_DOM_NAMEDNODEMAP_REMOVENAMEDITEM)]
|
---|
379 | HRESULT removeNamedItem( [in] BSTR name,
|
---|
380 | [out,retval] IXMLDOMNode **namedItem );
|
---|
381 |
|
---|
382 | [propget, id(DISPID_VALUE)]
|
---|
383 | HRESULT item( [in] LONG index,
|
---|
384 | [out,retval] IXMLDOMNode **listItem );
|
---|
385 |
|
---|
386 | [propget, id(DISPID_DOM_NODELIST_LENGTH)]
|
---|
387 | HRESULT length( [out,retval] LONG *listLength );
|
---|
388 |
|
---|
389 | [id(DISPID_XMLDOM_NAMEDNODEMAP_GETQUALIFIEDITEM)]
|
---|
390 | HRESULT getQualifiedItem( [in] BSTR baseName,
|
---|
391 | [in] BSTR namespaceURI,
|
---|
392 | [out,retval] IXMLDOMNode **qualifiedItem );
|
---|
393 |
|
---|
394 | [id(DISPID_XMLDOM_NAMEDNODEMAP_REMOVEQUALIFIEDITEM)]
|
---|
395 | HRESULT removeQualifiedItem( [in] BSTR baseName,
|
---|
396 | [in] BSTR namespaceURI,
|
---|
397 | [out,retval] IXMLDOMNode **qualifiedItem );
|
---|
398 |
|
---|
399 | [id(DISPID_XMLDOM_NAMEDNODEMAP_NEXTNODE)]
|
---|
400 | HRESULT nextNode( [out,retval] IXMLDOMNode **nextItem );
|
---|
401 |
|
---|
402 | [id(DISPID_XMLDOM_NAMEDNODEMAP_RESET)]
|
---|
403 | HRESULT reset();
|
---|
404 |
|
---|
405 | [id(DISPID_NEWENUM)]
|
---|
406 | HRESULT _newEnum( [out,retval] IUnknown **ppUnk );
|
---|
407 | }
|
---|
408 |
|
---|
409 | [
|
---|
410 | local,
|
---|
411 | object,
|
---|
412 | odl,
|
---|
413 | dual,
|
---|
414 | /*nonextensible,*/
|
---|
415 | oleautomation,
|
---|
416 | uuid(3efaa413-272f-11d2-836f-0000f87a7782),
|
---|
417 | pointer_default(unique)
|
---|
418 | ]
|
---|
419 | interface IXMLDOMDocumentFragment : IXMLDOMNode
|
---|
420 | {
|
---|
421 | /* empty */
|
---|
422 | }
|
---|
423 |
|
---|
424 | [
|
---|
425 | local,
|
---|
426 | object,
|
---|
427 | odl,
|
---|
428 | dual,
|
---|
429 | /*nonextensible,*/
|
---|
430 | oleautomation,
|
---|
431 | uuid(2933bf84-7b36-11d2-b20e-00c04f983e60),
|
---|
432 | pointer_default(unique)
|
---|
433 | ]
|
---|
434 | interface IXMLDOMCharacterData : IXMLDOMNode
|
---|
435 | {
|
---|
436 | [propget, id(DISPID_DOM_DATA_DATA)]
|
---|
437 | HRESULT data( [out,retval] BSTR *data );
|
---|
438 |
|
---|
439 | [propput, id(DISPID_DOM_DATA_DATA)]
|
---|
440 | HRESULT data( [in] BSTR data );
|
---|
441 |
|
---|
442 | [propget, id(DISPID_DOM_DATA_LENGTH)]
|
---|
443 | HRESULT length( [out,retval] LONG *dataLength );
|
---|
444 |
|
---|
445 | [id(DISPID_DOM_DATA_SUBSTRING)]
|
---|
446 | HRESULT substringData( [in] LONG offset,
|
---|
447 | [in] LONG count,
|
---|
448 | [out,retval] BSTR *data );
|
---|
449 |
|
---|
450 | [id(DISPID_DOM_DATA_APPEND)]
|
---|
451 | HRESULT appendData( [in] BSTR data );
|
---|
452 |
|
---|
453 | [id(DISPID_DOM_DATA_INSERT)]
|
---|
454 | HRESULT insertData( [in] LONG offset,
|
---|
455 | [in] BSTR data );
|
---|
456 |
|
---|
457 | [id(DISPID_DOM_DATA_DELETE)]
|
---|
458 | HRESULT deleteData( [in] LONG offset,
|
---|
459 | [in] LONG count );
|
---|
460 |
|
---|
461 | [id(DISPID_DOM_DATA_REPLACE)]
|
---|
462 | HRESULT replaceData( [in] LONG offset,
|
---|
463 | [in] LONG count,
|
---|
464 | [in] BSTR data );
|
---|
465 | }
|
---|
466 |
|
---|
467 | [
|
---|
468 | local,
|
---|
469 | object,
|
---|
470 | odl,
|
---|
471 | dual,
|
---|
472 | /*nonextensible,*/
|
---|
473 | oleautomation,
|
---|
474 | uuid(2933bf85-7b36-11d2-b20e-00c04f983e60),
|
---|
475 | pointer_default(unique)
|
---|
476 | ]
|
---|
477 | interface IXMLDOMAttribute : IXMLDOMNode
|
---|
478 | {
|
---|
479 | [propget,id(DISPID_DOM_ATTRIBUTE_GETNAME)]
|
---|
480 | HRESULT name( [out,retval] BSTR *attributeName );
|
---|
481 |
|
---|
482 | [propget,id(DISPID_DOM_ATTRIBUTE_VALUE)]
|
---|
483 | HRESULT value( [out,retval] VARIANT *attributeValue );
|
---|
484 |
|
---|
485 | [propput,id(DISPID_DOM_ATTRIBUTE_VALUE)]
|
---|
486 | HRESULT value( [in] VARIANT attributeValue );
|
---|
487 | }
|
---|
488 |
|
---|
489 | [
|
---|
490 | local,
|
---|
491 | object,
|
---|
492 | odl,
|
---|
493 | dual,
|
---|
494 | /*nonextensible,*/
|
---|
495 | oleautomation,
|
---|
496 | uuid(2933bf86-7b36-11d2-b20e-00c04f983e60),
|
---|
497 | pointer_default(unique)
|
---|
498 | ]
|
---|
499 | interface IXMLDOMElement : IXMLDOMNode
|
---|
500 | {
|
---|
501 | [propget, id(DISPID_DOM_ELEMENT_GETTAGNAME)]
|
---|
502 | HRESULT tagName( [out,retval] BSTR *tagName );
|
---|
503 |
|
---|
504 | [id(DISPID_DOM_ELEMENT_GETATTRIBUTE)]
|
---|
505 | HRESULT getAttribute( [in] BSTR name,
|
---|
506 | [out,retval] VARIANT * value );
|
---|
507 |
|
---|
508 | [id(DISPID_DOM_ELEMENT_SETATTRIBUTE)]
|
---|
509 | HRESULT setAttribute( [in] BSTR name,
|
---|
510 | [in] VARIANT value );
|
---|
511 |
|
---|
512 | [id(DISPID_DOM_ELEMENT_REMOVEATTRIBUTE)]
|
---|
513 | HRESULT removeAttribute( [in] BSTR name );
|
---|
514 |
|
---|
515 | [id(DISPID_DOM_ELEMENT_GETATTRIBUTENODE)]
|
---|
516 | HRESULT getAttributeNode( [in] BSTR name,
|
---|
517 | [out, retval] IXMLDOMAttribute ** attributeNode );
|
---|
518 |
|
---|
519 | [id(DISPID_DOM_ELEMENT_SETATTRIBUTENODE)]
|
---|
520 | HRESULT setAttributeNode( [in] IXMLDOMAttribute *DOMAttribute,
|
---|
521 | [out, retval] IXMLDOMAttribute ** attributeNode );
|
---|
522 |
|
---|
523 | [id(DISPID_DOM_ELEMENT_REMOVEATTRIBUTENODE)]
|
---|
524 | HRESULT removeAttributeNode( [in] IXMLDOMAttribute *DOMAttribute,
|
---|
525 | [out, retval] IXMLDOMAttribute ** attributeNode );
|
---|
526 |
|
---|
527 | [id(DISPID_DOM_ELEMENT_GETELEMENTSBYTAGNAME)]
|
---|
528 | HRESULT getElementsByTagName( [in] BSTR tagName,
|
---|
529 | [out, retval] IXMLDOMNodeList ** resultList );
|
---|
530 |
|
---|
531 | [id(DISPID_DOM_ELEMENT_NORMALIZE)]
|
---|
532 | HRESULT normalize();
|
---|
533 | }
|
---|
534 |
|
---|
535 | [
|
---|
536 | local,
|
---|
537 | object,
|
---|
538 | odl,
|
---|
539 | dual,
|
---|
540 | /*nonextensible,*/
|
---|
541 | oleautomation,
|
---|
542 | uuid(2933bf87-7b36-11d2-b20e-00c04f983e60),
|
---|
543 | pointer_default(unique)
|
---|
544 | ]
|
---|
545 | interface IXMLDOMText : IXMLDOMCharacterData
|
---|
546 | {
|
---|
547 | [id(DISPID_DOM_TEXT_SPLITTEXT)]
|
---|
548 | HRESULT splitText( [in] LONG offset,
|
---|
549 | [out,retval] IXMLDOMText **rightHandTextNode );
|
---|
550 | }
|
---|
551 |
|
---|
552 | [
|
---|
553 | local,
|
---|
554 | object,
|
---|
555 | odl,
|
---|
556 | dual,
|
---|
557 | /*nonextensible,*/
|
---|
558 | oleautomation,
|
---|
559 | uuid(2933bf88-7b36-11d2-b20e-00c04f983e60),
|
---|
560 | pointer_default(unique)
|
---|
561 | ]
|
---|
562 | interface IXMLDOMComment : IXMLDOMCharacterData
|
---|
563 | {
|
---|
564 | /* empty */
|
---|
565 | }
|
---|
566 |
|
---|
567 | [
|
---|
568 | local,
|
---|
569 | object,
|
---|
570 | odl,
|
---|
571 | dual,
|
---|
572 | /*nonextensible,*/
|
---|
573 | oleautomation,
|
---|
574 | uuid(2933bf89-7b36-11d2-b20e-00c04f983e60),
|
---|
575 | pointer_default(unique)
|
---|
576 | ]
|
---|
577 | interface IXMLDOMProcessingInstruction : IXMLDOMNode
|
---|
578 | {
|
---|
579 | [propget, id(DISPID_DOM_PI_TARGET)]
|
---|
580 | HRESULT target( [out, retval] BSTR *name );
|
---|
581 |
|
---|
582 | [propget, id(DISPID_DOM_PI_DATA)]
|
---|
583 | HRESULT data( [out, retval] BSTR *value );
|
---|
584 |
|
---|
585 | [propput, id(DISPID_DOM_PI_DATA)]
|
---|
586 | HRESULT data( [in] BSTR value );
|
---|
587 | }
|
---|
588 |
|
---|
589 | [
|
---|
590 | local,
|
---|
591 | object,
|
---|
592 | odl,
|
---|
593 | dual,
|
---|
594 | /*nonextensible,*/
|
---|
595 | oleautomation,
|
---|
596 | uuid(2933bf8a-7b36-11d2-b20e-00c04f983e60),
|
---|
597 | pointer_default(unique)
|
---|
598 | ]
|
---|
599 | interface IXMLDOMCDATASection : IXMLDOMText
|
---|
600 | {
|
---|
601 | /* empty */
|
---|
602 | }
|
---|
603 |
|
---|
604 | [
|
---|
605 | local,
|
---|
606 | object,
|
---|
607 | odl,
|
---|
608 | dual,
|
---|
609 | /*nonextensible,*/
|
---|
610 | oleautomation,
|
---|
611 | uuid(2933bf8b-7b36-11d2-b20e-00c04f983e60),
|
---|
612 | pointer_default(unique)
|
---|
613 | ]
|
---|
614 | interface IXMLDOMDocumentType : IXMLDOMNode
|
---|
615 | {
|
---|
616 | [propget, id(DISPID_DOM_DOCUMENTTYPE_NAME)]
|
---|
617 | HRESULT name( [out,retval] BSTR *rootName );
|
---|
618 |
|
---|
619 | [propget, id(DISPID_DOM_DOCUMENTTYPE_ENTITIES)]
|
---|
620 | HRESULT entities( [out,retval] IXMLDOMNamedNodeMap **entityMap );
|
---|
621 |
|
---|
622 | [propget, id(DISPID_DOM_DOCUMENTTYPE_NOTATIONS)]
|
---|
623 | HRESULT notations( [out,retval] IXMLDOMNamedNodeMap **notationMap );
|
---|
624 | }
|
---|
625 |
|
---|
626 | [
|
---|
627 | local,
|
---|
628 | object,
|
---|
629 | odl,
|
---|
630 | dual,
|
---|
631 | nonextensible,
|
---|
632 | oleautomation,
|
---|
633 | uuid(2933bf8c-7b36-11d2-b20e-00c04f983e60),
|
---|
634 | pointer_default(unique)
|
---|
635 | ]
|
---|
636 | interface IXMLDOMNotation : IXMLDOMNode
|
---|
637 | {
|
---|
638 | [propget, id(DISPID_DOM_NOTATION_PUBLICID)]
|
---|
639 | HRESULT publicId([out, retval] VARIANT *publicId);
|
---|
640 |
|
---|
641 | [propget, id(DISPID_DOM_NOTATION_SYSTEMID)]
|
---|
642 | HRESULT systemId([out, retval] VARIANT *systemId);
|
---|
643 | }
|
---|
644 |
|
---|
645 | [
|
---|
646 | local,
|
---|
647 | object,
|
---|
648 | odl,
|
---|
649 | dual,
|
---|
650 | nonextensible,
|
---|
651 | oleautomation,
|
---|
652 | uuid(2933bf8d-7b36-11d2-b20e-00c04f983e60),
|
---|
653 | pointer_default(unique)
|
---|
654 | ]
|
---|
655 | interface IXMLDOMEntity : IXMLDOMNode
|
---|
656 | {
|
---|
657 | [propget, id(DISPID_DOM_ENTITY_PUBLICID)]
|
---|
658 | HRESULT publicId([out, retval] VARIANT *publicId);
|
---|
659 |
|
---|
660 | [propget, id(DISPID_DOM_ENTITY_SYSTEMID)]
|
---|
661 | HRESULT systemId([out, retval] VARIANT *systemId);
|
---|
662 |
|
---|
663 | [propget, id(DISPID_DOM_ENTITY_NOTATIONNAME)]
|
---|
664 | HRESULT notationName([out, retval] BSTR *name);
|
---|
665 | }
|
---|
666 |
|
---|
667 | [
|
---|
668 | local,
|
---|
669 | object,
|
---|
670 | odl,
|
---|
671 | dual,
|
---|
672 | nonextensible,
|
---|
673 | oleautomation,
|
---|
674 | uuid(2933bf8e-7b36-11d2-b20e-00c04f983e60),
|
---|
675 | pointer_default(unique)
|
---|
676 | ]
|
---|
677 | interface IXMLDOMEntityReference : IXMLDOMNode
|
---|
678 | {
|
---|
679 | }
|
---|
680 |
|
---|
681 | [
|
---|
682 | local,
|
---|
683 | object,
|
---|
684 | odl,
|
---|
685 | dual,
|
---|
686 | nonextensible,
|
---|
687 | oleautomation,
|
---|
688 | uuid(2933bf8f-7b36-11d2-b20e-00c04f983e60),
|
---|
689 | pointer_default(unique)
|
---|
690 | ]
|
---|
691 | interface IXMLDOMImplementation : IDispatch
|
---|
692 | {
|
---|
693 | [id(DISPID_DOM_IMPLEMENTATION_HASFEATURE)]
|
---|
694 | HRESULT hasFeature([in] BSTR feature, [in] BSTR version, [out, retval] VARIANT_BOOL *pbool);
|
---|
695 | }
|
---|
696 |
|
---|
697 | [
|
---|
698 | local,
|
---|
699 | object,
|
---|
700 | odl,
|
---|
701 | dual,
|
---|
702 | oleautomation,
|
---|
703 | /*nonextensible,*/
|
---|
704 | helpstring("structure for reporting parse errors"),
|
---|
705 | pointer_default(unique),
|
---|
706 | uuid (3efaa426-272f-11d2-836f-0000f87a7782)
|
---|
707 | ]
|
---|
708 | interface IXMLDOMParseError : IDispatch
|
---|
709 | {
|
---|
710 | [propget, id(DISPID_VALUE)]
|
---|
711 | HRESULT errorCode([retval, out] LONG *errCode);
|
---|
712 |
|
---|
713 | [propget, id(DISPID_DOM_ERROR_URL)]
|
---|
714 | HRESULT url([retval, out] BSTR *p);
|
---|
715 |
|
---|
716 | [propget, id(DISPID_DOM_ERROR_REASON)]
|
---|
717 | HRESULT reason([retval, out] BSTR *p);
|
---|
718 |
|
---|
719 | [propget, id(DISPID_DOM_ERROR_SRCTEXT)]
|
---|
720 | HRESULT srcText([retval, out] BSTR *p);
|
---|
721 |
|
---|
722 | [propget, id(DISPID_DOM_ERROR_LINE)]
|
---|
723 | HRESULT line([retval, out] LONG *lineNo);
|
---|
724 |
|
---|
725 | [propget, id(DISPID_DOM_ERROR_LINEPOS)]
|
---|
726 | HRESULT linepos([retval, out] LONG * linePos);
|
---|
727 |
|
---|
728 | [propget, id(DISPID_DOM_ERROR_FILEPOS)]
|
---|
729 | HRESULT filepos([retval, out] LONG * filePos);
|
---|
730 | }
|
---|
731 |
|
---|
732 | [
|
---|
733 | hidden,
|
---|
734 | uuid(3efaa427-272f-11d2-836f-0000f87a7782)
|
---|
735 | ]
|
---|
736 | dispinterface XMLDOMDocumentEvents
|
---|
737 | {
|
---|
738 | properties:
|
---|
739 | methods:
|
---|
740 | [id(DISPID_XMLDOMEVENT_ONDATAAVAILABLE)]
|
---|
741 | HRESULT ondataavailable();
|
---|
742 |
|
---|
743 | [id(DISPID_XMLDOMEVENT_ONREADYSTATECHANGE)]
|
---|
744 | HRESULT onreadystatechange();
|
---|
745 | }
|
---|
746 |
|
---|
747 | [
|
---|
748 | uuid(2933bf90-7b36-11d2-b20e-00c04f983e60)
|
---|
749 | ]
|
---|
750 | coclass DOMDocument
|
---|
751 | {
|
---|
752 | [default] interface IXMLDOMDocument;
|
---|
753 | [default, source] dispinterface XMLDOMDocumentEvents;
|
---|
754 | }
|
---|
755 |
|
---|
756 | [
|
---|
757 | uuid(2933bf91-7b36-11d2-b20e-00c04f983e60)
|
---|
758 | ]
|
---|
759 | coclass DOMFreeThreadedDocument
|
---|
760 | {
|
---|
761 | [default] interface IXMLDOMDocument;
|
---|
762 | [default, source] dispinterface XMLDOMDocumentEvents;
|
---|
763 | }
|
---|
764 |
|
---|
765 | [
|
---|
766 | object,
|
---|
767 | uuid(ed8c108d-4349-11d2-91a4-00c04f7969e8),
|
---|
768 | odl,
|
---|
769 | dual,
|
---|
770 | oleautomation,
|
---|
771 | pointer_default(unique)
|
---|
772 | ]
|
---|
773 | interface IXMLHttpRequest : IDispatch
|
---|
774 | {
|
---|
775 | [id(1)]
|
---|
776 | HRESULT open([in] BSTR bstrMethod, [in] BSTR bstrUrl,
|
---|
777 | [in, optional] VARIANT varAsync,
|
---|
778 | [in, optional] VARIANT varUser,
|
---|
779 | [in, optional] VARIANT varPassword);
|
---|
780 | [id(2)]
|
---|
781 | HRESULT setRequestHeader([in] BSTR bstrHeader, [in] BSTR bstrValue);
|
---|
782 |
|
---|
783 | [id(3)]
|
---|
784 | HRESULT getResponseHeader([in] BSTR bstrHeader, [out, retval] BSTR *pbstrValue);
|
---|
785 |
|
---|
786 | [id(4)]
|
---|
787 | HRESULT getAllResponseHeaders([out, retval] BSTR *pbstrHeaders);
|
---|
788 |
|
---|
789 | [id(5)]
|
---|
790 | HRESULT send([in, optional] VARIANT varBody);
|
---|
791 |
|
---|
792 | [id(6)]
|
---|
793 | HRESULT abort();
|
---|
794 |
|
---|
795 | [propget, id(7)]
|
---|
796 | HRESULT status([out, retval] LONG *plStatus);
|
---|
797 |
|
---|
798 | [propget, id(8)]
|
---|
799 | HRESULT statusText([out, retval] BSTR *bstrStatus);
|
---|
800 |
|
---|
801 | [propget, id(9)]
|
---|
802 | HRESULT responseXML([out, retval] IDispatch **ppBody);
|
---|
803 |
|
---|
804 | [propget, id(10)]
|
---|
805 | HRESULT responseText([out, retval] BSTR *pbstrBody);
|
---|
806 |
|
---|
807 | [propget, id(11)]
|
---|
808 | HRESULT responseBody([out, retval] VARIANT *pvarBody);
|
---|
809 |
|
---|
810 | [propget, id(12)]
|
---|
811 | HRESULT responseStream([out, retval] VARIANT *pvarBody);
|
---|
812 |
|
---|
813 | [propget, id(13)]
|
---|
814 | HRESULT readyState([out, retval] LONG *plState);
|
---|
815 |
|
---|
816 | [propput, id(14)]
|
---|
817 | HRESULT onreadystatechange([in] IDispatch *pReadyStateSink);
|
---|
818 | }
|
---|
819 |
|
---|
820 | [
|
---|
821 | uuid(ed8c108e-4349-11d2-91a4-00c04f7969e8)
|
---|
822 | ]
|
---|
823 | coclass XMLHTTPRequest
|
---|
824 | {
|
---|
825 | [default] interface IXMLHttpRequest;
|
---|
826 | }
|
---|