root/dwt/internal/mozilla/nsIDOMRange.d

Revision 327:b0d7eb5bd76c, 1.9 kB (checked in by John Reimer <terminal.node@gmail.com>, 3 years ago)

Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win

Line 
1 module dwt.internal.mozilla.nsIDOMRange;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISupports;
6
7 import dwt.internal.mozilla.nsIDOMNode;
8 import dwt.internal.mozilla.nsIDOMDocumentFragment;
9 import dwt.internal.mozilla.nsStringAPI;
10
11 const char[] NS_IDOMRANGE_IID_STR = "a6cf90ce-15b3-11d2-932e-00805f8add32";
12
13 const nsIID NS_IDOMRANGE_IID=
14   {0xa6cf90ce, 0x15b3, 0x11d2,
15     [ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]};
16
17 interface nsIDOMRange : nsISupports {
18
19   static const char[] IID_STR = NS_IDOMRANGE_IID_STR;
20   static const nsIID IID = NS_IDOMRANGE_IID;
21
22 extern(System):
23   nsresult GetStartContainer(nsIDOMNode  *aStartContainer);
24   nsresult GetStartOffset(PRInt32 *aStartOffset);
25   nsresult GetEndContainer(nsIDOMNode  *aEndContainer);
26   nsresult GetEndOffset(PRInt32 *aEndOffset);
27   nsresult GetCollapsed(PRBool *aCollapsed);
28   nsresult GetCommonAncestorContainer(nsIDOMNode  *aCommonAncestorContainer);
29   nsresult SetStart(nsIDOMNode refNode, PRInt32 offset);
30   nsresult SetEnd(nsIDOMNode refNode, PRInt32 offset);
31   nsresult SetStartBefore(nsIDOMNode refNode);
32   nsresult SetStartAfter(nsIDOMNode refNode);
33   nsresult SetEndBefore(nsIDOMNode refNode);
34   nsresult SetEndAfter(nsIDOMNode refNode);
35   nsresult Collapse(PRBool toStart);
36   nsresult SelectNode(nsIDOMNode refNode);
37   nsresult SelectNodeContents(nsIDOMNode refNode);
38
39   enum { START_TO_START = 0U };
40   enum { START_TO_END = 1U };
41   enum { END_TO_END = 2U };
42   enum { END_TO_START = 3U };
43
44   nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange sourceRange, PRInt16 *_retval);
45   nsresult DeleteContents();
46   nsresult ExtractContents(nsIDOMDocumentFragment *_retval);
47   nsresult CloneContents(nsIDOMDocumentFragment *_retval);
48   nsresult InsertNode(nsIDOMNode newNode);
49   nsresult SurroundContents(nsIDOMNode newParent);
50   nsresult CloneRange(nsIDOMRange *_retval);
51   nsresult ToString(nsAString * _retval);
52   nsresult Detach();
53
54 }
Note: See TracBrowser for help on using the browser.