comparison dwt/internal/mozilla/nsISelection.d @ 272:dd63eb078d7a

xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author John Reimer<terminal.node@gmail.com>
date Fri, 18 Jul 2008 05:32:53 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
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 extern(System)
17
18 interface nsISelection : nsISupports {
19
20 static const char[] IID_STR = NS_ISELECTION_IID_STR;
21 static const nsIID IID = NS_ISELECTION_IID;
22
23 nsresult GetAnchorNode(nsIDOMNode *aAnchorNode);
24 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
25 nsresult GetFocusNode(nsIDOMNode *aFocusNode);
26 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
27 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
28 nsresult GetRangeCount(PRInt32 *aRangeCount);
29 nsresult GetRangeAt(PRInt32 index, nsIDOMRange *_retval);
30 nsresult Collapse(nsIDOMNode parentNode, PRInt32 offset);
31 nsresult Extend(nsIDOMNode parentNode, PRInt32 offset);
32 nsresult CollapseToStart();
33 nsresult CollapseToEnd();
34 nsresult ContainsNode(nsIDOMNode node, PRBool entirelyContained, PRBool *_retval);
35 nsresult SelectAllChildren(nsIDOMNode parentNode);
36 nsresult AddRange(nsIDOMRange range);
37 nsresult RemoveRange(nsIDOMRange range);
38 nsresult RemoveAllRanges();
39 nsresult DeleteFromDocument();
40 nsresult SelectionLanguageChange(PRBool langRTL);
41 nsresult ToString(PRUnichar **_retval);
42
43 }
44