Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIDOMDocument.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIDOMDocument.d Mon Mar 02 14:44:16 2009 +0100 @@ -0,0 +1,52 @@ +module org.eclipse.swt.internal.mozilla.nsIDOMDocument; + +import org.eclipse.swt.internal.mozilla.Common; +import org.eclipse.swt.internal.mozilla.nsID; +import org.eclipse.swt.internal.mozilla.nsIDOMNode; +import org.eclipse.swt.internal.mozilla.nsStringAPI; + +import org.eclipse.swt.internal.mozilla.nsIDOMNode; +import org.eclipse.swt.internal.mozilla.nsIDOMNodeList; +import org.eclipse.swt.internal.mozilla.nsIDOMDocumentType; +import org.eclipse.swt.internal.mozilla.nsIDOMElement; +import org.eclipse.swt.internal.mozilla.nsIDOMDocumentFragment; +import org.eclipse.swt.internal.mozilla.nsIDOMText; +import org.eclipse.swt.internal.mozilla.nsIDOMComment; +import org.eclipse.swt.internal.mozilla.nsIDOMCDATASection; +import org.eclipse.swt.internal.mozilla.nsIDOMProcessingInstruction; +import org.eclipse.swt.internal.mozilla.nsIDOMDOMImplementation; +import org.eclipse.swt.internal.mozilla.nsIDOMAttr; +import org.eclipse.swt.internal.mozilla.nsIDOMEntityReference; + +const char[] NS_IDOMDOCUMENT_IID_STR = "a6cf9075-15b3-11d2-932e-00805f8add32"; + +const nsIID NS_IDOMDOCUMENT_IID= + {0xa6cf9075, 0x15b3, 0x11d2, + [ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]}; + +interface nsIDOMDocument : nsIDOMNode { + + static const char[] IID_STR = NS_IDOMDOCUMENT_IID_STR; + static const nsIID IID = NS_IDOMDOCUMENT_IID; + +extern(System): + nsresult GetDoctype(nsIDOMDocumentType *aDoctype); + nsresult GetImplementation(nsIDOMDOMImplementation *aImplementation); + nsresult GetDocumentElement(nsIDOMElement *aDocumentElement); + nsresult CreateElement(nsAString * tagName, nsIDOMElement *_retval); + nsresult CreateDocumentFragment(nsIDOMDocumentFragment *_retval); + nsresult CreateTextNode(nsAString * data, nsIDOMText *_retval); + nsresult CreateComment(nsAString * data, nsIDOMComment *_retval); + nsresult CreateCDATASection(nsAString * data, nsIDOMCDATASection *_retval); + nsresult CreateProcessingInstruction(nsAString * target, nsAString * data, nsIDOMProcessingInstruction *_retval); + nsresult CreateAttribute(nsAString * name, nsIDOMAttr *_retval); + nsresult CreateEntityReference(nsAString * name, nsIDOMEntityReference *_retval); + nsresult GetElementsByTagName(nsAString * tagname, nsIDOMNodeList *_retval); + nsresult ImportNode(nsIDOMNode importedNode, PRBool deep, nsIDOMNode *_retval); + nsresult CreateElementNS(nsAString * namespaceURI, nsAString * qualifiedName, nsIDOMElement *_retval); + nsresult CreateAttributeNS(nsAString * namespaceURI, nsAString * qualifiedName, nsIDOMAttr *_retval); + nsresult GetElementsByTagNameNS(nsAString * namespaceURI, nsAString * localName, nsIDOMNodeList *_retval); + nsresult GetElementById(nsAString * elementId, nsIDOMElement *_retval); + +} +