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/nsIDOMHTMLOptGroupElement.
idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLOptGroupElement_h__ |
| 6 #define __gen_nsIDOMHTMLOptGroupElement_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: nsIDOMHTMLOptGroupElement */ |
| 19 #define NS_IDOMHTMLOPTGROUPELEMENT_IID_STR "a6cf9091-15b3-11d2-932e-00805f8add32
" |
| 20 |
| 21 #define NS_IDOMHTMLOPTGROUPELEMENT_IID \ |
| 22 {0xa6cf9091, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 /** |
| 26 * The nsIDOMHTMLOptGroupElement interface is the interface to a |
| 27 * [X]HTML optgroup 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 nsIDOMHTMLOptGroupElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTGROUPELEMENT_IID) |
| 38 |
| 39 /* attribute boolean disabled; */ |
| 40 NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0; |
| 41 NS_IMETHOD SetDisabled(PRBool aDisabled) = 0; |
| 42 |
| 43 /* attribute DOMString label; */ |
| 44 NS_IMETHOD GetLabel(nsAString & aLabel) = 0; |
| 45 NS_IMETHOD SetLabel(const nsAString & aLabel) = 0; |
| 46 |
| 47 }; |
| 48 |
| 49 /* Use this macro when declaring classes that implement this interface. */ |
| 50 #define NS_DECL_NSIDOMHTMLOPTGROUPELEMENT \ |
| 51 NS_IMETHOD GetDisabled(PRBool *aDisabled); \ |
| 52 NS_IMETHOD SetDisabled(PRBool aDisabled); \ |
| 53 NS_IMETHOD GetLabel(nsAString & aLabel); \ |
| 54 NS_IMETHOD SetLabel(const nsAString & aLabel); |
| 55 |
| 56 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 57 #define NS_FORWARD_NSIDOMHTMLOPTGROUPELEMENT(_to) \ |
| 58 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled);
} \ |
| 59 NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled);
} \ |
| 60 NS_IMETHOD GetLabel(nsAString & aLabel) { return _to GetLabel(aLabel); } \ |
| 61 NS_IMETHOD SetLabel(const nsAString & aLabel) { return _to SetLabel(aLabel); }
|
| 62 |
| 63 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 64 #define NS_FORWARD_SAFE_NSIDOMHTMLOPTGROUPELEMENT(_to) \ |
| 65 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetDisabled(aDisabled); } \ |
| 66 NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER
: _to->SetDisabled(aDisabled); } \ |
| 67 NS_IMETHOD GetLabel(nsAString & aLabel) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetLabel(aLabel); } \ |
| 68 NS_IMETHOD SetLabel(const nsAString & aLabel) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetLabel(aLabel); } |
| 69 |
| 70 #if 0 |
| 71 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 72 |
| 73 /* Header file */ |
| 74 class nsDOMHTMLOptGroupElement : public nsIDOMHTMLOptGroupElement |
| 75 { |
| 76 public: |
| 77 NS_DECL_ISUPPORTS |
| 78 NS_DECL_NSIDOMHTMLOPTGROUPELEMENT |
| 79 |
| 80 nsDOMHTMLOptGroupElement(); |
| 81 |
| 82 private: |
| 83 ~nsDOMHTMLOptGroupElement(); |
| 84 |
| 85 protected: |
| 86 /* additional members */ |
| 87 }; |
| 88 |
| 89 /* Implementation file */ |
| 90 NS_IMPL_ISUPPORTS1(nsDOMHTMLOptGroupElement, nsIDOMHTMLOptGroupElement) |
| 91 |
| 92 nsDOMHTMLOptGroupElement::nsDOMHTMLOptGroupElement() |
| 93 { |
| 94 /* member initializers and constructor code */ |
| 95 } |
| 96 |
| 97 nsDOMHTMLOptGroupElement::~nsDOMHTMLOptGroupElement() |
| 98 { |
| 99 /* destructor code */ |
| 100 } |
| 101 |
| 102 /* attribute boolean disabled; */ |
| 103 NS_IMETHODIMP nsDOMHTMLOptGroupElement::GetDisabled(PRBool *aDisabled) |
| 104 { |
| 105 return NS_ERROR_NOT_IMPLEMENTED; |
| 106 } |
| 107 NS_IMETHODIMP nsDOMHTMLOptGroupElement::SetDisabled(PRBool aDisabled) |
| 108 { |
| 109 return NS_ERROR_NOT_IMPLEMENTED; |
| 110 } |
| 111 |
| 112 /* attribute DOMString label; */ |
| 113 NS_IMETHODIMP nsDOMHTMLOptGroupElement::GetLabel(nsAString & aLabel) |
| 114 { |
| 115 return NS_ERROR_NOT_IMPLEMENTED; |
| 116 } |
| 117 NS_IMETHODIMP nsDOMHTMLOptGroupElement::SetLabel(const nsAString & aLabel) |
| 118 { |
| 119 return NS_ERROR_NOT_IMPLEMENTED; |
| 120 } |
| 121 |
| 122 /* End of implementation class template. */ |
| 123 #endif |
| 124 |
| 125 |
| 126 #endif /* __gen_nsIDOMHTMLOptGroupElement_h__ */ |
OLD | NEW |