PageRenderTime 24ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMDocumentRange.h

http://firefox-mac-pdf.googlecode.com/
C Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | cad78ad26c77543d46d9bb44d68d8fe0 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/range/nsIDOMDocumentRange.idl
  3. */
  4. #ifndef __gen_nsIDOMDocumentRange_h__
  5. #define __gen_nsIDOMDocumentRange_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.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: nsIDOMDocumentRange */
  14. #define NS_IDOMDOCUMENTRANGE_IID_STR "7b9badc6-c9bc-447a-8670-dbd195aed24b"
  15. #define NS_IDOMDOCUMENTRANGE_IID \
  16. {0x7b9badc6, 0xc9bc, 0x447a, \
  17. { 0x86, 0x70, 0xdb, 0xd1, 0x95, 0xae, 0xd2, 0x4b }}
  18. /**
  19. * The nsIDOMDocumentRange interface is an interface to a document
  20. * object that supports ranges in the Document Object Model.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-Traversal-Range/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentRange : public nsISupports {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTRANGE_IID)
  30. /* nsIDOMRange createRange (); */
  31. NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval) = 0;
  32. };
  33. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentRange, NS_IDOMDOCUMENTRANGE_IID)
  34. /* Use this macro when declaring classes that implement this interface. */
  35. #define NS_DECL_NSIDOMDOCUMENTRANGE \
  36. NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval);
  37. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  38. #define NS_FORWARD_NSIDOMDOCUMENTRANGE(_to) \
  39. NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval) { return _to CreateRange(_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_NSIDOMDOCUMENTRANGE(_to) \
  42. NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRange(_retval); }
  43. #if 0
  44. /* Use the code below as a template for the implementation class for this interface. */
  45. /* Header file */
  46. class nsDOMDocumentRange : public nsIDOMDocumentRange
  47. {
  48. public:
  49. NS_DECL_ISUPPORTS
  50. NS_DECL_NSIDOMDOCUMENTRANGE
  51. nsDOMDocumentRange();
  52. private:
  53. ~nsDOMDocumentRange();
  54. protected:
  55. /* additional members */
  56. };
  57. /* Implementation file */
  58. NS_IMPL_ISUPPORTS1(nsDOMDocumentRange, nsIDOMDocumentRange)
  59. nsDOMDocumentRange::nsDOMDocumentRange()
  60. {
  61. /* member initializers and constructor code */
  62. }
  63. nsDOMDocumentRange::~nsDOMDocumentRange()
  64. {
  65. /* destructor code */
  66. }
  67. /* nsIDOMRange createRange (); */
  68. NS_IMETHODIMP nsDOMDocumentRange::CreateRange(nsIDOMRange **_retval)
  69. {
  70. return NS_ERROR_NOT_IMPLEMENTED;
  71. }
  72. /* End of implementation class template. */
  73. #endif
  74. #endif /* __gen_nsIDOMDocumentRange_h__ */