PageRenderTime 38ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLFontElement.h

http://firefox-mac-pdf.googlecode.com/
C Header | 148 lines | 88 code | 30 blank | 30 comment | 0 complexity | 837bbe71e2d844782d2ddf1e0f6bbdae MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/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 NS_SCRIPTABLE nsIDOMHTMLFontElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLFONTELEMENT_IID)
  30. /* attribute DOMString color; */
  31. NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor) = 0;
  33. /* attribute DOMString face; */
  34. NS_SCRIPTABLE NS_IMETHOD GetFace(nsAString & aFace) = 0;
  35. NS_SCRIPTABLE NS_IMETHOD SetFace(const nsAString & aFace) = 0;
  36. /* attribute DOMString size; */
  37. NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) = 0;
  38. NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) = 0;
  39. };
  40. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLFontElement, NS_IDOMHTMLFONTELEMENT_IID)
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIDOMHTMLFONTELEMENT \
  43. NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor); \
  44. NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor); \
  45. NS_SCRIPTABLE NS_IMETHOD GetFace(nsAString & aFace); \
  46. NS_SCRIPTABLE NS_IMETHOD SetFace(const nsAString & aFace); \
  47. NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize); \
  48. NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize);
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSIDOMHTMLFONTELEMENT(_to) \
  51. NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor) { return _to GetColor(aColor); } \
  52. NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor) { return _to SetColor(aColor); } \
  53. NS_SCRIPTABLE NS_IMETHOD GetFace(nsAString & aFace) { return _to GetFace(aFace); } \
  54. NS_SCRIPTABLE NS_IMETHOD SetFace(const nsAString & aFace) { return _to SetFace(aFace); } \
  55. NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) { return _to GetSize(aSize); } \
  56. NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) { return _to SetSize(aSize); }
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  58. #define NS_FORWARD_SAFE_NSIDOMHTMLFONTELEMENT(_to) \
  59. NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColor(aColor); } \
  60. NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColor(aColor); } \
  61. NS_SCRIPTABLE NS_IMETHOD GetFace(nsAString & aFace) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFace(aFace); } \
  62. NS_SCRIPTABLE NS_IMETHOD SetFace(const nsAString & aFace) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFace(aFace); } \
  63. NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  64. NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); }
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67. /* Header file */
  68. class nsDOMHTMLFontElement : public nsIDOMHTMLFontElement
  69. {
  70. public:
  71. NS_DECL_ISUPPORTS
  72. NS_DECL_NSIDOMHTMLFONTELEMENT
  73. nsDOMHTMLFontElement();
  74. private:
  75. ~nsDOMHTMLFontElement();
  76. protected:
  77. /* additional members */
  78. };
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsDOMHTMLFontElement, nsIDOMHTMLFontElement)
  81. nsDOMHTMLFontElement::nsDOMHTMLFontElement()
  82. {
  83. /* member initializers and constructor code */
  84. }
  85. nsDOMHTMLFontElement::~nsDOMHTMLFontElement()
  86. {
  87. /* destructor code */
  88. }
  89. /* attribute DOMString color; */
  90. NS_IMETHODIMP nsDOMHTMLFontElement::GetColor(nsAString & aColor)
  91. {
  92. return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94. NS_IMETHODIMP nsDOMHTMLFontElement::SetColor(const nsAString & aColor)
  95. {
  96. return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. /* attribute DOMString face; */
  99. NS_IMETHODIMP nsDOMHTMLFontElement::GetFace(nsAString & aFace)
  100. {
  101. return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. NS_IMETHODIMP nsDOMHTMLFontElement::SetFace(const nsAString & aFace)
  104. {
  105. return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107. /* attribute DOMString size; */
  108. NS_IMETHODIMP nsDOMHTMLFontElement::GetSize(nsAString & aSize)
  109. {
  110. return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112. NS_IMETHODIMP nsDOMHTMLFontElement::SetSize(const nsAString & aSize)
  113. {
  114. return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116. /* End of implementation class template. */
  117. #endif
  118. #endif /* __gen_nsIDOMHTMLFontElement_h__ */