/gecko_api/include/nsIDOMCSSStyleDeclaration.h

http://firefox-mac-pdf.googlecode.com/ · 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. #ifndef __gen_nsIDOMCSSStyleDeclaration_h__
  5. #define __gen_nsIDOMCSSStyleDeclaration_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMCSSStyleDeclaration */
  14. #define NS_IDOMCSSSTYLEDECLARATION_IID_STR "a6cf90be-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMCSSSTYLEDECLARATION_IID \
  16. {0xa6cf90be, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSStyleDeclaration : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLEDECLARATION_IID)
  21. /**
  22. * The nsIDOMCSSStyleDeclaration interface is a datatype for a CSS
  23. * style declaration in the Document Object Model.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Style
  27. *
  28. * @status FROZEN
  29. */
  30. /* attribute DOMString cssText; */
  31. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
  33. /* DOMString getPropertyValue (in DOMString propertyName); */
  34. NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) = 0;
  35. /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
  36. NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) = 0;
  37. /* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */
  38. NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) = 0;
  39. /* DOMString getPropertyPriority (in DOMString propertyName); */
  40. NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) = 0;
  41. /* void setProperty (in DOMString propertyName, in DOMString value, in DOMString priority) raises (DOMException); */
  42. NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) = 0;
  43. /* readonly attribute unsigned long length; */
  44. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  45. /* DOMString item (in unsigned long index); */
  46. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0;
  47. /* readonly attribute nsIDOMCSSRule parentRule; */
  48. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
  49. };
  50. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSStyleDeclaration, NS_IDOMCSSSTYLEDECLARATION_IID)
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIDOMCSSSTYLEDECLARATION \
  53. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText); \
  54. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText); \
  55. NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval); \
  56. NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval); \
  57. NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval); \
  58. NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval); \
  59. NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority); \
  60. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
  61. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval); \
  62. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule);
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIDOMCSSSTYLEDECLARATION(_to) \
  65. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
  66. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
  67. NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyValue(propertyName, _retval); } \
  68. NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return _to GetPropertyCSSValue(propertyName, _retval); } \
  69. NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return _to RemoveProperty(propertyName, _retval); } \
  70. NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyPriority(propertyName, _retval); } \
  71. NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) { return _to SetProperty(propertyName, value, priority); } \
  72. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  73. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } \
  74. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentRule(aParentRule); }
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  76. #define NS_FORWARD_SAFE_NSIDOMCSSSTYLEDECLARATION(_to) \
  77. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
  78. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
  79. NS_SCRIPTABLE NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyValue(propertyName, _retval); } \
  80. NS_SCRIPTABLE NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyCSSValue(propertyName, _retval); } \
  81. NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName, _retval); } \
  82. NS_SCRIPTABLE NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyPriority(propertyName, _retval); } \
  83. 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); } \
  84. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  85. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  86. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); }
  87. #if 0
  88. /* Use the code below as a template for the implementation class for this interface. */
  89. /* Header file */
  90. class nsDOMCSSStyleDeclaration : public nsIDOMCSSStyleDeclaration
  91. {
  92. public:
  93. NS_DECL_ISUPPORTS
  94. NS_DECL_NSIDOMCSSSTYLEDECLARATION
  95. nsDOMCSSStyleDeclaration();
  96. private:
  97. ~nsDOMCSSStyleDeclaration();
  98. protected:
  99. /* additional members */
  100. };
  101. /* Implementation file */
  102. NS_IMPL_ISUPPORTS1(nsDOMCSSStyleDeclaration, nsIDOMCSSStyleDeclaration)
  103. nsDOMCSSStyleDeclaration::nsDOMCSSStyleDeclaration()
  104. {
  105. /* member initializers and constructor code */
  106. }
  107. nsDOMCSSStyleDeclaration::~nsDOMCSSStyleDeclaration()
  108. {
  109. /* destructor code */
  110. }
  111. /* attribute DOMString cssText; */
  112. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetCssText(nsAString & aCssText)
  113. {
  114. return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116. NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetCssText(const nsAString & aCssText)
  117. {
  118. return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. /* DOMString getPropertyValue (in DOMString propertyName); */
  121. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyValue(const nsAString & propertyName, nsAString & _retval)
  122. {
  123. return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
  126. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. /* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */
  131. NS_IMETHODIMP nsDOMCSSStyleDeclaration::RemoveProperty(const nsAString & propertyName, nsAString & _retval)
  132. {
  133. return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. /* DOMString getPropertyPriority (in DOMString propertyName); */
  136. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyPriority(const nsAString & propertyName, nsAString & _retval)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* void setProperty (in DOMString propertyName, in DOMString value, in DOMString priority) raises (DOMException); */
  141. NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority)
  142. {
  143. return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145. /* readonly attribute unsigned long length; */
  146. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetLength(PRUint32 *aLength)
  147. {
  148. return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150. /* DOMString item (in unsigned long index); */
  151. NS_IMETHODIMP nsDOMCSSStyleDeclaration::Item(PRUint32 index, nsAString & _retval)
  152. {
  153. return NS_ERROR_NOT_IMPLEMENTED;
  154. }
  155. /* readonly attribute nsIDOMCSSRule parentRule; */
  156. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetParentRule(nsIDOMCSSRule * *aParentRule)
  157. {
  158. return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. /* End of implementation class template. */
  161. #endif
  162. #endif /* __gen_nsIDOMCSSStyleDeclaration_h__ */