nsISupports
Last changed in Gecko 35 (Firefox 35 / Thunderbird 35 / SeaMonkey 2.32)Warning: The content of this article may be out of date. This page wasn't updated since the initial import in 2011. See the idl file linked above for up-to-date information.
void addSelectionListener(in nsISelectionListener newListener); |
void endBatchChanges(); |
void getCachedFrameOffset(in nsIFrame aFrame, in PRInt32 inOffset, in nsPointRef aPoint); Native code only! |
nsIEnumerator getEnumerator(); |
nsFrameSelection getFrameSelection(); Native code only! |
void GetRangesForInterval(in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, out PRUint32 resultCount, [retval, array, size_is(resultCount)] out nsIDOMRange results); |
void GetRangesForIntervalArray(in nsINode beginNode, in PRInt32 beginoffset, in nsINode endNode, in PRInt32 endOffset, in boolean allowAdjacent, in RangeArray results); Native code only! |
void GetRangesForIntervalCOMArray(in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, in RangeArray results); Native code only! Obsolete since Gecko 12.0 |
long getTableSelectionType(in nsIDOMRange range); |
void removeSelectionListener(in nsISelectionListener listenerToRemove); |
void scrollIntoView(in short aRegion, in boolean aIsSynchronous, in short aVPercent, in short aHPercent); |
void setAncestorLimiter(in nsIContent aContent); Native code only! |
void setPresShell(in nsIPresShell aPresShell); Native code only! |
void setTextRangeStyle(in nsIDOMRange range, in constTextRangeStyleRef textRangeStyle); Native code only! |
void startBatchChanges(); |
wstring toStringWithFormat(in string formatType, in unsigned long flags, in PRInt32 wrapColumn); |
Attribute | Type | Description |
canCacheFrameOffset |
boolean |
Frame Offset cache can be used just during calling nsEditor::EndPlaceHolderTransaction. EndPlaceHolderTransaction will give rise to reflow/refreshing view/scroll, and call times of nsTextFrame::GetPointFromOffset whose return value is to be cached. See bug 35296 and bug 199412 Native code only! |
interlinePosition |
boolean | |
type |
short |
Returns the type of the selection (see nsISelectionController for available constants). Read only. |
Constant | Value | Description |
ENDOFPRECEDINGLINE |
0 |
|
STARTOFNEXTLINE |
1 |
|
TABLESELECTION_NONE |
0 |
|
TABLESELECTION_CELL |
1 |
|
TABLESELECTION_ROW |
2 |
|
TABLESELECTION_COLUMN |
3 |
|
TABLESELECTION_TABLE |
4 |
|
TABLESELECTION_ALLCELLS |
5 |
void addSelectionListener( in nsISelectionListener newListener );
newListener
Will resume User Interface updates after a previous call to startBatchChanges()
.
void endBatchChanges();
None.
Returns cached value for nsTextFrame::GetPointFromOffset.
void getCachedFrameOffset( in nsIFrame aFrame, in PRInt32 inOffset, in nsPointRef aPoint );
aFrame
inOffset
aPoint
nsIEnumerator getEnumerator();
None.
nsFrameSelection getFrameSelection();
None.
A reference to the frame selection associated with this selection.
Return array of ranges intersecting with the given DOM interval.
void GetRangesForInterval( in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, out PRUint32 resultCount, [retval, array, size_is(resultCount)] out nsIDOMRange results );
beginNode
beginOffset
endNode
endOffset
allowAdjacent
resultCount
results
Obsolete since Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0 / SeaMonkey 2.9)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
This method became obsolete in Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0 / SeaMonkey 2.9). Use GetRangesForIntervalArray()
instead.
void GetRangesForIntervalCOMArray( in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, in RangeArray results );
beginNode
beginOffset
endNode
endOffset
allowAdjacent
results
void GetRangesForIntervalArray( in nsINode beginNode, in PRInt32 beginoffset, in nsINode endNode, in PRInt32 endOffset, in boolean allowAdjacent, in RangeArray results );
beginNode
beginOffset
endNode
endOffset
allowAdjacent
results
Test if supplied range points to a single table element.
long getTableSelectionType( in nsIDOMRange range );
range
One of TABLESELECTION_*
constants. "None" means a table element is not selected.
void removeSelectionListener( in nsISelectionListener listenerToRemove );
listenerToRemove
Scrolls a region of the selection, so that it is visible in the scrolled view.
void scrollIntoView( in short aRegion, in boolean aIsSynchronous, in short aVPercent, in short aHPercent );
aRegion
nsISelectionController
).aIsSynchronous
true
, scrolls the selection into view before returning. If false
, posts a request which is processed at some point after the method returns.aVPercent
aHPercent
void setAncestorLimiter( in nsIContent aContent );
aContent
Internal utility method to set the pres shell on a newly created selection.
void setPresShell( in nsIPresShell aPresShell );
aPresShell
Set the painting style for the range. The range must be a range in the selection. The textRangeStyle will be used by text frame when it is painting the selection.
void setTextRangeStyle( in nsIDOMRange range, in constTextRangeStyleRef textRangeStyle );
range
textRangeStyle
Will stop User Interface updates while multiple selection methods are called. Call endBatchChanges()
to resume User Interface updates.
void startBatchChanges();
None.
wstring toStringWithFormat( in string formatType, in unsigned long flags, in PRInt32 wrapColumn );
formatType
flags
wrapColumn