/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/tinderbox/XR-Trunk/WINNT_5.2_Depend/mozilla/layout/xul/base/public/nsIListBoxObject.idl
 */

#ifndef __gen_nsIListBoxObject_h__
#define __gen_nsIListBoxObject_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:    nsIListBoxObject */
#define NS_ILISTBOXOBJECT_IID_STR "fde7c970-0b4e-49f4-b1eb-974ae6c96336"

#define NS_ILISTBOXOBJECT_IID \
  {0xfde7c970, 0x0b4e, 0x49f4, \
    { 0xb1, 0xeb, 0x97, 0x4a, 0xe6, 0xc9, 0x63, 0x36 }}

class NS_NO_VTABLE nsIListBoxObject : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILISTBOXOBJECT_IID)

  /* readonly attribute nsIListBoxObject listboxBody; */
  NS_IMETHOD GetListboxBody(nsIListBoxObject * *aListboxBody) = 0;

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

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

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

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

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

  /* void scrollByLines (in long numLines); */
  NS_IMETHOD ScrollByLines(PRInt32 numLines) = 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;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIListBoxObject, NS_ILISTBOXOBJECT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILISTBOXOBJECT \
  NS_IMETHOD GetListboxBody(nsIListBoxObject * *aListboxBody); \
  NS_IMETHOD GetRowCount(PRInt32 *_retval); \
  NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval); \
  NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval); \
  NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex); \
  NS_IMETHOD ScrollToIndex(PRInt32 rowIndex); \
  NS_IMETHOD ScrollByLines(PRInt32 numLines); \
  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_NSILISTBOXOBJECT(_to) \
  NS_IMETHOD GetListboxBody(nsIListBoxObject * *aListboxBody) { return _to GetListboxBody(aListboxBody); } \
  NS_IMETHOD GetRowCount(PRInt32 *_retval) { return _to GetRowCount(_retval); } \
  NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval) { return _to GetNumberOfVisibleRows(_retval); } \
  NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval) { return _to GetIndexOfFirstVisibleRow(_retval); } \
  NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex) { return _to EnsureIndexIsVisible(rowIndex); } \
  NS_IMETHOD ScrollToIndex(PRInt32 rowIndex) { return _to ScrollToIndex(rowIndex); } \
  NS_IMETHOD ScrollByLines(PRInt32 numLines) { return _to ScrollByLines(numLines); } \
  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_NSILISTBOXOBJECT(_to) \
  NS_IMETHOD GetListboxBody(nsIListBoxObject * *aListboxBody) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListboxBody(aListboxBody); } \
  NS_IMETHOD GetRowCount(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowCount(_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 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 ScrollByLines(PRInt32 numLines) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByLines(numLines); } \
  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 nsListBoxObject : public nsIListBoxObject
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSILISTBOXOBJECT

  nsListBoxObject();

private:
  ~nsListBoxObject();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsListBoxObject, nsIListBoxObject)

nsListBoxObject::nsListBoxObject()
{
  /* member initializers and constructor code */
}

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

/* readonly attribute nsIListBoxObject listboxBody; */
NS_IMETHODIMP nsListBoxObject::GetListboxBody(nsIListBoxObject * *aListboxBody)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

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

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

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

/* void scrollByLines (in long numLines); */
NS_IMETHODIMP nsListBoxObject::ScrollByLines(PRInt32 numLines)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

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

nsresult
NS_NewListBoxObject(nsIBoxObject** aResult);

#endif /* __gen_nsIListBoxObject_h__ */
