comparison dwt/internal/mozilla/nsISelection.d @ 125:5583f8eeee6c

Synced mozilla with dwt-linux
author Jacob Carlborg <doob@me.com>
date Fri, 16 Jan 2009 12:49:08 +0100
parents
children
comparison
equal deleted inserted replaced
124:540fa4e9974a 125:5583f8eeee6c
1 module dwt.internal.mozilla.nsISelection;
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.nsIDOMRange;
9
10 const char[] NS_ISELECTION_IID_STR = "b2c7ed59-8634-4352-9e37-5484c8b6e4e1";
11
12 const nsIID NS_ISELECTION_IID=
13 {0xb2c7ed59, 0x8634, 0x4352,
14 [ 0x9e, 0x37, 0x54, 0x84, 0xc8, 0xb6, 0xe4, 0xe1 ]};
15
16 interface nsISelection : nsISupports {
17
18 static const char[] IID_STR = NS_ISELECTION_IID_STR;
19 static const nsIID IID = NS_ISELECTION_IID;
20
21 extern(System):
22 nsresult GetAnchorNode(nsIDOMNode *aAnchorNode);
23 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
24 nsresult GetFocusNode(nsIDOMNode *aFocusNode);
25 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
26 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
27 nsresult GetRangeCount(PRInt32 *aRangeCount);
28 nsresult GetRangeAt(PRInt32 index, nsIDOMRange *_retval);
29 nsresult Collapse(nsIDOMNode parentNode, PRInt32 offset);
30 nsresult Extend(nsIDOMNode parentNode, PRInt32 offset);
31 nsresult CollapseToStart();
32 nsresult CollapseToEnd();
33 nsresult ContainsNode(nsIDOMNode node, PRBool entirelyContained, PRBool *_retval);
34 nsresult SelectAllChildren(nsIDOMNode parentNode);
35 nsresult AddRange(nsIDOMRange range);
36 nsresult RemoveRange(nsIDOMRange range);
37 nsresult RemoveAllRanges();
38 nsresult DeleteFromDocument();
39 nsresult SelectionLanguageChange(PRBool langRTL);
40 nsresult ToString(PRUnichar **_retval);
41
42 }
43