else if (!nsCRT::strcmp(aCommandName, sBeginLineString)) rv = aSelectionController->CompleteScroll(PR_FALSE); else if (!nsCRT::strcmp(aCommandName, sEndLineString)) rv = aSelectionController->CompleteScroll(PR_TRUE);
nsSelectMoveScrollCommand::DoCommandBrowseWithCaretOff(const char *aCommandName, nsISelectionController *aSelectionController){  nsresult rv = NS_ERROR_NOT_IMPLEMENTED;  if (!nsCRT::strcmp(aCommandName, sScrollTopString))       rv = aSelectionController->CompleteScroll(PR_FALSE);  else if (!nsCRT::strcmp(aCommandName,sScrollBottomString))    rv = aSelectionController->CompleteScroll(PR_TRUE);  // cmd_MovePageUp/Down are used on Window/Unix. They move the caret  // in caret browsing mode.  else if (!nsCRT::strcmp(aCommandName, sMovePageUpString))    rv = aSelectionController->ScrollPage(PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sMovePageDownString))    rv = aSelectionController->ScrollPage(PR_TRUE);  // cmd_ScrollPageUp/Down are used on Mac. They do not move the  // caret in caret browsing mode.  else if (!nsCRT::strcmp(aCommandName, sScrollPageUpString))    rv = aSelectionController->ScrollPage(PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sScrollPageDownString))    rv = aSelectionController->ScrollPage(PR_TRUE);  else if (!nsCRT::strcmp(aCommandName, sScrollLineUpString))    rv = aSelectionController->ScrollLine(PR_FALSE);  else if (!nsCRT::strcmp(aCommandName, sScrollLineDownString))    rv = aSelectionController->ScrollLine(PR_TRUE);  else if (!nsCRT::strcmp(aCommandName, sScrollLeftString))    rv = aSelectionController->ScrollHorizontal(PR_TRUE);  else if (!nsCRT::strcmp(aCommandName, sScrollRightString))    rv = aSelectionController->ScrollHorizontal(PR_FALSE);  return rv;}