From b005e67b4f1d800cb6d04ca8cd181b267e13e332 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Tue, 8 Oct 2002 21:22:27 +0000 Subject: [PATCH] 161143: Add new method InsertTextWithQuotes, and call it from Rewrap. r=brade,jfrancis sr=sspitzer git-svn-id: svn://10.0.0.236/trunk@131463 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/html/nsHTMLEditorLog.cpp | 5 ++++- mozilla/editor/libeditor/html/nsHTMLEditorLog.h | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/libeditor/html/nsHTMLEditorLog.cpp b/mozilla/editor/libeditor/html/nsHTMLEditorLog.cpp index a4413961765..ff09ab44300 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditorLog.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditorLog.cpp @@ -421,6 +421,7 @@ nsHTMLEditorLog::InsertAsQuotation(const nsAString& aQuotedText, NS_IMETHODIMP nsHTMLEditorLog::InsertAsPlaintextQuotation(const nsAString& aQuotedText, + PRBool aAddCites, nsIDOMNode **aNodeInserted) { nsAutoHTMLEditorLogLock logLock(this); @@ -434,7 +435,9 @@ nsHTMLEditorLog::InsertAsPlaintextQuotation(const nsAString& aQuotedText, Flush(); } - return nsHTMLEditor::InsertAsPlaintextQuotation(aQuotedText, aNodeInserted); + return nsHTMLEditor::InsertAsPlaintextQuotation(aQuotedText, + aAddCites, + aNodeInserted); } NS_IMETHODIMP diff --git a/mozilla/editor/libeditor/html/nsHTMLEditorLog.h b/mozilla/editor/libeditor/html/nsHTMLEditorLog.h index 5ed9e4891f9..a54cf73969c 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditorLog.h +++ b/mozilla/editor/libeditor/html/nsHTMLEditorLog.h @@ -93,7 +93,9 @@ public: NS_IMETHOD PasteAsCitedQuotation(const nsAString& aCitation, PRInt32 aSelectionType); NS_IMETHOD InsertAsQuotation(const nsAString& aQuotedText, nsIDOMNode** aNodeInserted); - NS_IMETHOD InsertAsPlaintextQuotation(const nsAString& aQuotedText, nsIDOMNode** aNodeInserted); + NS_IMETHOD InsertAsPlaintextQuotation(const nsAString& aQuotedText, + PRBool aAddCites, + nsIDOMNode** aNodeInserted); NS_IMETHOD InsertAsCitedQuotation(const nsAString& aQuotedText, const nsAString& aCitation, PRBool aInsertHTML, const nsAString& aCharset, nsIDOMNode** aNodeInserted);