/gecko_api/include/nsIDOMCSSStyleDeclaration.h
C Header | 204 lines | 120 code | 42 blank | 42 comment | 0 complexity | 3a417404f49461cf089bdbfc6fed1b0c 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/nsIDOMCSSStyleDeclaration.idl 3 */ 4 5#ifndef __gen_nsIDOMCSSStyleDeclaration_h__ 6#define __gen_nsIDOMCSSStyleDeclaration_h__ 7 8 9#ifndef __gen_domstubs_h__ 10#include "domstubs.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: nsIDOMCSSStyleDeclaration */ 19#define NS_IDOMCSSSTYLEDECLARATION_IID_STR "a6cf90be-15b3-11d2-932e-00805f8add32" 20 21#define NS_IDOMCSSSTYLEDECLARATION_IID \ 22 {0xa6cf90be, 0x15b3, 0x11d2, \ 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} 24 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSStyleDeclaration : public nsISupports { 26 public: 27 28 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLEDECLARATION_IID) 29 30 /** 31 * The nsIDOMCSSStyleDeclaration interface is a datatype for a CSS 32 * style declaration 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 /* attribute DOMString cssText; */ 40 NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) = 0; 41 NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) = 0; 42 43 /* DOMString getPropertyValue (in DOMString propertyName); */ 44 NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) = 0; 45 46 /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */ 47 NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) = 0; 48 49 /* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */ 50 NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) = 0; 51 52 /* DOMString getPropertyPriority (in DOMString propertyName); */ 53 NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) = 0; 54 55 /* void setProperty (in DOMString propertyName, in DOMString value, in DOMString priority) raises (DOMException); */ 56 NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) = 0; 57 58 /* readonly attribute unsigned long length; */ 59 NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0; 60 61 /* DOMString item (in unsigned long index); */ 62 NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0; 63 64 /* readonly attribute nsIDOMCSSRule parentRule; */ 65 NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0; 66 67}; 68 69 NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSStyleDeclaration, NS_IDOMCSSSTYLEDECLARATION_IID) 70 71/* Use this macro when declaring classes that implement this interface. */ 72#define NS_DECL_NSIDOMCSSSTYLEDECLARATION \ 73 NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText); \ 74 NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText); \ 75 NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval); \ 76 NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval); \ 77 NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval); \ 78 NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval); \ 79 NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority); \ 80 NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \ 81 NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval); \ 82 NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule); 83 84/* Use this macro to declare functions that forward the behavior of this interface to another object. */ 85#define NS_FORWARD_NSIDOMCSSSTYLEDECLARATION(_to) \ 86 NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \ 87 NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \ 88 NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyValue(propertyName, _retval); } \ 89 NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return _to GetPropertyCSSValue(propertyName, _retval); } \ 90 NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return _to RemoveProperty(propertyName, _retval); } \ 91 NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyPriority(propertyName, _retval); } \ 92 NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) { return _to SetProperty(propertyName, value, priority); } \ 93 NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \ 94 NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } \ 95 NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentRule(aParentRule); } 96 97/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ 98#define NS_FORWARD_SAFE_NSIDOMCSSSTYLEDECLARATION(_to) \ 99 NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \ 100 NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \ 101 NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyValue(propertyName, _retval); } \ 102 NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyCSSValue(propertyName, _retval); } \ 103 NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName, _retval); } \ 104 NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyPriority(propertyName, _retval); } \ 105 NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, value, priority); } \ 106 NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \ 107 NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \ 108 NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); } 109 110#if 0 111/* Use the code below as a template for the implementation class for this interface. */ 112 113/* Header file */ 114class nsDOMCSSStyleDeclaration : public nsIDOMCSSStyleDeclaration 115{ 116public: 117 NS_DECL_ISUPPORTS 118 NS_DECL_NSIDOMCSSSTYLEDECLARATION 119 120 nsDOMCSSStyleDeclaration(); 121 122private: 123 ~nsDOMCSSStyleDeclaration(); 124 125protected: 126 /* additional members */ 127}; 128 129/* Implementation file */ 130NS_IMPL_ISUPPORTS1(nsDOMCSSStyleDeclaration, nsIDOMCSSStyleDeclaration) 131 132nsDOMCSSStyleDeclaration::nsDOMCSSStyleDeclaration() 133{ 134 /* member initializers and constructor code */ 135} 136 137nsDOMCSSStyleDeclaration::~nsDOMCSSStyleDeclaration() 138{ 139 /* destructor code */ 140} 141 142/* attribute DOMString cssText; */ 143NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetCssText(nsAString & aCssText) 144{ 145 return NS_ERROR_NOT_IMPLEMENTED; 146} 147NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetCssText(const nsAString & aCssText) 148{ 149 return NS_ERROR_NOT_IMPLEMENTED; 150} 151 152/* DOMString getPropertyValue (in DOMString propertyName); */ 153NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyValue(const nsAString & propertyName, nsAString & _retval) 154{ 155 return NS_ERROR_NOT_IMPLEMENTED; 156} 157 158/* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */ 159NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) 160{ 161 return NS_ERROR_NOT_IMPLEMENTED; 162} 163 164/* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */ 165NS_IMETHODIMP nsDOMCSSStyleDeclaration::RemoveProperty(const nsAString & propertyName, nsAString & _retval) 166{ 167 return NS_ERROR_NOT_IMPLEMENTED; 168} 169 170/* DOMString getPropertyPriority (in DOMString propertyName); */ 171NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) 172{ 173 return NS_ERROR_NOT_IMPLEMENTED; 174} 175 176/* void setProperty (in DOMString propertyName, in DOMString value, in DOMString priority) raises (DOMException); */ 177NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) 178{ 179 return NS_ERROR_NOT_IMPLEMENTED; 180} 181 182/* readonly attribute unsigned long length; */ 183NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetLength(PRUint32 *aLength) 184{ 185 return NS_ERROR_NOT_IMPLEMENTED; 186} 187 188/* DOMString item (in unsigned long index); */ 189NS_IMETHODIMP nsDOMCSSStyleDeclaration::Item(PRUint32 index, nsAString & _retval) 190{ 191 return NS_ERROR_NOT_IMPLEMENTED; 192} 193 194/* readonly attribute nsIDOMCSSRule parentRule; */ 195NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetParentRule(nsIDOMCSSRule * *aParentRule) 196{ 197 return NS_ERROR_NOT_IMPLEMENTED; 198} 199 200/* End of implementation class template. */ 201#endif 202 203 204#endif /* __gen_nsIDOMCSSStyleDeclaration_h__ */