nsTextRulesInfo ruleInfo(nsHTMLEditRules::kAlign);
nsTextRulesInfo ruleInfo(nsTextEditRules::kAlign);
nsHTMLEditor::Align(const nsString& aAlignType){  nsAutoEditBatch beginBatching(this);  nsAutoRules beginRulesSniffing(this, kOpAlign, nsIEditor::eNext);  nsCOMPtr<nsIDOMNode> node;  PRBool cancel, handled;    // Find out if the selection is collapsed:  nsCOMPtr<nsIDOMSelection> selection;  nsresult res = GetSelection(getter_AddRefs(selection));  if (NS_FAILED(res)) return res;  if (!selection) return NS_ERROR_NULL_POINTER;  nsTextRulesInfo ruleInfo(nsHTMLEditRules::kAlign);  ruleInfo.alignType = &aAlignType;  res = mRules->WillDoAction(selection, &ruleInfo, &cancel, &handled);  if (cancel || NS_FAILED(res))    return res;    res = mRules->DidDoAction(selection, &ruleInfo, res);  return res;}