nsIDOMHTMLHeadingElement.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLHeadingElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLHeadingElement_h__
  5. #define __gen_nsIDOMHTMLHeadingElement_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: nsIDOMHTMLHeadingElement */
  14. #define NS_IDOMHTMLHEADINGELEMENT_IID_STR "a6cf90a2-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLHEADINGELEMENT_IID \
  16. {0xa6cf90a2, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLHeadingElement interface is the interface to a
  20. * [X]HTML h1, h2, h3, ... 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 nsIDOMHTMLHeadingElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLHEADINGELEMENT_IID)
  30. /* attribute DOMString align; */
  31. NS_IMETHOD GetAlign(nsAString & aAlign) = 0;
  32. NS_IMETHOD SetAlign(const nsAString & aAlign) = 0;
  33. };
  34. /* Use this macro when declaring classes that implement this interface. */
  35. #define NS_DECL_NSIDOMHTMLHEADINGELEMENT \
  36. NS_IMETHOD GetAlign(nsAString & aAlign); \
  37. NS_IMETHOD SetAlign(const nsAString & aAlign);
  38. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  39. #define NS_FORWARD_NSIDOMHTMLHEADINGELEMENT(_to) \
  40. NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \
  41. NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); }
  42. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  43. #define NS_FORWARD_SAFE_NSIDOMHTMLHEADINGELEMENT(_to) \
  44. NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
  45. NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); }
  46. #if 0
  47. /* Use the code below as a template for the implementation class for this interface. */
  48. /* Header file */
  49. class nsDOMHTMLHeadingElement : public nsIDOMHTMLHeadingElement
  50. {
  51. public:
  52. NS_DECL_ISUPPORTS
  53. NS_DECL_NSIDOMHTMLHEADINGELEMENT
  54. nsDOMHTMLHeadingElement();
  55. private:
  56. ~nsDOMHTMLHeadingElement();
  57. protected:
  58. /* additional members */
  59. };
  60. /* Implementation file */
  61. NS_IMPL_ISUPPORTS1(nsDOMHTMLHeadingElement, nsIDOMHTMLHeadingElement)
  62. nsDOMHTMLHeadingElement::nsDOMHTMLHeadingElement()
  63. {
  64. /* member initializers and constructor code */
  65. }
  66. nsDOMHTMLHeadingElement::~nsDOMHTMLHeadingElement()
  67. {
  68. /* destructor code */
  69. }
  70. /* attribute DOMString align; */
  71. NS_IMETHODIMP nsDOMHTMLHeadingElement::GetAlign(nsAString & aAlign)
  72. {
  73. return NS_ERROR_NOT_IMPLEMENTED;
  74. }
  75. NS_IMETHODIMP nsDOMHTMLHeadingElement::SetAlign(const nsAString & aAlign)
  76. {
  77. return NS_ERROR_NOT_IMPLEMENTED;
  78. }
  79. /* End of implementation class template. */
  80. #endif
  81. #endif /* __gen_nsIDOMHTMLHeadingElement_h__ */