1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include
"nsISupports.idl"
12 [scriptable
, builtinclass
, uuid(fdf23301
-4a94
-11d3
-9ce4
-9960496c41bc
)]
14 interface nsIEditorMailSupport
: nsISupports
16 /** Insert a string as quoted text
17 * (whose representation is dependant on the editor type),
18 * replacing the selected text (if any),
19 * including, if possible, a "cite" attribute.
20 * @param aQuotedText The actual text to be quoted
21 * @param aCitation The "mid" URL of the source message
22 * @param aInsertHTML Insert as html? (vs plaintext)
23 * @return The node which was inserted
25 Node insertAsCitedQuotation
(in AString aQuotedText
,
27 in boolean aInsertHTML
);
30 * Rewrap the selected part of the document, re-quoting if necessary.
31 * @param aRespectNewlines Try to maintain newlines in the original?
33 void rewrap
(in boolean aRespectNewlines
);