1 module org.eclipse.swt.internal.mozilla.nsIDOMNode; 2 3 import java.lang.all; 4 5 import org.eclipse.swt.internal.mozilla.Common; 6 import org.eclipse.swt.internal.mozilla.nsID; 7 import org.eclipse.swt.internal.mozilla.nsISupports; 8 9 import org.eclipse.swt.internal.mozilla.nsIDOMNodeList; 10 import org.eclipse.swt.internal.mozilla.nsIDOMNamedNodeMap; 11 import org.eclipse.swt.internal.mozilla.nsIDOMDocument; 12 import org.eclipse.swt.internal.mozilla.nsStringAPI; 13 14 alias PRUint64 DOMTimeStamp; 15 16 const char[] NS_IDOMNODE_IID_STR = "a6cf907c-15b3-11d2-932e-00805f8add32"; 17 18 const nsIID NS_IDOMNODE_IID= 19 {0xa6cf907c, 0x15b3, 0x11d2, 20 [ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]}; 21 22 interface nsIDOMNode : nsISupports { 23 24 static const char[] IID_STR = NS_IDOMNODE_IID_STR; 25 static const nsIID IID = NS_IDOMNODE_IID; 26 27 extern(System): 28 enum { ELEMENT_NODE = 1U }; 29 enum { ATTRIBUTE_NODE = 2U }; 30 enum { TEXT_NODE = 3U }; 31 enum { CDATA_SECTION_NODE = 4U }; 32 enum { ENTITY_REFERENCE_NODE = 5U }; 33 enum { ENTITY_NODE = 6U }; 34 enum { PROCESSING_INSTRUCTION_NODE = 7U }; 35 enum { COMMENT_NODE = 8U }; 36 enum { DOCUMENT_NODE = 9U }; 37 enum { DOCUMENT_TYPE_NODE = 10U }; 38 enum { DOCUMENT_FRAGMENT_NODE = 11U }; 39 enum { NOTATION_NODE = 12U }; 40 41 nsresult GetNodeName(nsAString * aNodeName); 42 nsresult GetNodeValue(nsAString * aNodeValue); 43 nsresult SetNodeValue(nsAString * aNodeValue); 44 nsresult GetNodeType(PRUint16 *aNodeType); 45 nsresult GetParentNode(nsIDOMNode *aParentNode); 46 nsresult GetChildNodes(nsIDOMNodeList *aChildNodes); 47 nsresult GetFirstChild(nsIDOMNode *aFirstChild); 48 nsresult GetLastChild(nsIDOMNode *aLastChild); 49 nsresult GetPreviousSibling(nsIDOMNode *aPreviousSibling); 50 nsresult GetNextSibling(nsIDOMNode *aNextSibling); 51 nsresult GetAttributes(nsIDOMNamedNodeMap *aAttributes); 52 nsresult GetOwnerDocument(nsIDOMDocument *aOwnerDocument); 53 nsresult InsertBefore(nsIDOMNode newChild, nsIDOMNode refChild, nsIDOMNode *_retval); 54 nsresult ReplaceChild(nsIDOMNode newChild, nsIDOMNode oldChild, nsIDOMNode *_retval); 55 nsresult RemoveChild(nsIDOMNode oldChild, nsIDOMNode *_retval); 56 nsresult AppendChild(nsIDOMNode newChild, nsIDOMNode *_retval); 57 nsresult HasChildNodes(PRBool *_retval); 58 nsresult CloneNode(PRBool deep, nsIDOMNode *_retval); 59 nsresult Normalize(); 60 nsresult IsSupported(nsAString * feature, nsAString * version_, PRBool *_retval); 61 nsresult GetNamespaceURI(nsAString * aNamespaceURI); 62 nsresult GetPrefix(nsAString * aPrefix); 63 nsresult SetPrefix(nsAString * aPrefix); 64 nsresult GetLocalName(nsAString * aLocalName); 65 nsresult HasAttributes(PRBool *_retval); 66 67 } 68