nsSaveCommand::IsCommandEnabled(const PRUnichar *aCommand, nsISupports * refCon, PRBool *outCmdEnabled)
nsBaseStateUpdatingCommand::IsCommandEnabled(const nsAReadableString & aCommandName, nsISupports *refCon, PRBool *outCmdEnabled)
nsSaveCommand::IsCommandEnabled(const PRUnichar *aCommand, nsISupports * refCon, PRBool *outCmdEnabled){  nsCOMPtr<nsIEditorShell> editorShell = do_QueryInterface(refCon);  *outCmdEnabled = PR_FALSE;  if (editorShell)  {    PRBool docModified;    if (NS_SUCCEEDED(editorShell->GetDocumentModified(&docModified)))      *outCmdEnabled = docModified;  }    return NS_OK;}