else if (!nsCRT::strcmp(aCommandName, sBeginLineString)) rv = aSelectionController->IntraLineMove(PR_FALSE, PR_FALSE); else if (!nsCRT::strcmp(aCommandName, sEndLineString)) rv = aSelectionController->IntraLineMove(PR_TRUE, PR_FALSE);
nsSelectMoveScrollCommand::DoCommandBrowseWithCaretOn(const char *aCommandName,                  nsISelectionController *aSelectionController, nsIEventStateManager* aESM){  nsresult rv = NS_ERROR_NOT_IMPLEMENTED;  if (!nsCRT::strcmp(aCommandName, sScrollTopString))    rv = aSelectionController->CompleteMove(PR_FALSE, PR_FALSE);  else if (!nsCRT::strcmp(aCommandName,sScrollBottomString))    rv = aSelectionController->CompleteMove(PR_TRUE, PR_FALSE);  // cmd_MovePageUp/Down are used on Window/Unix. They move the caret  // in caret browsing mode.  else if (!nsCRT::strcmp(aCommandName, sMovePageUpString))    rv = aSelectionController->PageMove(PR_FALSE, PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sMovePageDownString))    rv = aSelectionController->PageMove(PR_TRUE, PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sScrollLineUpString))    rv = aSelectionController->LineMove(PR_FALSE, PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sScrollLineDownString))    rv = aSelectionController->LineMove(PR_TRUE, PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sScrollLeftString))    rv = aSelectionController->CharacterMove(PR_FALSE, PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sScrollRightString))    rv = aSelectionController->CharacterMove(PR_TRUE, PR_FALSE);  if (NS_SUCCEEDED(rv) && aESM)  {    PRBool dummy;    aESM->MoveFocusToCaret(PR_TRUE, &dummy);  }  return rv;}