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/nsIDOMHTMLFontElement.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLFontElement_h__ |
| 6 #define __gen_nsIDOMHTMLFontElement_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: nsIDOMHTMLFontElement */ |
| 19 #define NS_IDOMHTMLFONTELEMENT_IID_STR "a6cf90a7-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMHTMLFONTELEMENT_IID \ |
| 22 {0xa6cf90a7, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 /** |
| 26 * The nsIDOMHTMLFontElement interface is the interface to a [X]HTML |
| 27 * font 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 nsIDOMHTMLFontElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLFONTELEMENT_IID) |
| 38 |
| 39 /* attribute DOMString color; */ |
| 40 NS_IMETHOD GetColor(nsAString & aColor) = 0; |
| 41 NS_IMETHOD SetColor(const nsAString & aColor) = 0; |
| 42 |
| 43 /* attribute DOMString face; */ |
| 44 NS_IMETHOD GetFace(nsAString & aFace) = 0; |
| 45 NS_IMETHOD SetFace(const nsAString & aFace) = 0; |
| 46 |
| 47 /* attribute DOMString size; */ |
| 48 NS_IMETHOD GetSize(nsAString & aSize) = 0; |
| 49 NS_IMETHOD SetSize(const nsAString & aSize) = 0; |
| 50 |
| 51 }; |
| 52 |
| 53 /* Use this macro when declaring classes that implement this interface. */ |
| 54 #define NS_DECL_NSIDOMHTMLFONTELEMENT \ |
| 55 NS_IMETHOD GetColor(nsAString & aColor); \ |
| 56 NS_IMETHOD SetColor(const nsAString & aColor); \ |
| 57 NS_IMETHOD GetFace(nsAString & aFace); \ |
| 58 NS_IMETHOD SetFace(const nsAString & aFace); \ |
| 59 NS_IMETHOD GetSize(nsAString & aSize); \ |
| 60 NS_IMETHOD SetSize(const nsAString & aSize); |
| 61 |
| 62 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 63 #define NS_FORWARD_NSIDOMHTMLFONTELEMENT(_to) \ |
| 64 NS_IMETHOD GetColor(nsAString & aColor) { return _to GetColor(aColor); } \ |
| 65 NS_IMETHOD SetColor(const nsAString & aColor) { return _to SetColor(aColor); }
\ |
| 66 NS_IMETHOD GetFace(nsAString & aFace) { return _to GetFace(aFace); } \ |
| 67 NS_IMETHOD SetFace(const nsAString & aFace) { return _to SetFace(aFace); } \ |
| 68 NS_IMETHOD GetSize(nsAString & aSize) { return _to GetSize(aSize); } \ |
| 69 NS_IMETHOD SetSize(const nsAString & aSize) { return _to SetSize(aSize); } |
| 70 |
| 71 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 72 #define NS_FORWARD_SAFE_NSIDOMHTMLFONTELEMENT(_to) \ |
| 73 NS_IMETHOD GetColor(nsAString & aColor) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetColor(aColor); } \ |
| 74 NS_IMETHOD SetColor(const nsAString & aColor) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetColor(aColor); } \ |
| 75 NS_IMETHOD GetFace(nsAString & aFace) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetFace(aFace); } \ |
| 76 NS_IMETHOD SetFace(const nsAString & aFace) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetFace(aFace); } \ |
| 77 NS_IMETHOD GetSize(nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetSize(aSize); } \ |
| 78 NS_IMETHOD SetSize(const nsAString & aSize) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetSize(aSize); } |
| 79 |
| 80 #if 0 |
| 81 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 82 |
| 83 /* Header file */ |
| 84 class nsDOMHTMLFontElement : public nsIDOMHTMLFontElement |
| 85 { |
| 86 public: |
| 87 NS_DECL_ISUPPORTS |
| 88 NS_DECL_NSIDOMHTMLFONTELEMENT |
| 89 |
| 90 nsDOMHTMLFontElement(); |
| 91 |
| 92 private: |
| 93 ~nsDOMHTMLFontElement(); |
| 94 |
| 95 protected: |
| 96 /* additional members */ |
| 97 }; |
| 98 |
| 99 /* Implementation file */ |
| 100 NS_IMPL_ISUPPORTS1(nsDOMHTMLFontElement, nsIDOMHTMLFontElement) |
| 101 |
| 102 nsDOMHTMLFontElement::nsDOMHTMLFontElement() |
| 103 { |
| 104 /* member initializers and constructor code */ |
| 105 } |
| 106 |
| 107 nsDOMHTMLFontElement::~nsDOMHTMLFontElement() |
| 108 { |
| 109 /* destructor code */ |
| 110 } |
| 111 |
| 112 /* attribute DOMString color; */ |
| 113 NS_IMETHODIMP nsDOMHTMLFontElement::GetColor(nsAString & aColor) |
| 114 { |
| 115 return NS_ERROR_NOT_IMPLEMENTED; |
| 116 } |
| 117 NS_IMETHODIMP nsDOMHTMLFontElement::SetColor(const nsAString & aColor) |
| 118 { |
| 119 return NS_ERROR_NOT_IMPLEMENTED; |
| 120 } |
| 121 |
| 122 /* attribute DOMString face; */ |
| 123 NS_IMETHODIMP nsDOMHTMLFontElement::GetFace(nsAString & aFace) |
| 124 { |
| 125 return NS_ERROR_NOT_IMPLEMENTED; |
| 126 } |
| 127 NS_IMETHODIMP nsDOMHTMLFontElement::SetFace(const nsAString & aFace) |
| 128 { |
| 129 return NS_ERROR_NOT_IMPLEMENTED; |
| 130 } |
| 131 |
| 132 /* attribute DOMString size; */ |
| 133 NS_IMETHODIMP nsDOMHTMLFontElement::GetSize(nsAString & aSize) |
| 134 { |
| 135 return NS_ERROR_NOT_IMPLEMENTED; |
| 136 } |
| 137 NS_IMETHODIMP nsDOMHTMLFontElement::SetSize(const nsAString & aSize) |
| 138 { |
| 139 return NS_ERROR_NOT_IMPLEMENTED; |
| 140 } |
| 141 |
| 142 /* End of implementation class template. */ |
| 143 #endif |
| 144 |
| 145 |
| 146 #endif /* __gen_nsIDOMHTMLFontElement_h__ */ |
OLD | NEW |