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

#ifndef __gen_nsITreeBoxObject_h__
#define __gen_nsITreeBoxObject_h__


#ifndef __gen_nsIBoxObject_h__
#include "nsIBoxObject.h"
#endif

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


/* starting interface:    nsITreeBoxObject */
#define NS_ITREEBOXOBJECT_IID_STR "d0ca1546-44c8-4a15-81cb-a4b5e560be24"

#define NS_ITREEBOXOBJECT_IID \
  {0xd0ca1546, 0x44c8, 0x4a15, \
    { 0x81, 0xcb, 0xa4, 0xb5, 0xe5, 0x60, 0xbe, 0x24 }}

class NS_NO_VTABLE nsITreeBoxObject : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITREEBOXOBJECT_IID)

  /* void ensureIndexIsVisible (in long rowIndex); */
  NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex) = 0;

  /* void scrollToIndex (in long rowIndex); */
  NS_IMETHOD ScrollToIndex(PRInt32 rowIndex) = 0;

  /* nsIDOMElement getNextItem (in nsIDOMElement startItem, in long delta); */
  NS_IMETHOD GetNextItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval) = 0;

  /* nsIDOMElement getPreviousItem (in nsIDOMElement startItem, in long delta); */
  NS_IMETHOD GetPreviousItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval) = 0;

  /* nsIDOMElement getItemAtIndex (in long index); */
  NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) = 0;

  /* long getIndexOfItem (in nsIDOMElement item); */
  NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) = 0;

  /* long getNumberOfVisibleRows (); */
  NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval) = 0;

  /* long getIndexOfFirstVisibleRow (); */
  NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval) = 0;

  /* long getRowCount (); */
  NS_IMETHOD GetRowCount(PRInt32 *_retval) = 0;

  /* void beginBatch (); */
  NS_IMETHOD BeginBatch(void) = 0;

  /* void endBatch (); */
  NS_IMETHOD EndBatch(void) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITREEBOXOBJECT \
  NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex); \
  NS_IMETHOD ScrollToIndex(PRInt32 rowIndex); \
  NS_IMETHOD GetNextItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval); \
  NS_IMETHOD GetPreviousItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval); \
  NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval); \
  NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval); \
  NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval); \
  NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval); \
  NS_IMETHOD GetRowCount(PRInt32 *_retval); \
  NS_IMETHOD BeginBatch(void); \
  NS_IMETHOD EndBatch(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITREEBOXOBJECT(_to) \
  NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex) { return _to ## EnsureIndexIsVisible(rowIndex); } \
  NS_IMETHOD ScrollToIndex(PRInt32 rowIndex) { return _to ## ScrollToIndex(rowIndex); } \
  NS_IMETHOD GetNextItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval) { return _to ## GetNextItem(startItem, delta, _retval); } \
  NS_IMETHOD GetPreviousItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval) { return _to ## GetPreviousItem(startItem, delta, _retval); } \
  NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) { return _to ## GetItemAtIndex(index, _retval); } \
  NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) { return _to ## GetIndexOfItem(item, _retval); } \
  NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval) { return _to ## GetNumberOfVisibleRows(_retval); } \
  NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval) { return _to ## GetIndexOfFirstVisibleRow(_retval); } \
  NS_IMETHOD GetRowCount(PRInt32 *_retval) { return _to ## GetRowCount(_retval); } \
  NS_IMETHOD BeginBatch(void) { return _to ## BeginBatch(); } \
  NS_IMETHOD EndBatch(void) { return _to ## EndBatch(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITREEBOXOBJECT(_to) \
  NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> EnsureIndexIsVisible(rowIndex); } \
  NS_IMETHOD ScrollToIndex(PRInt32 rowIndex) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ScrollToIndex(rowIndex); } \
  NS_IMETHOD GetNextItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetNextItem(startItem, delta, _retval); } \
  NS_IMETHOD GetPreviousItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetPreviousItem(startItem, delta, _retval); } \
  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); } \
  NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetNumberOfVisibleRows(_retval); } \
  NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetIndexOfFirstVisibleRow(_retval); } \
  NS_IMETHOD GetRowCount(PRInt32 *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetRowCount(_retval); } \
  NS_IMETHOD BeginBatch(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> BeginBatch(); } \
  NS_IMETHOD EndBatch(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> EndBatch(); } 

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

/* Header file */
class nsTreeBoxObject : public nsITreeBoxObject
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITREEBOXOBJECT

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsTreeBoxObject, nsITreeBoxObject)

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

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

/* void ensureIndexIsVisible (in long rowIndex); */
NS_IMETHODIMP nsTreeBoxObject::EnsureIndexIsVisible(PRInt32 rowIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void scrollToIndex (in long rowIndex); */
NS_IMETHODIMP nsTreeBoxObject::ScrollToIndex(PRInt32 rowIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMElement getNextItem (in nsIDOMElement startItem, in long delta); */
NS_IMETHODIMP nsTreeBoxObject::GetNextItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMElement getPreviousItem (in nsIDOMElement startItem, in long delta); */
NS_IMETHODIMP nsTreeBoxObject::GetPreviousItem(nsIDOMElement *startItem, PRInt32 delta, nsIDOMElement **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

/* long getNumberOfVisibleRows (); */
NS_IMETHODIMP nsTreeBoxObject::GetNumberOfVisibleRows(PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long getIndexOfFirstVisibleRow (); */
NS_IMETHODIMP nsTreeBoxObject::GetIndexOfFirstVisibleRow(PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long getRowCount (); */
NS_IMETHODIMP nsTreeBoxObject::GetRowCount(PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void beginBatch (); */
NS_IMETHODIMP nsTreeBoxObject::BeginBatch()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void endBatch (); */
NS_IMETHODIMP nsTreeBoxObject::EndBatch()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

nsresult
NS_NewTreeBoxObject(nsIBoxObject** aResult);

#endif /* __gen_nsITreeBoxObject_h__ */
