OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/dom/public/idl/core/nsIDOMDOMImplementation.id
l |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMDOMImplementation_h__ |
| 6 #define __gen_nsIDOMDOMImplementation_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_domstubs_h__ |
| 10 #include "domstubs.h" |
| 11 #endif |
| 12 |
| 13 /* For IDL files that don't want to include root IDL files. */ |
| 14 #ifndef NS_NO_VTABLE |
| 15 #define NS_NO_VTABLE |
| 16 #endif |
| 17 |
| 18 /* starting interface: nsIDOMDOMImplementation */ |
| 19 #define NS_IDOMDOMIMPLEMENTATION_IID_STR "a6cf9074-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMDOMIMPLEMENTATION_IID \ |
| 22 {0xa6cf9074, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIDOMDOMImplementation : public nsISupports { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOMIMPLEMENTATION_IID) |
| 29 |
| 30 /** |
| 31 * The nsIDOMDOMImplementation interface provides a number of methods for |
| 32 * performing operations that are independent of any particular instance |
| 33 * of the document object model. |
| 34 * |
| 35 * For more information on this interface please see |
| 36 * http://www.w3.org/TR/DOM-Level-2-Core/ |
| 37 * |
| 38 * @status FROZEN |
| 39 */ |
| 40 /* boolean hasFeature (in DOMString feature, in DOMString version); */ |
| 41 NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PR
Bool *_retval) = 0; |
| 42 |
| 43 /* nsIDOMDocumentType createDocumentType (in DOMString qualifiedName, in DOMSt
ring publicId, in DOMString systemId) raises (DOMException); */ |
| 44 NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString
& publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) = 0; |
| 45 |
| 46 /* nsIDOMDocument createDocument (in DOMString namespaceURI, in DOMString qual
ifiedName, in nsIDOMDocumentType doctype) raises (DOMException); */ |
| 47 NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qu
alifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) = 0; |
| 48 |
| 49 }; |
| 50 |
| 51 /* Use this macro when declaring classes that implement this interface. */ |
| 52 #define NS_DECL_NSIDOMDOMIMPLEMENTATION \ |
| 53 NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PR
Bool *_retval); \ |
| 54 NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString
& publicId, const nsAString & systemId, nsIDOMDocumentType **_retval); \ |
| 55 NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qu
alifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval); |
| 56 |
| 57 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 58 #define NS_FORWARD_NSIDOMDOMIMPLEMENTATION(_to) \ |
| 59 NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PR
Bool *_retval) { return _to HasFeature(feature, version, _retval); } \ |
| 60 NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString
& publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) { return
_to CreateDocumentType(qualifiedName, publicId, systemId, _retval); } \ |
| 61 NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qu
alifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) { return _to
CreateDocument(namespaceURI, qualifiedName, doctype, _retval); } |
| 62 |
| 63 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 64 #define NS_FORWARD_SAFE_NSIDOMDOMIMPLEMENTATION(_to) \ |
| 65 NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PR
Bool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasFeature(feature,
version, _retval); } \ |
| 66 NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString
& publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) { return
!_to ? NS_ERROR_NULL_POINTER : _to->CreateDocumentType(qualifiedName, publicId,
systemId, _retval); } \ |
| 67 NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qu
alifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) { return !_t
o ? NS_ERROR_NULL_POINTER : _to->CreateDocument(namespaceURI, qualifiedName, doc
type, _retval); } |
| 68 |
| 69 #if 0 |
| 70 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 71 |
| 72 /* Header file */ |
| 73 class nsDOMDOMImplementation : public nsIDOMDOMImplementation |
| 74 { |
| 75 public: |
| 76 NS_DECL_ISUPPORTS |
| 77 NS_DECL_NSIDOMDOMIMPLEMENTATION |
| 78 |
| 79 nsDOMDOMImplementation(); |
| 80 |
| 81 private: |
| 82 ~nsDOMDOMImplementation(); |
| 83 |
| 84 protected: |
| 85 /* additional members */ |
| 86 }; |
| 87 |
| 88 /* Implementation file */ |
| 89 NS_IMPL_ISUPPORTS1(nsDOMDOMImplementation, nsIDOMDOMImplementation) |
| 90 |
| 91 nsDOMDOMImplementation::nsDOMDOMImplementation() |
| 92 { |
| 93 /* member initializers and constructor code */ |
| 94 } |
| 95 |
| 96 nsDOMDOMImplementation::~nsDOMDOMImplementation() |
| 97 { |
| 98 /* destructor code */ |
| 99 } |
| 100 |
| 101 /* boolean hasFeature (in DOMString feature, in DOMString version); */ |
| 102 NS_IMETHODIMP nsDOMDOMImplementation::HasFeature(const nsAString & feature, cons
t nsAString & version, PRBool *_retval) |
| 103 { |
| 104 return NS_ERROR_NOT_IMPLEMENTED; |
| 105 } |
| 106 |
| 107 /* nsIDOMDocumentType createDocumentType (in DOMString qualifiedName, in DOMStri
ng publicId, in DOMString systemId) raises (DOMException); */ |
| 108 NS_IMETHODIMP nsDOMDOMImplementation::CreateDocumentType(const nsAString & quali
fiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocument
Type **_retval) |
| 109 { |
| 110 return NS_ERROR_NOT_IMPLEMENTED; |
| 111 } |
| 112 |
| 113 /* nsIDOMDocument createDocument (in DOMString namespaceURI, in DOMString qualif
iedName, in nsIDOMDocumentType doctype) raises (DOMException); */ |
| 114 NS_IMETHODIMP nsDOMDOMImplementation::CreateDocument(const nsAString & namespace
URI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocumen
t **_retval) |
| 115 { |
| 116 return NS_ERROR_NOT_IMPLEMENTED; |
| 117 } |
| 118 |
| 119 /* End of implementation class template. */ |
| 120 #endif |
| 121 |
| 122 |
| 123 #endif /* __gen_nsIDOMDOMImplementation_h__ */ |
OLD | NEW |