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/css/nsIDOMCSSPrimitiveValue.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMCSSPrimitiveValue_h__ |
| 6 #define __gen_nsIDOMCSSPrimitiveValue_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_nsIDOMCSSValue_h__ |
| 10 #include "nsIDOMCSSValue.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: nsIDOMCSSPrimitiveValue */ |
| 19 #define NS_IDOMCSSPRIMITIVEVALUE_IID_STR "e249031f-8df9-4e7a-b644-18946dce0019" |
| 20 |
| 21 #define NS_IDOMCSSPRIMITIVEVALUE_IID \ |
| 22 {0xe249031f, 0x8df9, 0x4e7a, \ |
| 23 { 0xb6, 0x44, 0x18, 0x94, 0x6d, 0xce, 0x00, 0x19 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIDOMCSSPrimitiveValue : public nsIDOMCSSValue { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSPRIMITIVEVALUE_IID) |
| 29 |
| 30 /** |
| 31 * The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive |
| 32 * CSS value in the Document Object Model. |
| 33 * |
| 34 * For more information on this interface please see |
| 35 * http://www.w3.org/TR/DOM-Level-2-Style |
| 36 * |
| 37 * @status FROZEN |
| 38 */ |
| 39 enum { CSS_UNKNOWN = 0U }; |
| 40 |
| 41 enum { CSS_NUMBER = 1U }; |
| 42 |
| 43 enum { CSS_PERCENTAGE = 2U }; |
| 44 |
| 45 enum { CSS_EMS = 3U }; |
| 46 |
| 47 enum { CSS_EXS = 4U }; |
| 48 |
| 49 enum { CSS_PX = 5U }; |
| 50 |
| 51 enum { CSS_CM = 6U }; |
| 52 |
| 53 enum { CSS_MM = 7U }; |
| 54 |
| 55 enum { CSS_IN = 8U }; |
| 56 |
| 57 enum { CSS_PT = 9U }; |
| 58 |
| 59 enum { CSS_PC = 10U }; |
| 60 |
| 61 enum { CSS_DEG = 11U }; |
| 62 |
| 63 enum { CSS_RAD = 12U }; |
| 64 |
| 65 enum { CSS_GRAD = 13U }; |
| 66 |
| 67 enum { CSS_MS = 14U }; |
| 68 |
| 69 enum { CSS_S = 15U }; |
| 70 |
| 71 enum { CSS_HZ = 16U }; |
| 72 |
| 73 enum { CSS_KHZ = 17U }; |
| 74 |
| 75 enum { CSS_DIMENSION = 18U }; |
| 76 |
| 77 enum { CSS_STRING = 19U }; |
| 78 |
| 79 enum { CSS_URI = 20U }; |
| 80 |
| 81 enum { CSS_IDENT = 21U }; |
| 82 |
| 83 enum { CSS_ATTR = 22U }; |
| 84 |
| 85 enum { CSS_COUNTER = 23U }; |
| 86 |
| 87 enum { CSS_RECT = 24U }; |
| 88 |
| 89 enum { CSS_RGBCOLOR = 25U }; |
| 90 |
| 91 /* readonly attribute unsigned short primitiveType; */ |
| 92 NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) = 0; |
| 93 |
| 94 /* void setFloatValue (in unsigned short unitType, in float floatValue) raise
s (DOMException); */ |
| 95 NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) = 0; |
| 96 |
| 97 /* float getFloatValue (in unsigned short unitType) raises (DOMException); */ |
| 98 NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) = 0; |
| 99 |
| 100 /* void setStringValue (in unsigned short stringType, in DOMString stringValue
) raises (DOMException); */ |
| 101 NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue)
= 0; |
| 102 |
| 103 /* DOMString getStringValue () raises (DOMException); */ |
| 104 NS_IMETHOD GetStringValue(nsAString & _retval) = 0; |
| 105 |
| 106 /* nsIDOMCounter getCounterValue () raises (DOMException); */ |
| 107 NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) = 0; |
| 108 |
| 109 /* nsIDOMRect getRectValue () raises (DOMException); */ |
| 110 NS_IMETHOD GetRectValue(nsIDOMRect **_retval) = 0; |
| 111 |
| 112 /* nsIDOMRGBColor getRGBColorValue () raises (DOMException); */ |
| 113 NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) = 0; |
| 114 |
| 115 }; |
| 116 |
| 117 /* Use this macro when declaring classes that implement this interface. */ |
| 118 #define NS_DECL_NSIDOMCSSPRIMITIVEVALUE \ |
| 119 NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType); \ |
| 120 NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue); \ |
| 121 NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval); \ |
| 122 NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue);
\ |
| 123 NS_IMETHOD GetStringValue(nsAString & _retval); \ |
| 124 NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval); \ |
| 125 NS_IMETHOD GetRectValue(nsIDOMRect **_retval); \ |
| 126 NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval); |
| 127 |
| 128 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 129 #define NS_FORWARD_NSIDOMCSSPRIMITIVEVALUE(_to) \ |
| 130 NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) { return _to GetPrimitiv
eType(aPrimitiveType); } \ |
| 131 NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) { return _to Set
FloatValue(unitType, floatValue); } \ |
| 132 NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) { return _to GetFl
oatValue(unitType, _retval); } \ |
| 133 NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue)
{ return _to SetStringValue(stringType, stringValue); } \ |
| 134 NS_IMETHOD GetStringValue(nsAString & _retval) { return _to GetStringValue(_re
tval); } \ |
| 135 NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) { return _to GetCounterVal
ue(_retval); } \ |
| 136 NS_IMETHOD GetRectValue(nsIDOMRect **_retval) { return _to GetRectValue(_retva
l); } \ |
| 137 NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) { return _to GetRGBColor
Value(_retval); } |
| 138 |
| 139 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 140 #define NS_FORWARD_SAFE_NSIDOMCSSPRIMITIVEVALUE(_to) \ |
| 141 NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) { return !_to ? NS_ERROR
_NULL_POINTER : _to->GetPrimitiveType(aPrimitiveType); } \ |
| 142 NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) { return !_to ?
NS_ERROR_NULL_POINTER : _to->SetFloatValue(unitType, floatValue); } \ |
| 143 NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) { return !_to ? NS
_ERROR_NULL_POINTER : _to->GetFloatValue(unitType, _retval); } \ |
| 144 NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue)
{ return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(stringType, stringVa
lue); } \ |
| 145 NS_IMETHOD GetStringValue(nsAString & _retval) { return !_to ? NS_ERROR_NULL_P
OINTER : _to->GetStringValue(_retval); } \ |
| 146 NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) { return !_to ? NS_ERROR_N
ULL_POINTER : _to->GetCounterValue(_retval); } \ |
| 147 NS_IMETHOD GetRectValue(nsIDOMRect **_retval) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->GetRectValue(_retval); } \ |
| 148 NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) { return !_to ? NS_ERROR
_NULL_POINTER : _to->GetRGBColorValue(_retval); } |
| 149 |
| 150 #if 0 |
| 151 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 152 |
| 153 /* Header file */ |
| 154 class nsDOMCSSPrimitiveValue : public nsIDOMCSSPrimitiveValue |
| 155 { |
| 156 public: |
| 157 NS_DECL_ISUPPORTS |
| 158 NS_DECL_NSIDOMCSSPRIMITIVEVALUE |
| 159 |
| 160 nsDOMCSSPrimitiveValue(); |
| 161 |
| 162 private: |
| 163 ~nsDOMCSSPrimitiveValue(); |
| 164 |
| 165 protected: |
| 166 /* additional members */ |
| 167 }; |
| 168 |
| 169 /* Implementation file */ |
| 170 NS_IMPL_ISUPPORTS1(nsDOMCSSPrimitiveValue, nsIDOMCSSPrimitiveValue) |
| 171 |
| 172 nsDOMCSSPrimitiveValue::nsDOMCSSPrimitiveValue() |
| 173 { |
| 174 /* member initializers and constructor code */ |
| 175 } |
| 176 |
| 177 nsDOMCSSPrimitiveValue::~nsDOMCSSPrimitiveValue() |
| 178 { |
| 179 /* destructor code */ |
| 180 } |
| 181 |
| 182 /* readonly attribute unsigned short primitiveType; */ |
| 183 NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetPrimitiveType(PRUint16 *aPrimitiveType) |
| 184 { |
| 185 return NS_ERROR_NOT_IMPLEMENTED; |
| 186 } |
| 187 |
| 188 /* void setFloatValue (in unsigned short unitType, in float floatValue) raises
(DOMException); */ |
| 189 NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetFloatValue(PRUint16 unitType, float flo
atValue) |
| 190 { |
| 191 return NS_ERROR_NOT_IMPLEMENTED; |
| 192 } |
| 193 |
| 194 /* float getFloatValue (in unsigned short unitType) raises (DOMException); */ |
| 195 NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetFloatValue(PRUint16 unitType, float *_r
etval) |
| 196 { |
| 197 return NS_ERROR_NOT_IMPLEMENTED; |
| 198 } |
| 199 |
| 200 /* void setStringValue (in unsigned short stringType, in DOMString stringValue)
raises (DOMException); */ |
| 201 NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetStringValue(PRUint16 stringType, const
nsAString & stringValue) |
| 202 { |
| 203 return NS_ERROR_NOT_IMPLEMENTED; |
| 204 } |
| 205 |
| 206 /* DOMString getStringValue () raises (DOMException); */ |
| 207 NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetStringValue(nsAString & _retval) |
| 208 { |
| 209 return NS_ERROR_NOT_IMPLEMENTED; |
| 210 } |
| 211 |
| 212 /* nsIDOMCounter getCounterValue () raises (DOMException); */ |
| 213 NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetCounterValue(nsIDOMCounter **_retval) |
| 214 { |
| 215 return NS_ERROR_NOT_IMPLEMENTED; |
| 216 } |
| 217 |
| 218 /* nsIDOMRect getRectValue () raises (DOMException); */ |
| 219 NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetRectValue(nsIDOMRect **_retval) |
| 220 { |
| 221 return NS_ERROR_NOT_IMPLEMENTED; |
| 222 } |
| 223 |
| 224 /* nsIDOMRGBColor getRGBColorValue () raises (DOMException); */ |
| 225 NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetRGBColorValue(nsIDOMRGBColor **_retval) |
| 226 { |
| 227 return NS_ERROR_NOT_IMPLEMENTED; |
| 228 } |
| 229 |
| 230 /* End of implementation class template. */ |
| 231 #endif |
| 232 |
| 233 |
| 234 #endif /* __gen_nsIDOMCSSPrimitiveValue_h__ */ |
OLD | NEW |