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

#ifndef __gen_nsIDocumentTransformer_h__
#define __gen_nsIDocumentTransformer_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 nsIDOMNode; /* forward declaration */

class nsIDOMDocument; /* forward declaration */

class nsIObserver; /* forward declaration */


/* starting interface:    nsIDocumentTransformer */
#define NS_IDOCUMENTTRANSFORMER_IID_STR "3fbff728-2d20-11d3-aef3-00108300ff91"

#define NS_IDOCUMENTTRANSFORMER_IID \
  {0x3fbff728, 0x2d20, 0x11d3, \
    { 0xae, 0xf3, 0x00, 0x10, 0x83, 0x00, 0xff, 0x91 }}

/**
 * This interface should be implemented by any object that wants to
 * transform the content model of the current document before the
 * document is displayed.  One possible implementor of this interface
 * is an XSL processor. 
 */
class NS_NO_VTABLE nsIDocumentTransformer : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCUMENTTRANSFORMER_IID)

  /* void transformDocument (in nsIDOMNode aSourceDOM, in nsIDOMNode aStyleDOM, in nsIDOMDocument aOutputDOC, in nsIObserver aObserver); */
  NS_IMETHOD TransformDocument(nsIDOMNode *aSourceDOM, nsIDOMNode *aStyleDOM, nsIDOMDocument *aOutputDOC, nsIObserver *aObserver) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOCUMENTTRANSFORMER \
  NS_IMETHOD TransformDocument(nsIDOMNode *aSourceDOM, nsIDOMNode *aStyleDOM, nsIDOMDocument *aOutputDOC, nsIObserver *aObserver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOCUMENTTRANSFORMER(_to) \
  NS_IMETHOD TransformDocument(nsIDOMNode *aSourceDOM, nsIDOMNode *aStyleDOM, nsIDOMDocument *aOutputDOC, nsIObserver *aObserver) { return _to TransformDocument(aSourceDOM, aStyleDOM, aOutputDOC, aObserver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOCUMENTTRANSFORMER(_to) \
  NS_IMETHOD TransformDocument(nsIDOMNode *aSourceDOM, nsIDOMNode *aStyleDOM, nsIDOMDocument *aOutputDOC, nsIObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->TransformDocument(aSourceDOM, aStyleDOM, aOutputDOC, aObserver); } 

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

/* Header file */
class nsDocumentTransformer : public nsIDocumentTransformer
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOCUMENTTRANSFORMER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDocumentTransformer, nsIDocumentTransformer)

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

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

/* void transformDocument (in nsIDOMNode aSourceDOM, in nsIDOMNode aStyleDOM, in nsIDOMDocument aOutputDOC, in nsIObserver aObserver); */
NS_IMETHODIMP nsDocumentTransformer::TransformDocument(nsIDOMNode *aSourceDOM, nsIDOMNode *aStyleDOM, nsIDOMDocument *aOutputDOC, nsIObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

extern nsresult
NS_NewDocumentTransformer(nsIDocumentTransformer** aDocTransformer);

#endif /* __gen_nsIDocumentTransformer_h__ */
