nsIDOMNSDocumentStyle.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/stylesheets/nsIDOMNSDocumentStyle.idl
  3. */
  4. #ifndef __gen_nsIDOMNSDocumentStyle_h__
  5. #define __gen_nsIDOMNSDocumentStyle_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. #ifndef __gen_nsIDOMDocumentStyle_h__
  10. #include "nsIDOMDocumentStyle.h"
  11. #endif
  12. /* For IDL files that don't want to include root IDL files. */
  13. #ifndef NS_NO_VTABLE
  14. #define NS_NO_VTABLE
  15. #endif
  16. /* starting interface: nsIDOMNSDocumentStyle */
  17. #define NS_IDOMNSDOCUMENTSTYLE_IID_STR "4ecdf254-a21e-47b0-8d72-55da8208299f"
  18. #define NS_IDOMNSDOCUMENTSTYLE_IID \
  19. {0x4ecdf254, 0xa21e, 0x47b0, \
  20. { 0x8d, 0x72, 0x55, 0xda, 0x82, 0x08, 0x29, 0x9f }}
  21. /**
  22. * The nsIDOMNSDocumentStyle interface is an extension to the
  23. * nsIDOMDocumentStyle interface. This interface exposes more ways to interact
  24. * with style sheets in the Document Object Model. This interface is currently
  25. * very much experimental.
  26. */
  27. class NS_NO_VTABLE nsIDOMNSDocumentStyle : public nsIDOMDocumentStyle {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSDOCUMENTSTYLE_IID)
  30. /**
  31. * This attribute indicates the preferredStylesheetSet as set by the
  32. * author. It is determined from the order of stylesheet declarations and the
  33. * Default-Style HTTP headers. See [[HTML4]]. If there is no preferred
  34. * stylesheet set, this attribute returns the empty string. The case of this
  35. * attribute must exactly match the case given by the author where the
  36. * preferred stylesheet is specified or implied.
  37. */
  38. /* readonly attribute DOMString preferredStylesheetSet; */
  39. NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet) = 0;
  40. };
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIDOMNSDOCUMENTSTYLE \
  43. NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet);
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIDOMNSDOCUMENTSTYLE(_to) \
  46. NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet) { return _to GetPreferredStylesheetSet(aPreferredStylesheetSet); }
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIDOMNSDOCUMENTSTYLE(_to) \
  49. NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredStylesheetSet(aPreferredStylesheetSet); }
  50. #if 0
  51. /* Use the code below as a template for the implementation class for this interface. */
  52. /* Header file */
  53. class nsDOMNSDocumentStyle : public nsIDOMNSDocumentStyle
  54. {
  55. public:
  56. NS_DECL_ISUPPORTS
  57. NS_DECL_NSIDOMNSDOCUMENTSTYLE
  58. nsDOMNSDocumentStyle();
  59. private:
  60. ~nsDOMNSDocumentStyle();
  61. protected:
  62. /* additional members */
  63. };
  64. /* Implementation file */
  65. NS_IMPL_ISUPPORTS1(nsDOMNSDocumentStyle, nsIDOMNSDocumentStyle)
  66. nsDOMNSDocumentStyle::nsDOMNSDocumentStyle()
  67. {
  68. /* member initializers and constructor code */
  69. }
  70. nsDOMNSDocumentStyle::~nsDOMNSDocumentStyle()
  71. {
  72. /* destructor code */
  73. }
  74. /* readonly attribute DOMString preferredStylesheetSet; */
  75. NS_IMETHODIMP nsDOMNSDocumentStyle::GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet)
  76. {
  77. return NS_ERROR_NOT_IMPLEMENTED;
  78. }
  79. /* End of implementation class template. */
  80. #endif
  81. #endif /* __gen_nsIDOMNSDocumentStyle_h__ */