nsIDOMCSSStyleDeclaration.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/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 nsIDOMCSSStyleDeclaration : public nsISupports {
  19. public:
  20. NS_DEFINE_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_IMETHOD GetCssText(nsAString & aCssText) = 0;
  32. NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
  33. /* DOMString getPropertyValue (in DOMString propertyName); */
  34. NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) = 0;
  35. /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
  36. NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) = 0;
  37. /* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */
  38. NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) = 0;
  39. /* DOMString getPropertyPriority (in DOMString propertyName); */
  40. 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_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) = 0;
  43. /* readonly attribute unsigned long length; */
  44. NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  45. /* DOMString item (in unsigned long index); */
  46. NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0;
  47. /* readonly attribute nsIDOMCSSRule parentRule; */
  48. NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
  49. };
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOMCSSSTYLEDECLARATION \
  52. NS_IMETHOD GetCssText(nsAString & aCssText); \
  53. NS_IMETHOD SetCssText(const nsAString & aCssText); \
  54. NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval); \
  55. NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval); \
  56. NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval); \
  57. NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval); \
  58. NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority); \
  59. NS_IMETHOD GetLength(PRUint32 *aLength); \
  60. NS_IMETHOD Item(PRUint32 index, nsAString & _retval); \
  61. NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule);
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  63. #define NS_FORWARD_NSIDOMCSSSTYLEDECLARATION(_to) \
  64. NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
  65. NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
  66. NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyValue(propertyName, _retval); } \
  67. NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return _to GetPropertyCSSValue(propertyName, _retval); } \
  68. NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return _to RemoveProperty(propertyName, _retval); } \
  69. NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyPriority(propertyName, _retval); } \
  70. NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) { return _to SetProperty(propertyName, value, priority); } \
  71. NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  72. NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } \
  73. NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentRule(aParentRule); }
  74. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  75. #define NS_FORWARD_SAFE_NSIDOMCSSSTYLEDECLARATION(_to) \
  76. NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
  77. NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
  78. NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyValue(propertyName, _retval); } \
  79. NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyCSSValue(propertyName, _retval); } \
  80. NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName, _retval); } \
  81. NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyPriority(propertyName, _retval); } \
  82. NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, value, priority); } \
  83. NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  84. NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  85. NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); }
  86. #if 0
  87. /* Use the code below as a template for the implementation class for this interface. */
  88. /* Header file */
  89. class nsDOMCSSStyleDeclaration : public nsIDOMCSSStyleDeclaration
  90. {
  91. public:
  92. NS_DECL_ISUPPORTS
  93. NS_DECL_NSIDOMCSSSTYLEDECLARATION
  94. nsDOMCSSStyleDeclaration();
  95. private:
  96. ~nsDOMCSSStyleDeclaration();
  97. protected:
  98. /* additional members */
  99. };
  100. /* Implementation file */
  101. NS_IMPL_ISUPPORTS1(nsDOMCSSStyleDeclaration, nsIDOMCSSStyleDeclaration)
  102. nsDOMCSSStyleDeclaration::nsDOMCSSStyleDeclaration()
  103. {
  104. /* member initializers and constructor code */
  105. }
  106. nsDOMCSSStyleDeclaration::~nsDOMCSSStyleDeclaration()
  107. {
  108. /* destructor code */
  109. }
  110. /* attribute DOMString cssText; */
  111. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetCssText(nsAString & aCssText)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetCssText(const nsAString & aCssText)
  116. {
  117. return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119. /* DOMString getPropertyValue (in DOMString propertyName); */
  120. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyValue(const nsAString & propertyName, nsAString & _retval)
  121. {
  122. return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124. /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
  125. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval)
  126. {
  127. return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129. /* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */
  130. NS_IMETHODIMP nsDOMCSSStyleDeclaration::RemoveProperty(const nsAString & propertyName, nsAString & _retval)
  131. {
  132. return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134. /* DOMString getPropertyPriority (in DOMString propertyName); */
  135. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyPriority(const nsAString & propertyName, nsAString & _retval)
  136. {
  137. return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139. /* void setProperty (in DOMString propertyName, in DOMString value, in DOMString priority) raises (DOMException); */
  140. NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority)
  141. {
  142. return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144. /* readonly attribute unsigned long length; */
  145. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetLength(PRUint32 *aLength)
  146. {
  147. return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149. /* DOMString item (in unsigned long index); */
  150. NS_IMETHODIMP nsDOMCSSStyleDeclaration::Item(PRUint32 index, nsAString & _retval)
  151. {
  152. return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. /* readonly attribute nsIDOMCSSRule parentRule; */
  155. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetParentRule(nsIDOMCSSRule * *aParentRule)
  156. {
  157. return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159. /* End of implementation class template. */
  160. #endif
  161. #endif /* __gen_nsIDOMCSSStyleDeclaration_h__ */