' ########################################################################################
' Microsoft Windows
' File: DomDid.inc
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_DomDid_PBI)
#DEFINE PBX_DomDid_PBI
%EQUATE `DOMDID_INC = 1
'//#define DISPID_DOM_BASE 0x80010500
'// Our dispids need to be mapped into the range 1..9999 to kep Trident happy
'// specifically, to make the XML tag more efficient. simonb, 09-18-1998
%EQUATE `DISPID_DOM_BASE = &H00000001
%EQUATE `DISPID_DOM_NODE = %DISPID_DOM_BASE
%EQUATE `DISPID_DOM_NODE_NODENAME = %DISPID_DOM_NODE + 1
%EQUATE `DISPID_DOM_NODE_NODEVALUE = %DISPID_DOM_NODE + 2
%EQUATE `DISPID_DOM_NODE_NODETYPE = %DISPID_DOM_NODE + 3
%EQUATE `DISPID_DOM_NODE_NODETYPEENUM = %DISPID_DOM_NODE + 4
%EQUATE `DISPID_DOM_NODE_PARENTNODE = %DISPID_DOM_NODE + 5
%EQUATE `DISPID_DOM_NODE_CHILDNODES = %DISPID_DOM_NODE + 6
%EQUATE `DISPID_DOM_NODE_FIRSTCHILD = %DISPID_DOM_NODE + 7
%EQUATE `DISPID_DOM_NODE_LASTCHILD = %DISPID_DOM_NODE + 8
%EQUATE `DISPID_DOM_NODE_PREVIOUSSIBLING = %DISPID_DOM_NODE + 9
%EQUATE `DISPID_DOM_NODE_NEXTSIBLING = %DISPID_DOM_NODE + 10
%EQUATE `DISPID_DOM_NODE_ATTRIBUTES = %DISPID_DOM_NODE + 11
%EQUATE `DISPID_DOM_NODE_INSERTBEFORE = %DISPID_DOM_NODE + 12
%EQUATE `DISPID_DOM_NODE_REPLACECHILD = %DISPID_DOM_NODE + 13
%EQUATE `DISPID_DOM_NODE_REMOVECHILD = %DISPID_DOM_NODE + 14
%EQUATE `DISPID_DOM_NODE_APPENDCHILD = %DISPID_DOM_NODE + 15
%EQUATE `DISPID_DOM_NODE_HASCHILDNODES = %DISPID_DOM_NODE + 16
%EQUATE `DISPID_DOM_NODE_OWNERDOC = %DISPID_DOM_NODE + 17
%EQUATE `DISPID_DOM_NODE_CLONENODE = %DISPID_DOM_NODE + 18
%EQUATE `DISPID_DOM_W3CWRAPPERS = %DISPID_DOM_NODE + &H20
%EQUATE `DISPID_DOM_DOCUMENTFRAGMENT = %DISPID_DOM_W3CWRAPPERS
%EQUATE `DISPID_DOM_DOCUMENTFRAGMENT_TOP = %DISPID_DOM_DOCUMENTFRAGMENT + 2
%EQUATE `DISPID_DOM_DOCUMENT = %DISPID_DOM_DOCUMENTFRAGMENT + &H20
%EQUATE `DISPID_DOM_DOCUMENT_DOCTYPE = %DISPID_DOM_DOCUMENT + 1
%EQUATE `DISPID_DOM_DOCUMENT_IMPLEMENTATION = %DISPID_DOM_DOCUMENT + 2
%EQUATE `DISPID_DOM_DOCUMENT_DOCUMENTELEMENT = %DISPID_DOM_DOCUMENT + 3
%EQUATE `DISPID_DOM_DOCUMENT_CREATEELEMENT = %DISPID_DOM_DOCUMENT + 4
%EQUATE `DISPID_DOM_DOCUMENT_CREATEDOCUMENTFRAGMENT = %DISPID_DOM_DOCUMENT + 5
%EQUATE `DISPID_DOM_DOCUMENT_CREATETEXTNODE = %DISPID_DOM_DOCUMENT + 6
%EQUATE `DISPID_DOM_DOCUMENT_CREATECOMMENT = %DISPID_DOM_DOCUMENT + 7
%EQUATE `DISPID_DOM_DOCUMENT_CREATECDATASECTION = %DISPID_DOM_DOCUMENT + 8
%EQUATE `DISPID_DOM_DOCUMENT_CREATEPROCESSINGINSTRUCTION = %DISPID_DOM_DOCUMENT + 9
%EQUATE `DISPID_DOM_DOCUMENT_CREATEATTRIBUTE = %DISPID_DOM_DOCUMENT + 10
%EQUATE `DISPID_DOM_DOCUMENT_CREATEENTITY = %DISPID_DOM_DOCUMENT + 11
%EQUATE `DISPID_DOM_DOCUMENT_CREATEENTITYREFERENCE = %DISPID_DOM_DOCUMENT + 12
%EQUATE `DISPID_DOM_DOCUMENT_GETELEMENTSBYTAGNAME = %DISPID_DOM_DOCUMENT + 13
%EQUATE `DISPID_DOM_DOCUMENT_TOP = %DISPID_DOM_DOCUMENT + 14
%EQUATE `DISPID_DOM_ELEMENT = %DISPID_DOM_DOCUMENT + &H20
%EQUATE `DISPID_DOM_ELEMENT_GETTAGNAME = %DISPID_DOM_ELEMENT + 1
%EQUATE `DISPID_DOM_ELEMENT_GETATTRIBUTES = %DISPID_DOM_ELEMENT + 2
%EQUATE `DISPID_DOM_ELEMENT_GETATTRIBUTE = %DISPID_DOM_ELEMENT + 3
%EQUATE `DISPID_DOM_ELEMENT_SETATTRIBUTE = %DISPID_DOM_ELEMENT + 4
%EQUATE `DISPID_DOM_ELEMENT_REMOVEATTRIBUTE = %DISPID_DOM_ELEMENT + 5
%EQUATE `DISPID_DOM_ELEMENT_GETATTRIBUTENODE = %DISPID_DOM_ELEMENT + 6
%EQUATE `DISPID_DOM_ELEMENT_SETATTRIBUTENODE = %DISPID_DOM_ELEMENT + 7
%EQUATE `DISPID_DOM_ELEMENT_REMOVEATTRIBUTENODE = %DISPID_DOM_ELEMENT + 8
%EQUATE `DISPID_DOM_ELEMENT_GETELEMENTSBYTAGNAME = %DISPID_DOM_ELEMENT + 9
%EQUATE `DISPID_DOM_ELEMENT_NORMALIZE = %DISPID_DOM_ELEMENT + 10
%EQUATE `DISPID_DOM_ELEMENT_TOP = %DISPID_DOM_ELEMENT + 11
%EQUATE `DISPID_DOM_DATA = %DISPID_DOM_ELEMENT + &H20
%EQUATE `DISPID_DOM_DATA_LENGTH = %DISPID_DOM_DATA + 1
%EQUATE `DISPID_DOM_DATA_SUBSTRING = %DISPID_DOM_DATA + 2
%EQUATE `DISPID_DOM_DATA_APPEND = %DISPID_DOM_DATA + 3
%EQUATE `DISPID_DOM_DATA_INSERT = %DISPID_DOM_DATA + 4
%EQUATE `DISPID_DOM_DATA_DELETE = %DISPID_DOM_DATA + 5
%EQUATE `DISPID_DOM_DATA_REPLACE = %DISPID_DOM_DATA + 6
%EQUATE `DISPID_DOM_DATA_TOP = %DISPID_DOM_DATA + 7
%EQUATE `DISPID_DOM_ATTRIBUTE = %DISPID_DOM_DATA + &H20
%EQUATE `DISPID_DOM_ATTRIBUTE_GETNAME = %DISPID_DOM_ATTRIBUTE + 1
%EQUATE `DISPID_DOM_ATTRIBUTE_SPECIFIED = %DISPID_DOM_ATTRIBUTE + 2
%EQUATE `DISPID_DOM_ATTRIBUTE_GETVALUE = %DISPID_DOM_ATTRIBUTE + 3
%EQUATE `DISPID_DOM_ATTRIBUTE_TOP = %DISPID_DOM_ATTRIBUTE + 4
%EQUATE `DISPID_DOM_TEXT = %DISPID_DOM_ATTRIBUTE + &H20
%EQUATE `DISPID_DOM_TEXT_SPLITTEXT = %DISPID_DOM_TEXT + 1
%EQUATE `DISPID_DOM_TEXT_JOINTEXT = %DISPID_DOM_TEXT + 2
%EQUATE `DISPID_DOM_TEXT_TOP = %DISPID_DOM_TEXT + 3
%EQUATE `DISPID_DOM_PI = %DISPID_DOM_TEXT + &H20
%EQUATE `DISPID_DOM_PI_TARGET = %DISPID_DOM_PI + 1
%EQUATE `DISPID_DOM_PI_DATA = %DISPID_DOM_PI + 2
%EQUATE `DISPID_DOM_PI_TOP = %DISPID_DOM_PI + 3
%EQUATE `DISPID_DOM_DOCUMENTTYPE = %DISPID_DOM_PI + &H20
%EQUATE `DISPID_DOM_DOCUMENTTYPE_NAME = %DISPID_DOM_DOCUMENTTYPE + 1
%EQUATE `DISPID_DOM_DOCUMENTTYPE_ENTITIES = %DISPID_DOM_DOCUMENTTYPE + 2
%EQUATE `DISPID_DOM_DOCUMENTTYPE_NOTATIONS = %DISPID_DOM_DOCUMENTTYPE + 3
%EQUATE `DISPID_DOM_DOCUMENTTYPE_TOP = %DISPID_DOM_DOCUMENTTYPE + 4
%EQUATE `DISPID_DOM_NOTATION = %DISPID_DOM_DOCUMENTTYPE + &H20
%EQUATE `DISPID_DOM_NOTATION_PUBLICID = %DISPID_DOM_NOTATION + 1
%EQUATE `DISPID_DOM_NOTATION_SYSTEMID = %DISPID_DOM_NOTATION + 2
%EQUATE `DISPID_DOM_NOTATION_TOP = %DISPID_DOM_NOTATION + 3
%EQUATE `DISPID_DOM_ENTITY = %DISPID_DOM_NOTATION + &H20
%EQUATE `DISPID_DOM_ENTITY_PUBLICID = %DISPID_DOM_ENTITY + 1
%EQUATE `DISPID_DOM_ENTITY_SYSTEMID = %DISPID_DOM_ENTITY + 2
%EQUATE `DISPID_DOM_ENTITY_NOTATIONNAME = %DISPID_DOM_ENTITY + 3
%EQUATE `DISPID_DOM_ENTITY_TOP = %DISPID_DOM_ENTITY + 4
'//define DISPID_DOM_COMMENT
'//define DISPID_DOM_CDATASECTION
'//define DISPID_DOM_ENTITYREFERENCE
%EQUATE `DISPID_DOM_W3CWRAPPERS_TOP = %DISPID_DOM_ENTITY + &H20
%EQUATE `DISPID_DOM_NODELIST = %DISPID_DOM_W3CWRAPPERS_TOP + &H20
%EQUATE `DISPID_DOM_NODELIST_ITEM = %DISPID_DOM_NODELIST + 1
%EQUATE `DISPID_DOM_NODELIST_LENGTH = %DISPID_DOM_NODELIST + 2
%EQUATE `DISPID_DOM_NAMEDNODEMAP = %DISPID_DOM_NODELIST + &H20
%EQUATE `DISPID_DOM_NAMEDNODEMAP_GETNAMEDITEM = %DISPID_DOM_NAMEDNODEMAP + 3
%EQUATE `DISPID_DOM_NAMEDNODEMAP_SETNAMEDITEM = %DISPID_DOM_NAMEDNODEMAP + 4
%EQUATE `DISPID_DOM_NAMEDNODEMAP_REMOVENAMEDITEM = %DISPID_DOM_NAMEDNODEMAP + 5
%EQUATE `DISPID_DOM_IMPLEMENTATION = %DISPID_DOM_NAMEDNODEMAP + &H20
%EQUATE `DISPID_DOM_IMPLEMENTATION_HASFEATURE = %DISPID_DOM_IMPLEMENTATION + 1
%EQUATE `DISPID_DOM_TOP = %DISPID_DOM_IMPLEMENTATION + &H20
#ENDIF
