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

#ifndef __gen_inIDOMUtils_h__
#define __gen_inIDOMUtils_h__


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

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

class nsISupportsArray; /* forward declaration */

class nsIDOMElement; /* forward declaration */

class nsIDOMDocument; /* forward declaration */

class nsIDOMCSSStyleRule; /* forward declaration */


/* starting interface:    inIDOMUtils */
#define INIDOMUTILS_IID_STR "ffffd059-13d1-4ef7-acb1-91188c6e31dd"

#define INIDOMUTILS_IID \
  {0xffffd059, 0x13d1, 0x4ef7, \
    { 0xac, 0xb1, 0x91, 0x18, 0x8c, 0x6e, 0x31, 0xdd }}

class NS_NO_VTABLE inIDOMUtils : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(INIDOMUTILS_IID)

  /* nsISupportsArray getStyleRules (in nsIDOMElement aElement); */
  NS_IMETHOD GetStyleRules(nsIDOMElement *aElement, nsISupportsArray **_retval) = 0;

  /* unsigned long getRuleWeight (in nsIDOMCSSStyleRule aRule); */
  NS_IMETHOD GetRuleWeight(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval) = 0;

  /* unsigned long getRuleLine (in nsIDOMCSSStyleRule aRule); */
  NS_IMETHOD GetRuleLine(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval) = 0;

  /* nsISimpleEnumerator getBindingURLs (in nsIDOMElement aElement); */
  NS_IMETHOD GetBindingURLs(nsIDOMElement *aElement, nsISimpleEnumerator **_retval) = 0;

  /* long getContentState (in nsIDOMElement aElement); */
  NS_IMETHOD GetContentState(nsIDOMElement *aElement, PRInt32 *_retval) = 0;

  /* void setContentState (in nsIDOMElement aElement, in long aState); */
  NS_IMETHOD SetContentState(nsIDOMElement *aElement, PRInt32 aState) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_INIDOMUTILS \
  NS_IMETHOD GetStyleRules(nsIDOMElement *aElement, nsISupportsArray **_retval); \
  NS_IMETHOD GetRuleWeight(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval); \
  NS_IMETHOD GetRuleLine(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval); \
  NS_IMETHOD GetBindingURLs(nsIDOMElement *aElement, nsISimpleEnumerator **_retval); \
  NS_IMETHOD GetContentState(nsIDOMElement *aElement, PRInt32 *_retval); \
  NS_IMETHOD SetContentState(nsIDOMElement *aElement, PRInt32 aState); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_INIDOMUTILS(_to) \
  NS_IMETHOD GetStyleRules(nsIDOMElement *aElement, nsISupportsArray **_retval) { return _to GetStyleRules(aElement, _retval); } \
  NS_IMETHOD GetRuleWeight(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval) { return _to GetRuleWeight(aRule, _retval); } \
  NS_IMETHOD GetRuleLine(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval) { return _to GetRuleLine(aRule, _retval); } \
  NS_IMETHOD GetBindingURLs(nsIDOMElement *aElement, nsISimpleEnumerator **_retval) { return _to GetBindingURLs(aElement, _retval); } \
  NS_IMETHOD GetContentState(nsIDOMElement *aElement, PRInt32 *_retval) { return _to GetContentState(aElement, _retval); } \
  NS_IMETHOD SetContentState(nsIDOMElement *aElement, PRInt32 aState) { return _to SetContentState(aElement, aState); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_INIDOMUTILS(_to) \
  NS_IMETHOD GetStyleRules(nsIDOMElement *aElement, nsISupportsArray **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleRules(aElement, _retval); } \
  NS_IMETHOD GetRuleWeight(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRuleWeight(aRule, _retval); } \
  NS_IMETHOD GetRuleLine(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRuleLine(aRule, _retval); } \
  NS_IMETHOD GetBindingURLs(nsIDOMElement *aElement, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBindingURLs(aElement, _retval); } \
  NS_IMETHOD GetContentState(nsIDOMElement *aElement, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentState(aElement, _retval); } \
  NS_IMETHOD SetContentState(nsIDOMElement *aElement, PRInt32 aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentState(aElement, aState); } 

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

/* Header file */
class inDOMUtils : public inIDOMUtils
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_INIDOMUTILS

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(inDOMUtils, inIDOMUtils)

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

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

/* nsISupportsArray getStyleRules (in nsIDOMElement aElement); */
NS_IMETHODIMP inDOMUtils::GetStyleRules(nsIDOMElement *aElement, nsISupportsArray **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long getRuleWeight (in nsIDOMCSSStyleRule aRule); */
NS_IMETHODIMP inDOMUtils::GetRuleWeight(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long getRuleLine (in nsIDOMCSSStyleRule aRule); */
NS_IMETHODIMP inDOMUtils::GetRuleLine(nsIDOMCSSStyleRule *aRule, PRUint32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISimpleEnumerator getBindingURLs (in nsIDOMElement aElement); */
NS_IMETHODIMP inDOMUtils::GetBindingURLs(nsIDOMElement *aElement, nsISimpleEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long getContentState (in nsIDOMElement aElement); */
NS_IMETHODIMP inDOMUtils::GetContentState(nsIDOMElement *aElement, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setContentState (in nsIDOMElement aElement, in long aState); */
NS_IMETHODIMP inDOMUtils::SetContentState(nsIDOMElement *aElement, PRInt32 aState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_inIDOMUtils_h__ */
