nsIDOMStyleSheet.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/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 nsIDOMStyleSheet : public nsISupports {
  19. public:
  20. NS_DEFINE_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_IMETHOD GetType(nsAString & aType) = 0;
  32. /* attribute boolean disabled; */
  33. NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  34. NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  35. /* readonly attribute nsIDOMNode ownerNode; */
  36. NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) = 0;
  37. /* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
  38. NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) = 0;
  39. /* readonly attribute DOMString href; */
  40. NS_IMETHOD GetHref(nsAString & aHref) = 0;
  41. /* readonly attribute DOMString title; */
  42. NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
  43. /* readonly attribute nsIDOMMediaList media; */
  44. NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) = 0;
  45. };
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIDOMSTYLESHEET \
  48. NS_IMETHOD GetType(nsAString & aType); \
  49. NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  50. NS_IMETHOD SetDisabled(PRBool aDisabled); \
  51. NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode); \
  52. NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet); \
  53. NS_IMETHOD GetHref(nsAString & aHref); \
  54. NS_IMETHOD GetTitle(nsAString & aTitle); \
  55. NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia);
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  57. #define NS_FORWARD_NSIDOMSTYLESHEET(_to) \
  58. NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  59. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  60. NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  61. NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return _to GetOwnerNode(aOwnerNode); } \
  62. NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return _to GetParentStyleSheet(aParentStyleSheet); } \
  63. NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
  64. NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
  65. NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return _to GetMedia(aMedia); }
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  67. #define NS_FORWARD_SAFE_NSIDOMSTYLESHEET(_to) \
  68. NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  69. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  70. NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  71. NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerNode(aOwnerNode); } \
  72. NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
  73. NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
  74. NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  75. NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); }
  76. #if 0
  77. /* Use the code below as a template for the implementation class for this interface. */
  78. /* Header file */
  79. class nsDOMStyleSheet : public nsIDOMStyleSheet
  80. {
  81. public:
  82. NS_DECL_ISUPPORTS
  83. NS_DECL_NSIDOMSTYLESHEET
  84. nsDOMStyleSheet();
  85. private:
  86. ~nsDOMStyleSheet();
  87. protected:
  88. /* additional members */
  89. };
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsDOMStyleSheet, nsIDOMStyleSheet)
  92. nsDOMStyleSheet::nsDOMStyleSheet()
  93. {
  94. /* member initializers and constructor code */
  95. }
  96. nsDOMStyleSheet::~nsDOMStyleSheet()
  97. {
  98. /* destructor code */
  99. }
  100. /* readonly attribute DOMString type; */
  101. NS_IMETHODIMP nsDOMStyleSheet::GetType(nsAString & aType)
  102. {
  103. return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105. /* attribute boolean disabled; */
  106. NS_IMETHODIMP nsDOMStyleSheet::GetDisabled(PRBool *aDisabled)
  107. {
  108. return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110. NS_IMETHODIMP nsDOMStyleSheet::SetDisabled(PRBool aDisabled)
  111. {
  112. return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114. /* readonly attribute nsIDOMNode ownerNode; */
  115. NS_IMETHODIMP nsDOMStyleSheet::GetOwnerNode(nsIDOMNode * *aOwnerNode)
  116. {
  117. return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119. /* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
  120. NS_IMETHODIMP nsDOMStyleSheet::GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet)
  121. {
  122. return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124. /* readonly attribute DOMString href; */
  125. NS_IMETHODIMP nsDOMStyleSheet::GetHref(nsAString & aHref)
  126. {
  127. return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129. /* readonly attribute DOMString title; */
  130. NS_IMETHODIMP nsDOMStyleSheet::GetTitle(nsAString & aTitle)
  131. {
  132. return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134. /* readonly attribute nsIDOMMediaList media; */
  135. NS_IMETHODIMP nsDOMStyleSheet::GetMedia(nsIDOMMediaList * *aMedia)
  136. {
  137. return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139. /* End of implementation class template. */
  140. #endif
  141. #endif /* __gen_nsIDOMStyleSheet_h__ */