Files
Mozilla/mozilla/dom/public/idl/range/Selection.idl
mjudge%netscape.com c657f5e264 r=jfrancis, a=jar Part of checkin including layout/base/src/nsRangeList.cpp to fix caret issues
git-svn-id: svn://10.0.0.236/trunk@61650 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-25 04:29:28 +00:00

43 lines
1.1 KiB
Plaintext

interface Selection {
/* IID: { 0xa6cf90e1, 0x15b3, 0x11d2, \
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } } */
readonly attribute Node anchorNode;
readonly attribute long anchorOffset;
readonly attribute Node focusNode;
readonly attribute long focusOffset;
readonly attribute boolean isCollapsed;
readonly attribute long rangeCount;
Range getRangeAt(in long index);
void clearSelection();
void collapse(in Node parentNode, in long offset);
void extend(in Node parentNode, in long offset);
void collapseToStart();
void collapseToEnd();
boolean containsNode(in Node node, in boolean recursive);
void deleteFromDocument();
void addRange(in Range range);
void removeRange(in Range range);
void startBatchChanges();
void endBatchChanges();
void addSelectionListener(in SelectionListener newListener);
void removeSelectionListener(in SelectionListener listenerToRemove);
void setHint(in boolean right);
boolean getHint();
noscript xpidl nsIEnumerator getEnumerator();
DOMString toString();
};