PageRenderTime 129ms CodeModel.GetById 8ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLLIElement.h

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