nsIDOMHTMLStyleElement.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLStyleElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLStyleElement_h__
  5. #define __gen_nsIDOMHTMLStyleElement_h__
  6. #ifndef __gen_nsIDOMHTMLElement_h__
  7. #include "nsIDOMHTMLElement.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: nsIDOMHTMLStyleElement */
  14. #define NS_IDOMHTMLSTYLEELEMENT_IID_STR "a6cf908d-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLSTYLEELEMENT_IID \
  16. {0xa6cf908d, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLStyleElement interface is the interface to a [X]HTML
  20. * style element.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-HTML/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE nsIDOMHTMLStyleElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSTYLEELEMENT_IID)
  30. /* attribute boolean disabled; */
  31. NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  32. NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  33. /* attribute DOMString media; */
  34. NS_IMETHOD GetMedia(nsAString & aMedia) = 0;
  35. NS_IMETHOD SetMedia(const nsAString & aMedia) = 0;
  36. /* attribute DOMString type; */
  37. NS_IMETHOD GetType(nsAString & aType) = 0;
  38. NS_IMETHOD SetType(const nsAString & aType) = 0;
  39. };
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIDOMHTMLSTYLEELEMENT \
  42. NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  43. NS_IMETHOD SetDisabled(PRBool aDisabled); \
  44. NS_IMETHOD GetMedia(nsAString & aMedia); \
  45. NS_IMETHOD SetMedia(const nsAString & aMedia); \
  46. NS_IMETHOD GetType(nsAString & aType); \
  47. NS_IMETHOD SetType(const nsAString & aType);
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  49. #define NS_FORWARD_NSIDOMHTMLSTYLEELEMENT(_to) \
  50. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  51. NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  52. NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \
  53. NS_IMETHOD SetMedia(const nsAString & aMedia) { return _to SetMedia(aMedia); } \
  54. NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  55. NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); }
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIDOMHTMLSTYLEELEMENT(_to) \
  58. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  59. NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  60. NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } \
  61. NS_IMETHOD SetMedia(const nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMedia(aMedia); } \
  62. NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  63. NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); }
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66. /* Header file */
  67. class nsDOMHTMLStyleElement : public nsIDOMHTMLStyleElement
  68. {
  69. public:
  70. NS_DECL_ISUPPORTS
  71. NS_DECL_NSIDOMHTMLSTYLEELEMENT
  72. nsDOMHTMLStyleElement();
  73. private:
  74. ~nsDOMHTMLStyleElement();
  75. protected:
  76. /* additional members */
  77. };
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsDOMHTMLStyleElement, nsIDOMHTMLStyleElement)
  80. nsDOMHTMLStyleElement::nsDOMHTMLStyleElement()
  81. {
  82. /* member initializers and constructor code */
  83. }
  84. nsDOMHTMLStyleElement::~nsDOMHTMLStyleElement()
  85. {
  86. /* destructor code */
  87. }
  88. /* attribute boolean disabled; */
  89. NS_IMETHODIMP nsDOMHTMLStyleElement::GetDisabled(PRBool *aDisabled)
  90. {
  91. return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93. NS_IMETHODIMP nsDOMHTMLStyleElement::SetDisabled(PRBool aDisabled)
  94. {
  95. return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97. /* attribute DOMString media; */
  98. NS_IMETHODIMP nsDOMHTMLStyleElement::GetMedia(nsAString & aMedia)
  99. {
  100. return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102. NS_IMETHODIMP nsDOMHTMLStyleElement::SetMedia(const nsAString & aMedia)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. /* attribute DOMString type; */
  107. NS_IMETHODIMP nsDOMHTMLStyleElement::GetType(nsAString & aType)
  108. {
  109. return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111. NS_IMETHODIMP nsDOMHTMLStyleElement::SetType(const nsAString & aType)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. /* End of implementation class template. */
  116. #endif
  117. #endif /* __gen_nsIDOMHTMLStyleElement_h__ */