PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMRange.h

http://firefox-mac-pdf.googlecode.com/
C Header | 383 lines | 236 code | 76 blank | 71 comment | 0 complexity | a7038cd23693ce91814b66b9c39d2bd2 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/nsIDOMRange.idl
  3. */
  4. #ifndef __gen_nsIDOMRange_h__
  5. #define __gen_nsIDOMRange_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: nsIDOMRange */
  14. #define NS_IDOMRANGE_IID_STR "a6cf90ce-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMRANGE_IID \
  16. {0xa6cf90ce, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMRange : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMRANGE_IID)
  21. /**
  22. * The nsIDOMRange interface is an interface to a DOM range object.
  23. *
  24. * For more information on this interface please see
  25. * http://www.w3.org/TR/DOM-Level-2-Traversal-Range/
  26. *
  27. * @status FROZEN
  28. */
  29. /* readonly attribute nsIDOMNode startContainer; */
  30. NS_SCRIPTABLE NS_IMETHOD GetStartContainer(nsIDOMNode * *aStartContainer) = 0;
  31. /* readonly attribute long startOffset; */
  32. NS_SCRIPTABLE NS_IMETHOD GetStartOffset(PRInt32 *aStartOffset) = 0;
  33. /* readonly attribute nsIDOMNode endContainer; */
  34. NS_SCRIPTABLE NS_IMETHOD GetEndContainer(nsIDOMNode * *aEndContainer) = 0;
  35. /* readonly attribute long endOffset; */
  36. NS_SCRIPTABLE NS_IMETHOD GetEndOffset(PRInt32 *aEndOffset) = 0;
  37. /* readonly attribute boolean collapsed; */
  38. NS_SCRIPTABLE NS_IMETHOD GetCollapsed(PRBool *aCollapsed) = 0;
  39. /* readonly attribute nsIDOMNode commonAncestorContainer; */
  40. NS_SCRIPTABLE NS_IMETHOD GetCommonAncestorContainer(nsIDOMNode * *aCommonAncestorContainer) = 0;
  41. /* void setStart (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException); */
  42. NS_SCRIPTABLE NS_IMETHOD SetStart(nsIDOMNode *refNode, PRInt32 offset) = 0;
  43. /* void setEnd (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException); */
  44. NS_SCRIPTABLE NS_IMETHOD SetEnd(nsIDOMNode *refNode, PRInt32 offset) = 0;
  45. /* void setStartBefore (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  46. NS_SCRIPTABLE NS_IMETHOD SetStartBefore(nsIDOMNode *refNode) = 0;
  47. /* void setStartAfter (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  48. NS_SCRIPTABLE NS_IMETHOD SetStartAfter(nsIDOMNode *refNode) = 0;
  49. /* void setEndBefore (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  50. NS_SCRIPTABLE NS_IMETHOD SetEndBefore(nsIDOMNode *refNode) = 0;
  51. /* void setEndAfter (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  52. NS_SCRIPTABLE NS_IMETHOD SetEndAfter(nsIDOMNode *refNode) = 0;
  53. /* void collapse (in boolean toStart) raises (DOMException); */
  54. NS_SCRIPTABLE NS_IMETHOD Collapse(PRBool toStart) = 0;
  55. /* void selectNode (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  56. NS_SCRIPTABLE NS_IMETHOD SelectNode(nsIDOMNode *refNode) = 0;
  57. /* void selectNodeContents (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  58. NS_SCRIPTABLE NS_IMETHOD SelectNodeContents(nsIDOMNode *refNode) = 0;
  59. enum { START_TO_START = 0U };
  60. enum { START_TO_END = 1U };
  61. enum { END_TO_END = 2U };
  62. enum { END_TO_START = 3U };
  63. /* short compareBoundaryPoints (in unsigned short how, in nsIDOMRange sourceRange) raises (DOMException); */
  64. NS_SCRIPTABLE NS_IMETHOD CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval) = 0;
  65. /* void deleteContents () raises (DOMException); */
  66. NS_SCRIPTABLE NS_IMETHOD DeleteContents(void) = 0;
  67. /* nsIDOMDocumentFragment extractContents () raises (DOMException); */
  68. NS_SCRIPTABLE NS_IMETHOD ExtractContents(nsIDOMDocumentFragment **_retval) = 0;
  69. /* nsIDOMDocumentFragment cloneContents () raises (DOMException); */
  70. NS_SCRIPTABLE NS_IMETHOD CloneContents(nsIDOMDocumentFragment **_retval) = 0;
  71. /* void insertNode (in nsIDOMNode newNode) raises (DOMException, RangeException); */
  72. NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *newNode) = 0;
  73. /* void surroundContents (in nsIDOMNode newParent) raises (DOMException, RangeException); */
  74. NS_SCRIPTABLE NS_IMETHOD SurroundContents(nsIDOMNode *newParent) = 0;
  75. /* nsIDOMRange cloneRange () raises (DOMException); */
  76. NS_SCRIPTABLE NS_IMETHOD CloneRange(nsIDOMRange **_retval) = 0;
  77. /* DOMString toString () raises (DOMException); */
  78. NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval) = 0;
  79. /* void detach () raises (DOMException); */
  80. NS_SCRIPTABLE NS_IMETHOD Detach(void) = 0;
  81. };
  82. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMRange, NS_IDOMRANGE_IID)
  83. /* Use this macro when declaring classes that implement this interface. */
  84. #define NS_DECL_NSIDOMRANGE \
  85. NS_SCRIPTABLE NS_IMETHOD GetStartContainer(nsIDOMNode * *aStartContainer); \
  86. NS_SCRIPTABLE NS_IMETHOD GetStartOffset(PRInt32 *aStartOffset); \
  87. NS_SCRIPTABLE NS_IMETHOD GetEndContainer(nsIDOMNode * *aEndContainer); \
  88. NS_SCRIPTABLE NS_IMETHOD GetEndOffset(PRInt32 *aEndOffset); \
  89. NS_SCRIPTABLE NS_IMETHOD GetCollapsed(PRBool *aCollapsed); \
  90. NS_SCRIPTABLE NS_IMETHOD GetCommonAncestorContainer(nsIDOMNode * *aCommonAncestorContainer); \
  91. NS_SCRIPTABLE NS_IMETHOD SetStart(nsIDOMNode *refNode, PRInt32 offset); \
  92. NS_SCRIPTABLE NS_IMETHOD SetEnd(nsIDOMNode *refNode, PRInt32 offset); \
  93. NS_SCRIPTABLE NS_IMETHOD SetStartBefore(nsIDOMNode *refNode); \
  94. NS_SCRIPTABLE NS_IMETHOD SetStartAfter(nsIDOMNode *refNode); \
  95. NS_SCRIPTABLE NS_IMETHOD SetEndBefore(nsIDOMNode *refNode); \
  96. NS_SCRIPTABLE NS_IMETHOD SetEndAfter(nsIDOMNode *refNode); \
  97. NS_SCRIPTABLE NS_IMETHOD Collapse(PRBool toStart); \
  98. NS_SCRIPTABLE NS_IMETHOD SelectNode(nsIDOMNode *refNode); \
  99. NS_SCRIPTABLE NS_IMETHOD SelectNodeContents(nsIDOMNode *refNode); \
  100. NS_SCRIPTABLE NS_IMETHOD CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval); \
  101. NS_SCRIPTABLE NS_IMETHOD DeleteContents(void); \
  102. NS_SCRIPTABLE NS_IMETHOD ExtractContents(nsIDOMDocumentFragment **_retval); \
  103. NS_SCRIPTABLE NS_IMETHOD CloneContents(nsIDOMDocumentFragment **_retval); \
  104. NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *newNode); \
  105. NS_SCRIPTABLE NS_IMETHOD SurroundContents(nsIDOMNode *newParent); \
  106. NS_SCRIPTABLE NS_IMETHOD CloneRange(nsIDOMRange **_retval); \
  107. NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval); \
  108. NS_SCRIPTABLE NS_IMETHOD Detach(void);
  109. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  110. #define NS_FORWARD_NSIDOMRANGE(_to) \
  111. NS_SCRIPTABLE NS_IMETHOD GetStartContainer(nsIDOMNode * *aStartContainer) { return _to GetStartContainer(aStartContainer); } \
  112. NS_SCRIPTABLE NS_IMETHOD GetStartOffset(PRInt32 *aStartOffset) { return _to GetStartOffset(aStartOffset); } \
  113. NS_SCRIPTABLE NS_IMETHOD GetEndContainer(nsIDOMNode * *aEndContainer) { return _to GetEndContainer(aEndContainer); } \
  114. NS_SCRIPTABLE NS_IMETHOD GetEndOffset(PRInt32 *aEndOffset) { return _to GetEndOffset(aEndOffset); } \
  115. NS_SCRIPTABLE NS_IMETHOD GetCollapsed(PRBool *aCollapsed) { return _to GetCollapsed(aCollapsed); } \
  116. NS_SCRIPTABLE NS_IMETHOD GetCommonAncestorContainer(nsIDOMNode * *aCommonAncestorContainer) { return _to GetCommonAncestorContainer(aCommonAncestorContainer); } \
  117. NS_SCRIPTABLE NS_IMETHOD SetStart(nsIDOMNode *refNode, PRInt32 offset) { return _to SetStart(refNode, offset); } \
  118. NS_SCRIPTABLE NS_IMETHOD SetEnd(nsIDOMNode *refNode, PRInt32 offset) { return _to SetEnd(refNode, offset); } \
  119. NS_SCRIPTABLE NS_IMETHOD SetStartBefore(nsIDOMNode *refNode) { return _to SetStartBefore(refNode); } \
  120. NS_SCRIPTABLE NS_IMETHOD SetStartAfter(nsIDOMNode *refNode) { return _to SetStartAfter(refNode); } \
  121. NS_SCRIPTABLE NS_IMETHOD SetEndBefore(nsIDOMNode *refNode) { return _to SetEndBefore(refNode); } \
  122. NS_SCRIPTABLE NS_IMETHOD SetEndAfter(nsIDOMNode *refNode) { return _to SetEndAfter(refNode); } \
  123. NS_SCRIPTABLE NS_IMETHOD Collapse(PRBool toStart) { return _to Collapse(toStart); } \
  124. NS_SCRIPTABLE NS_IMETHOD SelectNode(nsIDOMNode *refNode) { return _to SelectNode(refNode); } \
  125. NS_SCRIPTABLE NS_IMETHOD SelectNodeContents(nsIDOMNode *refNode) { return _to SelectNodeContents(refNode); } \
  126. NS_SCRIPTABLE NS_IMETHOD CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval) { return _to CompareBoundaryPoints(how, sourceRange, _retval); } \
  127. NS_SCRIPTABLE NS_IMETHOD DeleteContents(void) { return _to DeleteContents(); } \
  128. NS_SCRIPTABLE NS_IMETHOD ExtractContents(nsIDOMDocumentFragment **_retval) { return _to ExtractContents(_retval); } \
  129. NS_SCRIPTABLE NS_IMETHOD CloneContents(nsIDOMDocumentFragment **_retval) { return _to CloneContents(_retval); } \
  130. NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *newNode) { return _to InsertNode(newNode); } \
  131. NS_SCRIPTABLE NS_IMETHOD SurroundContents(nsIDOMNode *newParent) { return _to SurroundContents(newParent); } \
  132. NS_SCRIPTABLE NS_IMETHOD CloneRange(nsIDOMRange **_retval) { return _to CloneRange(_retval); } \
  133. NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval) { return _to ToString(_retval); } \
  134. NS_SCRIPTABLE NS_IMETHOD Detach(void) { return _to Detach(); }
  135. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  136. #define NS_FORWARD_SAFE_NSIDOMRANGE(_to) \
  137. NS_SCRIPTABLE NS_IMETHOD GetStartContainer(nsIDOMNode * *aStartContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartContainer(aStartContainer); } \
  138. NS_SCRIPTABLE NS_IMETHOD GetStartOffset(PRInt32 *aStartOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartOffset(aStartOffset); } \
  139. NS_SCRIPTABLE NS_IMETHOD GetEndContainer(nsIDOMNode * *aEndContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndContainer(aEndContainer); } \
  140. NS_SCRIPTABLE NS_IMETHOD GetEndOffset(PRInt32 *aEndOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndOffset(aEndOffset); } \
  141. NS_SCRIPTABLE NS_IMETHOD GetCollapsed(PRBool *aCollapsed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCollapsed(aCollapsed); } \
  142. NS_SCRIPTABLE NS_IMETHOD GetCommonAncestorContainer(nsIDOMNode * *aCommonAncestorContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommonAncestorContainer(aCommonAncestorContainer); } \
  143. NS_SCRIPTABLE NS_IMETHOD SetStart(nsIDOMNode *refNode, PRInt32 offset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStart(refNode, offset); } \
  144. NS_SCRIPTABLE NS_IMETHOD SetEnd(nsIDOMNode *refNode, PRInt32 offset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnd(refNode, offset); } \
  145. NS_SCRIPTABLE NS_IMETHOD SetStartBefore(nsIDOMNode *refNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartBefore(refNode); } \
  146. NS_SCRIPTABLE NS_IMETHOD SetStartAfter(nsIDOMNode *refNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartAfter(refNode); } \
  147. NS_SCRIPTABLE NS_IMETHOD SetEndBefore(nsIDOMNode *refNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndBefore(refNode); } \
  148. NS_SCRIPTABLE NS_IMETHOD SetEndAfter(nsIDOMNode *refNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndAfter(refNode); } \
  149. NS_SCRIPTABLE NS_IMETHOD Collapse(PRBool toStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->Collapse(toStart); } \
  150. NS_SCRIPTABLE NS_IMETHOD SelectNode(nsIDOMNode *refNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectNode(refNode); } \
  151. NS_SCRIPTABLE NS_IMETHOD SelectNodeContents(nsIDOMNode *refNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectNodeContents(refNode); } \
  152. NS_SCRIPTABLE NS_IMETHOD CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareBoundaryPoints(how, sourceRange, _retval); } \
  153. NS_SCRIPTABLE NS_IMETHOD DeleteContents(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteContents(); } \
  154. NS_SCRIPTABLE NS_IMETHOD ExtractContents(nsIDOMDocumentFragment **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtractContents(_retval); } \
  155. NS_SCRIPTABLE NS_IMETHOD CloneContents(nsIDOMDocumentFragment **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneContents(_retval); } \
  156. NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *newNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertNode(newNode); } \
  157. NS_SCRIPTABLE NS_IMETHOD SurroundContents(nsIDOMNode *newParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SurroundContents(newParent); } \
  158. NS_SCRIPTABLE NS_IMETHOD CloneRange(nsIDOMRange **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneRange(_retval); } \
  159. NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
  160. NS_SCRIPTABLE NS_IMETHOD Detach(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Detach(); }
  161. #if 0
  162. /* Use the code below as a template for the implementation class for this interface. */
  163. /* Header file */
  164. class nsDOMRange : public nsIDOMRange
  165. {
  166. public:
  167. NS_DECL_ISUPPORTS
  168. NS_DECL_NSIDOMRANGE
  169. nsDOMRange();
  170. private:
  171. ~nsDOMRange();
  172. protected:
  173. /* additional members */
  174. };
  175. /* Implementation file */
  176. NS_IMPL_ISUPPORTS1(nsDOMRange, nsIDOMRange)
  177. nsDOMRange::nsDOMRange()
  178. {
  179. /* member initializers and constructor code */
  180. }
  181. nsDOMRange::~nsDOMRange()
  182. {
  183. /* destructor code */
  184. }
  185. /* readonly attribute nsIDOMNode startContainer; */
  186. NS_IMETHODIMP nsDOMRange::GetStartContainer(nsIDOMNode * *aStartContainer)
  187. {
  188. return NS_ERROR_NOT_IMPLEMENTED;
  189. }
  190. /* readonly attribute long startOffset; */
  191. NS_IMETHODIMP nsDOMRange::GetStartOffset(PRInt32 *aStartOffset)
  192. {
  193. return NS_ERROR_NOT_IMPLEMENTED;
  194. }
  195. /* readonly attribute nsIDOMNode endContainer; */
  196. NS_IMETHODIMP nsDOMRange::GetEndContainer(nsIDOMNode * *aEndContainer)
  197. {
  198. return NS_ERROR_NOT_IMPLEMENTED;
  199. }
  200. /* readonly attribute long endOffset; */
  201. NS_IMETHODIMP nsDOMRange::GetEndOffset(PRInt32 *aEndOffset)
  202. {
  203. return NS_ERROR_NOT_IMPLEMENTED;
  204. }
  205. /* readonly attribute boolean collapsed; */
  206. NS_IMETHODIMP nsDOMRange::GetCollapsed(PRBool *aCollapsed)
  207. {
  208. return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210. /* readonly attribute nsIDOMNode commonAncestorContainer; */
  211. NS_IMETHODIMP nsDOMRange::GetCommonAncestorContainer(nsIDOMNode * *aCommonAncestorContainer)
  212. {
  213. return NS_ERROR_NOT_IMPLEMENTED;
  214. }
  215. /* void setStart (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException); */
  216. NS_IMETHODIMP nsDOMRange::SetStart(nsIDOMNode *refNode, PRInt32 offset)
  217. {
  218. return NS_ERROR_NOT_IMPLEMENTED;
  219. }
  220. /* void setEnd (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException); */
  221. NS_IMETHODIMP nsDOMRange::SetEnd(nsIDOMNode *refNode, PRInt32 offset)
  222. {
  223. return NS_ERROR_NOT_IMPLEMENTED;
  224. }
  225. /* void setStartBefore (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  226. NS_IMETHODIMP nsDOMRange::SetStartBefore(nsIDOMNode *refNode)
  227. {
  228. return NS_ERROR_NOT_IMPLEMENTED;
  229. }
  230. /* void setStartAfter (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  231. NS_IMETHODIMP nsDOMRange::SetStartAfter(nsIDOMNode *refNode)
  232. {
  233. return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235. /* void setEndBefore (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  236. NS_IMETHODIMP nsDOMRange::SetEndBefore(nsIDOMNode *refNode)
  237. {
  238. return NS_ERROR_NOT_IMPLEMENTED;
  239. }
  240. /* void setEndAfter (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  241. NS_IMETHODIMP nsDOMRange::SetEndAfter(nsIDOMNode *refNode)
  242. {
  243. return NS_ERROR_NOT_IMPLEMENTED;
  244. }
  245. /* void collapse (in boolean toStart) raises (DOMException); */
  246. NS_IMETHODIMP nsDOMRange::Collapse(PRBool toStart)
  247. {
  248. return NS_ERROR_NOT_IMPLEMENTED;
  249. }
  250. /* void selectNode (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  251. NS_IMETHODIMP nsDOMRange::SelectNode(nsIDOMNode *refNode)
  252. {
  253. return NS_ERROR_NOT_IMPLEMENTED;
  254. }
  255. /* void selectNodeContents (in nsIDOMNode refNode) raises (RangeException, DOMException); */
  256. NS_IMETHODIMP nsDOMRange::SelectNodeContents(nsIDOMNode *refNode)
  257. {
  258. return NS_ERROR_NOT_IMPLEMENTED;
  259. }
  260. /* short compareBoundaryPoints (in unsigned short how, in nsIDOMRange sourceRange) raises (DOMException); */
  261. NS_IMETHODIMP nsDOMRange::CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval)
  262. {
  263. return NS_ERROR_NOT_IMPLEMENTED;
  264. }
  265. /* void deleteContents () raises (DOMException); */
  266. NS_IMETHODIMP nsDOMRange::DeleteContents()
  267. {
  268. return NS_ERROR_NOT_IMPLEMENTED;
  269. }
  270. /* nsIDOMDocumentFragment extractContents () raises (DOMException); */
  271. NS_IMETHODIMP nsDOMRange::ExtractContents(nsIDOMDocumentFragment **_retval)
  272. {
  273. return NS_ERROR_NOT_IMPLEMENTED;
  274. }
  275. /* nsIDOMDocumentFragment cloneContents () raises (DOMException); */
  276. NS_IMETHODIMP nsDOMRange::CloneContents(nsIDOMDocumentFragment **_retval)
  277. {
  278. return NS_ERROR_NOT_IMPLEMENTED;
  279. }
  280. /* void insertNode (in nsIDOMNode newNode) raises (DOMException, RangeException); */
  281. NS_IMETHODIMP nsDOMRange::InsertNode(nsIDOMNode *newNode)
  282. {
  283. return NS_ERROR_NOT_IMPLEMENTED;
  284. }
  285. /* void surroundContents (in nsIDOMNode newParent) raises (DOMException, RangeException); */
  286. NS_IMETHODIMP nsDOMRange::SurroundContents(nsIDOMNode *newParent)
  287. {
  288. return NS_ERROR_NOT_IMPLEMENTED;
  289. }
  290. /* nsIDOMRange cloneRange () raises (DOMException); */
  291. NS_IMETHODIMP nsDOMRange::CloneRange(nsIDOMRange **_retval)
  292. {
  293. return NS_ERROR_NOT_IMPLEMENTED;
  294. }
  295. /* DOMString toString () raises (DOMException); */
  296. NS_IMETHODIMP nsDOMRange::ToString(nsAString & _retval)
  297. {
  298. return NS_ERROR_NOT_IMPLEMENTED;
  299. }
  300. /* void detach () raises (DOMException); */
  301. NS_IMETHODIMP nsDOMRange::Detach()
  302. {
  303. return NS_ERROR_NOT_IMPLEMENTED;
  304. }
  305. /* End of implementation class template. */
  306. #endif
  307. #endif /* __gen_nsIDOMRange_h__ */