PageRenderTime 28ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLHRElement.h

http://firefox-mac-pdf.googlecode.com/
C Header | 168 lines | 104 code | 32 blank | 32 comment | 0 complexity | 28e183791de9add2d822508a02458a7a 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/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 NS_SCRIPTABLE nsIDOMHTMLHRElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLHRELEMENT_IID)
  30. /* attribute DOMString align; */
  31. NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) = 0;
  33. /* attribute boolean noShade; */
  34. NS_SCRIPTABLE NS_IMETHOD GetNoShade(PRBool *aNoShade) = 0;
  35. NS_SCRIPTABLE NS_IMETHOD SetNoShade(PRBool aNoShade) = 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. /* attribute DOMString width; */
  40. NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth) = 0;
  41. NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth) = 0;
  42. };
  43. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLHRElement, NS_IDOMHTMLHRELEMENT_IID)
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIDOMHTMLHRELEMENT \
  46. NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign); \
  47. NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign); \
  48. NS_SCRIPTABLE NS_IMETHOD GetNoShade(PRBool *aNoShade); \
  49. NS_SCRIPTABLE NS_IMETHOD SetNoShade(PRBool aNoShade); \
  50. NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize); \
  51. NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize); \
  52. NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth); \
  53. NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth);
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSIDOMHTMLHRELEMENT(_to) \
  56. NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \
  57. NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); } \
  58. NS_SCRIPTABLE NS_IMETHOD GetNoShade(PRBool *aNoShade) { return _to GetNoShade(aNoShade); } \
  59. NS_SCRIPTABLE NS_IMETHOD SetNoShade(PRBool aNoShade) { return _to SetNoShade(aNoShade); } \
  60. NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) { return _to GetSize(aSize); } \
  61. NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) { return _to SetSize(aSize); } \
  62. NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth) { return _to GetWidth(aWidth); } \
  63. NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth) { return _to SetWidth(aWidth); }
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  65. #define NS_FORWARD_SAFE_NSIDOMHTMLHRELEMENT(_to) \
  66. NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
  67. NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
  68. NS_SCRIPTABLE NS_IMETHOD GetNoShade(PRBool *aNoShade) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoShade(aNoShade); } \
  69. NS_SCRIPTABLE NS_IMETHOD SetNoShade(PRBool aNoShade) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNoShade(aNoShade); } \
  70. NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  71. NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
  72. NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  73. NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); }
  74. #if 0
  75. /* Use the code below as a template for the implementation class for this interface. */
  76. /* Header file */
  77. class nsDOMHTMLHRElement : public nsIDOMHTMLHRElement
  78. {
  79. public:
  80. NS_DECL_ISUPPORTS
  81. NS_DECL_NSIDOMHTMLHRELEMENT
  82. nsDOMHTMLHRElement();
  83. private:
  84. ~nsDOMHTMLHRElement();
  85. protected:
  86. /* additional members */
  87. };
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(nsDOMHTMLHRElement, nsIDOMHTMLHRElement)
  90. nsDOMHTMLHRElement::nsDOMHTMLHRElement()
  91. {
  92. /* member initializers and constructor code */
  93. }
  94. nsDOMHTMLHRElement::~nsDOMHTMLHRElement()
  95. {
  96. /* destructor code */
  97. }
  98. /* attribute DOMString align; */
  99. NS_IMETHODIMP nsDOMHTMLHRElement::GetAlign(nsAString & aAlign)
  100. {
  101. return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. NS_IMETHODIMP nsDOMHTMLHRElement::SetAlign(const nsAString & aAlign)
  104. {
  105. return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107. /* attribute boolean noShade; */
  108. NS_IMETHODIMP nsDOMHTMLHRElement::GetNoShade(PRBool *aNoShade)
  109. {
  110. return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112. NS_IMETHODIMP nsDOMHTMLHRElement::SetNoShade(PRBool aNoShade)
  113. {
  114. return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116. /* attribute DOMString size; */
  117. NS_IMETHODIMP nsDOMHTMLHRElement::GetSize(nsAString & aSize)
  118. {
  119. return NS_ERROR_NOT_IMPLEMENTED;
  120. }
  121. NS_IMETHODIMP nsDOMHTMLHRElement::SetSize(const nsAString & aSize)
  122. {
  123. return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. /* attribute DOMString width; */
  126. NS_IMETHODIMP nsDOMHTMLHRElement::GetWidth(nsAString & aWidth)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. NS_IMETHODIMP nsDOMHTMLHRElement::SetWidth(const nsAString & aWidth)
  131. {
  132. return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134. /* End of implementation class template. */
  135. #endif
  136. #endif /* __gen_nsIDOMHTMLHRElement_h__ */