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

#ifndef __gen_nsIDOMNSHTMLElement_h__
#define __gen_nsIDOMNSHTMLElement_h__


#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

/* starting interface:    nsIDOMNSHTMLElement */
#define NS_IDOMNSHTMLELEMENT_IID_STR "da83b2ec-8264-4410-8496-ada3acd2ae42"

#define NS_IDOMNSHTMLELEMENT_IID \
  {0xda83b2ec, 0x8264, 0x4410, \
    { 0x84, 0x96, 0xad, 0xa3, 0xac, 0xd2, 0xae, 0x42 }}

class NS_NO_VTABLE nsIDOMNSHTMLElement : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSHTMLELEMENT_IID)

  /* readonly attribute long offsetTop; */
  NS_IMETHOD GetOffsetTop(PRInt32 *aOffsetTop) = 0;

  /* readonly attribute long offsetLeft; */
  NS_IMETHOD GetOffsetLeft(PRInt32 *aOffsetLeft) = 0;

  /* readonly attribute long offsetWidth; */
  NS_IMETHOD GetOffsetWidth(PRInt32 *aOffsetWidth) = 0;

  /* readonly attribute long offsetHeight; */
  NS_IMETHOD GetOffsetHeight(PRInt32 *aOffsetHeight) = 0;

  /* readonly attribute nsIDOMElement offsetParent; */
  NS_IMETHOD GetOffsetParent(nsIDOMElement * *aOffsetParent) = 0;

  /* attribute DOMString innerHTML; */
  NS_IMETHOD GetInnerHTML(nsAWritableString & aInnerHTML) = 0;
  NS_IMETHOD SetInnerHTML(const nsAReadableString & aInnerHTML) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMNSHTMLELEMENT \
  NS_IMETHOD GetOffsetTop(PRInt32 *aOffsetTop); \
  NS_IMETHOD GetOffsetLeft(PRInt32 *aOffsetLeft); \
  NS_IMETHOD GetOffsetWidth(PRInt32 *aOffsetWidth); \
  NS_IMETHOD GetOffsetHeight(PRInt32 *aOffsetHeight); \
  NS_IMETHOD GetOffsetParent(nsIDOMElement * *aOffsetParent); \
  NS_IMETHOD GetInnerHTML(nsAWritableString & aInnerHTML); \
  NS_IMETHOD SetInnerHTML(const nsAReadableString & aInnerHTML); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMNSHTMLELEMENT(_to) \
  NS_IMETHOD GetOffsetTop(PRInt32 *aOffsetTop) { return _to ## GetOffsetTop(aOffsetTop); } \
  NS_IMETHOD GetOffsetLeft(PRInt32 *aOffsetLeft) { return _to ## GetOffsetLeft(aOffsetLeft); } \
  NS_IMETHOD GetOffsetWidth(PRInt32 *aOffsetWidth) { return _to ## GetOffsetWidth(aOffsetWidth); } \
  NS_IMETHOD GetOffsetHeight(PRInt32 *aOffsetHeight) { return _to ## GetOffsetHeight(aOffsetHeight); } \
  NS_IMETHOD GetOffsetParent(nsIDOMElement * *aOffsetParent) { return _to ## GetOffsetParent(aOffsetParent); } \
  NS_IMETHOD GetInnerHTML(nsAWritableString & aInnerHTML) { return _to ## GetInnerHTML(aInnerHTML); } \
  NS_IMETHOD SetInnerHTML(const nsAReadableString & aInnerHTML) { return _to ## SetInnerHTML(aInnerHTML); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMNSHTMLELEMENT(_to) \
  NS_IMETHOD GetOffsetTop(PRInt32 *aOffsetTop) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetOffsetTop(aOffsetTop); } \
  NS_IMETHOD GetOffsetLeft(PRInt32 *aOffsetLeft) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetOffsetLeft(aOffsetLeft); } \
  NS_IMETHOD GetOffsetWidth(PRInt32 *aOffsetWidth) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetOffsetWidth(aOffsetWidth); } \
  NS_IMETHOD GetOffsetHeight(PRInt32 *aOffsetHeight) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetOffsetHeight(aOffsetHeight); } \
  NS_IMETHOD GetOffsetParent(nsIDOMElement * *aOffsetParent) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetOffsetParent(aOffsetParent); } \
  NS_IMETHOD GetInnerHTML(nsAWritableString & aInnerHTML) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetInnerHTML(aInnerHTML); } \
  NS_IMETHOD SetInnerHTML(const nsAReadableString & aInnerHTML) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetInnerHTML(aInnerHTML); } 

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

/* Header file */
class nsDOMNSHTMLElement : public nsIDOMNSHTMLElement
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMNSHTMLELEMENT

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMNSHTMLElement, nsIDOMNSHTMLElement)

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

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

/* readonly attribute long offsetTop; */
NS_IMETHODIMP nsDOMNSHTMLElement::GetOffsetTop(PRInt32 *aOffsetTop)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long offsetLeft; */
NS_IMETHODIMP nsDOMNSHTMLElement::GetOffsetLeft(PRInt32 *aOffsetLeft)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long offsetWidth; */
NS_IMETHODIMP nsDOMNSHTMLElement::GetOffsetWidth(PRInt32 *aOffsetWidth)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long offsetHeight; */
NS_IMETHODIMP nsDOMNSHTMLElement::GetOffsetHeight(PRInt32 *aOffsetHeight)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMElement offsetParent; */
NS_IMETHODIMP nsDOMNSHTMLElement::GetOffsetParent(nsIDOMElement * *aOffsetParent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString innerHTML; */
NS_IMETHODIMP nsDOMNSHTMLElement::GetInnerHTML(nsAWritableString & aInnerHTML)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMNSHTMLElement::SetInnerHTML(const nsAReadableString & aInnerHTML)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMNSHTMLElement_h__ */
