Struct xpcom::interfaces::nsIEditorMailSupport [] [src]

#[repr(C)]
pub struct nsIEditorMailSupport { /* fields omitted */ }

interface nsIEditorMailSupport : nsISupports

Methods

impl nsIEditorMailSupport
[src]

[src]

Cast this nsIEditorMailSupport to one of its base interfaces.

impl nsIEditorMailSupport
[src]

[src]

/** 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).
    * @param aSelectionType Text or html?
    */

void pasteAsQuotation (in long aSelectionType);

[src]

/** Insert a string as quoted text
    * (whose representation is dependant on the editor type),
    * replacing the selected text (if any).
    * @param aQuotedText  The actual text to be quoted
    * @return             The node which was inserted
    */

nsIDOMNode insertAsQuotation (in AString aQuotedText);

[src]

/**
   * 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.
   *
   * @param aString   the string to be inserted
   */

void insertTextWithQuotations (in DOMString aStringToInsert);

[src]

/** Paste a string as quoted text,
    * whose representation is dependant on the editor type,
    * replacing the selected text (if any)
    * @param aCitation    The "mid" URL of the source message
    * @param aSelectionType Text or html?
    */

void pasteAsCitedQuotation (in AString aCitation, in long aSelectionType);

[src]

/** 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.
    * @param aQuotedText  The actual text to be quoted
    * @param aCitation    The "mid" URL of the source message
    * @param aInsertHTML  Insert as html?  (vs plaintext)
    * @return             The node which was inserted
    */

nsIDOMNode insertAsCitedQuotation (in AString aQuotedText, in AString aCitation, in boolean aInsertHTML);

[src]

/**
   * Rewrap the selected part of the document, re-quoting if necessary.
   * @param aRespectNewlines  Try to maintain newlines in the original?
   */

void rewrap (in boolean aRespectNewlines);

[src]

/**
   * Strip any citations in the selected part of the document.
   */

void stripCites ();

[src]

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

nsIArray getEmbeddedObjects ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIEditorMailSupport
[src]

IID: nsIID = nsID(4260508417, 19092, 4563, [156, 228, 153, 96, 73, 108, 65, 188])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIEditorMailSupport
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIEditorMailSupport
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.