nsIDOMDocumentStyle.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/stylesheets/nsIDOMDocumentStyle.idl
  3. */
  4. #ifndef __gen_nsIDOMDocumentStyle_h__
  5. #define __gen_nsIDOMDocumentStyle_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: nsIDOMDocumentStyle */
  14. #define NS_IDOMDOCUMENTSTYLE_IID_STR "3d9f4973-dd2e-48f5-b5f7-2634e09eadd9"
  15. #define NS_IDOMDOCUMENTSTYLE_IID \
  16. {0x3d9f4973, 0xdd2e, 0x48f5, \
  17. { 0xb5, 0xf7, 0x26, 0x34, 0xe0, 0x9e, 0xad, 0xd9 }}
  18. /**
  19. * The nsIDOMDocumentStyle interface is an interface to a document
  20. * object that supports style sheets in the Document Object Model.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-Style
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE nsIDOMDocumentStyle : public nsISupports {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTSTYLE_IID)
  30. /* readonly attribute nsIDOMStyleSheetList styleSheets; */
  31. NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets) = 0;
  32. };
  33. /* Use this macro when declaring classes that implement this interface. */
  34. #define NS_DECL_NSIDOMDOCUMENTSTYLE \
  35. NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets);
  36. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  37. #define NS_FORWARD_NSIDOMDOCUMENTSTYLE(_to) \
  38. NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets) { return _to GetStyleSheets(aStyleSheets); }
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  40. #define NS_FORWARD_SAFE_NSIDOMDOCUMENTSTYLE(_to) \
  41. NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleSheets(aStyleSheets); }
  42. #if 0
  43. /* Use the code below as a template for the implementation class for this interface. */
  44. /* Header file */
  45. class nsDOMDocumentStyle : public nsIDOMDocumentStyle
  46. {
  47. public:
  48. NS_DECL_ISUPPORTS
  49. NS_DECL_NSIDOMDOCUMENTSTYLE
  50. nsDOMDocumentStyle();
  51. private:
  52. ~nsDOMDocumentStyle();
  53. protected:
  54. /* additional members */
  55. };
  56. /* Implementation file */
  57. NS_IMPL_ISUPPORTS1(nsDOMDocumentStyle, nsIDOMDocumentStyle)
  58. nsDOMDocumentStyle::nsDOMDocumentStyle()
  59. {
  60. /* member initializers and constructor code */
  61. }
  62. nsDOMDocumentStyle::~nsDOMDocumentStyle()
  63. {
  64. /* destructor code */
  65. }
  66. /* readonly attribute nsIDOMStyleSheetList styleSheets; */
  67. NS_IMETHODIMP nsDOMDocumentStyle::GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets)
  68. {
  69. return NS_ERROR_NOT_IMPLEMENTED;
  70. }
  71. /* End of implementation class template. */
  72. #endif
  73. #endif /* __gen_nsIDOMDocumentStyle_h__ */