nsCOMPtr<nsIDOMSelection> selection;
nsCOMPtr<nsISelection> selection;
NS_IMETHODIMP nsHTMLEditor::CanCopy(PRBool &aCanCopy){  aCanCopy = PR_FALSE;    nsCOMPtr<nsIDOMSelection> selection;  nsresult res = GetSelection(getter_AddRefs(selection));  if (NS_FAILED(res)) return res;      PRBool isCollapsed;  res = selection->GetIsCollapsed(&isCollapsed);  if (NS_FAILED(res)) return res;  aCanCopy = !isCollapsed;  return NS_OK;}