Struct xpcom::interfaces::nsIFeedTextConstruct [] [src]

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

interface nsIFeedTextConstruct : nsISupports

/**
 * nsIFeedTextConstructs represent feed text fields that can contain
 * one of text, HTML, or XHTML. Some extension elements also have "type"
 * parameters, and this interface could be used there as well.
 */

Methods

impl nsIFeedTextConstruct
[src]

[src]

Cast this nsIFeedTextConstruct to one of its base interfaces.

impl nsIFeedTextConstruct
[src]

[src]

/**
   * If the text construct contains (X)HTML, relative references in
   * the content should be resolved against this base URI.
   */

attribute nsIURI base;

[src]

/**
   * If the text construct contains (X)HTML, relative references in
   * the content should be resolved against this base URI.
   */

attribute nsIURI base;

[src]

/**
   * The language of the text. For example, "en-US" for US English.
   */

attribute AString lang;

[src]

/**
   * The language of the text. For example, "en-US" for US English.
   */

attribute AString lang;

[src]

/**
   * One of "text", "html", or "xhtml". If the type is (x)html, a '<'
   * character represents markup. To display that character, an escape
   * such as &lt; must be used. If the type is "text", the '<'
   * character represents the character itself, and such text should
   * not be embedded in markup without escaping it first.
   */

attribute AString type;

[src]

/**
   * One of "text", "html", or "xhtml". If the type is (x)html, a '<'
   * character represents markup. To display that character, an escape
   * such as &lt; must be used. If the type is "text", the '<'
   * character represents the character itself, and such text should
   * not be embedded in markup without escaping it first.
   */

attribute AString type;

[src]

/**
   * The content of the text construct.
   */

attribute AString text;

[src]

/**
   * The content of the text construct.
   */

attribute AString text;

[src]

/**
   * Returns the text of the text construct, with all markup stripped
   * and all entities decoded. If the type attribute's value is "text",
   * this function returns the value of the text attribute unchanged.
   */

AString plainText ();

[src]

/**
   * Return an nsIDocumentFragment containing the text and markup.
   */

nsIDOMDocumentFragment createDocumentFragment (in nsIDOMElement element);

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 nsIFeedTextConstruct
[src]

IID: nsIID = nsID(4237796009, 54857, 17556, [147, 30, 219, 129, 161, 86, 200, 115])

[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 nsIFeedTextConstruct
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIFeedTextConstruct
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.