PageRenderTime 385ms CodeModel.GetById 181ms app.highlight 8ms RepoModel.GetById 193ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSPrimitiveValue.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 236 lines | 130 code | 66 blank | 40 comment | 0 complexity | 3834eb9cebcac1eec8737a31117b7329 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/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
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSPrimitiveValue : public nsIDOMCSSValue {
 26 public: 
 27
 28  NS_DECLARE_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_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) = 0;
 93
 94  /* void setFloatValue (in unsigned short unitType, in float floatValue)  raises (DOMException); */
 95  NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) = 0;
 96
 97  /* float getFloatValue (in unsigned short unitType)  raises (DOMException); */
 98  NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) = 0;
 99
100  /* void setStringValue (in unsigned short stringType, in DOMString stringValue)  raises (DOMException); */
101  NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue) = 0;
102
103  /* DOMString getStringValue ()  raises (DOMException); */
104  NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval) = 0;
105
106  /* nsIDOMCounter getCounterValue ()  raises (DOMException); */
107  NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) = 0;
108
109  /* nsIDOMRect getRectValue ()  raises (DOMException); */
110  NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval) = 0;
111
112  /* nsIDOMRGBColor getRGBColorValue ()  raises (DOMException); */
113  NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) = 0;
114
115};
116
117  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSPrimitiveValue, NS_IDOMCSSPRIMITIVEVALUE_IID)
118
119/* Use this macro when declaring classes that implement this interface. */
120#define NS_DECL_NSIDOMCSSPRIMITIVEVALUE \
121  NS_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType); \
122  NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue); \
123  NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval); \
124  NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue); \
125  NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval); \
126  NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval); \
127  NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval); \
128  NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval); 
129
130/* Use this macro to declare functions that forward the behavior of this interface to another object. */
131#define NS_FORWARD_NSIDOMCSSPRIMITIVEVALUE(_to) \
132  NS_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) { return _to GetPrimitiveType(aPrimitiveType); } \
133  NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) { return _to SetFloatValue(unitType, floatValue); } \
134  NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) { return _to GetFloatValue(unitType, _retval); } \
135  NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue) { return _to SetStringValue(stringType, stringValue); } \
136  NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval) { return _to GetStringValue(_retval); } \
137  NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) { return _to GetCounterValue(_retval); } \
138  NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval) { return _to GetRectValue(_retval); } \
139  NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) { return _to GetRGBColorValue(_retval); } 
140
141/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
142#define NS_FORWARD_SAFE_NSIDOMCSSPRIMITIVEVALUE(_to) \
143  NS_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimitiveType(aPrimitiveType); } \
144  NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloatValue(unitType, floatValue); } \
145  NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatValue(unitType, _retval); } \
146  NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(stringType, stringValue); } \
147  NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(_retval); } \
148  NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCounterValue(_retval); } \
149  NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRectValue(_retval); } \
150  NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRGBColorValue(_retval); } 
151
152#if 0
153/* Use the code below as a template for the implementation class for this interface. */
154
155/* Header file */
156class nsDOMCSSPrimitiveValue : public nsIDOMCSSPrimitiveValue
157{
158public:
159  NS_DECL_ISUPPORTS
160  NS_DECL_NSIDOMCSSPRIMITIVEVALUE
161
162  nsDOMCSSPrimitiveValue();
163
164private:
165  ~nsDOMCSSPrimitiveValue();
166
167protected:
168  /* additional members */
169};
170
171/* Implementation file */
172NS_IMPL_ISUPPORTS1(nsDOMCSSPrimitiveValue, nsIDOMCSSPrimitiveValue)
173
174nsDOMCSSPrimitiveValue::nsDOMCSSPrimitiveValue()
175{
176  /* member initializers and constructor code */
177}
178
179nsDOMCSSPrimitiveValue::~nsDOMCSSPrimitiveValue()
180{
181  /* destructor code */
182}
183
184/* readonly attribute unsigned short primitiveType; */
185NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetPrimitiveType(PRUint16 *aPrimitiveType)
186{
187    return NS_ERROR_NOT_IMPLEMENTED;
188}
189
190/* void setFloatValue (in unsigned short unitType, in float floatValue)  raises (DOMException); */
191NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetFloatValue(PRUint16 unitType, float floatValue)
192{
193    return NS_ERROR_NOT_IMPLEMENTED;
194}
195
196/* float getFloatValue (in unsigned short unitType)  raises (DOMException); */
197NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetFloatValue(PRUint16 unitType, float *_retval)
198{
199    return NS_ERROR_NOT_IMPLEMENTED;
200}
201
202/* void setStringValue (in unsigned short stringType, in DOMString stringValue)  raises (DOMException); */
203NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetStringValue(PRUint16 stringType, const nsAString & stringValue)
204{
205    return NS_ERROR_NOT_IMPLEMENTED;
206}
207
208/* DOMString getStringValue ()  raises (DOMException); */
209NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetStringValue(nsAString & _retval)
210{
211    return NS_ERROR_NOT_IMPLEMENTED;
212}
213
214/* nsIDOMCounter getCounterValue ()  raises (DOMException); */
215NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetCounterValue(nsIDOMCounter **_retval)
216{
217    return NS_ERROR_NOT_IMPLEMENTED;
218}
219
220/* nsIDOMRect getRectValue ()  raises (DOMException); */
221NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetRectValue(nsIDOMRect **_retval)
222{
223    return NS_ERROR_NOT_IMPLEMENTED;
224}
225
226/* nsIDOMRGBColor getRGBColorValue ()  raises (DOMException); */
227NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetRGBColorValue(nsIDOMRGBColor **_retval)
228{
229    return NS_ERROR_NOT_IMPLEMENTED;
230}
231
232/* End of implementation class template. */
233#endif
234
235
236#endif /* __gen_nsIDOMCSSPrimitiveValue_h__ */