nsI*Editor::OutputText(nsString& aOutputString); nsI*Editor::OutputHTML(nsString& aOutputString); These methods always returns back a Unicode version of whatever is in the content model. It is the responsibility of the caller then to call whatever converter is required to convert to the appropriate charset. Added: nsI*Editor::OutputText(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull) nsI*Editor::OutputHTML(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull) These methods output the the current content model to aOutputStream. The document is encoded using the document defined charset or if the user passes in a non-null value for aCharsetOverride then this encoding overrides the encoding used by the document. git-svn-id: svn://10.0.0.236/trunk@29967 18797224-902f-48f8-a5cc-f745e15eee43
86 KiB
86 KiB