nsIDOMDOMImplementation.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/core/nsIDOMDOMImplementation.idl
  3. */
  4. #ifndef __gen_nsIDOMDOMImplementation_h__
  5. #define __gen_nsIDOMDOMImplementation_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMDOMImplementation */
  14. #define NS_IDOMDOMIMPLEMENTATION_IID_STR "a6cf9074-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMDOMIMPLEMENTATION_IID \
  16. {0xa6cf9074, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMDOMImplementation : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOMIMPLEMENTATION_IID)
  21. /**
  22. * The nsIDOMDOMImplementation interface provides a number of methods for
  23. * performing operations that are independent of any particular instance
  24. * of the document object model.
  25. *
  26. * For more information on this interface please see
  27. * http://www.w3.org/TR/DOM-Level-2-Core/
  28. *
  29. * @status FROZEN
  30. */
  31. /* boolean hasFeature (in DOMString feature, in DOMString version); */
  32. NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval) = 0;
  33. /* nsIDOMDocumentType createDocumentType (in DOMString qualifiedName, in DOMString publicId, in DOMString systemId) raises (DOMException); */
  34. NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) = 0;
  35. /* nsIDOMDocument createDocument (in DOMString namespaceURI, in DOMString qualifiedName, in nsIDOMDocumentType doctype) raises (DOMException); */
  36. NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) = 0;
  37. };
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSIDOMDOMIMPLEMENTATION \
  40. NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval); \
  41. NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval); \
  42. NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval);
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIDOMDOMIMPLEMENTATION(_to) \
  45. NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval) { return _to HasFeature(feature, version, _retval); } \
  46. NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) { return _to CreateDocumentType(qualifiedName, publicId, systemId, _retval); } \
  47. NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) { return _to CreateDocument(namespaceURI, qualifiedName, doctype, _retval); }
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIDOMDOMIMPLEMENTATION(_to) \
  50. NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasFeature(feature, version, _retval); } \
  51. 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); } \
  52. NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateDocument(namespaceURI, qualifiedName, doctype, _retval); }
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55. /* Header file */
  56. class nsDOMDOMImplementation : public nsIDOMDOMImplementation
  57. {
  58. public:
  59. NS_DECL_ISUPPORTS
  60. NS_DECL_NSIDOMDOMIMPLEMENTATION
  61. nsDOMDOMImplementation();
  62. private:
  63. ~nsDOMDOMImplementation();
  64. protected:
  65. /* additional members */
  66. };
  67. /* Implementation file */
  68. NS_IMPL_ISUPPORTS1(nsDOMDOMImplementation, nsIDOMDOMImplementation)
  69. nsDOMDOMImplementation::nsDOMDOMImplementation()
  70. {
  71. /* member initializers and constructor code */
  72. }
  73. nsDOMDOMImplementation::~nsDOMDOMImplementation()
  74. {
  75. /* destructor code */
  76. }
  77. /* boolean hasFeature (in DOMString feature, in DOMString version); */
  78. NS_IMETHODIMP nsDOMDOMImplementation::HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* nsIDOMDocumentType createDocumentType (in DOMString qualifiedName, in DOMString publicId, in DOMString systemId) raises (DOMException); */
  83. NS_IMETHODIMP nsDOMDOMImplementation::CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval)
  84. {
  85. return NS_ERROR_NOT_IMPLEMENTED;
  86. }
  87. /* nsIDOMDocument createDocument (in DOMString namespaceURI, in DOMString qualifiedName, in nsIDOMDocumentType doctype) raises (DOMException); */
  88. NS_IMETHODIMP nsDOMDOMImplementation::CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval)
  89. {
  90. return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92. /* End of implementation class template. */
  93. #endif
  94. #endif /* __gen_nsIDOMDOMImplementation_h__ */