/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIEditingSession.idl
 */

#ifndef __gen_nsIEditingSession_h__
#define __gen_nsIEditingSession_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIEditor; /* forward declaration */

class nsIEditingShell; /* forward declaration */


/* starting interface:    nsIEditingSession */
#define NS_IEDITINGSESSION_IID_STR "d3b0aa04-f221-11d4-a73c-eaa4baa8b4fc"

#define NS_IEDITINGSESSION_IID \
  {0xd3b0aa04, 0xf221, 0x11d4, \
    { 0xa7, 0x3c, 0xea, 0xa4, 0xba, 0xa8, 0xb4, 0xfc }}

class NS_NO_VTABLE nsIEditingSession : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEDITINGSESSION_IID)

  /* void init (in nsIDOMWindow aWindow); */
  NS_IMETHOD Init(nsIDOMWindow *aWindow) = 0;

  /* void makeWindowEditable (in nsIDOMWindow aWindow, in string aEditorType, in boolean inDoAfterUriLoad); */
  NS_IMETHOD MakeWindowEditable(nsIDOMWindow *aWindow, const char *aEditorType, PRBool inDoAfterUriLoad) = 0;

  /* boolean windowIsEditable (in nsIDOMWindow aWindow); */
  NS_IMETHOD WindowIsEditable(nsIDOMWindow *aWindow, PRBool *_retval) = 0;

  /* nsIEditor getEditorForWindow (in nsIDOMWindow aWindow); */
  NS_IMETHOD GetEditorForWindow(nsIDOMWindow *aWindow, nsIEditor **_retval) = 0;

  /* void setupEditorOnWindow (in nsIDOMWindow aWindow); */
  NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *aWindow) = 0;

  /* void tearDownEditorOnWindow (in nsIDOMWindow aWindow); */
  NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *aWindow) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEDITINGSESSION \
  NS_IMETHOD Init(nsIDOMWindow *aWindow); \
  NS_IMETHOD MakeWindowEditable(nsIDOMWindow *aWindow, const char *aEditorType, PRBool inDoAfterUriLoad); \
  NS_IMETHOD WindowIsEditable(nsIDOMWindow *aWindow, PRBool *_retval); \
  NS_IMETHOD GetEditorForWindow(nsIDOMWindow *aWindow, nsIEditor **_retval); \
  NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *aWindow); \
  NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *aWindow); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEDITINGSESSION(_to) \
  NS_IMETHOD Init(nsIDOMWindow *aWindow) { return _to Init(aWindow); } \
  NS_IMETHOD MakeWindowEditable(nsIDOMWindow *aWindow, const char *aEditorType, PRBool inDoAfterUriLoad) { return _to MakeWindowEditable(aWindow, aEditorType, inDoAfterUriLoad); } \
  NS_IMETHOD WindowIsEditable(nsIDOMWindow *aWindow, PRBool *_retval) { return _to WindowIsEditable(aWindow, _retval); } \
  NS_IMETHOD GetEditorForWindow(nsIDOMWindow *aWindow, nsIEditor **_retval) { return _to GetEditorForWindow(aWindow, _retval); } \
  NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *aWindow) { return _to SetupEditorOnWindow(aWindow); } \
  NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *aWindow) { return _to TearDownEditorOnWindow(aWindow); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEDITINGSESSION(_to) \
  NS_IMETHOD Init(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aWindow); } \
  NS_IMETHOD MakeWindowEditable(nsIDOMWindow *aWindow, const char *aEditorType, PRBool inDoAfterUriLoad) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeWindowEditable(aWindow, aEditorType, inDoAfterUriLoad); } \
  NS_IMETHOD WindowIsEditable(nsIDOMWindow *aWindow, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->WindowIsEditable(aWindow, _retval); } \
  NS_IMETHOD GetEditorForWindow(nsIDOMWindow *aWindow, nsIEditor **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditorForWindow(aWindow, _retval); } \
  NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupEditorOnWindow(aWindow); } \
  NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->TearDownEditorOnWindow(aWindow); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsEditingSession : public nsIEditingSession
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIEDITINGSESSION

  nsEditingSession();
  virtual ~nsEditingSession();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsEditingSession, nsIEditingSession)

nsEditingSession::nsEditingSession()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsEditingSession::~nsEditingSession()
{
  /* destructor code */
}

/* void init (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsEditingSession::Init(nsIDOMWindow *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void makeWindowEditable (in nsIDOMWindow aWindow, in string aEditorType, in boolean inDoAfterUriLoad); */
NS_IMETHODIMP nsEditingSession::MakeWindowEditable(nsIDOMWindow *aWindow, const char *aEditorType, PRBool inDoAfterUriLoad)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean windowIsEditable (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsEditingSession::WindowIsEditable(nsIDOMWindow *aWindow, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIEditor getEditorForWindow (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsEditingSession::GetEditorForWindow(nsIDOMWindow *aWindow, nsIEditor **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setupEditorOnWindow (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsEditingSession::SetupEditorOnWindow(nsIDOMWindow *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void tearDownEditorOnWindow (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsEditingSession::TearDownEditorOnWindow(nsIDOMWindow *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIEditingSession_h__ */
