root/dwt/internal/mozilla/nsISelection.d

Revision 327:b0d7eb5bd76c, 1.5 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.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 }
Note: See TracBrowser for help on using the browser.