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/html/nsIDOMHTMLLabelElement.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLLabelElement_h__ |
| 6 #define __gen_nsIDOMHTMLLabelElement_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_nsIDOMHTMLElement_h__ |
| 10 #include "nsIDOMHTMLElement.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: nsIDOMHTMLLabelElement */ |
| 19 #define NS_IDOMHTMLLABELELEMENT_IID_STR "a6cf9096-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMHTMLLABELELEMENT_IID \ |
| 22 {0xa6cf9096, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 /** |
| 26 * The nsIDOMHTMLLabelElement interface is the interface to a [X]HTML |
| 27 * label element. |
| 28 * |
| 29 * For more information on this interface please see |
| 30 * http://www.w3.org/TR/DOM-Level-2-HTML/ |
| 31 * |
| 32 * @status FROZEN |
| 33 */ |
| 34 class NS_NO_VTABLE nsIDOMHTMLLabelElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLLABELELEMENT_IID) |
| 38 |
| 39 /* readonly attribute nsIDOMHTMLFormElement form; */ |
| 40 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0; |
| 41 |
| 42 /* attribute DOMString accessKey; */ |
| 43 NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0; |
| 44 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0; |
| 45 |
| 46 /* attribute DOMString htmlFor; */ |
| 47 NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) = 0; |
| 48 NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) = 0; |
| 49 |
| 50 }; |
| 51 |
| 52 /* Use this macro when declaring classes that implement this interface. */ |
| 53 #define NS_DECL_NSIDOMHTMLLABELELEMENT \ |
| 54 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \ |
| 55 NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \ |
| 56 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \ |
| 57 NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor); \ |
| 58 NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor); |
| 59 |
| 60 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 61 #define NS_FORWARD_NSIDOMHTMLLABELELEMENT(_to) \ |
| 62 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm)
; } \ |
| 63 NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAcc
essKey); } \ |
| 64 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKe
y(aAccessKey); } \ |
| 65 NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return _to GetHtmlFor(aHtmlFor);
} \ |
| 66 NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return _to SetHtmlFor(aHtm
lFor); } |
| 67 |
| 68 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 69 #define NS_FORWARD_SAFE_NSIDOMHTMLLABELELEMENT(_to) \ |
| 70 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NU
LL_POINTER : _to->GetForm(aForm); } \ |
| 71 NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_
POINTER : _to->GetAccessKey(aAccessKey); } \ |
| 72 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR
_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \ |
| 73 NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->GetHtmlFor(aHtmlFor); } \ |
| 74 NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return !_to ? NS_ERROR_NUL
L_POINTER : _to->SetHtmlFor(aHtmlFor); } |
| 75 |
| 76 #if 0 |
| 77 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 78 |
| 79 /* Header file */ |
| 80 class nsDOMHTMLLabelElement : public nsIDOMHTMLLabelElement |
| 81 { |
| 82 public: |
| 83 NS_DECL_ISUPPORTS |
| 84 NS_DECL_NSIDOMHTMLLABELELEMENT |
| 85 |
| 86 nsDOMHTMLLabelElement(); |
| 87 |
| 88 private: |
| 89 ~nsDOMHTMLLabelElement(); |
| 90 |
| 91 protected: |
| 92 /* additional members */ |
| 93 }; |
| 94 |
| 95 /* Implementation file */ |
| 96 NS_IMPL_ISUPPORTS1(nsDOMHTMLLabelElement, nsIDOMHTMLLabelElement) |
| 97 |
| 98 nsDOMHTMLLabelElement::nsDOMHTMLLabelElement() |
| 99 { |
| 100 /* member initializers and constructor code */ |
| 101 } |
| 102 |
| 103 nsDOMHTMLLabelElement::~nsDOMHTMLLabelElement() |
| 104 { |
| 105 /* destructor code */ |
| 106 } |
| 107 |
| 108 /* readonly attribute nsIDOMHTMLFormElement form; */ |
| 109 NS_IMETHODIMP nsDOMHTMLLabelElement::GetForm(nsIDOMHTMLFormElement * *aForm) |
| 110 { |
| 111 return NS_ERROR_NOT_IMPLEMENTED; |
| 112 } |
| 113 |
| 114 /* attribute DOMString accessKey; */ |
| 115 NS_IMETHODIMP nsDOMHTMLLabelElement::GetAccessKey(nsAString & aAccessKey) |
| 116 { |
| 117 return NS_ERROR_NOT_IMPLEMENTED; |
| 118 } |
| 119 NS_IMETHODIMP nsDOMHTMLLabelElement::SetAccessKey(const nsAString & aAccessKey) |
| 120 { |
| 121 return NS_ERROR_NOT_IMPLEMENTED; |
| 122 } |
| 123 |
| 124 /* attribute DOMString htmlFor; */ |
| 125 NS_IMETHODIMP nsDOMHTMLLabelElement::GetHtmlFor(nsAString & aHtmlFor) |
| 126 { |
| 127 return NS_ERROR_NOT_IMPLEMENTED; |
| 128 } |
| 129 NS_IMETHODIMP nsDOMHTMLLabelElement::SetHtmlFor(const nsAString & aHtmlFor) |
| 130 { |
| 131 return NS_ERROR_NOT_IMPLEMENTED; |
| 132 } |
| 133 |
| 134 /* End of implementation class template. */ |
| 135 #endif |
| 136 |
| 137 |
| 138 #endif /* __gen_nsIDOMHTMLLabelElement_h__ */ |
OLD | NEW |