ReactOS  0.4.15-dev-1386-g5cb9f87
msxml.idl
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005 Mike McCormack
3  * Copyright (C) 2005 Vijay Kiran Kamuju
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19 
20 #include <msxmldid.h>
21 #include <msxml2did.h>
22 #include <idispids.h>
23 
24 #ifndef DO_NO_IMPORTS
25 import "unknwn.idl";
26 import "wtypes.idl";
27 import "objidl.idl";
28 import "oaidl.idl";
29 #endif
30 
31 [
32  uuid(d63e0ce2-a0a2-11d0-9c02-00c04fc99c8e),
33  version(2.0),
34  helpstring("Microsoft XML, v2.0")
35 ]
37 {
38 
39 importlib("stdole2.tlb");
40 
41 #include <xmldom.idl>
42 #include <xmldso.idl>
43 
44 [
45 local,
46 object,
47 odl,
48 dual,
50 uuid(65725580-9b5d-11d0-9bfe-00c04fc99c8e)
51 ]
53 {
55  HRESULT length( [in] LONG v );
56 
58  HRESULT length( [retval, out] LONG *p );
59 
61  HRESULT _newEnum( [retval, out] IUnknown ** ppUnk );
62 
64  HRESULT item(
65  [optional, in] VARIANT var1,
66  [optional, in] VARIANT var2,
67  [retval, out] IDispatch ** ppDisp );
68 }
69 
70 [
71 local,
72 object,
73 uuid(3f7f31ac-e15f-11d0-9c25-00c04fc99c8e)
74 ]
76 {
77  [propget, id(DISPID_XMLELEMENT_TAGNAME)]
78  HRESULT tagName( [retval, out] BSTR *p);
79 
80  [propput, id(DISPID_XMLELEMENT_TAGNAME)]
81  HRESULT tagName( [in] BSTR p );
82 
83  [propget, id(DISPID_XMLELEMENT_PARENT)]
84  HRESULT parent( [retval, out] IXMLElement **parent );
85 
87  HRESULT setAttribute(
88  [in] BSTR strPropertyName,
89  [in] VARIANT PropertyValue );
90 
92  HRESULT getAttribute(
93  [in] BSTR strPropertyName,
94  [retval, out] VARIANT *PropertyValue );
95 
97  HRESULT removeAttribute(
98  [in] BSTR strPropertyName );
99 
100  [propget, id(DISPID_XMLELEMENT_CHILDREN)]
101  HRESULT children( [retval, out] IXMLElementCollection **p );
102 
103  [propget, id(DISPID_XMLELEMENT_TYPE)]
104  HRESULT type( [retval, out] LONG *p );
105 
106  [propget, id(DISPID_XMLELEMENT_TEXT)]
107  HRESULT text( [retval, out] BSTR *p );
108 
109  [propput, id(DISPID_XMLELEMENT_TEXT)]
110  HRESULT text( [in] BSTR p );
111 
113  HRESULT addChild(
114  [in] IXMLElement *pChildElem,
115  [in] LONG lIndex,
116  [in] LONG lreserved );
117 
119  HRESULT removeChild(
120  [in] IXMLElement *pChildElem );
121 }
122 
123 [
124 local,
125 object,
126 uuid(f52e2b61-18a1-11d1-b105-00805f49916b)
127 ]
129 {
130  [propget, id(DISPID_XMLDOCUMENT_ROOT)]
131  HRESULT root( [retval, out] IXMLElement **p );
132 
133  [propget, id(DISPID_XMLDOCUMENT_FILESIZE)]
134  HRESULT fileSize( [retval, out] BSTR *p );
135 
137  HRESULT fileModifiedDate( [retval, out] BSTR *p );
138 
140  HRESULT fileUpdatedDate( [retval, out] BSTR *p );
141 
142  [propget, id(DISPID_XMLDOCUMENT_URL)]
143  HRESULT URL( [retval, out] BSTR *p );
144 
145  [propput, id(DISPID_XMLDOCUMENT_URL)]
146  HRESULT URL( [in] BSTR p );
147 
148  [propget, id(DISPID_XMLDOCUMENT_MIMETYPE)]
149  HRESULT mimeType( [retval, out] BSTR *p );
150 
152  HRESULT readyState( [retval, out] LONG *p );
153 
154  [propget, id(DISPID_XMLDOCUMENT_CHARSET)]
155  HRESULT charset( [retval, out] BSTR *p );
156 
157  [propput, id(DISPID_XMLDOCUMENT_CHARSET)]
158  HRESULT charset( [in] BSTR p );
159 
160  [propget, id(DISPID_XMLDOCUMENT_VERSION)]
161  HRESULT version( [retval, out] BSTR *p );
162 
163  [propget, id(DISPID_XMLDOCUMENT_DOCTYPE)]
164  HRESULT doctype( [retval, out] BSTR *p );
165 
166  [propget, id(DISPID_XMLDOCUMENT_DTDURL)]
167  HRESULT dtdURl( [retval, out] BSTR *p );
168 
170  HRESULT createElement(
171  [in] VARIANT vType,
172  [optional, in] VARIANT var1,
173  [retval, out] IXMLElement **ppElem );
174 }
175 
176 [
177 local,
178 object,
179 uuid(2B8DE2FF-8D2D-11d1-B2FC-00C04FD915A9)
180 ]
182 {
183  [propget, id(DISPID_XMLELEMENT_TAGNAME)]
184  HRESULT tagName([retval, out] BSTR *p);
185 
186  [propput, id(DISPID_XMLELEMENT_TAGNAME)]
187  HRESULT tagName([in] BSTR p);
188 
189  [propget, id(DISPID_XMLELEMENT_PARENT)]
190  HRESULT parent([retval, out]IXMLElement2 **ppParent);
191 
193  HRESULT setAttribute(
194  [in] BSTR strPropertyName,
195  [in] VARIANT PropertyValue);
196 
198  HRESULT getAttribute(
199  [in] BSTR strPropertyName,
200  [retval, out] VARIANT *PropertyValue);
201 
203  HRESULT removeAttribute([in] BSTR strPropertyName);
204 
205  [propget, id(DISPID_XMLELEMENT_CHILDREN)]
206  HRESULT children([retval, out] IXMLElementCollection **pp);
207 
208  [propget, id(DISPID_XMLELEMENT_TYPE)]
209  HRESULT type([retval, out] LONG *plType);
210 
211  [propget, id(DISPID_XMLELEMENT_TEXT)]
212  HRESULT text([retval, out] BSTR *p);
213 
214  [propput, id(DISPID_XMLELEMENT_TEXT)]
215  HRESULT text([in] BSTR p);
216 
218  HRESULT addChild(
219  [in] IXMLElement2 *pChildElem,
220  [in] LONG lIndex,
221  [in] LONG lReserved);
222 
224  HRESULT removeChild([in]IXMLElement2 *pChildElem);
225 
226  [propget, id(DISPID_XMLELEMENT_ATTRIBUTES)]
227  HRESULT attributes([retval, out] IXMLElementCollection **pp);
228 }
229 
230 [
231 local,
232 object,
233 uuid(2B8DE2FE-8D2D-11d1-B2FC-00C04FD915A9)
234 ]
235 interface IXMLDocument2 : IDispatch
236 {
237  [propget, id(DISPID_XMLDOCUMENT_ROOT)]
238  HRESULT root([retval, out] IXMLElement2 **p);
239 
240  [propget, id(DISPID_XMLDOCUMENT_FILESIZE)]
241  HRESULT fileSize([retval, out] BSTR *p);
242 
244  HRESULT fileModifiedDate([retval, out] BSTR *p);
245 
247  HRESULT fileUpdatedDate([retval, out] BSTR *p);
248 
249  [propget, id(DISPID_XMLDOCUMENT_URL)]
250  HRESULT URL([retval, out] BSTR *p);
251 
252  [propput, id(DISPID_XMLDOCUMENT_URL)]
253  HRESULT URL([in] BSTR p);
254 
255  [propget, id(DISPID_XMLDOCUMENT_MIMETYPE)]
256  HRESULT mimeType([retval, out] BSTR *p);
257 
259  HRESULT readyState([retval, out]LONG *pl);
260 
261  [propget, id(DISPID_XMLDOCUMENT_CHARSET)]
262  HRESULT charset([retval, out]BSTR *p);
263 
264  [propput, id(DISPID_XMLDOCUMENT_CHARSET)]
265  HRESULT charset([in]BSTR p);
266 
267  [propget, id(DISPID_XMLDOCUMENT_VERSION)]
268  HRESULT version([retval, out]BSTR *p);
269 
270  [propget, id(DISPID_XMLDOCUMENT_DOCTYPE)]
271  HRESULT doctype([retval, out]BSTR *p);
272 
273  [propget, restricted, id(DISPID_XMLDOCUMENT_DTDURL)]
274  HRESULT dtdURL([retval, out]BSTR *p);
275 
277  HRESULT createElement(
278  [in] VARIANT vType,
279  [optional, in] VARIANT var,
280  [retval, out] IXMLElement2 **ppElem);
281 
282  [propget, id(DISPID_XMLDOCUMENT_ASYNC)]
283  HRESULT async([retval, out] VARIANT_BOOL *pf);
284 
285  [propput, id(DISPID_XMLDOCUMENT_ASYNC)]
286  HRESULT async([in] VARIANT_BOOL f);
287 }
288 
289 typedef enum tagXMLEMEM_TYPE {
290  XMLELEMTYPE_ELEMENT = 0,
291  XMLELEMTYPE_TEXT = 1,
294  XMLELEMTYPE_DTD = 4,
295  XMLELEMTYPE_PI = 5,
297 } XMLELEM_TYPE;
298 
299 typedef struct _xml_error {
308 } XML_ERROR;
309 
310 [
311 local,
312 object,
313 uuid(d4d4a0fc-3b73-11d1-b2b4-00c04fb92596)
314 ]
316 {
317  [propget, id(DISPID_XMLATTRIBUTE_NAME)]
318  HRESULT name( [retval, out] BSTR *p );
319 
320  [propget, id(DISPID_XMLATTRIBUTE_VALUE)]
321  HRESULT value( [retval, out] BSTR *p );
322 }
323 
324 [
325 local,
326 object,
327 uuid(948c5ad3-c58d-11d0-9c0b-00c04fc99c8e)
328 ]
329 interface IXMLError : IUnknown
330 {
331  HRESULT GetErrorInfo([out]XML_ERROR *pErrorReturn);
332 }
333 
334 [
335  object,
336  local,
337  uuid(D9F1E15A-CCDB-11d0-9C0C-00C04FC99C8E)
338 ]
340 {
342  HRESULT ChildAdded([in]IDispatch *pChildElem);
343 }
344 
345 [
346  helpstring("Msxml"),
347  progid("Msxml"),
348  threading(both),
349  version(1.0),
350  uuid(cfc399af-d876-11d0-9c10-00c04fc99c8e)
351 ]
352 coclass XMLDocument
353 {
354  [default] interface IXMLDocument;
355 }
356 
357 } /* Library MSXML */
const char * var
Definition: shader.c:5666
struct MSXML::_xml_error XML_ERROR
int fileSize
Definition: main.cpp:55
CFF_Charset charset
Definition: cffcmap.c:138
#define DISPID_XMLDOCUMENT_FILEMODIFIEDDATE
Definition: msxml2did.h:35
coclass MSXML2::XSLTemplate40 object
#define DISPID_XMLELEMENT_ADDCHILD
Definition: msxml2did.h:57
#define DISPID_XMLDOCUMENT_CHARSET
Definition: msxml2did.h:41
#define DISPID_XMLELEMENTCOLLECTION_NEWENUM
Definition: msxml2did.h:29
#define DISPID_XMLDOCUMENT_VERSION
Definition: msxml2did.h:42
coclass SHDocVw::ShellWindows dual
Definition: exdisp.idl:631
const WCHAR * text
Definition: package.c:1827
struct _root root
typedef helpstring
#define DISPID_XMLELEMENT_TAGNAME
Definition: msxml2did.h:49
#define DISPID_XMLDOCUMENT_FILEUPDATEDDATE
Definition: msxml2did.h:36
#define DISPID_XMLDOCUMENT_ASYNC
Definition: msxml2did.h:45
OLECHAR * BSTR
Definition: compat.h:2152
FT_Library library
Definition: cffdrivr.c:654
short VARIANT_BOOL
Definition: compat.h:2149
coclass TestTypelib::Coclass3 oleautomation
Definition: tmarshal.idl:202
#define DISPID_XMLELEMENT_CHILDREN
Definition: msxml2did.h:54
#define DISPID_XMLATTRIBUTE_VALUE
Definition: msxml2did.h:66
long LONG
Definition: pedump.c:60
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
#define pp
Definition: hlsl.yy.c:1208
#define DISPID_XMLDOCUMENT_DOCTYPE
Definition: msxml2did.h:43
static const WCHAR version[]
Definition: asmname.c:66
#define DISPID_XMLDOCUMENT_DTDURL
Definition: msxml2did.h:44
#define threading(model)
Definition: exdisp.idl:30
DWORD _reserved1
Definition: msxml.idl:306
Definition: msg.h:41
#define DISPID_XMLELEMENTCOLLECTION_LENGTH
Definition: msxml2did.h:28
GLfloat f
Definition: glext.h:7540
HRESULT WINAPI GetErrorInfo(ULONG dwReserved, IErrorInfo **pperrinfo)
Definition: errorinfo.c:417
r parent
Definition: btrfs.c:2944
#define DISPID_XMLELEMENT_SETATTRIBUTE
Definition: msxml2did.h:51
LONG HRESULT
Definition: typedefs.h:79
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DISPID_XMLELEMENT_REMOVECHILD
Definition: msxml2did.h:58
coclass TestTypelib::Coclass3 odl
#define DISPID_XMLELEMENT_TYPE
Definition: msxml2did.h:55
#define DISPID_XMLDOCUMENT_CREATEELEMENT
Definition: msxml2did.h:40
GLsizei const GLfloat * value
Definition: glext.h:6069
#define DISPID_XMLELEMENTCOLLECTION_ITEM
Definition: msxml2did.h:30
#define local
Definition: zutil.h:30
#define DISPID_XMLELEMENT_PARENT
Definition: msxml2did.h:50
#define DISPID_XMLELEMENT_ATTRIBUTES
Definition: msxml2did.h:59
#define DISPID_XMLDOCUMENT_URL
Definition: msxml2did.h:37
static ATOM item
Definition: dde.c:856
const GLdouble * v
Definition: gl.h:2040
GLuint in
Definition: glext.h:9616
#define DISPID_XMLELEMENT_REMOVEATTRIBUTE
Definition: msxml2did.h:53
Definition: msxml.idl:36
#define DISPID_XMLDOCUMENT_FILESIZE
Definition: msxml2did.h:34
unsigned int UINT
Definition: ndis.h:50
#define DISPID_XMLELEMENT_GETATTRIBUTE
Definition: msxml2did.h:52
#define DISPID_XMLELEMENT_TEXT
Definition: msxml2did.h:56
GLenum GLuint id
Definition: glext.h:5579
#define progid(str)
Definition: exdisp.idl:31
#define DISPID_XMLDOCUMENT_MIMETYPE
Definition: msxml2did.h:38
importlib("stdole2.tlb")
static const struct update_accum a1
Definition: msg.c:578
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
DWORD _reserved2
Definition: msxml.idl:307
GLfloat GLfloat p
Definition: glext.h:8902
#define DISPID_XMLATTRIBUTE_NAME
Definition: msxml2did.h:65
#define DISPID_XMLDOCUMENT_ROOT
Definition: msxml2did.h:33
#define DISPID_XMLDOCUMENT_READYSTATE
Definition: msxml2did.h:39
#define DISPID_XMLNOTIFSINK_CHILDADDED
Definition: msxml2did.h:62
GLuint const GLchar * name
Definition: glext.h:6031