PageRenderTime 11ms CodeModel.GetById 1ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLStyleElement.h

http://firefox-mac-pdf.googlecode.com/
C Header | 148 lines | 88 code | 30 blank | 30 comment | 0 complexity | 5f4f15774255b67d6023fe7ffdd00806 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/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 NS_SCRIPTABLE nsIDOMHTMLStyleElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSTYLEELEMENT_IID)
  30. /* attribute boolean disabled; */
  31. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  33. /* attribute DOMString media; */
  34. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) = 0;
  35. NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) = 0;
  36. /* attribute DOMString type; */
  37. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
  38. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) = 0;
  39. };
  40. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLStyleElement, NS_IDOMHTMLSTYLEELEMENT_IID)
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIDOMHTMLSTYLEELEMENT \
  43. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  44. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
  45. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia); \
  46. NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia); \
  47. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
  48. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType);
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSIDOMHTMLSTYLEELEMENT(_to) \
  51. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  52. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  53. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \
  54. NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) { return _to SetMedia(aMedia); } \
  55. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  56. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); }
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  58. #define NS_FORWARD_SAFE_NSIDOMHTMLSTYLEELEMENT(_to) \
  59. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  60. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  61. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } \
  62. NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMedia(aMedia); } \
  63. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  64. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); }
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67. /* Header file */
  68. class nsDOMHTMLStyleElement : public nsIDOMHTMLStyleElement
  69. {
  70. public:
  71. NS_DECL_ISUPPORTS
  72. NS_DECL_NSIDOMHTMLSTYLEELEMENT
  73. nsDOMHTMLStyleElement();
  74. private:
  75. ~nsDOMHTMLStyleElement();
  76. protected:
  77. /* additional members */
  78. };
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsDOMHTMLStyleElement, nsIDOMHTMLStyleElement)
  81. nsDOMHTMLStyleElement::nsDOMHTMLStyleElement()
  82. {
  83. /* member initializers and constructor code */
  84. }
  85. nsDOMHTMLStyleElement::~nsDOMHTMLStyleElement()
  86. {
  87. /* destructor code */
  88. }
  89. /* attribute boolean disabled; */
  90. NS_IMETHODIMP nsDOMHTMLStyleElement::GetDisabled(PRBool *aDisabled)
  91. {
  92. return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94. NS_IMETHODIMP nsDOMHTMLStyleElement::SetDisabled(PRBool aDisabled)
  95. {
  96. return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. /* attribute DOMString media; */
  99. NS_IMETHODIMP nsDOMHTMLStyleElement::GetMedia(nsAString & aMedia)
  100. {
  101. return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. NS_IMETHODIMP nsDOMHTMLStyleElement::SetMedia(const nsAString & aMedia)
  104. {
  105. return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107. /* attribute DOMString type; */
  108. NS_IMETHODIMP nsDOMHTMLStyleElement::GetType(nsAString & aType)
  109. {
  110. return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112. NS_IMETHODIMP nsDOMHTMLStyleElement::SetType(const nsAString & aType)
  113. {
  114. return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116. /* End of implementation class template. */
  117. #endif
  118. #endif /* __gen_nsIDOMHTMLStyleElement_h__ */