flags = nsIEditor::EditorOutputFormatted;
flags = nsIDocumentEncoder::OutputFormatted;
static nsresult PrintEditorOutput(nsIEditor* editor, PRInt32 aCommandID){	nsString		outString;	char*			cString;	nsString		formatString;    PRUint32        flags;		switch (aCommandID)	{      case VIEWER_DISPLAYTEXT:        formatString = "text/plain";        flags = nsIEditor::EditorOutputFormatted;        editor->OutputToString(outString, formatString, flags);        break;              case VIEWER_DISPLAYHTML:        formatString = "text/html";        editor->OutputToString(outString, formatString, flags);        break;	}	cString = outString.ToNewCString();	printf(cString);	delete [] cString;		return NS_OK;}