nsIDOMHTMLIsIndexElement.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLIsIndexElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLIsIndexElement_h__
  5. #define __gen_nsIDOMHTMLIsIndexElement_h__
  6. #ifndef __gen_nsIDOMHTMLElement_h__
  7. #include "nsIDOMHTMLElement.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: nsIDOMHTMLIsIndexElement */
  14. #define NS_IDOMHTMLISINDEXELEMENT_IID_STR "a6cf908c-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLISINDEXELEMENT_IID \
  16. {0xa6cf908c, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLIsIndexElement interface is the interface to a
  20. * [X]HTML isindex element.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-HTML/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE nsIDOMHTMLIsIndexElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLISINDEXELEMENT_IID)
  30. /* readonly attribute nsIDOMHTMLFormElement form; */
  31. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  32. /* attribute DOMString prompt; */
  33. NS_IMETHOD GetPrompt(nsAString & aPrompt) = 0;
  34. NS_IMETHOD SetPrompt(const nsAString & aPrompt) = 0;
  35. };
  36. /* Use this macro when declaring classes that implement this interface. */
  37. #define NS_DECL_NSIDOMHTMLISINDEXELEMENT \
  38. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  39. NS_IMETHOD GetPrompt(nsAString & aPrompt); \
  40. NS_IMETHOD SetPrompt(const nsAString & aPrompt);
  41. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  42. #define NS_FORWARD_NSIDOMHTMLISINDEXELEMENT(_to) \
  43. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  44. NS_IMETHOD GetPrompt(nsAString & aPrompt) { return _to GetPrompt(aPrompt); } \
  45. NS_IMETHOD SetPrompt(const nsAString & aPrompt) { return _to SetPrompt(aPrompt); }
  46. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  47. #define NS_FORWARD_SAFE_NSIDOMHTMLISINDEXELEMENT(_to) \
  48. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  49. NS_IMETHOD GetPrompt(nsAString & aPrompt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrompt(aPrompt); } \
  50. NS_IMETHOD SetPrompt(const nsAString & aPrompt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrompt(aPrompt); }
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53. /* Header file */
  54. class nsDOMHTMLIsIndexElement : public nsIDOMHTMLIsIndexElement
  55. {
  56. public:
  57. NS_DECL_ISUPPORTS
  58. NS_DECL_NSIDOMHTMLISINDEXELEMENT
  59. nsDOMHTMLIsIndexElement();
  60. private:
  61. ~nsDOMHTMLIsIndexElement();
  62. protected:
  63. /* additional members */
  64. };
  65. /* Implementation file */
  66. NS_IMPL_ISUPPORTS1(nsDOMHTMLIsIndexElement, nsIDOMHTMLIsIndexElement)
  67. nsDOMHTMLIsIndexElement::nsDOMHTMLIsIndexElement()
  68. {
  69. /* member initializers and constructor code */
  70. }
  71. nsDOMHTMLIsIndexElement::~nsDOMHTMLIsIndexElement()
  72. {
  73. /* destructor code */
  74. }
  75. /* readonly attribute nsIDOMHTMLFormElement form; */
  76. NS_IMETHODIMP nsDOMHTMLIsIndexElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  77. {
  78. return NS_ERROR_NOT_IMPLEMENTED;
  79. }
  80. /* attribute DOMString prompt; */
  81. NS_IMETHODIMP nsDOMHTMLIsIndexElement::GetPrompt(nsAString & aPrompt)
  82. {
  83. return NS_ERROR_NOT_IMPLEMENTED;
  84. }
  85. NS_IMETHODIMP nsDOMHTMLIsIndexElement::SetPrompt(const nsAString & aPrompt)
  86. {
  87. return NS_ERROR_NOT_IMPLEMENTED;
  88. }
  89. /* End of implementation class template. */
  90. #endif
  91. #endif /* __gen_nsIDOMHTMLIsIndexElement_h__ */