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

#ifndef __gen_nsIOutlinerContentView_h__
#define __gen_nsIOutlinerContentView_h__


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

#ifndef __gen_nsIDOMElement_h__
#include "nsIDOMElement.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIOutlinerContentView */
#define NS_IOUTLINERCONTENTVIEW_IID_STR "f066f69a-6ffe-4117-a85c-abe9d15c6bbc"

#define NS_IOUTLINERCONTENTVIEW_IID \
  {0xf066f69a, 0x6ffe, 0x4117, \
    { 0xa8, 0x5c, 0xab, 0xe9, 0xd1, 0x5c, 0x6b, 0xbc }}

class NS_NO_VTABLE nsIOutlinerContentView : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IOUTLINERCONTENTVIEW_IID)

  /**
   * The element in the DOM which this view uses as root content.
   */
  /* attribute nsIDOMElement root; */
  NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) = 0;
  NS_IMETHOD SetRoot(nsIDOMElement * aRoot) = 0;

  /**
   * Retrieve the content item associated with the specified index.
   */
  /* nsIDOMElement getItemAtIndex (in long index); */
  NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) = 0;

  /**
   * Retrieve the index associated with the specified content item.
   */
  /* long getIndexOfItem (in nsIDOMElement item); */
  NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIOUTLINERCONTENTVIEW \
  NS_IMETHOD GetRoot(nsIDOMElement * *aRoot); \
  NS_IMETHOD SetRoot(nsIDOMElement * aRoot); \
  NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval); \
  NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIOUTLINERCONTENTVIEW(_to) \
  NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) { return _to GetRoot(aRoot); } \
  NS_IMETHOD SetRoot(nsIDOMElement * aRoot) { return _to SetRoot(aRoot); } \
  NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) { return _to GetItemAtIndex(index, _retval); } \
  NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) { return _to GetIndexOfItem(item, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIOUTLINERCONTENTVIEW(_to) \
  NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } \
  NS_IMETHOD SetRoot(nsIDOMElement * aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRoot(aRoot); } \
  NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemAtIndex(index, _retval); } \
  NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfItem(item, _retval); } 

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

/* Header file */
class nsOutlinerContentView : public nsIOutlinerContentView
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIOUTLINERCONTENTVIEW

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsOutlinerContentView, nsIOutlinerContentView)

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

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

/* attribute nsIDOMElement root; */
NS_IMETHODIMP nsOutlinerContentView::GetRoot(nsIDOMElement * *aRoot)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsOutlinerContentView::SetRoot(nsIDOMElement * aRoot)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMElement getItemAtIndex (in long index); */
NS_IMETHODIMP nsOutlinerContentView::GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long getIndexOfItem (in nsIDOMElement item); */
NS_IMETHODIMP nsOutlinerContentView::GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIOutlinerContentView_h__ */
