PageRenderTime 46ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLLabelElement.h

http://firefox-mac-pdf.googlecode.com/
C Header | 140 lines | 80 code | 30 blank | 30 comment | 0 complexity | c0cc78f5cfc5767eb490dc290964bdf1 MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/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 NS_SCRIPTABLE nsIDOMHTMLLabelElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLLABELELEMENT_IID)
  30. /* readonly attribute nsIDOMHTMLFormElement form; */
  31. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  32. /* attribute DOMString accessKey; */
  33. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
  34. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
  35. /* attribute DOMString htmlFor; */
  36. NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) = 0;
  37. NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) = 0;
  38. };
  39. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLLabelElement, NS_IDOMHTMLLABELELEMENT_IID)
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIDOMHTMLLABELELEMENT \
  42. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  43. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
  44. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
  45. NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor); \
  46. NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor);
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSIDOMHTMLLABELELEMENT(_to) \
  49. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  50. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
  51. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
  52. NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return _to GetHtmlFor(aHtmlFor); } \
  53. NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return _to SetHtmlFor(aHtmlFor); }
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  55. #define NS_FORWARD_SAFE_NSIDOMHTMLLABELELEMENT(_to) \
  56. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  57. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
  58. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
  59. NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHtmlFor(aHtmlFor); } \
  60. NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHtmlFor(aHtmlFor); }
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63. /* Header file */
  64. class nsDOMHTMLLabelElement : public nsIDOMHTMLLabelElement
  65. {
  66. public:
  67. NS_DECL_ISUPPORTS
  68. NS_DECL_NSIDOMHTMLLABELELEMENT
  69. nsDOMHTMLLabelElement();
  70. private:
  71. ~nsDOMHTMLLabelElement();
  72. protected:
  73. /* additional members */
  74. };
  75. /* Implementation file */
  76. NS_IMPL_ISUPPORTS1(nsDOMHTMLLabelElement, nsIDOMHTMLLabelElement)
  77. nsDOMHTMLLabelElement::nsDOMHTMLLabelElement()
  78. {
  79. /* member initializers and constructor code */
  80. }
  81. nsDOMHTMLLabelElement::~nsDOMHTMLLabelElement()
  82. {
  83. /* destructor code */
  84. }
  85. /* readonly attribute nsIDOMHTMLFormElement form; */
  86. NS_IMETHODIMP nsDOMHTMLLabelElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  87. {
  88. return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90. /* attribute DOMString accessKey; */
  91. NS_IMETHODIMP nsDOMHTMLLabelElement::GetAccessKey(nsAString & aAccessKey)
  92. {
  93. return NS_ERROR_NOT_IMPLEMENTED;
  94. }
  95. NS_IMETHODIMP nsDOMHTMLLabelElement::SetAccessKey(const nsAString & aAccessKey)
  96. {
  97. return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99. /* attribute DOMString htmlFor; */
  100. NS_IMETHODIMP nsDOMHTMLLabelElement::GetHtmlFor(nsAString & aHtmlFor)
  101. {
  102. return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104. NS_IMETHODIMP nsDOMHTMLLabelElement::SetHtmlFor(const nsAString & aHtmlFor)
  105. {
  106. return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108. /* End of implementation class template. */
  109. #endif
  110. #endif /* __gen_nsIDOMHTMLLabelElement_h__ */