Logo Search packages:      
Sourcecode: firefox-3.5 version File versions  Download package

NS_IMETHODIMP nsEditor::SelectEntireDocument ( nsISelection aSelection  )  [protected]

make the given selection span the entire document

Reimplemented in nsHTMLEditor, and nsPlaintextEditor.

Definition at line 2713 of file nsEditor.cpp.

Referenced by nsHTMLEditor::SelectEntireDocument(), and nsPlaintextEditor::SelectEntireDocument().

  if (!aSelection) { return NS_ERROR_NULL_POINTER; }

  nsIDOMElement *rootElement = GetRoot();
  if (!rootElement) { return NS_ERROR_NOT_INITIALIZED; }

  return aSelection->SelectAllChildren(rootElement);

Generated by  Doxygen 1.6.0   Back to index