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

#ifndef __gen_nsIDOMXULElement_h__
#define __gen_nsIDOMXULElement_h__


#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
class nsIRDFCompositeDataSource; /* forward declaration */

class nsIXULTemplateBuilder; /* forward declaration */

class nsIRDFResource; /* forward declaration */

class nsIControllers; /* forward declaration */

class nsIBoxObject; /* forward declaration */


/* starting interface:    nsIDOMXULElement */
#define NS_IDOMXULELEMENT_IID_STR "0574ed81-c088-11d2-96ed-00104b7b7deb"

#define NS_IDOMXULELEMENT_IID \
  {0x0574ed81, 0xc088, 0x11d2, \
    { 0x96, 0xed, 0x00, 0x10, 0x4b, 0x7b, 0x7d, 0xeb }}

class NS_NO_VTABLE nsIDOMXULElement : public nsIDOMElement {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULELEMENT_IID)

  /* attribute DOMString id; */
  NS_IMETHOD GetId(nsAWritableString & aId) = 0;
  NS_IMETHOD SetId(const nsAReadableString & aId) = 0;

  /* attribute DOMString className; */
  NS_IMETHOD GetClassName(nsAWritableString & aClassName) = 0;
  NS_IMETHOD SetClassName(const nsAReadableString & aClassName) = 0;

  /* readonly attribute nsIDOMCSSStyleDeclaration style; */
  NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) = 0;

  /* readonly attribute nsIRDFCompositeDataSource database; */
  NS_IMETHOD GetDatabase(nsIRDFCompositeDataSource * *aDatabase) = 0;

  /* readonly attribute nsIXULTemplateBuilder builder; */
  NS_IMETHOD GetBuilder(nsIXULTemplateBuilder * *aBuilder) = 0;

  /* readonly attribute nsIRDFResource resource; */
  NS_IMETHOD GetResource(nsIRDFResource * *aResource) = 0;

  /* readonly attribute nsIControllers controllers; */
  NS_IMETHOD GetControllers(nsIControllers * *aControllers) = 0;

  /* readonly attribute nsIBoxObject boxObject; */
  NS_IMETHOD GetBoxObject(nsIBoxObject * *aBoxObject) = 0;

  /* void addBroadcastListener (in DOMString attr, in nsIDOMElement element); */
  NS_IMETHOD AddBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element) = 0;

  /* void removeBroadcastListener (in DOMString attr, in nsIDOMElement element); */
  NS_IMETHOD RemoveBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element) = 0;

  /* void doCommand (); */
  NS_IMETHOD DoCommand(void) = 0;

  /* void focus (); */
  NS_IMETHOD Focus(void) = 0;

  /* void blur (); */
  NS_IMETHOD Blur(void) = 0;

  /* void click (); */
  NS_IMETHOD Click(void) = 0;

  /* nsIDOMNodeList getElementsByAttribute (in DOMString name, in DOMString value); */
  NS_IMETHOD GetElementsByAttribute(const nsAReadableString & name, const nsAReadableString & value, nsIDOMNodeList **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMXULELEMENT \
  NS_IMETHOD GetId(nsAWritableString & aId); \
  NS_IMETHOD SetId(const nsAReadableString & aId); \
  NS_IMETHOD GetClassName(nsAWritableString & aClassName); \
  NS_IMETHOD SetClassName(const nsAReadableString & aClassName); \
  NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle); \
  NS_IMETHOD GetDatabase(nsIRDFCompositeDataSource * *aDatabase); \
  NS_IMETHOD GetBuilder(nsIXULTemplateBuilder * *aBuilder); \
  NS_IMETHOD GetResource(nsIRDFResource * *aResource); \
  NS_IMETHOD GetControllers(nsIControllers * *aControllers); \
  NS_IMETHOD GetBoxObject(nsIBoxObject * *aBoxObject); \
  NS_IMETHOD AddBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element); \
  NS_IMETHOD RemoveBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element); \
  NS_IMETHOD DoCommand(void); \
  NS_IMETHOD Focus(void); \
  NS_IMETHOD Blur(void); \
  NS_IMETHOD Click(void); \
  NS_IMETHOD GetElementsByAttribute(const nsAReadableString & name, const nsAReadableString & value, nsIDOMNodeList **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMXULELEMENT(_to) \
  NS_IMETHOD GetId(nsAWritableString & aId) { return _to ## GetId(aId); } \
  NS_IMETHOD SetId(const nsAReadableString & aId) { return _to ## SetId(aId); } \
  NS_IMETHOD GetClassName(nsAWritableString & aClassName) { return _to ## GetClassName(aClassName); } \
  NS_IMETHOD SetClassName(const nsAReadableString & aClassName) { return _to ## SetClassName(aClassName); } \
  NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) { return _to ## GetStyle(aStyle); } \
  NS_IMETHOD GetDatabase(nsIRDFCompositeDataSource * *aDatabase) { return _to ## GetDatabase(aDatabase); } \
  NS_IMETHOD GetBuilder(nsIXULTemplateBuilder * *aBuilder) { return _to ## GetBuilder(aBuilder); } \
  NS_IMETHOD GetResource(nsIRDFResource * *aResource) { return _to ## GetResource(aResource); } \
  NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return _to ## GetControllers(aControllers); } \
  NS_IMETHOD GetBoxObject(nsIBoxObject * *aBoxObject) { return _to ## GetBoxObject(aBoxObject); } \
  NS_IMETHOD AddBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element) { return _to ## AddBroadcastListener(attr, element); } \
  NS_IMETHOD RemoveBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element) { return _to ## RemoveBroadcastListener(attr, element); } \
  NS_IMETHOD DoCommand(void) { return _to ## DoCommand(); } \
  NS_IMETHOD Focus(void) { return _to ## Focus(); } \
  NS_IMETHOD Blur(void) { return _to ## Blur(); } \
  NS_IMETHOD Click(void) { return _to ## Click(); } \
  NS_IMETHOD GetElementsByAttribute(const nsAReadableString & name, const nsAReadableString & value, nsIDOMNodeList **_retval) { return _to ## GetElementsByAttribute(name, value, _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_NSIDOMXULELEMENT(_to) \
  NS_IMETHOD GetId(nsAWritableString & aId) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetId(aId); } \
  NS_IMETHOD SetId(const nsAReadableString & aId) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetId(aId); } \
  NS_IMETHOD GetClassName(nsAWritableString & aClassName) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetClassName(aClassName); } \
  NS_IMETHOD SetClassName(const nsAReadableString & aClassName) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetClassName(aClassName); } \
  NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetStyle(aStyle); } \
  NS_IMETHOD GetDatabase(nsIRDFCompositeDataSource * *aDatabase) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetDatabase(aDatabase); } \
  NS_IMETHOD GetBuilder(nsIXULTemplateBuilder * *aBuilder) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetBuilder(aBuilder); } \
  NS_IMETHOD GetResource(nsIRDFResource * *aResource) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetResource(aResource); } \
  NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetControllers(aControllers); } \
  NS_IMETHOD GetBoxObject(nsIBoxObject * *aBoxObject) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetBoxObject(aBoxObject); } \
  NS_IMETHOD AddBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> AddBroadcastListener(attr, element); } \
  NS_IMETHOD RemoveBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveBroadcastListener(attr, element); } \
  NS_IMETHOD DoCommand(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> DoCommand(); } \
  NS_IMETHOD Focus(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Focus(); } \
  NS_IMETHOD Blur(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Blur(); } \
  NS_IMETHOD Click(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Click(); } \
  NS_IMETHOD GetElementsByAttribute(const nsAReadableString & name, const nsAReadableString & value, nsIDOMNodeList **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetElementsByAttribute(name, value, _retval); } 

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

/* Header file */
class nsDOMXULElement : public nsIDOMXULElement
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMXULELEMENT

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMXULElement, nsIDOMXULElement)

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

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

/* attribute DOMString id; */
NS_IMETHODIMP nsDOMXULElement::GetId(nsAWritableString & aId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMXULElement::SetId(const nsAReadableString & aId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString className; */
NS_IMETHODIMP nsDOMXULElement::GetClassName(nsAWritableString & aClassName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMXULElement::SetClassName(const nsAReadableString & aClassName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMCSSStyleDeclaration style; */
NS_IMETHODIMP nsDOMXULElement::GetStyle(nsIDOMCSSStyleDeclaration * *aStyle)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIRDFCompositeDataSource database; */
NS_IMETHODIMP nsDOMXULElement::GetDatabase(nsIRDFCompositeDataSource * *aDatabase)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIXULTemplateBuilder builder; */
NS_IMETHODIMP nsDOMXULElement::GetBuilder(nsIXULTemplateBuilder * *aBuilder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIRDFResource resource; */
NS_IMETHODIMP nsDOMXULElement::GetResource(nsIRDFResource * *aResource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIControllers controllers; */
NS_IMETHODIMP nsDOMXULElement::GetControllers(nsIControllers * *aControllers)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIBoxObject boxObject; */
NS_IMETHODIMP nsDOMXULElement::GetBoxObject(nsIBoxObject * *aBoxObject)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addBroadcastListener (in DOMString attr, in nsIDOMElement element); */
NS_IMETHODIMP nsDOMXULElement::AddBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeBroadcastListener (in DOMString attr, in nsIDOMElement element); */
NS_IMETHODIMP nsDOMXULElement::RemoveBroadcastListener(const nsAReadableString & attr, nsIDOMElement *element)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void doCommand (); */
NS_IMETHODIMP nsDOMXULElement::DoCommand()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void focus (); */
NS_IMETHODIMP nsDOMXULElement::Focus()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void blur (); */
NS_IMETHODIMP nsDOMXULElement::Blur()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void click (); */
NS_IMETHODIMP nsDOMXULElement::Click()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMNodeList getElementsByAttribute (in DOMString name, in DOMString value); */
NS_IMETHODIMP nsDOMXULElement::GetElementsByAttribute(const nsAReadableString & name, const nsAReadableString & value, nsIDOMNodeList **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMXULElement_h__ */
