changing nsXifconverter to nsIXifConverter

git-svn-id: svn://10.0.0.236/trunk@69548 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2000-05-13 08:11:29 +00:00
parent 2974c17256
commit dd4523397c
6 changed files with 50 additions and 44 deletions

View File

@@ -100,6 +100,9 @@
#include "nsIPref.h"
#include "nsLayoutUtils.h"
#include "nsIDocumentEncoder.h" //for outputting selection
#define DETECTOR_PROGID_MAX 127
static char g_detector_progid[DETECTOR_PROGID_MAX + 1];
static PRBool gInitDetector = PR_FALSE;
@@ -2490,7 +2493,7 @@ nsHTMLDocument::GetSelection(nsString& aReturn)
consoleService->LogStringMessage(NS_ConvertASCIItoUCS2("Depricated method document.getSelection() called, use window.getSelection() in stead!").GetUnicode());
}
return domSelection->ToString(aReturn);
return domSelection->ToString(NS_ConvertASCIItoUCS2("text/plain"), nsIDocumentEncoder::OutputFormatted |nsIDocumentEncoder::OutputSelectionOnly, 0, aReturn);
}
NS_IMETHODIMP