nsIDOMHTMLLabelElement.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLLabelElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLLabelElement_h__
  5. #define __gen_nsIDOMHTMLLabelElement_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: nsIDOMHTMLLabelElement */
  14. #define NS_IDOMHTMLLABELELEMENT_IID_STR "a6cf9096-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLLABELELEMENT_IID \
  16. {0xa6cf9096, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLLabelElement interface is the interface to a [X]HTML
  20. * label 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 nsIDOMHTMLLabelElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLLABELELEMENT_IID)
  30. /* readonly attribute nsIDOMHTMLFormElement form; */
  31. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  32. /* attribute DOMString accessKey; */
  33. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
  34. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
  35. /* attribute DOMString htmlFor; */
  36. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) = 0;
  37. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) = 0;
  38. };
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIDOMHTMLLABELELEMENT \
  41. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  42. NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
  43. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
  44. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor); \
  45. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor);
  46. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  47. #define NS_FORWARD_NSIDOMHTMLLABELELEMENT(_to) \
  48. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  49. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
  50. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
  51. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return _to GetHtmlFor(aHtmlFor); } \
  52. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return _to SetHtmlFor(aHtmlFor); }
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSIDOMHTMLLABELELEMENT(_to) \
  55. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  56. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
  57. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
  58. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHtmlFor(aHtmlFor); } \
  59. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHtmlFor(aHtmlFor); }
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62. /* Header file */
  63. class nsDOMHTMLLabelElement : public nsIDOMHTMLLabelElement
  64. {
  65. public:
  66. NS_DECL_ISUPPORTS
  67. NS_DECL_NSIDOMHTMLLABELELEMENT
  68. nsDOMHTMLLabelElement();
  69. private:
  70. ~nsDOMHTMLLabelElement();
  71. protected:
  72. /* additional members */
  73. };
  74. /* Implementation file */
  75. NS_IMPL_ISUPPORTS1(nsDOMHTMLLabelElement, nsIDOMHTMLLabelElement)
  76. nsDOMHTMLLabelElement::nsDOMHTMLLabelElement()
  77. {
  78. /* member initializers and constructor code */
  79. }
  80. nsDOMHTMLLabelElement::~nsDOMHTMLLabelElement()
  81. {
  82. /* destructor code */
  83. }
  84. /* readonly attribute nsIDOMHTMLFormElement form; */
  85. NS_IMETHODIMP nsDOMHTMLLabelElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  86. {
  87. return NS_ERROR_NOT_IMPLEMENTED;
  88. }
  89. /* attribute DOMString accessKey; */
  90. NS_IMETHODIMP nsDOMHTMLLabelElement::GetAccessKey(nsAString & aAccessKey)
  91. {
  92. return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94. NS_IMETHODIMP nsDOMHTMLLabelElement::SetAccessKey(const nsAString & aAccessKey)
  95. {
  96. return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. /* attribute DOMString htmlFor; */
  99. NS_IMETHODIMP nsDOMHTMLLabelElement::GetHtmlFor(nsAString & aHtmlFor)
  100. {
  101. return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. NS_IMETHODIMP nsDOMHTMLLabelElement::SetHtmlFor(const nsAString & aHtmlFor)
  104. {
  105. return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107. /* End of implementation class template. */
  108. #endif
  109. #endif /* __gen_nsIDOMHTMLLabelElement_h__ */