nsIDOMHTMLHRElement.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLHRElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLHRElement_h__
  5. #define __gen_nsIDOMHTMLHRElement_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: nsIDOMHTMLHRElement */
  14. #define NS_IDOMHTMLHRELEMENT_IID_STR "a6cf90a8-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLHRELEMENT_IID \
  16. {0xa6cf90a8, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLHRElement interface is the interface to a [X]HTML hr
  20. * 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 nsIDOMHTMLHRElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLHRELEMENT_IID)
  30. /* attribute DOMString align; */
  31. NS_IMETHOD GetAlign(nsAString & aAlign) = 0;
  32. NS_IMETHOD SetAlign(const nsAString & aAlign) = 0;
  33. /* attribute boolean noShade; */
  34. NS_IMETHOD GetNoShade(PRBool *aNoShade) = 0;
  35. NS_IMETHOD SetNoShade(PRBool aNoShade) = 0;
  36. /* attribute DOMString size; */
  37. NS_IMETHOD GetSize(nsAString & aSize) = 0;
  38. NS_IMETHOD SetSize(const nsAString & aSize) = 0;
  39. /* attribute DOMString width; */
  40. NS_IMETHOD GetWidth(nsAString & aWidth) = 0;
  41. NS_IMETHOD SetWidth(const nsAString & aWidth) = 0;
  42. };
  43. /* Use this macro when declaring classes that implement this interface. */
  44. #define NS_DECL_NSIDOMHTMLHRELEMENT \
  45. NS_IMETHOD GetAlign(nsAString & aAlign); \
  46. NS_IMETHOD SetAlign(const nsAString & aAlign); \
  47. NS_IMETHOD GetNoShade(PRBool *aNoShade); \
  48. NS_IMETHOD SetNoShade(PRBool aNoShade); \
  49. NS_IMETHOD GetSize(nsAString & aSize); \
  50. NS_IMETHOD SetSize(const nsAString & aSize); \
  51. NS_IMETHOD GetWidth(nsAString & aWidth); \
  52. NS_IMETHOD SetWidth(const nsAString & aWidth);
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIDOMHTMLHRELEMENT(_to) \
  55. NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \
  56. NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); } \
  57. NS_IMETHOD GetNoShade(PRBool *aNoShade) { return _to GetNoShade(aNoShade); } \
  58. NS_IMETHOD SetNoShade(PRBool aNoShade) { return _to SetNoShade(aNoShade); } \
  59. NS_IMETHOD GetSize(nsAString & aSize) { return _to GetSize(aSize); } \
  60. NS_IMETHOD SetSize(const nsAString & aSize) { return _to SetSize(aSize); } \
  61. NS_IMETHOD GetWidth(nsAString & aWidth) { return _to GetWidth(aWidth); } \
  62. NS_IMETHOD SetWidth(const nsAString & aWidth) { return _to SetWidth(aWidth); }
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  64. #define NS_FORWARD_SAFE_NSIDOMHTMLHRELEMENT(_to) \
  65. NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
  66. NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
  67. NS_IMETHOD GetNoShade(PRBool *aNoShade) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoShade(aNoShade); } \
  68. NS_IMETHOD SetNoShade(PRBool aNoShade) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNoShade(aNoShade); } \
  69. NS_IMETHOD GetSize(nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  70. NS_IMETHOD SetSize(const nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
  71. NS_IMETHOD GetWidth(nsAString & aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  72. NS_IMETHOD SetWidth(const nsAString & aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); }
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75. /* Header file */
  76. class nsDOMHTMLHRElement : public nsIDOMHTMLHRElement
  77. {
  78. public:
  79. NS_DECL_ISUPPORTS
  80. NS_DECL_NSIDOMHTMLHRELEMENT
  81. nsDOMHTMLHRElement();
  82. private:
  83. ~nsDOMHTMLHRElement();
  84. protected:
  85. /* additional members */
  86. };
  87. /* Implementation file */
  88. NS_IMPL_ISUPPORTS1(nsDOMHTMLHRElement, nsIDOMHTMLHRElement)
  89. nsDOMHTMLHRElement::nsDOMHTMLHRElement()
  90. {
  91. /* member initializers and constructor code */
  92. }
  93. nsDOMHTMLHRElement::~nsDOMHTMLHRElement()
  94. {
  95. /* destructor code */
  96. }
  97. /* attribute DOMString align; */
  98. NS_IMETHODIMP nsDOMHTMLHRElement::GetAlign(nsAString & aAlign)
  99. {
  100. return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102. NS_IMETHODIMP nsDOMHTMLHRElement::SetAlign(const nsAString & aAlign)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. /* attribute boolean noShade; */
  107. NS_IMETHODIMP nsDOMHTMLHRElement::GetNoShade(PRBool *aNoShade)
  108. {
  109. return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111. NS_IMETHODIMP nsDOMHTMLHRElement::SetNoShade(PRBool aNoShade)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. /* attribute DOMString size; */
  116. NS_IMETHODIMP nsDOMHTMLHRElement::GetSize(nsAString & aSize)
  117. {
  118. return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. NS_IMETHODIMP nsDOMHTMLHRElement::SetSize(const nsAString & aSize)
  121. {
  122. return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124. /* attribute DOMString width; */
  125. NS_IMETHODIMP nsDOMHTMLHRElement::GetWidth(nsAString & aWidth)
  126. {
  127. return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129. NS_IMETHODIMP nsDOMHTMLHRElement::SetWidth(const nsAString & aWidth)
  130. {
  131. return NS_ERROR_NOT_IMPLEMENTED;
  132. }
  133. /* End of implementation class template. */
  134. #endif
  135. #endif /* __gen_nsIDOMHTMLHRElement_h__ */