nsIDOMHTMLFontElement.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLFontElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLFontElement_h__
  5. #define __gen_nsIDOMHTMLFontElement_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: nsIDOMHTMLFontElement */
  14. #define NS_IDOMHTMLFONTELEMENT_IID_STR "a6cf90a7-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLFONTELEMENT_IID \
  16. {0xa6cf90a7, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLFontElement interface is the interface to a [X]HTML
  20. * font 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 nsIDOMHTMLFontElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLFONTELEMENT_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 DOMString size; */
  37. NS_IMETHOD GetSize(nsAString & aSize) = 0;
  38. NS_IMETHOD SetSize(const nsAString & aSize) = 0;
  39. };
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIDOMHTMLFONTELEMENT \
  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(nsAString & aSize); \
  47. NS_IMETHOD SetSize(const nsAString & aSize);
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  49. #define NS_FORWARD_NSIDOMHTMLFONTELEMENT(_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(nsAString & aSize) { return _to GetSize(aSize); } \
  55. NS_IMETHOD SetSize(const nsAString & 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_NSIDOMHTMLFONTELEMENT(_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(nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  63. NS_IMETHOD SetSize(const nsAString & 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 nsDOMHTMLFontElement : public nsIDOMHTMLFontElement
  68. {
  69. public:
  70. NS_DECL_ISUPPORTS
  71. NS_DECL_NSIDOMHTMLFONTELEMENT
  72. nsDOMHTMLFontElement();
  73. private:
  74. ~nsDOMHTMLFontElement();
  75. protected:
  76. /* additional members */
  77. };
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsDOMHTMLFontElement, nsIDOMHTMLFontElement)
  80. nsDOMHTMLFontElement::nsDOMHTMLFontElement()
  81. {
  82. /* member initializers and constructor code */
  83. }
  84. nsDOMHTMLFontElement::~nsDOMHTMLFontElement()
  85. {
  86. /* destructor code */
  87. }
  88. /* attribute DOMString color; */
  89. NS_IMETHODIMP nsDOMHTMLFontElement::GetColor(nsAString & aColor)
  90. {
  91. return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93. NS_IMETHODIMP nsDOMHTMLFontElement::SetColor(const nsAString & aColor)
  94. {
  95. return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97. /* attribute DOMString face; */
  98. NS_IMETHODIMP nsDOMHTMLFontElement::GetFace(nsAString & aFace)
  99. {
  100. return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102. NS_IMETHODIMP nsDOMHTMLFontElement::SetFace(const nsAString & aFace)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. /* attribute DOMString size; */
  107. NS_IMETHODIMP nsDOMHTMLFontElement::GetSize(nsAString & aSize)
  108. {
  109. return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111. NS_IMETHODIMP nsDOMHTMLFontElement::SetSize(const nsAString & aSize)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. /* End of implementation class template. */
  116. #endif
  117. #endif /* __gen_nsIDOMHTMLFontElement_h__ */