nsIDOMText.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/core/nsIDOMText.idl
  3. */
  4. #ifndef __gen_nsIDOMText_h__
  5. #define __gen_nsIDOMText_h__
  6. #ifndef __gen_nsIDOMCharacterData_h__
  7. #include "nsIDOMCharacterData.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: nsIDOMText */
  14. #define NS_IDOMTEXT_IID_STR "a6cf9082-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMTEXT_IID \
  16. {0xa6cf9082, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMText : public nsIDOMCharacterData {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMTEXT_IID)
  21. /**
  22. * The nsIDOMText interface inherits from nsIDOMCharacterData and represents
  23. * the textual content (termed character data in XML) of an Element or Attr.
  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. /* nsIDOMText splitText (in unsigned long offset) raises (DOMException); */
  31. NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) = 0;
  32. };
  33. /* Use this macro when declaring classes that implement this interface. */
  34. #define NS_DECL_NSIDOMTEXT \
  35. NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval);
  36. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  37. #define NS_FORWARD_NSIDOMTEXT(_to) \
  38. NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return _to SplitText(offset, _retval); }
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  40. #define NS_FORWARD_SAFE_NSIDOMTEXT(_to) \
  41. NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SplitText(offset, _retval); }
  42. #if 0
  43. /* Use the code below as a template for the implementation class for this interface. */
  44. /* Header file */
  45. class nsDOMText : public nsIDOMText
  46. {
  47. public:
  48. NS_DECL_ISUPPORTS
  49. NS_DECL_NSIDOMTEXT
  50. nsDOMText();
  51. private:
  52. ~nsDOMText();
  53. protected:
  54. /* additional members */
  55. };
  56. /* Implementation file */
  57. NS_IMPL_ISUPPORTS1(nsDOMText, nsIDOMText)
  58. nsDOMText::nsDOMText()
  59. {
  60. /* member initializers and constructor code */
  61. }
  62. nsDOMText::~nsDOMText()
  63. {
  64. /* destructor code */
  65. }
  66. /* nsIDOMText splitText (in unsigned long offset) raises (DOMException); */
  67. NS_IMETHODIMP nsDOMText::SplitText(PRUint32 offset, nsIDOMText **_retval)
  68. {
  69. return NS_ERROR_NOT_IMPLEMENTED;
  70. }
  71. /* End of implementation class template. */
  72. #endif
  73. #endif /* __gen_nsIDOMText_h__ */