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

#ifndef __gen_nsIFindComponent_h__
#define __gen_nsIFindComponent_h__

#include "nsIAppShellComponent.h"
#include "nsIEditorShell.h"

class nsIDOMWindowInternal;
class nsIEditorShell;

/* starting interface:    nsIFindComponent */
#define NS_IFINDCOMPONENT_IID_STR "a6cf90ee-15b3-11d2-932e-00805f8add32"

#define NS_IFINDCOMPONENT_IID \
  {0xa6cf90ee, 0x15b3, 0x11d2, \
    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}

class NS_NO_VTABLE nsIFindComponent : public nsIAppShellComponent {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFINDCOMPONENT_IID)

  /* nsISupports CreateContext (in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
  NS_IMETHOD CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval) = 0;

  /* boolean Find (in nsISupports aContext); */
  NS_IMETHOD Find(nsISupports *aContext, PRBool *_retval) = 0;

  /* void Replace (in nsISupports aContext); */
  NS_IMETHOD Replace(nsISupports *aContext) = 0;

  /* boolean FindNext (in nsISupports aContext); */
  NS_IMETHOD FindNext(nsISupports *aContext, PRBool *_retval) = 0;

  /* void ResetContext (in nsISupports aContext, in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
  NS_IMETHOD ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFINDCOMPONENT \
  NS_IMETHOD CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval); \
  NS_IMETHOD Find(nsISupports *aContext, PRBool *_retval); \
  NS_IMETHOD Replace(nsISupports *aContext); \
  NS_IMETHOD FindNext(nsISupports *aContext, PRBool *_retval); \
  NS_IMETHOD ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFINDCOMPONENT(_to) \
  NS_IMETHOD CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval) { return _to ## CreateContext(aWindow, aEditor, _retval); } \
  NS_IMETHOD Find(nsISupports *aContext, PRBool *_retval) { return _to ## Find(aContext, _retval); } \
  NS_IMETHOD Replace(nsISupports *aContext) { return _to ## Replace(aContext); } \
  NS_IMETHOD FindNext(nsISupports *aContext, PRBool *_retval) { return _to ## FindNext(aContext, _retval); } \
  NS_IMETHOD ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor) { return _to ## ResetContext(aContext, aWindow, aEditor); } 

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

/* Header file */
class nsFindComponent : public nsIFindComponent
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIFINDCOMPONENT

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsFindComponent, nsIFindComponent)

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

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

/* nsISupports CreateContext (in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
NS_IMETHODIMP nsFindComponent::CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean Find (in nsISupports aContext); */
NS_IMETHODIMP nsFindComponent::Find(nsISupports *aContext, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void Replace (in nsISupports aContext); */
NS_IMETHODIMP nsFindComponent::Replace(nsISupports *aContext)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean FindNext (in nsISupports aContext); */
NS_IMETHODIMP nsFindComponent::FindNext(nsISupports *aContext, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ResetContext (in nsISupports aContext, in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
NS_IMETHODIMP nsFindComponent::ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_IFINDCOMPONENT_CONTRACTID NS_IAPPSHELLCOMPONENT_CONTRACTID "/find;1"
#define NS_IFINDCOMPONENT_CLASSNAME "Mozilla Find Component"

#endif /* __gen_nsIFindComponent_h__ */
