PageRenderTime 30ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMCharacterData.h

http://firefox-mac-pdf.googlecode.com/
C Header | 180 lines | 104 code | 38 blank | 38 comment | 0 complexity | becc66293afee9a78acc18bac9dca749 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/core/nsIDOMCharacterData.idl
  3. */
  4. #ifndef __gen_nsIDOMCharacterData_h__
  5. #define __gen_nsIDOMCharacterData_h__
  6. #ifndef __gen_nsIDOMNode_h__
  7. #include "nsIDOMNode.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: nsIDOMCharacterData */
  14. #define NS_IDOMCHARACTERDATA_IID_STR "a6cf9072-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMCHARACTERDATA_IID \
  16. {0xa6cf9072, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCharacterData : public nsIDOMNode {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCHARACTERDATA_IID)
  21. /**
  22. * The nsIDOMCharacterData interface extends nsIDOMNode with a set of
  23. * attributes and methods for accessing character data in the DOM.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Core/
  27. *
  28. * @status FROZEN
  29. */
  30. /* attribute DOMString data; */
  31. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) = 0;
  33. /* readonly attribute unsigned long length; */
  34. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  35. /* DOMString substringData (in unsigned long offset, in unsigned long count) raises (DOMException); */
  36. NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) = 0;
  37. /* void appendData (in DOMString arg) raises (DOMException); */
  38. NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg) = 0;
  39. /* void insertData (in unsigned long offset, in DOMString arg) raises (DOMException); */
  40. NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) = 0;
  41. /* void deleteData (in unsigned long offset, in unsigned long count) raises (DOMException); */
  42. NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) = 0;
  43. /* void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg) raises (DOMException); */
  44. NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) = 0;
  45. };
  46. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCharacterData, NS_IDOMCHARACTERDATA_IID)
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSIDOMCHARACTERDATA \
  49. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData); \
  50. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData); \
  51. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
  52. NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval); \
  53. NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg); \
  54. NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg); \
  55. NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count); \
  56. NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg);
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIDOMCHARACTERDATA(_to) \
  59. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
  60. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } \
  61. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  62. NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) { return _to SubstringData(offset, count, _retval); } \
  63. NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg) { return _to AppendData(arg); } \
  64. NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) { return _to InsertData(offset, arg); } \
  65. NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) { return _to DeleteData(offset, count); } \
  66. NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) { return _to ReplaceData(offset, count, arg); }
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSIDOMCHARACTERDATA(_to) \
  69. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  70. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  71. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  72. NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubstringData(offset, count, _retval); } \
  73. NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendData(arg); } \
  74. NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertData(offset, arg); } \
  75. NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteData(offset, count); } \
  76. NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceData(offset, count, arg); }
  77. #if 0
  78. /* Use the code below as a template for the implementation class for this interface. */
  79. /* Header file */
  80. class nsDOMCharacterData : public nsIDOMCharacterData
  81. {
  82. public:
  83. NS_DECL_ISUPPORTS
  84. NS_DECL_NSIDOMCHARACTERDATA
  85. nsDOMCharacterData();
  86. private:
  87. ~nsDOMCharacterData();
  88. protected:
  89. /* additional members */
  90. };
  91. /* Implementation file */
  92. NS_IMPL_ISUPPORTS1(nsDOMCharacterData, nsIDOMCharacterData)
  93. nsDOMCharacterData::nsDOMCharacterData()
  94. {
  95. /* member initializers and constructor code */
  96. }
  97. nsDOMCharacterData::~nsDOMCharacterData()
  98. {
  99. /* destructor code */
  100. }
  101. /* attribute DOMString data; */
  102. NS_IMETHODIMP nsDOMCharacterData::GetData(nsAString & aData)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. NS_IMETHODIMP nsDOMCharacterData::SetData(const nsAString & aData)
  107. {
  108. return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110. /* readonly attribute unsigned long length; */
  111. NS_IMETHODIMP nsDOMCharacterData::GetLength(PRUint32 *aLength)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. /* DOMString substringData (in unsigned long offset, in unsigned long count) raises (DOMException); */
  116. NS_IMETHODIMP nsDOMCharacterData::SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval)
  117. {
  118. return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. /* void appendData (in DOMString arg) raises (DOMException); */
  121. NS_IMETHODIMP nsDOMCharacterData::AppendData(const nsAString & arg)
  122. {
  123. return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. /* void insertData (in unsigned long offset, in DOMString arg) raises (DOMException); */
  126. NS_IMETHODIMP nsDOMCharacterData::InsertData(PRUint32 offset, const nsAString & arg)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. /* void deleteData (in unsigned long offset, in unsigned long count) raises (DOMException); */
  131. NS_IMETHODIMP nsDOMCharacterData::DeleteData(PRUint32 offset, PRUint32 count)
  132. {
  133. return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. /* void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg) raises (DOMException); */
  136. NS_IMETHODIMP nsDOMCharacterData::ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* End of implementation class template. */
  141. #endif
  142. #endif /* __gen_nsIDOMCharacterData_h__ */