msxml: Add IXMLDOMParseError

Huw D M Davies h.davies1 at physics.ox.ac.uk
Mon Nov 7 09:46:50 CST 2005


And these were supposed to be simple patches...  Please use this one
instead - sorry!

        Huw Davies <huw at codeweavers.com>
        Add IXMLDOMParseError.
-- 
Huw Davies
huw at codeweavers.com
Index: include/xmldom.idl
===================================================================
RCS file: /home/wine/wine/include/xmldom.idl,v
retrieving revision 1.4
diff -u -p -r1.4 xmldom.idl
--- include/xmldom.idl	10 Aug 2005 09:51:40 -0000	1.4
+++ include/xmldom.idl	7 Nov 2005 15:44:38 -0000
@@ -613,6 +613,41 @@ interface IXMLDOMDocumentType : IXMLDOMN
     HRESULT notations( [out,retval] IXMLDOMNamedNodeMap **notationMap );
 };
 
+[
+local,
+object,
+odl,
+dual,
+oleautomation,
+/*nonextensible,*/
+helpstring("structure for reporting parse errors"),
+pointer_default(unique),
+uuid (3efaa426-272f-11d2-836f-0000f87a7782)
+]
+interface IXMLDOMParseError : IDispatch
+{
+    [propget, id(DISPID_VALUE)]
+    HRESULT errorCode([retval, out] long *errCode);
+
+    [propget, id(DISPID_DOM_ERROR_URL)]
+    HRESULT url([retval, out] BSTR *p);
+
+    [propget, id(DISPID_DOM_ERROR_REASON)]
+    HRESULT reason([retval, out] BSTR *p);
+
+    [propget, id(DISPID_DOM_ERROR_SRCTEXT)]
+    HRESULT srcText([retval, out] BSTR *p);
+
+    [propget, id(DISPID_DOM_ERROR_LINE)]
+    HRESULT line([retval, out] long *lineNo);
+
+    [propget, id(DISPID_DOM_ERROR_LINEPOS)]
+    HRESULT linepos([retval, out] long * linePos);
+
+    [propget, id(DISPID_DOM_ERROR_FILEPOS)]
+    HRESULT filepos([retval, out] long * filePos);
+};
+
 
 [
 uuid(2933bf90-7b36-11d2-b20e-00c04f983e60)
Index: include/xmldomdid.h
===================================================================
RCS file: /home/wine/wine/include/xmldomdid.h,v
retrieving revision 1.2
diff -u -p -r1.2 xmldomdid.h
--- include/xmldomdid.h	26 May 2005 12:22:51 -0000	1.2
+++ include/xmldomdid.h	7 Nov 2005 15:44:38 -0000
@@ -171,4 +171,16 @@
 #define DISPID_DOM_DOCUMENTTYPE_NOTATIONS 131
 #define DISPID_DOM_DOCUMENTTYPE__TOP 132
 
+
+#define  DISPID_DOM_ERROR              0x000000b0
+#define  DISPID_DOM_ERROR_ERRORCODE    0x000000b1
+#define  DISPID_DOM_ERROR_URL          0x000000b2
+#define  DISPID_DOM_ERROR_REASON       0x000000b3
+#define  DISPID_DOM_ERROR_SRCTEXT      0x000000b4
+#define  DISPID_DOM_ERROR_LINE         0x000000b5
+#define  DISPID_DOM_ERROR_LINEPOS      0x000000b6
+#define  DISPID_DOM_ERROR_FILEPOS      0x000000b7
+#define  DISPID_DOM_ERROR__TOP         0x000000b8
+
+
 #endif /* __XMLDOMDID_H__ */



More information about the wine-patches mailing list