Struct xpcom::interfaces::nsIEditorStyleSheets [] [src]

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

interface nsIEditorStyleSheets : nsISupports

Methods

impl nsIEditorStyleSheets
[src]

[src]

Cast this nsIEditorStyleSheets to one of its base interfaces.

impl nsIEditorStyleSheets
[src]

[src]

/** Load and apply the style sheet, specified by aURL, to the
    * editor's document, replacing the last style sheet added (if any).
    * This is always asynchronous, and may cause network I/O.
    *
    * @param aURL The style sheet to be loaded and applied.
    */

void replaceStyleSheet (in AString aURL);

[src]

/** Add the given style sheet to the editor's document,
    * on top of any that are already there.
    * This is always asynchronous, and may cause network I/O.
    *
    * @param aURL The style sheet to be loaded and applied.
    */

void addStyleSheet (in AString aURL);

[src]

/** Load and apply the override style sheet, specified by aURL, to the
    * editor's document, replacing the last override style sheet added (if any).
    * This is always synchronous, so aURL should be a local file with only
    * local @imports. This action is not undoable. It is not intended for
    * "user" style sheets, only for editor developers to add sheets to change
    * display behavior for editing (like showing special cursors) that will
    * not be affected by loading "document" style sheets with addStyleSheet or
    * especially replaceStyleSheet.
    *
    * @param aURL The style sheet to be loaded and applied.
    */

void replaceOverrideStyleSheet (in AString aURL);

[src]

/** Load and apply an override style sheet, specified by aURL, to
    * the editor's document, on top of any that are already there.
    * This is always synchronous, so the same caveats about local files and no
    * non-local @import as replaceOverrideStyleSheet apply here, too.
    *
    * @param aURL The style sheet to be loaded and applied.
    */

void addOverrideStyleSheet (in AString aURL);

[src]

/** Remove the given style sheet from the editor's document
    * This is always synchronous
    *
    * @param aURL The style sheet to be removed
    */

void removeStyleSheet (in AString aURL);

[src]

/** Remove the given override style sheet from the editor's document
    * This is always synchronous
    *
    * @param aURL The style sheet to be removed.
    */

void removeOverrideStyleSheet (in AString aURL);

[src]

/** Enable or disable the given style sheet from the editor's document
    * This is always synchronous
    *
    * @param aURL  The style sheet to be enabled or disabled
    * @param aEnable true to enable, or false to disable the style sheet
    */

void enableStyleSheet (in AString aURL, in boolean aEnable);

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

IID: nsIID = nsID(1208346242, 18873, 4563, [156, 228, 237, 96, 189, 108, 181, 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 nsIEditorStyleSheets
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIEditorStyleSheets
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.