Added implementation for nsIHTMLContentSink::DoFragment()

This commit is contained in:
kostello%netscape.com 1999-03-15 05:11:43 +00:00
Родитель 915733c74d
Коммит 31b572ebdc
4 изменённых файлов: 38 добавлений и 4 удалений

Просмотреть файл

@ -181,6 +181,7 @@ public:
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
NS_IMETHOD DoFragment(PRBool aFlag);
nsIDocument* mDocument;
nsIHTMLDocument* mHTMLDocument;
@ -3092,3 +3093,11 @@ HTMLContentSink::NotifyError(const nsParserError* aError)
PR_ASSERT(0);
return NS_OK;
}
NS_IMETHODIMP
HTMLContentSink::DoFragment(PRBool aFlag)
{
return NS_OK;
}

Просмотреть файл

@ -60,6 +60,7 @@
#include "nsIParser.h"
#include "nsParserCIID.h"
#include "nsHTMLContentSinkStream.h"
#include "nsHTMLToTXTSinkStream.h"
#include "nsXIFDTD.h"
#include "nsIFrameSelection.h"
@ -1503,7 +1504,12 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
nsIHTMLContentSink* sink = nsnull;
rv = NS_New_HTML_ContentSinkStream(&sink,PR_FALSE,PR_FALSE);
// rv = NS_New_HTML_ContentSinkStream(&sink,PR_FALSE,PR_FALSE);
// Changed to do plain text only for Dogfood -- gpk 3/14/99
rv = NS_New_HTMLToTXT_SinkStream(&sink);
ostream* copyStream;
rv = aSelectionMgr->GetCopyOStream(&copyStream);
@ -1513,7 +1519,9 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
return rv;
}
((nsHTMLContentSinkStream*)sink)->SetOutputStream(*copyStream);
// Changed to do plain text only for Dogfood -- gpk 3/14/99
// ((nsHTMLContentSinkStream*)sink)->SetOutputStream(*copyStream);
((nsHTMLToTXTSinkStream*)sink)->SetOutputStream(*copyStream);
if (NS_OK == rv) {
parser->SetContentSink(sink);

Просмотреть файл

@ -60,6 +60,7 @@
#include "nsIParser.h"
#include "nsParserCIID.h"
#include "nsHTMLContentSinkStream.h"
#include "nsHTMLToTXTSinkStream.h"
#include "nsXIFDTD.h"
#include "nsIFrameSelection.h"
@ -1503,7 +1504,12 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
nsIHTMLContentSink* sink = nsnull;
rv = NS_New_HTML_ContentSinkStream(&sink,PR_FALSE,PR_FALSE);
// rv = NS_New_HTML_ContentSinkStream(&sink,PR_FALSE,PR_FALSE);
// Changed to do plain text only for Dogfood -- gpk 3/14/99
rv = NS_New_HTMLToTXT_SinkStream(&sink);
ostream* copyStream;
rv = aSelectionMgr->GetCopyOStream(&copyStream);
@ -1513,7 +1519,9 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
return rv;
}
((nsHTMLContentSinkStream*)sink)->SetOutputStream(*copyStream);
// Changed to do plain text only for Dogfood -- gpk 3/14/99
// ((nsHTMLContentSinkStream*)sink)->SetOutputStream(*copyStream);
((nsHTMLToTXTSinkStream*)sink)->SetOutputStream(*copyStream);
if (NS_OK == rv) {
parser->SetContentSink(sink);

Просмотреть файл

@ -181,6 +181,7 @@ public:
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
NS_IMETHOD DoFragment(PRBool aFlag);
nsIDocument* mDocument;
nsIHTMLDocument* mHTMLDocument;
@ -3092,3 +3093,11 @@ HTMLContentSink::NotifyError(const nsParserError* aError)
PR_ASSERT(0);
return NS_OK;
}
NS_IMETHODIMP
HTMLContentSink::DoFragment(PRBool aFlag)
{
return NS_OK;
}