PageRenderTime 524ms CodeModel.GetById 514ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMText.h

http://firefox-mac-pdf.googlecode.com/
C Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | eca1b3b6c5472827f31a18143b8f3f38 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/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 NS_SCRIPTABLE nsIDOMText : public nsIDOMCharacterData {
  19. public:
  20. NS_DECLARE_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_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) = 0;
  32. };
  33. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMText, NS_IDOMTEXT_IID)
  34. /* Use this macro when declaring classes that implement this interface. */
  35. #define NS_DECL_NSIDOMTEXT \
  36. NS_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval);
  37. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  38. #define NS_FORWARD_NSIDOMTEXT(_to) \
  39. NS_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return _to SplitText(offset, _retval); }
  40. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  41. #define NS_FORWARD_SAFE_NSIDOMTEXT(_to) \
  42. NS_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SplitText(offset, _retval); }
  43. #if 0
  44. /* Use the code below as a template for the implementation class for this interface. */
  45. /* Header file */
  46. class nsDOMText : public nsIDOMText
  47. {
  48. public:
  49. NS_DECL_ISUPPORTS
  50. NS_DECL_NSIDOMTEXT
  51. nsDOMText();
  52. private:
  53. ~nsDOMText();
  54. protected:
  55. /* additional members */
  56. };
  57. /* Implementation file */
  58. NS_IMPL_ISUPPORTS1(nsDOMText, nsIDOMText)
  59. nsDOMText::nsDOMText()
  60. {
  61. /* member initializers and constructor code */
  62. }
  63. nsDOMText::~nsDOMText()
  64. {
  65. /* destructor code */
  66. }
  67. /* nsIDOMText splitText (in unsigned long offset) raises (DOMException); */
  68. NS_IMETHODIMP nsDOMText::SplitText(PRUint32 offset, nsIDOMText **_retval)
  69. {
  70. return NS_ERROR_NOT_IMPLEMENTED;
  71. }
  72. /* End of implementation class template. */
  73. #endif
  74. #endif /* __gen_nsIDOMText_h__ */