1 module org.eclipse.swt.internal.mozilla.nsIDOMDocument;
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.nsIDOMNode;
8 import org.eclipse.swt.internal.mozilla.nsStringAPI;
9 
10 import org.eclipse.swt.internal.mozilla.nsIDOMNode;
11 import org.eclipse.swt.internal.mozilla.nsIDOMNodeList;
12 import org.eclipse.swt.internal.mozilla.nsIDOMDocumentType;
13 import org.eclipse.swt.internal.mozilla.nsIDOMElement;
14 import org.eclipse.swt.internal.mozilla.nsIDOMDocumentFragment;
15 import org.eclipse.swt.internal.mozilla.nsIDOMText;
16 import org.eclipse.swt.internal.mozilla.nsIDOMComment;
17 import org.eclipse.swt.internal.mozilla.nsIDOMCDATASection;
18 import org.eclipse.swt.internal.mozilla.nsIDOMProcessingInstruction;
19 import org.eclipse.swt.internal.mozilla.nsIDOMDOMImplementation;
20 import org.eclipse.swt.internal.mozilla.nsIDOMAttr;
21 import org.eclipse.swt.internal.mozilla.nsIDOMEntityReference;
22 
23 const char[] NS_IDOMDOCUMENT_IID_STR = "a6cf9075-15b3-11d2-932e-00805f8add32";
24 
25 const nsIID NS_IDOMDOCUMENT_IID= 
26   {0xa6cf9075, 0x15b3, 0x11d2, 
27     [ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]};
28 
29 interface nsIDOMDocument : nsIDOMNode {
30 
31   static const char[] IID_STR = NS_IDOMDOCUMENT_IID_STR;
32   static const nsIID IID = NS_IDOMDOCUMENT_IID;
33 
34 extern(System):
35   nsresult GetDoctype(nsIDOMDocumentType  *aDoctype);
36   nsresult GetImplementation(nsIDOMDOMImplementation  *aImplementation);
37   nsresult GetDocumentElement(nsIDOMElement  *aDocumentElement);
38   nsresult CreateElement(nsAString * tagName, nsIDOMElement *_retval);
39   nsresult CreateDocumentFragment(nsIDOMDocumentFragment *_retval);
40   nsresult CreateTextNode(nsAString * data, nsIDOMText *_retval);
41   nsresult CreateComment(nsAString * data, nsIDOMComment *_retval);
42   nsresult CreateCDATASection(nsAString * data, nsIDOMCDATASection *_retval);
43   nsresult CreateProcessingInstruction(nsAString * target, nsAString * data, nsIDOMProcessingInstruction *_retval);
44   nsresult CreateAttribute(nsAString * name, nsIDOMAttr *_retval);
45   nsresult CreateEntityReference(nsAString * name, nsIDOMEntityReference *_retval);
46   nsresult GetElementsByTagName(nsAString * tagname, nsIDOMNodeList *_retval);
47   nsresult ImportNode(nsIDOMNode importedNode, PRBool deep, nsIDOMNode *_retval);
48   nsresult CreateElementNS(nsAString * namespaceURI, nsAString * qualifiedName, nsIDOMElement *_retval);
49   nsresult CreateAttributeNS(nsAString * namespaceURI, nsAString * qualifiedName, nsIDOMAttr *_retval);
50   nsresult GetElementsByTagNameNS(nsAString * namespaceURI, nsAString * localName, nsIDOMNodeList *_retval);
51   nsresult GetElementById(nsAString * elementId, nsIDOMElement *_retval);
52 
53 }
54