Struct xpcom::interfaces::nsIEditingSession [] [src]

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

interface nsIEditingSession : nsISupports

Methods

impl nsIEditingSession
[src]

[src]

Cast this nsIEditingSession to one of its base interfaces.

impl nsIEditingSession
[src]

eEditorOK: i64 = 0
/**
   *  Error codes when we fail to create an editor
   *  is placed in attribute editorStatus
   */

eEditorCreationInProgress: i64 = 1

eEditorErrorCantEditMimeType: i64 = 2

eEditorErrorFileNotFound: i64 = 3

eEditorErrorCantEditFramesets: i64 = 8

eEditorErrorUnknown: i64 = 9

[src]

/**
   *  Status after editor creation and document loading
   *  Value is one of the above error codes
   */

readonly attribute unsigned long editorStatus;

[src]

/**
   *  Make this window editable
   *  @param aWindow nsIDOMWindow, the window the embedder needs to make editable
   *  @param aEditorType string, "html" "htmlsimple" "text" "textsimple"
   *  @param aMakeWholeDocumentEditable if PR_TRUE make the whole document in
   *                                    aWindow editable, otherwise it's the
   *                                    embedder who should make the document
   *                                    (or part of it) editable.
   *  @param aInteractive if PR_FALSE turn off scripting and plugins
   */

void makeWindowEditable (in mozIDOMWindowProxy window, in string aEditorType, in boolean doAfterUriLoad, in boolean aMakeWholeDocumentEditable, in boolean aInteractive);

[src]

/**
   *  Test whether a specific window has had its editable flag set; it may have an editor
   *  now, or will get one after the uri load.
   *
   *  Use this, passing the content root window, to test if we've set up editing
   *  for this content.
   */

boolean windowIsEditable (in mozIDOMWindowProxy window);

[src]

/**
   *  Get the editor for this window. May return null
   */

nsIEditor getEditorForWindow (in mozIDOMWindowProxy window);

[src]

/**
   *  Setup editor and related support objects
   */

void setupEditorOnWindow (in mozIDOMWindowProxy window);

[src]

/**
   *   Destroy editor and related support objects
   */

void tearDownEditorOnWindow (in mozIDOMWindowProxy window);

[src]

void setEditorOnControllers (in mozIDOMWindowProxy aWindow, in nsIEditor aEditor);

[src]

/**
   * Disable scripts and plugins in aWindow.
   */

void disableJSAndPlugins (in mozIDOMWindowProxy aWindow);

[src]

/**
   * Restore JS and plugins (enable/disable them) according to the state they
   * were before the last call to disableJSAndPlugins.
   */

void restoreJSAndPlugins (in mozIDOMWindowProxy aWindow);

[src]

/**
   * Removes all the editor's controllers/listeners etc and makes the window
   * uneditable.
   */

void detachFromWindow (in mozIDOMWindowProxy aWindow);

[src]

/**
   * Undos detachFromWindow(), reattaches this editing session/editor
   * to the window.
   */

void reattachToWindow (in mozIDOMWindowProxy aWindow);

[src]

/**
   * Whether this session has disabled JS and plugins.
   */

readonly attribute boolean jsAndPluginsDisabled;

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

IID: nsIID = nsID(620323793, 59132, 17386, [162, 6, 153, 172, 95, 204, 82, 101])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIEditingSession
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.