#include "nsISupports.idl"

interface nsIDOMNode;
interface nsIDOMElement;
interface nsIDOMDocument;
interface nsIDocShell;

[scriptable, uuid(5bb52751-34c3-4fbd-8262-15e32ee377c5)]
interface nsIScriptEditor : nsISupports
{
  readonly attribute nsIDOMDocument contentDocument;
  readonly attribute nsIDocShell docShell;
  readonly attribute long modificationCount;
  readonly attribute boolean isLocked;
  readonly attribute boolean scenesLocked;
  readonly attribute long revisionNumber;

  void beginTransaction ();
  void endTransaction ();

  void lockScript ();
  void unlockScript ();

  void incrementRevisionNumber ();

  nsIDOMElement sceneContaining (in nsIDOMNode aNode);
};
