nsIDOMHTMLBaseFontElement.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLBaseFontElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLBaseFontElement_h__
  5. #define __gen_nsIDOMHTMLBaseFontElement_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: nsIDOMHTMLBaseFontElement */
  14. #define NS_IDOMHTMLBASEFONTELEMENT_IID_STR "a6cf90a6-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLBASEFONTELEMENT_IID \
  16. {0xa6cf90a6, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLBaseFontElement interface is the interface to a
  20. * [X]HTML basefont 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 nsIDOMHTMLBaseFontElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLBASEFONTELEMENT_IID)
  30. /* attribute DOMString color; */
  31. NS_IMETHOD GetColor(nsAString & aColor) = 0;
  32. NS_IMETHOD SetColor(const nsAString & aColor) = 0;
  33. /* attribute DOMString face; */
  34. NS_IMETHOD GetFace(nsAString & aFace) = 0;
  35. NS_IMETHOD SetFace(const nsAString & aFace) = 0;
  36. /* attribute long size; */
  37. NS_IMETHOD GetSize(PRInt32 *aSize) = 0;
  38. NS_IMETHOD SetSize(PRInt32 aSize) = 0;
  39. };
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIDOMHTMLBASEFONTELEMENT \
  42. NS_IMETHOD GetColor(nsAString & aColor); \
  43. NS_IMETHOD SetColor(const nsAString & aColor); \
  44. NS_IMETHOD GetFace(nsAString & aFace); \
  45. NS_IMETHOD SetFace(const nsAString & aFace); \
  46. NS_IMETHOD GetSize(PRInt32 *aSize); \
  47. NS_IMETHOD SetSize(PRInt32 aSize);
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  49. #define NS_FORWARD_NSIDOMHTMLBASEFONTELEMENT(_to) \
  50. NS_IMETHOD GetColor(nsAString & aColor) { return _to GetColor(aColor); } \
  51. NS_IMETHOD SetColor(const nsAString & aColor) { return _to SetColor(aColor); } \
  52. NS_IMETHOD GetFace(nsAString & aFace) { return _to GetFace(aFace); } \
  53. NS_IMETHOD SetFace(const nsAString & aFace) { return _to SetFace(aFace); } \
  54. NS_IMETHOD GetSize(PRInt32 *aSize) { return _to GetSize(aSize); } \
  55. NS_IMETHOD SetSize(PRInt32 aSize) { return _to SetSize(aSize); }
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIDOMHTMLBASEFONTELEMENT(_to) \
  58. NS_IMETHOD GetColor(nsAString & aColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColor(aColor); } \
  59. NS_IMETHOD SetColor(const nsAString & aColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColor(aColor); } \
  60. NS_IMETHOD GetFace(nsAString & aFace) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFace(aFace); } \
  61. NS_IMETHOD SetFace(const nsAString & aFace) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFace(aFace); } \
  62. NS_IMETHOD GetSize(PRInt32 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  63. NS_IMETHOD SetSize(PRInt32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); }
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66. /* Header file */
  67. class nsDOMHTMLBaseFontElement : public nsIDOMHTMLBaseFontElement
  68. {
  69. public:
  70. NS_DECL_ISUPPORTS
  71. NS_DECL_NSIDOMHTMLBASEFONTELEMENT
  72. nsDOMHTMLBaseFontElement();
  73. private:
  74. ~nsDOMHTMLBaseFontElement();
  75. protected:
  76. /* additional members */
  77. };
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsDOMHTMLBaseFontElement, nsIDOMHTMLBaseFontElement)
  80. nsDOMHTMLBaseFontElement::nsDOMHTMLBaseFontElement()
  81. {
  82. /* member initializers and constructor code */
  83. }
  84. nsDOMHTMLBaseFontElement::~nsDOMHTMLBaseFontElement()
  85. {
  86. /* destructor code */
  87. }
  88. /* attribute DOMString color; */
  89. NS_IMETHODIMP nsDOMHTMLBaseFontElement::GetColor(nsAString & aColor)
  90. {
  91. return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93. NS_IMETHODIMP nsDOMHTMLBaseFontElement::SetColor(const nsAString & aColor)
  94. {
  95. return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97. /* attribute DOMString face; */
  98. NS_IMETHODIMP nsDOMHTMLBaseFontElement::GetFace(nsAString & aFace)
  99. {
  100. return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102. NS_IMETHODIMP nsDOMHTMLBaseFontElement::SetFace(const nsAString & aFace)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. /* attribute long size; */
  107. NS_IMETHODIMP nsDOMHTMLBaseFontElement::GetSize(PRInt32 *aSize)
  108. {
  109. return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111. NS_IMETHODIMP nsDOMHTMLBaseFontElement::SetSize(PRInt32 aSize)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. /* End of implementation class template. */
  116. #endif
  117. #endif /* __gen_nsIDOMHTMLBaseFontElement_h__ */