зеркало из https://github.com/mozilla/pjs.git
Added implementation for nsIHTMLContentSink::DoFragment()
This commit is contained in:
Родитель
915733c74d
Коммит
31b572ebdc
|
@ -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(©Stream);
|
||||
|
@ -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(©Stream);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче