nsIEditorMailSupport

IID:fdf23301-4a94-11d3-9ce4-9960496c41bc
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

nsISupportsArray getEmbeddedObjects ( ) nsIDOMNode insertAsCitedQuotation ( AString quotedText , AString citation , PRBool insertHTML ) nsIDOMNode insertAsQuotation ( AString quotedText ) void insertTextWithQuotations ( DOMString stringToInsert ) void pasteAsCitedQuotation ( AString citation , PRInt32 selectionType ) void pasteAsQuotation ( PRInt32 selectionType ) void rewrap ( PRBool respectNewlines ) void stripCites ( )

nsISupportsArray getEmbeddedObjects ( )

Get a list of IMG and OBJECT tags in the current document.


nsIDOMNode insertAsCitedQuotation ( AString quotedText , AString citation , PRBool insertHTML )

Insert a string as quoted text (whose representation is dependant on the editor type), replacing the selected text (if any), including, if possible, a "cite" attribute.

Arguments:
quotedText: The actual text to be quoted
citation: The "mid" URL of the source message
insertHTML: Insert as html? (vs plaintext)
Returns:
The node which was inserted

nsIDOMNode insertAsQuotation ( AString quotedText )

Insert a string as quoted text (whose representation is dependant on the editor type), replacing the selected text (if any).

Arguments:
quotedText: The actual text to be quoted
Returns:
The node which was inserted

void insertTextWithQuotations ( DOMString stringToInsert )

Inserts a plaintext string at the current location, with special processing for lines beginning with ">", which will be treated as mail quotes and inserted as plaintext quoted blocks. If the selection is not collapsed, the selection is deleted and the insertion takes place at the resulting collapsed selection.

Arguments:
stringToInsert

void pasteAsCitedQuotation ( AString citation , PRInt32 selectionType )

Paste a string as quoted text, whose representation is dependant on the editor type, replacing the selected text (if any)

Arguments:
citation: The "mid" URL of the source message
selectionType: Text or html?

void pasteAsQuotation ( PRInt32 selectionType )

Paste the text in the OS clipboard at the cursor position, as a quotation (whose representation is dependant on the editor type), replacing the selected text (if any).

Arguments:
selectionType: Text or html?

void rewrap ( PRBool respectNewlines )

Rewrap the selected part of the document, re-quoting if necessary.

Arguments:
respectNewlines: Try to maintain newlines in the original?

void stripCites ( )

Strip any citations in the selected part of the document.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com