Subclasses

Attributes

From nsIEditor


          
readonly attribute nsISelection selection

Returns

From nsIDOMWindow

 Method for accessing this window's selection object.
nsISelection getSelection()

From nsISelectionController

 GetSelection will return the selection that the presentation
  shell may implement.

 @param aType will hold the type of selection //SelectionType
 @param _return will hold the return value
nsISelection getSelection(in short type)

Parameters

From nsIDocumentEncoder

  If the selection is set to a non-null value, then the
  selection is used for encoding, otherwise the entire
  document is encoded.
 @param aSelection The selection to encode.
void setSelection(in nsISelection aSelection)

From nsIDragService

 Start a modal drag session using the selection as the drag image.
 The aDragEvent must be supplied as the current screen coordinates of the
 event are needed to calculate the image location.
void invokeDragSessionWithSelection(in nsISelection aSelection, in nsISupportsArray aTransferableArray, in unsigned long aActionType, in nsIDOMDragEvent aDragEvent, in nsIDOMDataTransfer aDataTransfer)

From nsIEditActionListener

 
 Called after the editor deletes the selection.
 @param aSelection   The selection, after deletion
void DidDeleteSelection(in nsISelection aSelection)
 
 Called before the editor deletes the selection.
 @param aSelection   The selection to be deleted
void WillDeleteSelection(in nsISelection aSelection)

From nsIHTMLEditor

 Checks if the anonymous nodes created by the HTML editor have to be
 refreshed or hidden depending on a possible new state of the selection
 @param aSelection [IN] a selection
void checkSelectionStateForAnonymousButtons(in nsISelection aSelection)

From nsIInlineSpellChecker


          
void spellCheckAfterEditorChange(in long aAction, in nsISelection aSelection, in nsIDOMNode aPreviousSelectedNode, in long aPreviousSelectedOffset, in nsIDOMNode aStartNode, in long aStartOffset, in nsIDOMNode aEndNode, in long aEndOffset)

From nsISelectionListener


          
void notifySelectionChanged(in nsIDOMDocument doc, in nsISelection sel, in short reason)