/gecko_api/include/nsIDOMStyleSheet.h

http://firefox-mac-pdf.googlecode.com/ · C Header · 180 lines · 104 code · 38 blank · 38 comment · 0 complexity · e6f4da6a7359cc7cfd6891a5751183bb 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/stylesheets/nsIDOMStyleSheet.idl
  3. */
  4. #ifndef __gen_nsIDOMStyleSheet_h__
  5. #define __gen_nsIDOMStyleSheet_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: nsIDOMStyleSheet */
  14. #define NS_IDOMSTYLESHEET_IID_STR "a6cf9080-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMSTYLESHEET_IID \
  16. {0xa6cf9080, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStyleSheet : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTYLESHEET_IID)
  21. /**
  22. * The nsIDOMStyleSheet interface is a datatype for a style sheet in
  23. * 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. /* readonly attribute DOMString type; */
  31. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
  32. /* attribute boolean disabled; */
  33. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  34. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  35. /* readonly attribute nsIDOMNode ownerNode; */
  36. NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) = 0;
  37. /* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
  38. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) = 0;
  39. /* readonly attribute DOMString href; */
  40. NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) = 0;
  41. /* readonly attribute DOMString title; */
  42. NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
  43. /* readonly attribute nsIDOMMediaList media; */
  44. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) = 0;
  45. };
  46. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStyleSheet, NS_IDOMSTYLESHEET_IID)
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSIDOMSTYLESHEET \
  49. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
  50. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  51. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
  52. NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode); \
  53. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet); \
  54. NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref); \
  55. NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle); \
  56. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia);
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIDOMSTYLESHEET(_to) \
  59. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  60. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  61. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  62. NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return _to GetOwnerNode(aOwnerNode); } \
  63. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return _to GetParentStyleSheet(aParentStyleSheet); } \
  64. NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
  65. NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
  66. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return _to GetMedia(aMedia); }
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSIDOMSTYLESHEET(_to) \
  69. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  70. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  71. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  72. NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerNode(aOwnerNode); } \
  73. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
  74. NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
  75. NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  76. NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); }
  77. #if 0
  78. /* Use the code below as a template for the implementation class for this interface. */
  79. /* Header file */
  80. class nsDOMStyleSheet : public nsIDOMStyleSheet
  81. {
  82. public:
  83. NS_DECL_ISUPPORTS
  84. NS_DECL_NSIDOMSTYLESHEET
  85. nsDOMStyleSheet();
  86. private:
  87. ~nsDOMStyleSheet();
  88. protected:
  89. /* additional members */
  90. };
  91. /* Implementation file */
  92. NS_IMPL_ISUPPORTS1(nsDOMStyleSheet, nsIDOMStyleSheet)
  93. nsDOMStyleSheet::nsDOMStyleSheet()
  94. {
  95. /* member initializers and constructor code */
  96. }
  97. nsDOMStyleSheet::~nsDOMStyleSheet()
  98. {
  99. /* destructor code */
  100. }
  101. /* readonly attribute DOMString type; */
  102. NS_IMETHODIMP nsDOMStyleSheet::GetType(nsAString & aType)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. /* attribute boolean disabled; */
  107. NS_IMETHODIMP nsDOMStyleSheet::GetDisabled(PRBool *aDisabled)
  108. {
  109. return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111. NS_IMETHODIMP nsDOMStyleSheet::SetDisabled(PRBool aDisabled)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. /* readonly attribute nsIDOMNode ownerNode; */
  116. NS_IMETHODIMP nsDOMStyleSheet::GetOwnerNode(nsIDOMNode * *aOwnerNode)
  117. {
  118. return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. /* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
  121. NS_IMETHODIMP nsDOMStyleSheet::GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet)
  122. {
  123. return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. /* readonly attribute DOMString href; */
  126. NS_IMETHODIMP nsDOMStyleSheet::GetHref(nsAString & aHref)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. /* readonly attribute DOMString title; */
  131. NS_IMETHODIMP nsDOMStyleSheet::GetTitle(nsAString & aTitle)
  132. {
  133. return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. /* readonly attribute nsIDOMMediaList media; */
  136. NS_IMETHODIMP nsDOMStyleSheet::GetMedia(nsIDOMMediaList * *aMedia)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* End of implementation class template. */
  141. #endif
  142. #endif /* __gen_nsIDOMStyleSheet_h__ */