PageRenderTime 34ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLUListElement.h

http://firefox-mac-pdf.googlecode.com/
C Header | 128 lines | 72 code | 28 blank | 28 comment | 0 complexity | 699afec00c494241d5283cf153b48161 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/nsIDOMHTMLUListElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLUListElement_h__
  5. #define __gen_nsIDOMHTMLUListElement_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: nsIDOMHTMLUListElement */
  14. #define NS_IDOMHTMLULISTELEMENT_IID_STR "a6cf9099-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLULISTELEMENT_IID \
  16. {0xa6cf9099, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLUListElement interface is the interface to a [X]HTML
  20. * ul 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 nsIDOMHTMLUListElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLULISTELEMENT_IID)
  30. /* attribute boolean compact; */
  31. NS_SCRIPTABLE NS_IMETHOD GetCompact(PRBool *aCompact) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetCompact(PRBool aCompact) = 0;
  33. /* attribute DOMString type; */
  34. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
  35. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) = 0;
  36. };
  37. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLUListElement, NS_IDOMHTMLULISTELEMENT_IID)
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSIDOMHTMLULISTELEMENT \
  40. NS_SCRIPTABLE NS_IMETHOD GetCompact(PRBool *aCompact); \
  41. NS_SCRIPTABLE NS_IMETHOD SetCompact(PRBool aCompact); \
  42. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
  43. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType);
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIDOMHTMLULISTELEMENT(_to) \
  46. NS_SCRIPTABLE NS_IMETHOD GetCompact(PRBool *aCompact) { return _to GetCompact(aCompact); } \
  47. NS_SCRIPTABLE NS_IMETHOD SetCompact(PRBool aCompact) { return _to SetCompact(aCompact); } \
  48. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  49. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); }
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  51. #define NS_FORWARD_SAFE_NSIDOMHTMLULISTELEMENT(_to) \
  52. NS_SCRIPTABLE NS_IMETHOD GetCompact(PRBool *aCompact) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompact(aCompact); } \
  53. NS_SCRIPTABLE NS_IMETHOD SetCompact(PRBool aCompact) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCompact(aCompact); } \
  54. NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  55. NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); }
  56. #if 0
  57. /* Use the code below as a template for the implementation class for this interface. */
  58. /* Header file */
  59. class nsDOMHTMLUListElement : public nsIDOMHTMLUListElement
  60. {
  61. public:
  62. NS_DECL_ISUPPORTS
  63. NS_DECL_NSIDOMHTMLULISTELEMENT
  64. nsDOMHTMLUListElement();
  65. private:
  66. ~nsDOMHTMLUListElement();
  67. protected:
  68. /* additional members */
  69. };
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsDOMHTMLUListElement, nsIDOMHTMLUListElement)
  72. nsDOMHTMLUListElement::nsDOMHTMLUListElement()
  73. {
  74. /* member initializers and constructor code */
  75. }
  76. nsDOMHTMLUListElement::~nsDOMHTMLUListElement()
  77. {
  78. /* destructor code */
  79. }
  80. /* attribute boolean compact; */
  81. NS_IMETHODIMP nsDOMHTMLUListElement::GetCompact(PRBool *aCompact)
  82. {
  83. return NS_ERROR_NOT_IMPLEMENTED;
  84. }
  85. NS_IMETHODIMP nsDOMHTMLUListElement::SetCompact(PRBool aCompact)
  86. {
  87. return NS_ERROR_NOT_IMPLEMENTED;
  88. }
  89. /* attribute DOMString type; */
  90. NS_IMETHODIMP nsDOMHTMLUListElement::GetType(nsAString & aType)
  91. {
  92. return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94. NS_IMETHODIMP nsDOMHTMLUListElement::SetType(const nsAString & aType)
  95. {
  96. return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. /* End of implementation class template. */
  99. #endif
  100. #endif /* __gen_nsIDOMHTMLUListElement_h__ */