From 4bbeb2c6f4ae642073095a7f7df588baf07f3b43 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Mon, 24 Mar 2008 20:09:08 +1100 Subject: [PATCH] msxml3: Add support for SAX Documents. --- include/msxml2did.h | 127 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/include/msxml2did.h b/include/msxml2did.h index 1a718de415..f2adaaff42 100644 --- a/include/msxml2did.h +++ b/include/msxml2did.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2005 Vijay Kiran Kamuju + * Copyright (C) 2008 Alistair Leslie-Hughes * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -268,4 +269,130 @@ #define DISPID_XMLDSO_DOCUMENT 0x10001 #define DISPID_XMLDSO_JAVADSOCOMPATIBLE 0x10002 +/* SAX Defines */ +#define DISPID_SAX_XMLREADER__MIN 0x00000501 +#define DISPID_SAX_XMLREADER__MAX 0x00010000 +#define DISPID_SAX_XMLREADER__BASE DISPID_SAX_XMLREADER__MIN + +#define DISPID_SAX_XMLREADER 0x00000501 +#define DISPID_SAX_XMLREADER_GETFEATURE 0x00000502 +#define DISPID_SAX_XMLREADER_PUTFEATURE 0x00000503 +#define DISPID_SAX_XMLREADER_GETPROPERTY 0x00000504 +#define DISPID_SAX_XMLREADER_PUTPROPERTY 0x00000505 +#define DISPID_SAX_XMLREADER_ENTITYRESOLVER 0x00000506 +#define DISPID_SAX_XMLREADER_CONTENTHANDLER 0x00000507 +#define DISPID_SAX_XMLREADER_DTDHANDLER 0x00000508 +#define DISPID_SAX_XMLREADER_ERRORHANDLER 0x00000509 +#define DISPID_SAX_XMLREADER_BASEURL 0x0000050A +#define DISPID_SAX_XMLREADER_SECUREBASEURL 0x0000050B +#define DISPID_SAX_XMLREADER_PARSE 0x0000050C +#define DISPID_SAX_XMLREADER_PARSEURL 0x0000050D +#define DISPID_SAX_XMLREADER_PARENT 0x0000050E + +#define DISPID_SAX_XMLFILTER 0x00000510 +#define DISPID_SAX_XMLFILTER_GETFEATURE 0x00000511 +#define DISPID_SAX_XMLFILTER_PUTFEATURE 0x00000512 +#define DISPID_SAX_XMLFILTER_GETPROPERTY 0x00000513 +#define DISPID_SAX_XMLFILTER_PUTPROPERTY 0x00000514 +#define DISPID_SAX_XMLFILTER_ENTITYRESOLVER 0x00000515 +#define DISPID_SAX_XMLFILTER_CONTENTHANDLER 0x00000516 +#define DISPID_SAX_XMLFILTER_DTDHANDLER 0x00000517 +#define DISPID_SAX_XMLFILTER_ERRORHANDLER 0x00000518 +#define DISPID_SAX_XMLFILTER_BASEURL 0x00000519 +#define DISPID_SAX_XMLFILTER_SECUREBASEURL 0x0000051A +#define DISPID_SAX_XMLFILTER_PARSE 0x0000051B +#define DISPID_SAX_XMLFILTER_PARSEURL 0x0000051C +#define DISPID_SAX_XMLFILTER_PARENT 0x0000051D + +#define DISPID_SAX_LOCATOR 0x00000520 +#define DISPID_SAX_LOCATOR_COLUMNNUMBER 0x00000521 +#define DISPID_SAX_LOCATOR_LINENUMBER 0x00000522 +#define DISPID_SAX_LOCATOR_PUBLICID 0x00000523 +#define DISPID_SAX_LOCATOR_SYSTEMID 0x00000524 + +#define DISPID_SAX_ENTITYRESOLVER 0x00000526 +#define DISPID_SAX_ENTITYRESOLVER_RESOLVEENTITY 0x00000527 + +#define DISPID_SAX_CONTENTHANDLER 0x00000529 +#define DISPID_SAX_CONTENTHANDLER_DOCUMENTLOCATOR 0x0000052A +#define DISPID_SAX_CONTENTHANDLER_STARTDOCUMENT 0x0000052B +#define DISPID_SAX_CONTENTHANDLER_ENDDOCUMENT 0x0000052C +#define DISPID_SAX_CONTENTHANDLER_STARTPREFIXMAPPING 0x0000052D +#define DISPID_SAX_CONTENTHANDLER_ENDPREFIXMAPPING 0x0000052E +#define DISPID_SAX_CONTENTHANDLER_STARTELEMENT 0x0000052F +#define DISPID_SAX_CONTENTHANDLER_ENDELEMENT 0x00000530 +#define DISPID_SAX_CONTENTHANDLER_CHARACTERS 0x00000531 +#define DISPID_SAX_CONTENTHANDLER_IGNORABLEWHITESPACE 0x00000532 +#define DISPID_SAX_CONTENTHANDLER_PROCESSINGINSTRUCTION 0x00000533 +#define DISPID_SAX_CONTENTHANDLER_SKIPPEDENTITY 0x00000534 + +#define DISPID_SAX_DTDHANDLER 0x00000536 +#define DISPID_SAX_DTDHANDLER_NOTATIONDECL 0x00000537 +#define DISPID_SAX_DTDHANDLER_UNPARSEDENTITYDECL 0x00000538 + +#define DISPID_SAX_ERRORHANDLER 0x0000053A +#define DISPID_SAX_ERRORHANDLER_ERROR 0x0000053B +#define DISPID_SAX_ERRORHANDLER_FATALERROR 0x0000053C +#define DISPID_SAX_ERRORHANDLER_IGNORABLEWARNING 0x0000053D + +#define DISPID_SAX_ATTRIBUTES 0x0000053F +#define DISPID_SAX_ATTRIBUTES_LENGTH 0x00000540 +#define DISPID_SAX_ATTRIBUTES_GETURI 0x00000541 +#define DISPID_SAX_ATTRIBUTES_GETLOCALNAME 0x00000542 +#define DISPID_SAX_ATTRIBUTES_GETQNAME 0x00000543 +#define DISPID_SAX_ATTRIBUTES_GETINDEXFROMNAME 0x00000544 +#define DISPID_SAX_ATTRIBUTES_GETINDEXFROMQNAME 0x00000545 +#define DISPID_SAX_ATTRIBUTES_GETTYPE 0x00000546 +#define DISPID_SAX_ATTRIBUTES_GETTYPEFROMNAME 0x00000547 +#define DISPID_SAX_ATTRIBUTES_GETTYPEFROMQNAME 0x00000548 +#define DISPID_SAX_ATTRIBUTES_GETVALUE 0x00000549 +#define DISPID_SAX_ATTRIBUTES_GETVALUEFROMNAME 0x0000054A +#define DISPID_SAX_ATTRIBUTES_GETVALUEFROMQNAME 0x0000054B + +#define DISPID_SAX_LEXICALHANDLER 0x0000054D +#define DISPID_SAX_LEXICALHANDLER_STARTDTD 0x0000054E +#define DISPID_SAX_LEXICALHANDLER_ENDDTD 0x0000054F +#define DISPID_SAX_LEXICALHANDLER_STARTENTITY 0x00000550 +#define DISPID_SAX_LEXICALHANDLER_ENDENTITY 0x00000551 +#define DISPID_SAX_LEXICALHANDLER_STARTCDATA 0x00000552 +#define DISPID_SAX_LEXICALHANDLER_ENDCDATA 0x00000553 +#define DISPID_SAX_LEXICALHANDLER_COMMENT 0x00000554 + +#define DISPID_SAX_DECLHANDLER 0x00000556 +#define DISPID_SAX_DECLHANDLER_ELEMENTDECL 0x00000557 +#define DISPID_SAX_DECLHANDLER_ATTRIBUTEDECL 0x00000558 +#define DISPID_SAX_DECLHANDLER_INTERNALENTITYDECL 0x00000559 +#define DISPID_SAX_DECLHANDLER_EXTERNALENTITYDECL 0x0000055A + +#define DISPID_MX_ATTRIBUTES_ADDATTRIBUTE 0x0000055D +#define DISPID_MX_ATTRIBUTES_CLEAR 0x0000055E +#define DISPID_MX_ATTRIBUTES_REMOVEATTRIBUTE 0x0000055F +#define DISPID_MX_ATTRIBUTES_SETATTRIBUTE 0x00000560 +#define DISPID_MX_ATTRIBUTES_SETATTRIBUTES 0x00000561 +#define DISPID_MX_ATTRIBUTES_SETLOCALNAME 0x00000562 +#define DISPID_MX_ATTRIBUTES_SETQNAME 0x00000563 +#define DISPID_MX_ATTRIBUTES_SETTYPE 0x00000564 +#define DISPID_MX_ATTRIBUTES_SETURI 0x00000565 +#define DISPID_MX_ATTRIBUTES_SETVALUE 0x00000566 +#define DISPID_MX_ATTRIBUTES_ADDATTRIBUTEFROMINDEX 0x00000567 + +#define DISPID_MX_WRITER 0x00000568 +#define DISPID_MX_WRITER_OUTPUT 0x00000569 +#define DISPID_MX_WRITER_DESTINATION 0x0000056A +#define DISPID_MX_WRITER_ENCODING 0x0000056B +#define DISPID_MX_WRITER_BYTEORDERMARK 0x0000056C +#define DISPID_MX_WRITER_INDENT 0x0000056D +#define DISPID_MX_WRITER_STANDALONE 0x0000056E +#define DISPID_MX_WRITER_OMITXMLDECLARATION 0x0000056F +#define DISPID_MX_WRITER_VERSION 0x00000570 +#define DISPID_MX_WRITER_DISABLEOUTPUTESCAPING 0x00000571 +#define DISPID_MX_WRITER_FLUSH 0x00000572 +#define DISPID_MX_WRITER_RESET 0x00000573 + +#define DISPID_MX_READER_CONTROL 0x00000575 +#define DISPID_MX_READER_CONTROL_ABORT 0x00000576 +#define DISPID_MX_READER_CONTROL_RESUME 0x00000577 +#define DISPID_MX_READER_CONTROL_SUSPEND 0x00000578 + + #endif /* __MSXML2DID_H__ */